Map Poster Creator
Project description
Map Poster Creator
Valriable Colors
white
black
coral
Install:
pip install map-poster-creator
Deps
Linux
apt-get install libgeos-dev
Windows
thanks Lamroy95 for Windows instruction
- Manually download and install two python packages (GDAL and Fiona):
- Download GDAL .whl file for your version of python (Python 3.8 - ...cp38....whl)
- Download Fiona .whl file
- Install GDAL:
pip install path\to\gdal.whl
- Install Fiona:
pip install path\to\fiona.whl
- Finally, install map-poster-creator:
pip install map-poster-creator
- Or just use Docker =)
MacOS
brew install geos
Usage:
- Create geojson file with one poly. https://geojson.io/
- Download shp archive for region https://download.geofabrik.de/ eq:
central-fed-district-latest-free.shp.zip
- Unpack
*.free.shp.zip
archive to some folderPATH_TO_SHP_DIR
$ mapoc poster create --shp_path PATH_TO_SHP_DIR --geojson PATH_TO_GEOJSON --colors white black coral
$ mapoc poster create -h
usage: Map Poster Creator poster create [-h] --shp_path SHP_PATH --geojson GEOJSON [--colors COLORS [COLORS ...]] [--output_prefix OUTPUT_PREFIX]
Make Poster
optional arguments:
-h, --help show this help message and exit
--shp_path SHP_PATH Path to shp folder.type "mapoc misc shp" to download
--geojson GEOJSON Path to geojson file with boundary polygon.type "mapoc misc geojson" to create and download
--colors COLORS [COLORS ...]
Provide colors. eq "--colors white black coral". Default: "white". Available colors: black, white, red, coral
--output_prefix OUTPUT_PREFIX
Output file prefix. eq. "{OUTPUT_PREFIX}_{COLOR}.png". Default: "map"
$ mapoc misc -h
usage: Map Poster Creator misc [-h] {shp,geojson} ...
Misc services
optional arguments:
-h, --help show this help message and exit
misc management commands:
misc
{shp,geojson} Additional help for available commands
Colors
Add new color scheme
Add a new color scheme or rewrite available color scheme.
usage: mapoc color add [-h] --name NAME --facecolor FACECOLOR --water WATER --greens GREENS --roads ROADS
List available colors
optional arguments:
-h, --help show this help message and exit
--name NAME Name of color scheme. eq. "blue"
--facecolor FACECOLOR
MatPlot face hex color. eq. "#ffffff"
--water WATER MatPlot water hex color. eq. "#ffffff"
--greens GREENS MatPlot greens hex color. eq. "#ffffff"
--roads ROADS MatPlot roads hex color. eq. "#ffffff"
Example:
$ mapoc color add --name "coffee" --facecolor "#433633" --water "#5c5552" --greens "#8f857d" --roads "#decbb7"
List available color schemes
$ mapoc color list
TODO
- Add configurable settings for poster size and quality.
- Add Docker image
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 Distributions
File details
Details for the file map_poster_creator-0.6.tar.gz
.
File metadata
- Download URL: map_poster_creator-0.6.tar.gz
- Upload date:
- Size: 9.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.8.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8c3d44725bc6454b39a1395d9983186fb6d70ac85c5011ce5d8c92afe07ee4aa |
|
MD5 | a9ae81cafb0b434277591d081bdf26ad |
|
BLAKE2b-256 | 1b0ceeb71ee5d7d30e5e0005dd6ae186008d2483bd4360b237f32265caa5c26e |
File details
Details for the file map_poster_creator-0.6-py3.8.egg
.
File metadata
- Download URL: map_poster_creator-0.6-py3.8.egg
- Upload date:
- Size: 9.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.8.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8d9af6929d41aca156ac0b42e597a127adf24ecfdf669479d6eb2502afa0475c |
|
MD5 | 85de993acb9a37b440f8aa06faf23abc |
|
BLAKE2b-256 | 915181d9970fd4ba22ca7d4befb116789f063193310977c6f8070a46cbb6e673 |
File details
Details for the file map_poster_creator-0.6-py3-none-any.whl
.
File metadata
- Download URL: map_poster_creator-0.6-py3-none-any.whl
- Upload date:
- Size: 10.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.8.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c8c04892bd6553d5808ee51c6de99b9d392b7966d9d7c35a4cf65a5dfb2c030f |
|
MD5 | 59614fa75fc7b414f266a5c161bf7831 |
|
BLAKE2b-256 | 0ae7dfaa26b24a70de882a7ede7614389ce5cfeec96a02015f8f21ffc2cbc87d |