Skip to content

Commit

Permalink
updated version, dist2poly, loop
Browse files Browse the repository at this point in the history
1. updated version to 0.3.1
2. updated description, added dist_to_poly
3. changed loop according to rewrite shared space #2 (#2)
  • Loading branch information
shuai-zhou committed Jun 19, 2021
1 parent bc2976b commit 609e2d2
Show file tree
Hide file tree
Showing 5 changed files with 937 additions and 100 deletions.
4 changes: 2 additions & 2 deletions source/building_spatial_data.ipynb

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
You can adapt this file completely to your liking, but it should at least
contain the root `toctree` directive.
GPS2space v0.2.1
GPS2space v0.3.1
=================

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 and can ease the processes of compiling and calculating activity spaces based on raw Lat/Long coordinate pairs.
Expand All @@ -12,7 +12,7 @@ Many data are not readily in spatial format. For example, data from wearable dev
Description
-----------

The primary goals of ``GPS2space`` are: 1) to build spatial data from raw Lat/Long coordinate pairs and make the process less painful for social scientists with little GIS background; 2) 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; 3) to calculate the nearest distance from user-defined landmarks (currently only support Point-Point nearest distance query).
The primary goals of ``GPS2space`` are: 1) to build spatial data from raw Lat/Long coordinate pairs and make the process less painful for social scientists with little GIS background; 2) 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; 3) to calculate the nearest distance from user-defined landmarks.

.. toctree::
:maxdepth: 2
Expand Down
220 changes: 129 additions & 91 deletions source/measuring_activity_space.ipynb

Large diffs are not rendered by default.

804 changes: 801 additions & 3 deletions source/measuring_distance.ipynb

Large diffs are not rendered by default.

5 changes: 3 additions & 2 deletions source/overview.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,11 @@ Overview
Although the differences between those datums are usually not discernible, we recommend you to check what datum you are using with your data vendor for accurate spatial measures. If your datum is not WGS84, please transform it to WGS84 datum before you using this package.

This package is released under the MIT License, which exempts the authors and copyright holders from any claim, damages or other liability. We will do our best to guarantee the reliability and validity of our package, but users are responsible for their own work. See :ref:`Tips` for some of our suggestions in using this package to conduct reliable and replicable research.

The following shows the available functions of the package:

- ``geodf.df_to_gdf``: This function builds unprojected GeoDataFrame from DataFrame with Lat/Long coordinate pairs
- ``space.buffer_space``: This function calculates buffer-based activity space with user-defined level of aggregation, buffer distance, and projection
- ``space.convex_space``: This function calculates convex hull-based activity space with user-defined level of aggregation and projection
- ``dist.dist_to_point``: This function calculates nearest Point-Point distance with user-defined projection
- ``dist.dist_to_point``: This function calculates nearest Point-Point distance with user-defined projection
- ``dist.dist_to_poly``: This function calculates nearest Point-Polygon distance with user-defined projection and search radius

0 comments on commit 609e2d2

Please sign in to comment.