Skip to content

datastorm-open/SpatialIndex

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Introduction

Fast vectorised spatial indexing, done in python with numpy.

Having objects on the python side gives us more control on them from python. For example, we implemented natively true nearest neighbours search algorithms, true as opposed to approximate search.

For comparison, GeoPandas at the time of writing implementied a few joins operations through the external rtree C library.

Example

The following is an example of usage of the core package:

# Loading data from tests directory
import geopandas
roads = geopandas.read_file("data/roads.shp")
rails = geopandas.read_file("data/railroads.shp")

# True-knn join. Indexe is created automatically.
import spindex.joins
spindex.joins.sjoin(rails, roads, op="knn", n_neighbours=2)

Documentation

The documentation of the package will be available shortly.

About

Python Spatial Indexation and Algorithms

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages