Hi,
I have crop some parts from map according to polygon data(Coordinates) and save into some folder.
My polygon data is look like:
POLYGON ((229444.61000000034 7575131.3, 229444.49000000022 7575129.38, 229443.95999999996 7575121.32, 229407.08000000007 7575123.45, 229407.5700000003 7575133.44, 229444.61000000034 7575131.3))
There is one image layer on map which made from small different different images and I want to crop image according to polygon points look like above from the image layer,
So is it possible and how can I do this?
I also referred "Create a RestrictionLayer" but It seems like it is not useful for me according to my scenario.
Crop some part from Map
Please reply me as soon as possible,
If it is not possible then, any other way to do a crop some parts of map/layer according to polygon points I mentioned above then please give me the idea.
Vivek, We didn’t figure out a good way for your case but seems we are closing to a workaround. I will update here once it is proved (tomorrow maybe).
Thanks,
Troy
Hi,
Any Solution then please reply me…
If using polygon point it is not possible then please give me idea for rectangle point…
Hi Vivek,
Here is my idea, we add an overlap layer using InMemroyFeatureLayer and this layer has a polygon feature whose outter ring extent is the worldextent. Besides, we define the InMemroyFeatureLayer’s area style to fill white color. Then, when we click a button to crop a polygon area, we insert the polygon area as this feature’s inner ring. At the end, we calll the GetBitMap method to save the result.
I attached some codes here and please let me know if it is fit for you.
Thanks,
Troy
DisplayASimpleMapController.cs (3.09 KB)