[gdal-dev] Convert shp to gml file

jim hopper JAMES.E.HOPPER at saic.com
Tue Jun 1 19:03:24 EDT 2010


Ok, I got gdal rebuilt with xercesc support, and I can read it with ogrinfo.
But it says:

Had to open data source read-only.
INFO: Open of `test.gml'
      using driver `GML' successful.

Layer name: ford_plant_2d_bldgs
Geometry: Unknown (any)

But the original shape file does have geometry:

INFO: Open of `ford_plant_2d_bldgs.shp'
      using driver `ESRI Shapefile' successful.

Layer name: ford_plant_2d_bldgs
Geometry: Polygon
Feature Count: 2531
Extent: (370010.126533, 4337857.290364) - (372942.794685, 4341771.522431)
Layer SRS WKT:
PROJCS["WGS_1984_UTM_Zone_15N",
    GEOGCS["GCS_WGS_1984",
        DATUM["WGS_1984",
            SPHEROID["WGS_1984",6378137.0,298.257223563]],
        PRIMEM["Greenwich",0.0],
        UNIT["Degree",0.0174532925199433]],
    PROJECTION["Transverse_Mercator"],
    PARAMETER["False_Easting",500000.0],
    PARAMETER["False_Northing",0.0],
    PARAMETER["Central_Meridian",-93.0],
    PARAMETER["Scale_Factor",0.9996],
    PARAMETER["Latitude_Of_Origin",0.0],
    UNIT["Meter",1.0]]



More information about the gdal-dev mailing list