I am looking for a way to convert projections from GoogleCoordinates to Geo Coordinates.
Is there a way to convert projections on the Server side from EPSG:4326 to EPSG:900913?
Any sample or information regarding this is truly appreciated.
I am looking for a way to convert projections from GoogleCoordinates to Geo Coordinates.
Is there a way to convert projections on the Server side from EPSG:4326 to EPSG:900913?
Any sample or information regarding this is truly appreciated.
Gnak,
Welcome to the community! Hope you enjoy learning and sharing here!
Please have a look at the sample Samples->Overlays->ShapeFilesOverGoogleMap to see how to convert a shape file from Decimal Degree (EPSG: 4326) to Google Map(EPSG:900913). If you want to convert the other way, just switch the internal and external projection string will be fine.
If you want to do the conversion for a specific shape / feature, please call proj4.Open() first and then call the method proj4.ConvertToExternalProjection() to convert from InternalProjection to ExternalProjection, or call proj4.ConvertToInternalProjection() to do the other way.
Let me know if you have any issues.
Ben