Hello Frederik,
thanks for your hints. I looked at both, they need tilemill and the installation for Linux is supported for Ubuntu, but i run OpenSuSe 12.3.
I like the example gallery of tilemill, they look awesome and it seems very flexible.
But i tried to continue with the latest set of XML style available, which changed a lot since i last used it with mapnik-0.7.
I now have an "osm.xml" and a subdirectory "inc" with some more XML files. I edited settings.xml.inc and datasource-settings.xml.inc and when now starting a small script:
import mapnik
image = 'world_style.png'
m = mapnik.Map(600, 300)
mapnik.load_map(m, 'osm.xml')
m.zoom_all()
mapnik.render_to_file(m, image)
print "rendered image to '%s'" % image
Then now i get:
inc/entities.xml.inc:10: parser warning : PEReference: %layers; not found
%layers;
^
Traceback (most recent call last):
File "./wer.py", line 10, in <module>
mapnik.load_map(m, 'osm.xml')
RuntimeError: XML document not well formed:
Entity 'datasource-settings' not defined at line 4066 of 'osm.xml'
I don't understand that as inc/entities.xml.inc looks fine to me:
<!ENTITY % settings SYSTEM "settings.xml.inc">
%settings;
<!ENTITY datasource-settings SYSTEM "datasource-settings.xml.inc">
<!ENTITY fontset-settings SYSTEM "fontset-settings.xml.inc">
<!ENTITY srs900913 "+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 +no_defs +over">
<!ENTITY srsmercator "+proj=merc +datum=WGS84 +over">
<!ENTITY srs4326 "+init=epsg:4326">
<!ENTITY % layers SYSTEM "layers.xml.inc">
%layers;
<!ENTITY maxscale_zoom0 "<MaxScaleDenominator>250000000000</MaxScaleDenominator>">
<!ENTITY maxscale_zoom1 "<MaxScaleDenominator>500000000</MaxScaleDenominator>">
%settings; is fine but %layers; gives an error. I don't get what is wrong here.
Has anybody got a hint here?
Basically i look for a simple way to draw a map from PostGIS input data.
Best regards
Torsten