[gdal-dev] How do I open vector files (e.g. shp) using GDAL
chapmanm at pixia.com
Mon Jul 20 17:48:11 EDT 2009
Call OGRRegisterAll(); on the line right before GDALOpen();
From: gdal-dev-bounces at lists.osgeo.org
[mailto:gdal-dev-bounces at lists.osgeo.org] On Behalf Of Smart, Gary
Sent: Monday, July 20, 2009 2:51 PM
To: gdal-dev at lists.osgeo.org
Subject: [gdal-dev] How do I open vector files (e.g. shp) using GDAL
I understand that GDAL can open vector formats as if they were a dataset?
E.g. I read that it is possible to pass the GDALOpen either a single .shp
file (in which case it treats it as if it only had one layer) or a directory
containing multiple .shp files - which presumably it opens as multi layered?
However, whenever I try to open vector files in this way (directory or file)
ERROR 4 - blah blah is not recognised as a supported file format"
I am still new to all this (having only just conquered raster formats) so I
suspect I am doing something pretty dumb.
Perhaps someone can help?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the gdal-dev