Zverik / Nik4

Mapnik to image export
Do What The F*ck You Want To Public License
123 stars 23 forks source link

Support any projection #29

Closed Nakaner closed 6 years ago

Nakaner commented 6 years ago

This is work in progress.

This pull request aims to make it possible to render maps in any projection Proj4 supports.

Zverik commented 6 years ago

Thanks for working on this! Please try not to complicate the source code too much :)

Nakaner commented 6 years ago

@Zverik wrote:

Please try not to complicate the source code too much :)

Test cases are welcome. My personal use of Nik4 is limited to --bbox, --ppi, --zoom and --factor. I have not used everything around paper size, fitting to layers and routes, paddings and margins.

Nakaner commented 6 years ago

--center and --fit-layers works now (including a bug fix)

Nakaner commented 6 years ago

@Zverik Is it ok to disable the generation of OZI explorer files if the new option --projection <value> is used? If this option is missing, the default (EPSG:3857) is assumed.

Zverik commented 6 years ago

Yes, I guess so. OziExplorer supports many projections, but converting their names would be non-trivial.

Nakaner commented 6 years ago

@Zverik I think that this pull request could be merged. Or are there any issues I should fix?

Zverik commented 6 years ago

@Nakaner sorry I didn't review it earlier. There are some issues, I think.