I am trying to find out where the edges of the WindowRect are on a XamMap. I am going to use the latitude and longitude of the edges of the map, so that I can retrieve from the server only the data that is in the current viewable area. However, when I get the X coordinate, which I would think is the longitude, I get a number like "-13095675.841287203". This is obviously not the longitude in degrees like I need. What do I need to do to get the units in degrees? All of the examples I've seen so far have been for geometry types, but I am using the geography type.
This is the XAML for my reader:
<ig:MapLayer.Reader> <ig:SqlShapeReader DataMapping="Data=geogText; APN,Name=parcel; Address=situsLine1" > <ig:SqlShapeReader.CoordinateSystem> <ig:CoordinateSystem> <ig:CoordinateSystem.Geocs> <ig:Geocs EllipsoidType="NAD83" /> </ig:CoordinateSystem.Geocs> </ig:CoordinateSystem> </ig:SqlShapeReader.CoordinateSystem> </ig:SqlShapeReader></ig:MapLayer.Reader>
There is no projection, because it isn't being projected onto a flat surface. The data is stored with an SRID/EPSG of 4269.
Thank you,
Russell
Hi Russell,Please take a look at the following links which lead to information on the ProjectToMap and UnprojectFromMap methods.Hope this helps,Milana Zhileva
That is exactly what I was looking for. Thank you!