dwins / mapnik2geotools

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

Run mapnik2geotools without GUI #34

Closed drnextgis closed 11 years ago

drnextgis commented 12 years ago

I try to connect to mapnik2geotools installed on Debian machine through Putty. When I try to perform sbt "run my_mapnik_file.xml" I get an error "No X11 DISPLAY variable was set, but this program performed an operation which requires it.". How I can run program without GUI?.

dwins commented 11 years ago

Oops, looks like the README is incorrect/out of date. Try using this instead:

sbt "run-main me.winslow.d.mn2gt.CommandLine my_mapnik_file.xml"
drnextgis commented 11 years ago

Thanks. I've already found answer on this: https://github.com/dwins/mapnik2geotools/wiki/Hacking page:

$ sbt "run-main me.winslow.d.mn2gt.Driver path/to/mapnik.xml --output some/output/dir"

me.winslow.d.mn2gt.CommandLine is equivalent of me.winslow.d.mn2gt.Driver?

dwins commented 11 years ago

That command is right, I made a typo when I said CommandLine earlier.