Jim, GML driver doesn't support reporting of the geometry type for the layer. However, you will get the right geometry when you ask for the geometry itself. Try "ogrinfo -al test.gml" and check the reported geometries.
On Wed, Jun 2, 2010 at 4:33 AM, jim hopper <[email protected]> wrote: > 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]] > > _______________________________________________ > gdal-dev mailing list > [email protected] > http://lists.osgeo.org/mailman/listinfo/gdal-dev > -- Best regards, Chaitanya kumar CH. /tʃaɪθənjə/ /kʊmɑr/ +91-9848167848 17.2416N 80.1426E
_______________________________________________ gdal-dev mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/gdal-dev
