Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Firstly, congratulations to Gregor Aisch for creating such a wonderful library, thank you! I am having a little trouble rendering an svg from some osm data. I downloaded the Sweden transportation data from here and this is my json config file:

    "layers": {
        "roads": {
            "src": "roads.shp",
            "simplify": false
    "export": {
        "width": 800,
        "round": 2
    "bounds": {
        "padding": 0.02,
        "mode": "bbox",
        "data": [377.9582, 59.3031, 378.1233, 59.3731] 

The problem is that it's just creating a blank svg file. When using the polygons mode and if filtered to say a building it renders fine. Any help would be greatly appreciated.

Thanks, Tom

share|improve this question

According to the documentation (scroll down to Adding Shapefile Layers section), you don't need to name the layer if the source is a shapefile. Maybe this is causing the problem?

"layers": {
    "src": "roads.shp"

I don't think you need to include "simplify": false, since it appears that "simplify" is only necessary when you want to define the level or algorithm for simplification (Simplifying Map Features section in the same link)

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.