Skip to content

Commit

Permalink
STRtree with a reverse mapping and query_items/query_geoms methods (#…
Browse files Browse the repository at this point in the history
…1112)

* STRtree with a reverse mapping and query_item/query_geom methods

* Change from zipped geom and value to separate geoms and values

* Standardize on "items" for name of data to store

* Pluralize the new query methods, add some type hinting

* Remove unnecessary variable type hint

* A little more hinting and change notes

* Relax integer constraint
  • Loading branch information
sgillies committed Jul 12, 2021
1 parent bd64faa commit 1fc769f
Show file tree
Hide file tree
Showing 5 changed files with 286 additions and 124 deletions.
9 changes: 9 additions & 0 deletions CHANGES.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,15 @@ Python version support:

Shapely 1.8 will support only Python versions >= 3.6.

New features:

- The STRtree class constructor now takes an optional second argument, a
sequence of objects to be stored in the tree. If not provided, the sequence
indices of the geometries will be stored, as before (#1112).
- The STRtree class has new query_geoms(), query_items(), nearest_geom(), and
nearest_item() methods (#1112). The query() and nearest() methods remain as
aliases for query_geoms() and nearest_geom().

Bug fixes:

- GEOS error messages printed when GEOS_getCoordSeq() is passed an empty
Expand Down

0 comments on commit 1fc769f

Please sign in to comment.