TessPy

TessPy: a python package for geographical tessellation - Published in JOSS (2022)

https://github.com/siavash-saki/tesspy

Science Score: 93.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
    Found 1 DOI reference(s) in JOSS metadata
  • Academic publication links
  • Committers with academic emails
  • Institutional organization owner
  • JOSS paper metadata
    Published in Journal of Open Source Software

Scientific Fields

Mathematics Computer Science - 88% confidence
Economics Social Sciences - 85% confidence
Artificial Intelligence and Machine Learning Computer Science - 83% confidence
Last synced: 4 months ago · JSON representation

Repository

Basic Info
  • Host: GitHub
  • Owner: siavash-saki
  • License: bsd-3-clause
  • Language: Python
  • Default Branch: main
  • Size: 151 MB
Statistics
  • Stars: 35
  • Watchers: 3
  • Forks: 6
  • Open Issues: 10
  • Releases: 2
Created about 4 years ago · Last pushed almost 2 years ago
Metadata Files
Readme License

README.md

tesspy

Tests Project Status: Active  The project has reached a stable, usable state and is being actively developed. Documentation Status version Conda Version

tesspy is a python library for geographical tessellation.

The process of discretization of space into subspaces without overlaps and gaps is called tessellation and is of interest to researchers in the field of spatial analysis. Tessellation is essential in understanding geographical space and provides a framework for analyzing geospatial data. Different tessellation methods are implemented in tesspy. They can be divided into two groups. The first group is regular tessellation methods: square grid and hexagon grid. The second group is irregular tessellation methods based on geospatial data. These methods are adaptive squares, Voronoi diagrams, and city blocks. The geospatial data used for tessellation is retrieved from the OpenStreetMap database.

Installation

You can install tesspy from PyPI using pip (Not Recommended): pip install tesspy

and from conda (Recommended): conda install -c conda-forge tesspy

Creating a new environment for tesspy

tesspy depends on geopandas, which could make the installation sometimes tricky because of the conflicts with the current packages. Therefore, we recommend creating a new clean environment and installing the dependencies from the conda-forge channel.

Create a new environment: shell conda create -n tesspy_env -c conda-forge

Activate this environment: shell conda activate tesspy_env

Install tesspy from conda-forge channel: shell conda install -c conda-forge tesspy

Install from the repository

If you want to work with the latest development version, you can directly install it from GitHub. To do that, it is recommended to first install all the dependencies using conda. (preferably in a newly created env).

shell conda install -c conda-forge geopandas scipy h3-py osmnx hdbscan mercantile scikit-learn

Then install TessPy using:

shell pip install git+git://github.com/siavash-saki/tesspy

Dependencies

tesspy's dependencies are: geopandas, scipy, h3-py, osmnx, hdbscan, mercantile, and scikit-learn.

Documentation

The official documentation is hosted on ReadTheDocs.

Examples

The city of "Frankfurt am Main" in Germany is used to showcase different tessellation methods. This is how a tessellation object is built, and different methods are called. For the tessellation methods based on Points of Interests (adaptive squares, Voronoi polygons, and City Blocks), we use amenity data from the OpenStreetMap. python from tesspy import Tessellation ffm= Tessellation('Frankfurt am Main')

Squares

python ffm_sqruares = ffm.squares(resolution=15) Squares_tessellation

Hexagons

python ffm_hex_8 = ffm.hexagons(resolution=8) hexagon_tessellation

Adaptive Squares

python ffm_asq = ffm.adaptive_squares(start_resolution=14, threshold=100, poi_categories=['amenity'])

adaptive_squares_tessellation

Voronoi Polygons

python ffm_voronoi = ffm.voronoi(poi_categories=['amenity'], n_polygons=500) Voronoi_tessellation

City Blocks

python ffm_city_blocks = ffm.city_blocks(n_polygons=500) city_blocks_tessellation

Contributing to tesspy

All kind of contributions are welcome: * Improvement of code with new features, bug fixes, and bug reports * Improvement of documentation * Additional tests

Follow the instructions here for submitting a PR.

If you have any ideas or questions, feel free to open an issue.

Acknowledgements

tesspy is the result of the research project ClusterMobil conducted by the Research Lab for Urban Transport. This research project is funded by the state of Hesse and HOLM funding under the Innovations in Logistics and Mobility measure of the Hessian Ministry of Economics, Energy, Transport and Housing. [HA Project No.: 1017/21-19]

JOSS Publication

