Gdal.vect
gdal.vect is the part of GDAL, used to read Vector data and non-spatial data.
We test and support (options for) the following formats:
- Csv
- Dbf
- ESRI Shapefile (point, arc, poly)
- Geopackage
- FileGeoDatabase
- GeoJSON
- gml
- pbf (OSM)
reading
A table is read as one operator application (storage_read_table): the layer is opened for the attributes that are requested and no others, an IntegrityCheck on the table unit guards every attribute read from it, and SyncMode adds the columns of the layer as attributes without reading them. See StorageManager.
A Feature attribute with composition type multipoint can be read from a layer that holds other geometry types as well, such as a GeoJSON file, a csv with a WKT column or a generic PostGIS geometry column. Each feature then gives the vertices of its own geometry as stored: a point its point, a line its vertices, a polygon the vertices of its rings including each closing vertex, a curve those of its linear approximation, and a collection those of its members.
A layer whose first feature has no geometry (a GeoJSON "geometry": null, an empty WKT) is read. When a layer holds more than one geometry type and no geometry Attribute is configured, gdal.vect takes the composition type of the geometry it creates from the first feature that has a geometry.
A column that the Value type of its Attribute cannot take, such as a real column read into an int64 or bool attribute, fails only that attribute, not the other attributes or the geometry of the table.