Closed mooreja closed 11 years ago
Have you used the "generate_xml.py" script from that repository to set up osm.xml? If I do that I don't get an XML parsing error (although it does fail - looks like that xml doesn't specify a Mapnik version and mapnik2geotools is pretty conservative in this case.)
I actually just read about that in your page this morning and was going to give that a try. At first I thought it was only for data already stored in the DB, and since it's not complete not what I wanted to do. I now see that it is supposed to be able to take the osm.xml file and generate another xml.
Hopefully the format will be better. I'll give that a shot and let you know how it turns out.
On Wed, Oct 17, 2012 at 2:48 PM, David Winslow notifications@github.comwrote:
Have you used the "generate_xml.py" script from that repository to set up osm.xml? If I do that I don't get an XML parsing error (although it does fail - looks like that xml doesn't specify a Mapnik version and mapnik2geotools is pretty conservative in this case.)
— Reply to this email directly or view it on GitHubhttps://github.com/dwins/mapnik2geotools/issues/36#issuecomment-9539052.
James Moore Systems Engineer LMN Solutions 12021 Sunset Hills Rd Reston, VA 20190
703-483-2783 (O) 703-577-1191 (C)
Meant to get back to this earlier but got caught up with stuff.
I was able to get the generate_xml.py to run and the mapnik2geotools after. I did run into a few errors with the generate_xml.py because some expected database columns didn't exist so I just added them to the tables.
As for the created sld's, they were a good starting point and I have been able to modify to come up with a very decent map that I am now further refining.
So thanks for this. Good tool.
Glad it was useful to you - thanks for the feedback.
No problem. I appreciate you putting it out there for use.
On Fri, Nov 30, 2012 at 10:28 AM, David Winslow notifications@github.comwrote:
Glad it was useful to you - thanks for the feedback.
— Reply to this email directly or view it on GitHubhttps://github.com/dwins/mapnik2geotools/issues/36#issuecomment-10892665.
James Moore Systems Engineer LMN Solutions 12021 Sunset Hills Rd Reston, VA 20190
703-483-2783 (O) 703-577-1191 (C)
I have gotten the code up and running without much issue and have tested it on several simple xml files with no issues. I have downloaded the github mapnik-stylesheets project from:
https://github.com/openstreetmap/mapnik-stylesheets
I am getting the following error when trying to convert the osm.xml file:
org.xml.sax.SAXParseException: The entity name must immediately follow the '%' in the parameter entity reference.
As far as I can tell the syntax is correct and the offending line from the osm.xml is:
<?xml version="1.0" encoding="utf-8"?> <!DOCTYPE Map [ <!ENTITY % entities SYSTEM "inc/entities.xml.inc"> %entities; ]>
Can the conversion tool handle the parsing of the external includes? If not, is there another mapnik xml file I should be using? I did notice there was an older osm.xml in the archive but would prefer to be using the current mapnik osm.xml file.