In our application, we store data in WGS84 (GPS coordinates). The map background is OpenStreetMapOverlay (with MapUnit = GeographyUnit.Meter).
I'm trying to plot the data from WGS84 onto the map. However, I've failed to find a projection that's compatible to OpenStreetMapOverlay.
My question: how do I convert WGS84 data to OpenStreetMapOverlay projection?
The code:
Proj4Projection proj4 = new Proj4Projection();
proj4.InternalProjectionParameters = Proj4Projection.GetWgs84ParametersString();
proj4.ExternalProjectionParameters = Proj4Projection.GetGoogleMapParametersString();
// I've tried Proj4Projection.GetSphericalMercatorParametersString(), the values are off as well.
proj4.Open()
Vertex vertex = proj4.ConvertToExternalProjection(data.X, data.Y);
...
proj4.Close();
What am I doing wrong here?