On Jun 21, 2009, at 12:39 AM, Luca Delucchi wrote: > 2009/6/21 Dane Springmeyer <[email protected]>: > >> Is that not obvious? >> >> 'home/luca/..' --> '/home/luca/...' ? >> > > oh thank's, i didn't see it, now i have a problem with style, but with > generate_tile.py my .xml work > > The above is a description of an error in a Python program. Here is > the original traceback: > > Traceback (most recent call last): > File "/usr/lib/python2.5/site-packages/jon/cgi.py", line 509, in > process > handler = self._handler_type() > File "/usr/lib/python2.5/site-packages/mapnik/ogcserver/ > cgiserver.py", > line 53, in __init__ > self.mapfactory = getattr(mapfactorymodule, 'WMSFactory')() > File "/home/luca/Compilati/mapnik-0.6.0/utils/ogcserver/ > map_factory.py", > line 6, in __init__ > self.loadXML('/home/luca/prova_mapnik_tile/mapnik/osm.xml') > File "/usr/lib/python2.5/site-packages/mapnik/ogcserver/WMS.py", > line 66, in loadXML > style_obj = tmp_map.find_style(style_name) > KeyError: 'Invalid style name'
What is likely happening there is that you have a Style name attached to a layer in your XML that does not exist or is misspelled: (The behavior of the OGCServer is more strict that the standard mapnik.load_map() in this regard) In the <Layer> definitions, look for instances of: <StyleName>stylename</StyleName> and make sure they have corresponding: <Style name="stylename">...</Style> Feel free to file a trac ticket requesting this error be more verbose. For example, it could output the actual name of the invalid style encountered, to make finding it more easy. Dane _______________________________________________ Mapnik-users mailing list [email protected] https://lists.berlios.de/mailman/listinfo/mapnik-users

