Jim,<br><br>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.<br>
<br><div class="gmail_quote">On Wed, Jun 2, 2010 at 4:33 AM, jim hopper <span dir="ltr"><<a href="mailto:JAMES.E.HOPPER@saic.com">JAMES.E.HOPPER@saic.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Ok, I got gdal rebuilt with xercesc support, and I can read it with ogrinfo.<br>
But it says:<br>
<br>
Had to open data source read-only.<br>
INFO: Open of `test.gml'<br>
using driver `GML' successful.<br>
<br>
Layer name: ford_plant_2d_bldgs<br>
Geometry: Unknown (any)<br>
<br>
But the original shape file does have geometry:<br>
<br>
INFO: Open of `ford_plant_2d_bldgs.shp'<br>
using driver `ESRI Shapefile' successful.<br>
<br>
Layer name: ford_plant_2d_bldgs<br>
Geometry: Polygon<br>
Feature Count: 2531<br>
Extent: (370010.126533, 4337857.290364) - (372942.794685, 4341771.522431)<br>
Layer SRS WKT:<br>
PROJCS["WGS_1984_UTM_Zone_15N",<br>
GEOGCS["GCS_WGS_1984",<br>
DATUM["WGS_1984",<br>
SPHEROID["WGS_1984",6378137.0,298.257223563]],<br>
PRIMEM["Greenwich",0.0],<br>
UNIT["Degree",0.0174532925199433]],<br>
PROJECTION["Transverse_Mercator"],<br>
PARAMETER["False_Easting",500000.0],<br>
PARAMETER["False_Northing",0.0],<br>
PARAMETER["Central_Meridian",-93.0],<br>
PARAMETER["Scale_Factor",0.9996],<br>
PARAMETER["Latitude_Of_Origin",0.0],<br>
UNIT["Meter",1.0]]<br>
<div><div></div><div class="h5"><br>
_______________________________________________<br>
gdal-dev mailing list<br>
<a href="mailto:gdal-dev@lists.osgeo.org">gdal-dev@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/gdal-dev" target="_blank">http://lists.osgeo.org/mailman/listinfo/gdal-dev</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Best regards,<br>Chaitanya kumar CH.<br>/tʃaɪθənjə/ /kʊmɑr/ <br>+91-9848167848<br>17.2416N 80.1426E<br>