Hi,
I want to combine two sets of geodata (first set : many polygons, representing a country, the second set : many points, representing some country-related data) , in the sense that some features from the second set should be translated to the first set. I load the sets separately, and finally set the current extent to the first set's extent. The sets have the same projection and are valid.
I unfortunately can only provide some debug data of what I am trying to achieve :
The first set's Extent (and also the WpfMap's CurrentExtent) is :
minX 262975.55452249991
maxX 956968.25144907134
minY 5239946.4911816269
maxY 6117811.6268173689
The second set's Extent is :
minXOrig 47.410618
maxXOrig 54.907544
minYOrig 6.043916
maxYOrig 14.970807
As you can see, there is quite the difference between these two boxes.
I'm trying to translate the shapes from the second set within the current extent.
Here is an example shape, with coords given relative to the second set's extent (posted above) :
pointShape.X 54.792869
pointShape.Y 9.420696
I have tried to calculate the scale difference between extents and multiply it to the shape's X and Y coords, to no avail. I know how to translate the points, yet I don't know which ratio is to be applied to the original coords so that I can get to coords relative to the current extent.
My question would be : What are the new coords of the example shape given above, within the current extent ?
I can provide some further details, if the need arises. I don't know how this can be done within the library.
Thank you in advance !