ogc-legends 0.1.3
pip install ogc-legends==0.1.3
Released:
A small library to work with OGC legends
Navigation
Unverified details
These details have not been verified by PyPIProject links
Meta
- License: MIT License (MIT)
- Author: Seth Girvin
Classifiers
- Development Status
- Intended Audience
- License
- Programming Language
- Topic
Project description
A small library to work with OGC legends.
import ogc_legends
url = "https://demo.mapserver.org/cgi-bin/wms?"
legends = ogc_legends.get_legends(url, "./images")
for k, v in legends.items():
print(k, v)
The dictionary structure returned by the get_legends function is as follows:
{
"cities": [
{
"file": "./images\\cities_default.png",
"style": "default"
}
],
"continents": [
{
"file": "./images\\continents_default.png",
"style": "default"
}
],
"country_bounds": [
{
"file": "./images\\country_bounds_default.png",
"style": "default"
}
]
}
From the command line:
ogc_legends "https://demo.mapserver.org/cgi-bin/wms?"
To save to a different folder:
ogc_legends "https://demo.mapserver.org/cgi-bin/wms?" "./images"
Other options - don’t override if file already exists, and use WMS version 1.1.1:
ogc_legends "https://demo.mapserver.org/cgi-bin/wms?" "./images" False "1.1.1"
Requirements
Python 3.6+
Installation
Note installing the ogc-legends plugin will automatically install the required dependency owslib.
pip install ogc-legends
Releases
0.1 (17/03/2020)
Initial release
Author
Seth Girvin @geographika
Project details
Unverified details
These details have not been verified by PyPIProject links
Meta
- License: MIT License (MIT)
- Author: Seth Girvin
Classifiers
- Development Status
- Intended Audience
- License
- Programming Language
- Topic
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 ogc-legends-0.1.3.tar.gz
.
File metadata
- Download URL: ogc-legends-0.1.3.tar.gz
- Upload date:
- Size: 4.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.1 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.6.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1a1e9f58f4092acb8c4acf0fc2a9c24148fc98377042b4e40e3f05670a3775de |
|
MD5 | cbe16fbd408fcaa8a9a0c87e1937dc8b |
|
BLAKE2b-256 | a079aac317fcd60e8ee22eb408f73c841b88e5512d0505b5d15d7201c934c88d |
File details
Details for the file ogc_legends-0.1.3-py3.7.egg
.
File metadata
- Download URL: ogc_legends-0.1.3-py3.7.egg
- Upload date:
- Size: 4.9 kB
- Tags: Egg
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.1 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5ee1fdd2386b30be21ea3f7bcc2e5251c7f3ce97092aaed9042738e3f8bc03ac |
|
MD5 | a82e47a044f0e3d140cb0e521f5a2457 |
|
BLAKE2b-256 | c2015c103f712d4ba28365e6236bb7a3e4f03c3fb722d47b28a99ac43e9266f5 |
File details
Details for the file ogc_legends-0.1.3-py3.6.egg
.
File metadata
- Download URL: ogc_legends-0.1.3-py3.6.egg
- Upload date:
- Size: 4.9 kB
- Tags: Egg
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.1 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.6.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 064751678e01e42e5c4dfa58cd98ff9e92fe05563ecd6d8d74cdfd367a7f277c |
|
MD5 | 0238dc7439d170c4633308f72cbb62a5 |
|
BLAKE2b-256 | 1dd49059ccfe04aa209a2be67b3511be5304e5b0553d78eb73bf183336ab2c0d |
File details
Details for the file ogc_legends-0.1.3-py2.py3-none-any.whl
.
File metadata
- Download URL: ogc_legends-0.1.3-py2.py3-none-any.whl
- Upload date:
- Size: 4.2 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.1 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.6.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 47d61a1556052d7916d8f98d091d9689710ad7f17d5f7dca72dfe1e5785eb08b |
|
MD5 | 71fad2a42d99d0ddf183a7a5be762092 |
|
BLAKE2b-256 | 4d066474e7d235e3eade317dd114de0b40ef921771fb95da2d13f3ada0a768bb |