A Python based open-source mapping toolkit
Project description
PyMapKit
PyMapKit is a Python based open-source mapping toolkit. It can be used for creating maps, visualizing geospatial data, and developing GIS applications. It is built to be modular: so it can be very simple to use, but also to be integrated into complex mapping applications.
Basic Usage
## Import PyMapKit
import PyMapKit
## Create a PyMapKit Map object
m = PyMapKit.Map()
## Set Map Attributes
m.set_size(500, 500)
m.set_location(40.0, -81.0)
m.set_scale(500)
## Add tile layer
tile_layer = PyMapKit.TileLayer("https://tileserver.com/tile/{z}/{y}/{x}")
## Create data layers
vect_layer = PyMapKit.VectorLayer("./path/to/file.shp")
rast_layer = PyMapKit.VectorLayer("./path/to/file.tiff")
## Add layers to Map Object
m.add_layer(tile_layer)
m.add_layer(vect_layer)
m.add_layer(rast_layer)
## Render to file
m.render("map.png")
Installation
External Dependencies
PyMapKit requires two external libraries that require a non Python component installed. You will need to install these on your system before installing PyMapKit. These dependencies are:
Linux/Ubuntu:
sudo apt install python3-gdal python3-cairo
Windows:
Coming soon
Mac OSx:
Coming soon
Installing PyMapKit
To install PyMapKit from PyPI simply run:
pip install PyMapKit
Or to install from the GitHub repo:
git clone https://github.com/BenKnisley/PyMapKit.git
pip install -r ./PyMapKit/requirements.txt
pip install ./PyMapKit
Developer Extras
If you are contributing to PyMapKit make sure you also install the dev requirements as well.
pip install -r requirements_dev.txt
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file PyMapKit-0.1.4.tar.gz.
File metadata
- Download URL: PyMapKit-0.1.4.tar.gz
- Upload date:
- Size: 18.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.0 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.6.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e7f8206b6c8f80d47872b92834c29e7eae568b5462d322eb7edbe9216cf0fee1
|
|
| MD5 |
08747205c220695bd20c174a4d6cf43d
|
|
| BLAKE2b-256 |
2265ed2c2917737268130499b0c5e8b41020d857e79c2352026499b93d43e4a3
|
File details
Details for the file PyMapKit-0.1.4-py3-none-any.whl.
File metadata
- Download URL: PyMapKit-0.1.4-py3-none-any.whl
- Upload date:
- Size: 24.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.0 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.6.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7ace0063248dad333f7974bfb45cfab9b866c2fc616b51f24879b8b73e8073cc
|
|
| MD5 |
71443dc63ec20d8305c1975cc762fdb0
|
|
| BLAKE2b-256 |
bfc97d06a97e4e1af26b8967f64f25fb653ad1fbac32ddd20e389dd05bd2da44
|