What is the correct method to determine if the resulting object is a raster and/or a vector from the result of a gdal.OpenEx
call?
The "old" way (GDAL/OGR Determine if dataset is raster or vector) was to open a file with either gdal.Open
or ogr.Open
and observe if the result was None to infer the type.
Is it possible to directly query something about the resulting Dataset
object to determine the primary GIS type of gdal.OpenEx
?