Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support alternative coordinate reference systems in .wld files #26

Closed
wants to merge 2 commits into from

Conversation

gregrs-uk
Copy link

Hi and thanks very much for taking the time to create this useful script.

A bit of background... In Great Britain, Ordnance Survey maps (used by many hikers etc.) use the British National Grid (EPSG:27700). This system is widely used to specify co-ordinates and so it is useful to be able to use this coordinate reference system in Mapnik.

I have modified Nik4 to grab the SRS from the Mapnik XML stylesheet so that the .wld file contains the correct coordinates when using alternative coordinate reference systems such as the British National Grid. I've tested this with EPSG:3857 and EPSG:27700 maps by importing into QGIS and it appears to work. (If you save the world file with extension .pngw it is automatically used by QGIS when opening the PNG image.)

Unfortunately exporting the relevant parameters for the SRS specified in the Mapnik stylesheet to an OziExplorer file (as I suggested in #25) is a bit much for me to get my head around, although this site explains the file format.

This allows the export of a correct world file for projections other that 3857 but N.B. OziExplorer file still assumes this projection
@Zverik
Copy link
Owner

Zverik commented Apr 17, 2018

Hi Greg, the merged PR #29 adds support for different projections. If you're still interested in this, could you please check how that change affects your task and your pull request?

@Zverik Zverik closed this Jun 28, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants