[gdal-dev] Discover whether a GDALDataset is raster or vector?
Even Rouault
even.rouault at spatialys.com
Mon Jun 6 13:32:59 PDT 2016
On Monday 06 June 2016 13:14:44 jramm wrote:
> Hi
> Given a GDALDataset pointer, which has been opened using GDALOpenEx(...),
> what is the best way to discover whether the dataset is raster or vector?
GetRasterCount() != 0 for raster
GetLayerCount() != 0 for vector
>
> I have thought of checking the drivers' metadata for GDAL_DCAP_OF_RASTER or
> VECTOR, but this could potentially return YES for both if it is e.g the
> geopackage driver?
>
>
>
>
>
> --
> View this message in context:
> http://osgeo-org.1560.x6.nabble.com/Discover-whether-a-GDALDataset-is-raste
> r-or-vector-tp5270223.html Sent from the GDAL - Dev mailing list archive at
> Nabble.com.
> _______________________________________________
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/gdal-dev
--
Spatialys - Geospatial professional services
http://www.spatialys.com
More information about the gdal-dev
mailing list