Hi. I can't get xml entities in style sheets to work on Windows.
I have Mapnik 0.5.1 installed on an Ubuntu 8.10 machine and Mapnik 0.6.0 on a Windows XP machine.
Both work fine and render osm tiles using the standard python scripts.
However... I can use xml entities in my mapfile on the ubuntu machine but attempting the same thing on the Windows machine results in:
File "C:\Documents and Settings\Admin\My Documents\Mapping\mapnik\WIN_entity_generate_tiles.py", line 53, in render_tiles
load_map(m,mapfile)
UserWarning: Not a map file. Node 'Map' not found.I used the win32 binary download from:
http://download.berlios.de/mapnik/mapnik-0.6.0-win32-py25.zip
and Python reports Python 2.5.2 (r252:60911, Feb 21 2008, 13:11:45
The working mapfile first few lines:
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE Map> <Map bgcolor="#b5d0d0" srs="+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">
<Style name="world">...etcThe same few lines of the mapfile that
doesn't work on Windows/mapnik 0.6.0 (but does work on Ubuntu/mapnik 0.5.1)
<?xml version="1.0" encoding="utf-8"?> <!DOCTYPE Map [
<!ENTITY Water "#d8f8f8"> ]>
<Map bgcolor="#b5d0d0" srs="+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">
<Style name="world">...etcThe only difference between the two files is the entity. (To help debug the issue I created the second file from the first and simply pasted in the entity component.)
I expect I'm doing something stupid! Can anyone tell me what it might be? My Google searches suggest that this effect is caused when mapnik is not built with libxml2 (which seems unlikely in the published distribution.)
Thanks,
Philip
--
Philip Howarth
Cambridge UK
email: Philip at Howarth . name
_______________________________________________
Mapnik-users mailing list
Mapnik-users@...
https://lists.berlios.de/mailman/listinfo/mapnik-users