No project description provided
Project description
# ShpWay: A Shapefile Navigator
ShpWay is a simple Python library that converts shapefiles into a navigation system by the conversion of shapefiles to graph.
## Getting Started
### Requirements
* Python 2.7+
* Two shapefiles
- a shapefile containing _**polyline**_ shapes to outline the pathways
- a shapefile containing all potential visitation objects _**polygon shapes is currently only supported**_
### Installation
ShpWay can be installed with pip:
```
$ pip install shp-way-bbrownrichardson
```
or directly from the source code:
```
$ git clone https://github.com/bbrownrichardson/ShpWay.git
$ cd ShpWay
$ python setup.py install
```
### Basic Usage
The usage of the library's interface is simple.
```python
from shp_way.shapefile_navigator import ShapefileNavigator
pathways = "shapefiles/roads.shp"
visitation = "shapefiles/buildings.shp"
sn = ShapefileNavigator(pathways, visitation)
```
ShpWay allows users to have control of efficiency in terms of determining spatial grid size. Users can provide a fixed value for the number of rows and columns used in the conversion process. See documentation for more information.
```python
from shp_way.shapefile_navigator import ShapefileNavigator
pathways = "shapefiles/roads.shp"
visitation = "shapefiles/buildings.shp"
sn = ShapefileNavigator(pathways, visitation, rows=15, cols=30)
```
The `sn` object can then be used as described in the `ShpWay-ShapefileNavigator` docs [link here]
ShpWay is a simple Python library that converts shapefiles into a navigation system by the conversion of shapefiles to graph.
## Getting Started
### Requirements
* Python 2.7+
* Two shapefiles
- a shapefile containing _**polyline**_ shapes to outline the pathways
- a shapefile containing all potential visitation objects _**polygon shapes is currently only supported**_
### Installation
ShpWay can be installed with pip:
```
$ pip install shp-way-bbrownrichardson
```
or directly from the source code:
```
$ git clone https://github.com/bbrownrichardson/ShpWay.git
$ cd ShpWay
$ python setup.py install
```
### Basic Usage
The usage of the library's interface is simple.
```python
from shp_way.shapefile_navigator import ShapefileNavigator
pathways = "shapefiles/roads.shp"
visitation = "shapefiles/buildings.shp"
sn = ShapefileNavigator(pathways, visitation)
```
ShpWay allows users to have control of efficiency in terms of determining spatial grid size. Users can provide a fixed value for the number of rows and columns used in the conversion process. See documentation for more information.
```python
from shp_way.shapefile_navigator import ShapefileNavigator
pathways = "shapefiles/roads.shp"
visitation = "shapefiles/buildings.shp"
sn = ShapefileNavigator(pathways, visitation, rows=15, cols=30)
```
The `sn` object can then be used as described in the `ShpWay-ShapefileNavigator` docs [link here]
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
shp_way-1.0.tar.gz
(8.8 kB
view details)
File details
Details for the file shp_way-1.0.tar.gz.
File metadata
- Download URL: shp_way-1.0.tar.gz
- Upload date:
- Size: 8.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
858b06036236b3924c85c3cc68b90a27173cdaeb2a13409bb60f0019b02272c3
|
|
| MD5 |
3005b52b37186dc05a8c55a4212660d8
|
|
| BLAKE2b-256 |
66d8a9eb884c12b71dbf45e65db53f10a17770b08472995642fe491ea64101ef
|