Google Maps uses the spatial help system

What is the Google Maps spatial help system when you type lat long in the map search bar?

I found some clues that this could be WGS84, but after converting to this coordinate system nothing appears when I paste the coordinates into the Google map search box.

I am transitioning from the GDA MGA 56.

Example:

  • Input Signals MGA56: 336301, 6253363
  • Expected WGS86 agreement: -33.8473340793201, 151.230631835944
  • I get: 16834916.928327594 -4008321.1020318186

Spatial coordination systems:

  • EPSG: 28356 for MGA56
  • EPSG: 900913 for WGS86 (google maps)

I use geotools to convert:

CoordinateReferenceSystem crsMga56 = CRS.parseWKT(mga56); CoordinateReferenceSystem crsGmaps = CRS.parseWKT(gmaps); Coordinate coordinate = new Coordinate(336301, 6253363); Point point = new GeometryFactory().createPoint(coordinate); MathTransform transform = CRS.findMathTransform(crsMga56, crsGmaps); Geometry geometry = JTS.transform(point, transform); 

I know the conversion is wrong, because when I use the online tool, it gives me the correct coordinates. http://www.environment.gov.au/cgi-bin/transform/mga2geo_gda.pl?east=336301&north=6253363&zone=56

+6
google-maps spatial geotools
source share
2 answers

Google uses the WGS84-based spherical projection of the Mercator. There is an entry on the OpenLayers website.

+10
source share

If this is used, we found that GeoTools changed the JVM, so lat and long were opposite (151, -33), which could explain why you are leaving the borders {151> 90}). it was a nightmare to find

+1
source share

All Articles