mapnik2geotools icon indicating copy to clipboard operation
mapnik2geotools copied to clipboard

Error converting osm styles.

Open mappagnosis opened this issue 10 years ago • 3 comments

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

mappagnosis avatar May 28 '15 17:05 mappagnosis

@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.

nrenner avatar Jun 11 '15 19:06 nrenner

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.

dwins avatar Jul 01 '15 20:07 dwins

the same problem as mappagnosis

golimix avatar May 19 '16 16:05 golimix