Re: [OSM-talk] Nik4: mapnik → image

2014-12-10 Thread Frederik Ramm
Ilya,

On 12/06/2014 10:19 PM, Ilya Zverev wrote:
 I see that it can split a large image into smaller mapnik rendering jobs
 and combine them after, with --tiles. That's already very useful but is
 it also possible to actually keep the tiles (e.g. for building a GDAL
 VRT from them)? This would require a separate .pgw file for each tile.
 
 Thanks for the suggestion, I've just published release 1.5 with
 `--just-tiles` option: when used, it does not merge tiles, but keeps 
 them, and creates ozi/wld files for each if requested. I've tested it 
 with gdal_merge.

That's great, really useful. Thank you.

Bye
Frederik

-- 
Frederik Ramm  ##  eMail frede...@remote.org  ##  N49°00'09 E008°23'33

___
talk mailing list
talk@openstreetmap.org
https://lists.openstreetmap.org/listinfo/talk


Re: [OSM-talk] Nik4: mapnik → image

2014-12-06 Thread Ilya Zverev

Today I have published Nik4. It makes everything easier.


I see that it can split a large image into smaller mapnik rendering jobs
and combine them after, with --tiles. That's already very useful but is
it also possible to actually keep the tiles (e.g. for building a GDAL
VRT from them)? This would require a separate .pgw file for each tile.


Thanks for the suggestion, I've just published release 1.5 with
`--just-tiles` option: when used, it does not merge tiles, but keeps 
them, and creates ozi/wld files for each if requested. I've tested it 
with gdal_merge.


IZ

___
talk mailing list
talk@openstreetmap.org
https://lists.openstreetmap.org/listinfo/talk


Re: [OSM-talk] Nik4: mapnik → image

2014-12-04 Thread Frederik Ramm
Zverik,

On 05/16/14 07:12, Ilya Zverev wrote:
 Today I have published Nik4. It makes everything easier.

I see that it can split a large image into smaller mapnik rendering jobs
and combine them after, with --tiles. That's already very useful but is
it also possible to actually keep the tiles (e.g. for building a GDAL
VRT from them)? This would require a separate .pgw file for each tile.

Bye
Frederik

-- 
Frederik Ramm  ##  eMail frede...@remote.org  ##  N49°00'09 E008°23'33

___
talk mailing list
talk@openstreetmap.org
https://lists.openstreetmap.org/listinfo/talk


Re: [OSM-talk] Nik4: mapnik → image

2014-05-19 Thread Martin Koppenhoefer
2014-05-16 11:48 GMT+02:00 Ilya Zverev zve...@textual.ru:

 Yes, that's a bug I've also encountered when trying to render
 1000x26000 strip. Looks like an overflow error in Mapnik. Use --tiles
 parameter (I'd suggest --tiles 3): it will generate the image in 9
 parts and then merge them with Imagemagick.

  Can I feed it with the
  classic render.xml style (no carto), or does it expect a
  carto-style? In the second attempt I'm omitting the dimensions and
  only defining a zoom level, a bounding box and a output resolution.

 It expects a regular mapnik xml, not cartocss or cascadenik.
 CartoCSS projects should be processed with carto -l.




Could get the italy rendering done within some further tries, but now I'm
stuck with Rome. I've done a lot of rendering attempts, but I hardly ever
got what I expected (would want the whole city as z17 or z16, but all I can
manage to get is z14). Even with tiles 12 it fails silently on z15 with
this commandline:
nik4.py -b 12.35 41.777 12.64 42 -p 300 -z 15 --tiles 12
osm-render-noicons.xml roma_300dpi.png

The single tiles are not so big then (ca. 1200 x 1800 pixels) but still the
map is of a far bigger place (in low zoom around 6 or 7 I guess) with my
area of interest sitting tiny in the upper left corner.

Any ideas?

cheers,
Martin
___
talk mailing list
talk@openstreetmap.org
https://lists.openstreetmap.org/listinfo/talk


Re: [OSM-talk] Nik4: mapnik → image

2014-05-16 Thread Martin Koppenhoefer
Ilya, a big thank you! This looks convenient and promising, am waiting now
for the second output, the first one, created like this:
nik4.py -b 5.8 35.5 19 48.1 --ppi 300 --size-px 28108 36000 osm-render.xml
italiabig300dpi.png
didn't work like expected (I got a tiny map in the upper left corner and
all the rest was sea-blue). Can I feed it with the classic render.xml
style (no carto), or does it expect a carto-style? In the second attempt
I'm omitting the dimensions and only defining a zoom level, a bounding box
and a output resolution.

cheers,
Martin
___
talk mailing list
talk@openstreetmap.org
https://lists.openstreetmap.org/listinfo/talk


Re: [OSM-talk] Nik4: mapnik → image

2014-05-16 Thread Ilya Zverev
 Ilya, a big thank you! This looks convenient and promising, am
 waiting now for the second output, the first one, created like this:
 nik4.py -b 5.8 35.5 19 48.1 --ppi 300 --size-px 28108 36000
 osm-render.xml italiabig300dpi.png

 didn't work like expected (I got a tiny map in the upper left
 corner and all the rest was sea-blue).

Yes, that's a bug I've also encountered when trying to render
1000x26000 strip. Looks like an overflow error in Mapnik. Use --tiles
parameter (I'd suggest --tiles 3): it will generate the image in 9
parts and then merge them with Imagemagick.

 Can I feed it with the
 classic render.xml style (no carto), or does it expect a
 carto-style? In the second attempt I'm omitting the dimensions and
 only defining a zoom level, a bounding box and a output resolution.

It expects a regular mapnik xml, not cartocss or cascadenik.
CartoCSS projects should be processed with carto -l.


IZ


___
talk mailing list
talk@openstreetmap.org
https://lists.openstreetmap.org/listinfo/talk


[OSM-talk] Nik4: mapnik → image

2014-05-15 Thread Ilya Zverev
Hi! I recently needed to create a big georeferenced image from a mapnik 
style file, and found out no image exporting tool currently offers more 
than a direct interface to mapnik's options. That is, I could not get 
image in 300 dpi for printing on an A5 sheet, I had to understand what 
scale_factor is, and what is the default resolution, and why lines had 
become so thick. And I'm a programmer — imagine a confusion of a regular 
user!


Today I have published Nik4. It makes everything easier.

Grab a 800x600 image at z13? -c LON LAT -x 800 600 -z 13 — and no 
suprises like when the output image differs from osm.org (nik2img 
puzzled me with that one). Print a region in 300 dpi on A5? -a 5 --ppi 
300 --bbox X1 Y1 X2 Y2. You don't have to think about scale_factor ever. 
Make a very large image? No problem, use --tiles 4 and wait a bit; you 
won't run out of memory.


See https://github.com/Zverik/Nik4 for an extensive description and 
installation instructions (easy_install nik4 — there, no more 
instructions needed). Print more maps.


IZ

___
talk mailing list
talk@openstreetmap.org
https://lists.openstreetmap.org/listinfo/talk