Hi,
If I run nik2img.py without -l switch I am getting nowadays a fine map from the
place I want with correct worldfile. If I try to render just one layer by
adding, for example, -l "minor-roads, coast-poly" the resulting map is not from
the same place. I doubt that in this case something goes wrong with setting
the query window.
Another question is about calculating scales. I seem to get always a map from
the same zoom level even if I change the output image size. There may be some
problem in calculating the scale denominator, and I am not sure if they are
calculated in the same units that are used in the mapfile. It may also be that
I just cannot read the output of the nik2img.py script. However, here are two
examples.
C:\mapnik>c:\python2.5\python nik2imgv2.py -m gosm.xml -o niktest.png
-e 25.01,60.18,25.06,60.21 -s 1000,1000 --worldfile pgw -v
or the same query with smaller output image:
-e 25.01,60.18,25.06,60.21 -s 100,100 --worldfile pgw -v
Output for 1000 by 1000 pixel image STEP: 23 // --> Scale denominator is:
-3.57142857143
Output for 100 by 100 pixel image STEP: 23 // --> Scale denominator is:
-35.7142857143
This is how zoom levels are defined in the mapfile. In this case output is
epsg:900913.
<Rule>
<Filter>([highway] = 'motorway' or [highway]='motorway_link') and
([bridge] = 'yes' or [bridge]='true') and [layer]='2'</Filter>
<MaxScaleDenominator>5000</MaxScaleDenominator>
<MinScaleDenominator>1000</MinScaleDenominator>
-Jukka Rahkonen-
_______________________________________________
Mapnik-users mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/mapnik-users