A Python library for building spatial data and calculating buffer- and Convex hull-based activity space from raw GPS data
Project description
Many data are not readily in spatial format. For example, data from wearable devices, surveys, and social media platforms such as Facebook and Twitter have GPS location information, but usually in raw Lat/Long format. For social scientists who do not have strong background in Geographic Information System (GIS), compiling and analyzing spatial data from the aforementioned sources can be tedious and error-prone. GPS2space
is an open source solution to this issue.
The primary goals of GPS2space
are:
- to build spatial data from raw Lat/Long coordinate pairs and make the process less painful for social scientists with little GIS background
- to build minimum bounding geometry from Points using buffer, convex hull methods, and use activity space as building box to calculate shared space at different scales
- to calculate the nearest distance from user-defined landmarks (currently only support Point-Point nearest distance query)
GPS2space
can be used in studies such as mobility, behavioral science, transportation, etc. For more information, please see the Documentation
Currently, GPS2space
has the following functionalities:
geodf.df_to_gdf
: This function builds unprojected GeoDataFrame from DataFrame with Lat/Long coordinate pairsspace.buffer_spa
: This function calculates buffer-based activity space with user-defined level of aggregation, buffer distance, and projectionspace.convex_space
: This function calculates convex hull-based activity space with user-defined level of aggregation and projectiondist.dist_to_point
: This function calculates nearest Point-Point distance with user-defined projection
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for gps2space-0.2.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 11fc54fb39d0e1c26dbc313e8c56f126b5646cef4d926738f4cfc7a83b61dbc2 |
|
MD5 | d3ea28c3ff55060abb53f054b2a42bf2 |
|
BLAKE2b-256 | 68abeeee15941e56f4cf84e27f982edbf3cd3d55356cfca67a8b630f3b7fc938 |