将shapefile(.shp)转换为xml / json

我正在使用一个shapefile(.shp,.dbf等),并希望将其转换为xml。我在mac,我无法找到一个应用程序,将帮助我的转换。有谁知道一个方法,将这种文件格式转换为XML文件?
什么dassouki说。从http://www.kyngchaos.com/software:frameworks获取GDAL。使用它将shapefile转换为GeoJSON像这样:

  $ ogr2ogr -f "GeoJSON" /tmp/world.json world_borders.shp world_borders
  $ cat /tmp/world.json
  {
  "type": "FeatureCollection",
  "features": [
  { "type": "Feature", "properties": { "CAT": 1.000000, "FIPS_CNTRY": "AA",
    "CNTRY_NAME": "Aruba", "AREA": 193.000000, "POP_CNTRY": 71218.000000 }, 
    "geometry": { "type": "Polygon", "coordinates": [ [ [ -69.882233, ...
   ...
http://stackoverflow.com/questions/2223979/convert-a-shapefile-shp-to-xml-json

本站文章除注明转载外,均为本站原创或编译
转载请明显位置注明出处:将shapefile(.shp)转换为xml / json