A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://geopandas.readthedocs.io/en/latest/docs/reference/sindex.html below:

Spatial index — GeoPandas 1.1.1+7.g355d44d.dirty documentation

Spatial index#

GeoPandas will use the STRtree implementation provided by the Shapely (shapely.STRtree)

GeoSeries.sindex creates a spatial index, which can use the methods and properties documented below.

See the User Guide page Spatial indexing for more.

Constructor# Spatial index object#

The spatial index object returned from GeoSeries.sindex has the following methods:

intersection(coordinates)

Compatibility wrapper for rtree.index.Index.intersection, use query instead.

is_empty

Check if the spatial index is empty.

nearest(geometry[, return_all, ...])

Return the nearest geometry in the tree for each input geometry in geometry.

query(geometry[, predicate, sort, distance, ...])

Return all combinations of each input geometry and tree geometries where the bounding box of each input geometry intersects the bounding box of a tree geometry.

size

Size of the spatial index.

valid_query_predicates

Returns valid predicates for the spatial index.

The spatial index offers the full capability of shapely.STRtree.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4