Convert a shapefile (.shp) to xml/json

前端 未结 5 902
隐瞒了意图╮
隐瞒了意图╮ 2020-12-22 15:55

I\'m working with a shapefile (.shp, .dbf, etc) and would like to convert it to xml. I\'m on a mac, and I\'m having trouble finding an application that will help me with the

5条回答
  •  难免孤独
    2020-12-22 16:38

    I can also offer a very round about answer.

    Put geoserver on your machine (you can download a self contained zip file)

    Set up a datastore that points to your shapefile.

    Set up a layer that points to your datastore

    Go to the preview layers page and ask for a WFS as GML preview

    Voila - an xml representation of your shapefile.

提交回复
热议问题