locationtech / geotrellis

GeoTrellis is a geographic data processing engine for high performance applications.
http://geotrellis.io
Other
1.34k stars 361 forks source link

WebMercator is reported as deprecated EPSG:3785 instead of EPSG:3857 in metadata #3247

Closed jdenisgiguere closed 2 years ago

jdenisgiguere commented 4 years ago

Current situation

When I reproject a layer into a ZoomLayoutScheme using geotrellis.proj4.WebMercator as CRS, the json file of metadata of the resulting layer will contain this srs definition:

"crs":"+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs "

If I query the AttributeStore metadata for crs.epsgCode it will return: 3785. EPSG:3785 is a deprecated code for Web Mercator.

In geotrellis.proj4.WebMercator, we explicitly expose epsgCode as 3857.

Expected situation

When looking at metadata.crs.epsgCode of a layer reprojected to geotrellis.proj4.WebMercator , I would expect the value to be 3857.

pomadchin commented 4 years ago

Hi @jdenisgiguere it is a proj4j bug: https://github.com/locationtech/proj4j/issues/61 It is not a critical issue though.

Thanks for reporting!

pomadchin commented 3 years ago

Is addressed here: https://github.com/locationtech/proj4j/pull/71 I'll close this issue once we'll upgrade GT up to the fresh proj4j release.

pomadchin commented 2 years ago

Closed via https://github.com/locationtech/geotrellis/pull/3294