dwins / mapnik2geotools

Using the Scala XML API to translate from Mapnik XML to GeoTools' SLD dialect
64 stars 22 forks source link

Error converting osm styles. #45

Open mappagnosis opened 9 years ago

mappagnosis commented 9 years ago

I am attempting to convert the OSM standard styles from CartoCSS to SLD. First I convert using carto from the npm repository to create the mapnik XML (works). Then I use mapnik2geotools to try and convert from xml to sld. The process starts and then throws an error (no files are created). I am using Windows 7 (64 bit) and jre 7. Any suggestions/solutions?

error

nrenner commented 9 years ago

@dwins can probably tell you more, but I guess mapnik2geotools has not been tested with CartoCSS yet and probably needs some work to support it.

In this specific case, it's probably the marker-placement: interior; causing the error in line 85 where only values of line or point are expected.

As there seem to be only a few occurences you could try changing interior to point in the mss files and see if it works then.

dwins commented 9 years ago

Thanks @nrenner. @mappagnosis you should know Mapnik2GeoTools is not actively maintained these days - the best way for you to resolve this issue is probably going to be to dig into the sources. I can answer some questions about the code if you have any but I probably won't be able to start working on this project again any time soon.

golimix commented 8 years ago

the same problem as mappagnosis