TessPy: a python package for geographical tessellation
Published
August 26, 2022
Volume 7, Issue 76, Page 4620
Authors
Siavash Saki ORCID
Frankfurt University of Applied Sciences, Frankfurt am Main, Germany, Research Lab for Urban Transport, Frankfurt am Main, Germany
Jonas Hamann ORCID
Frankfurt University of Applied Sciences, Frankfurt am Main, Germany, Research Lab for Urban Transport, Frankfurt am Main, Germany
Tobias Hagen ORCID
Frankfurt University of Applied Sciences, Frankfurt am Main, Germany, Research Lab for Urban Transport, Frankfurt am Main, Germany
Editor
Martin Fleischmann ORCID
Tags
Tessellation Urban Computing OpenStreetMap City Segmentation

GitHub Events

Total
  • Watch event: 5
Last Year
  • Watch event: 5

Committers

Last synced: 5 months ago

All Time
  • Total Commits: 299
  • Total Committers: 4
  • Avg Commits per committer: 74.75
  • Development Distribution Score (DDS): 0.405
Past Year
  • Commits: 0
  • Committers: 0
  • Avg Commits per committer: 0.0
  • Development Distribution Score (DDS): 0.0
Top Committers
Name Email Commits
siavash-saki s****i@e****m 178
JoHamann 9****n 73
Siavash Saki 5****i 44
James Gaboardi j****i@g****m 4
Committer Domains (Top 20 + Academic)

Issues and Pull Requests

Last synced: 4 months ago

All Time
  • Total issues: 25
  • Total pull requests: 36
  • Average time to close issues: 23 days
  • Average time to close pull requests: about 2 hours
  • Total issue authors: 9
  • Total pull request authors: 5
  • Average comments per issue: 0.68
  • Average comments per pull request: 0.19
  • Merged pull requests: 27
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 1
  • Pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Issue authors: 1
  • Pull request authors: 0
  • Average comments per issue: 0.0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • jGaboardi (11)
  • siavash-saki (4)
  • Zeroto521 (3)
  • yannikw0 (2)
  • dakoyaki (1)
  • andredaa (1)
  • jose-vines-toteat (1)
  • BenjMy (1)
  • ysig (1)
Pull Request Authors
  • siavash-saki (28)
  • JoHamann (3)
  • yannikw0 (2)
  • jGaboardi (2)
  • ValentinMaftei (2)
Top Labels
Issue Labels
enhancement (2) documentation (1) good first issue (1)
Pull Request Labels

Packages

  • Total packages: 2
  • Total downloads:
    • pypi 314 last-month
  • Total dependent packages: 0
    (may contain duplicates)
  • Total dependent repositories: 1
    (may contain duplicates)
  • Total versions: 10
  • Total maintainers: 1
pypi.org: tesspy

Tessellation of Urban Areas

  • Versions: 6
  • Dependent Packages: 0
  • Dependent Repositories: 1
  • Downloads: 314 Last month
Rankings
Dependent packages count: 10.1%
Stargazers count: 11.8%
Forks count: 14.2%
Average: 17.2%
Dependent repos count: 21.5%
Downloads: 28.2%
Maintainers (1)
Last synced: 4 months ago
conda-forge.org: tesspy
  • Versions: 4
  • Dependent Packages: 0
  • Dependent Repositories: 0
Rankings
Dependent repos count: 34.0%
Average: 45.7%
Stargazers count: 45.8%
Dependent packages count: 51.2%
Forks count: 51.6%
Last synced: 4 months ago

Dependencies

.github/workflows/draft-pdf.yml actions
  • actions/checkout v2 composite
  • actions/upload-artifact v1 composite
  • openjournals/openjournals-draft-action master composite
.github/workflows/python-publish.yml actions
  • actions/checkout v2 composite
  • actions/setup-python v2 composite
.github/workflows/tests_package.yml actions
  • actions/checkout v2 composite
  • codecov/codecov-action v2 composite
  • conda-incubator/setup-miniconda v2 composite
  • psf/black stable composite
Examples/requirements_tutorials.txt pypi
  • contextily *
  • esda *
  • geopandas =0.10
  • h3-py *
  • hdbscan *
  • libpysal *
  • mercantile *
  • osmnx *
  • scikit-learn *
  • scipy *
  • seaborn *
  • statsmodels *
docs/requirements.txt pypi
  • ipykernel *
  • ipython *
  • nbsphinx *
  • sphinx_rtd_theme *
setup.py pypi