lmpy.spatial.spatial_index
Module containing a class for working with a spatial index.
Version 1: Store geometries in memory in table. Save as wkt.
Module Contents
Classes
Constructor for the spatial index. |
- class lmpy.spatial.spatial_index.SpatialIndex(index_name=None)[source]
Constructor for the spatial index.
- Parameters
index_name (str) – A name to use for saving the index to a file.
- static _point_intersect(pt_x, pt_y, geom)[source]
Perform a point intersect.
- Parameters
pt_x (numeric) – The x coordinate of the point.
pt_y (numeric) – The y coordinate of the point.
geom (ogr.Geometry) – The geometry to intersect.
- Returns
Indication if the point is within the geometry.
- Return type
bool