Opened 7 years ago

Closed 7 years ago

#4212 closed defect (fixed)

proj4 epsg:3857 hack should be removed

Reported by: komzpa@… Owned by: jochen@…
Priority: minor Milestone:
Component: tirex Version:
Keywords: Cc: kay_D


The file /tirex/backend-mapnik/ around line 256 shouldn't have a special hardcode for epsg:3857 and should depend on the correct version of proj-data instead.

I've bumped into a number of "spherical mercatorto spherical mercator" raster reprojection issues because of this enforcement.

osm.xml stylesheet also uses a special string for spherical mercator, and that string is _a bit_ different. Just enough to fire mapnik's reprojection engine for each step; I'll open a separate issue for that too.

Hope we'll have just one spherical mercator proj4 string in all the software at some time in the future instead of at least five ones that we've got now, and may that be "+init=epsg:3857" :3

Change History (2)

comment:1 Changed 7 years ago by kay_D

Cc: kay_D added

I tried it, as the proj is defined by default:

# grep 3857 /usr/share/proj/epsg <3857> +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 <>

I removed the special handling in and changed the styles to be "+init=epsg:3857", and it works flawlessly.

comment:2 Changed 7 years ago by woodpeck

Resolution: fixed
Status: newclosed

dropped setting of specific SRS in r28463 4 weeks ago.

Note: See TracTickets for help on using tickets.