[Gdal-dev] Determine table geometry type?
Craig Miller
craig.miller at spatialminds.com
Tue Jun 21 15:53:52 EDT 2005
I'm trying to determine the type of geometry stored in a PostGIS table via
OGR. I am trying to do this by calling
pogrLayer->GetLayerDefn()->GetGeomType();
In my code this always returns wkbUnknown for layers. Is GeomType supported
for layers?
Another options is to query the OGIS extension tables directly and parse the
results. Is this the easiest/correct way of determining all spatial tables?
"SELECT f_table_catalog AS catalog, f_table_schema as schema, f_table_name
AS tablename, f_geometry_column as dgname FROM Geometry_Columns";
Thanks for the help,
Craig
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/gdal-dev/attachments/20050621/36a98f15/attachment.html
More information about the Gdal-dev
mailing list