Skip to main content

High-performance network-constrained spatial point pattern analysis in Python

Project description

FastNSA

FastNSA is a high-performance toolkit for network-constrained spatial analysis, designed for large-scale road networks and massive point datasets. It provides a Python interface backed by a native implementation for efficient spatial indexing and network-based statistical computation.


Installation

FastNSA is distributed via PyPI with prebuilt native backends.

pip install fastnsa

Supported platforms:

  • Linux (x86_64)

  • Python ≥ 3.9

Quick Example

import fastnsa as nsa

# 1. Build a road network from OpenStreetMap
# (internally constructs spatial and network indexes)
net = nsa.Network.from_osm(place="Central Park, NY")

# 2. Load event points and project them onto the network
gdf = nsa.load_points("accidents.csv")
events = nsa.PointEvents(gdf, target_network=net)

# 3. Compute a network-based K-function
results = nsa.network_k_function(
    network=net,
    points=events,
    r_values=[10, 50, 100]
)

print(results)

Design Overview

The Python layer provides:

  • Network construction and I/O

  • Event projection to networks

  • tatistical analysis interfaces

Performance-critical components such as spatial indexing, point-to-network mapping, and distance evaluation are implemented in a native backend and exposed through Python bindings.

License

FastNSA is licensed under the GNU Lesser General Public License v3.0 (LGPL-2.1).

You are free to use this library in proprietary and open-source software, but any modifications to the FastNSA library itself must be released under LGPL.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

fastnsa-0.1.0.tar.gz (1.2 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

fastnsa-0.1.0-py3-none-any.whl (1.2 MB view details)

Uploaded Python 3

File details

Details for the file fastnsa-0.1.0.tar.gz.

File metadata

  • Download URL: fastnsa-0.1.0.tar.gz
  • Upload date:
  • Size: 1.2 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.0

File hashes

Hashes for fastnsa-0.1.0.tar.gz
Algorithm Hash digest
SHA256 921ab689fa476cd29f594c3e2101e56600ca13abb18a999bf3d5080e397fdcda
MD5 bf3b75cb83803ba00c41e68df7511513
BLAKE2b-256 59f4d3d02b03256494d407821a9901ab6ea5fffd5b7509eafd381e4a152c745c

See more details on using hashes here.

File details

Details for the file fastnsa-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: fastnsa-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 1.2 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.0

File hashes

Hashes for fastnsa-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b85781797f6f32418ab1aa012345809e3bfd57315cf7ce0c48d7ff6f08ed82d1
MD5 800d92c79629ae1aeb227c8108b047a0
BLAKE2b-256 3c5795b504cb274b2414e8bcd85f3b01f45b42fedee1a527cd64e46dfb813f1b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page