reVX.handlers.geopackage.GPKGMeta
- class GPKGMeta(filename)[source]
Bases:
object
Extract meta info about underlying GeoPackage SQL tables.
- Parameters:
filename (path-like) – Path to input GeoPackage.
Methods
feat_ids_for_bbox
(bbox)Find the ID's of the features within the input bounding box.
Attributes
MIN_X, MIN_Y, MAX_X, MAX_Y values for GeoPackage.
Coordinate Reference System for GeoPackage.
All the feature ID's in the GeoPackage.
Name of the geometry table suffix.
Number of feature rows.
Name of the primary key column in the user data table.
Name of table containing user data.
Spatial reference system ID (4326, 3857, etc.)
- property crs
Coordinate Reference System for GeoPackage.
- Type:
pyproj.crs.CRS
- feat_ids_for_bbox(bbox)[source]
Find the ID’s of the features within the input bounding box.
- Parameters:
bbox (list | tuple | iterable) – Container with four int/float values describing the bounding box. The values should be in the following order:
MIN_X, MIN_Y, MAX_X, MAX_Y
- Returns:
ids (tuple) – Tuple of all the feature IDs within the given input bounding box.