Skip to main content

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:

  • GDAL/OGR: for loading geospatial data, and warping raster datasets
  • Cario: For drawing operations

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

Metadata

Release files for PyMapKit 0.1.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for PyMapKit 0.1.4
File Size Uploaded
PyMapKit-0.1.4.tar.gz 18.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for PyMapKit 0.1.4
File Interpreter ABI Platform
PyMapKit-0.1.4-py3-none-any.whl Python 3 none any Details

Total release size: 43.3 kB

Release files / PyMapKit-0.1.4.tar.gz

Download URL PyMapKit-0.1.4.tar.gz
Size 18.8 kB
Tags Source
SHA-256 checksum
How to use checksums
e7f8206b6c8f80d47872b92834c29e7eae568b5462d322eb7edbe9216cf0fee1
BLAKE2b-256 checksum
How to use checksums
2265ed2c2917737268130499b0c5e8b41020d857e79c2352026499b93d43e4a3
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / PyMapKit-0.1.4-py3-none-any.whl

Download URL PyMapKit-0.1.4-py3-none-any.whl
Size 24.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7ace0063248dad333f7974bfb45cfab9b866c2fc616b51f24879b8b73e8073cc
BLAKE2b-256 checksum
How to use checksums
bfc97d06a97e4e1af26b8967f64f25fb653ad1fbac32ddd20e389dd05bd2da44
Upload date
Uploaded using Trusted Publishing?
What is 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

Release history Release notifications | RSS feed

This release

0.1.4 This release

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page