Preview for gpkg files
Project description
ckanext-gpkg-view
Simple preview for GeoPackage files.
Features
- Preview GeoPackage files as GeoJSON
- Cache GeoJSON to avoid re-reading the file on subsequent views
Requirements
- CKAN 2.10+
- GeoPackage files
- Python 3.8+
Installation
Use pypi to install the extension:
pip install ckanext-gpkg-view
Or install from source:
git clone https://github.com/DataShades/ckanext-gpkg-view.git
cd ckanext-gpkg-view
pip install -e .
Config settings
List of config settings:
version: 1
groups:
- annotation: ckanext-gpkg-view
options:
- key: ckanext.gpkg_view.max_file_size
description: Maximum file size for GPKG files
default: 25600000 # 25MB
type: int
editable: true
- key: ckanext.gpkg_view.cache_duration
description: Cache duration for GPKG files
default: 21600 # 6 hours
type: int
editable: true
- key: ckanext.gpkg_view.cache_enabled
description: Enable caching for GPKG files
default: true
type: bool
editable: true
- key: ckanext.gpkg_view.simplify_tolerance
description: |
The simplification tolerance in the units of the coordinate reference
system (CRS). Higher = more simplification. 0 = no simplification.
default: 0
type: int
editable: true
Tests
To run the tests, do:
pytest --ckan-ini=test.ini
License
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
ckanext_gpkg_view-0.0.3.tar.gz
(117.1 kB
view details)
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 ckanext_gpkg_view-0.0.3.tar.gz.
File metadata
- Download URL: ckanext_gpkg_view-0.0.3.tar.gz
- Upload date:
- Size: 117.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c746ca830c0725d7d9753c648479c2929ae1e049db41dfc90de5598767e09ccd
|
|
| MD5 |
bfc4b4bb2eaab86a88daa93056bc81a4
|
|
| BLAKE2b-256 |
b7f2865d5e8396b431155654cf6ece2c51e5c27d82827974790d67be3fdf1314
|
File details
Details for the file ckanext_gpkg_view-0.0.3-py3-none-any.whl.
File metadata
- Download URL: ckanext_gpkg_view-0.0.3-py3-none-any.whl
- Upload date:
- Size: 119.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a568c8fe9c99b5542374ec0962002e7a749bbb8307c89a5bb7713fe2f363dbee
|
|
| MD5 |
e806475d0cc11ec3588b2a81ab5fcaf1
|
|
| BLAKE2b-256 |
b1abf6e3d6145e36b717f90781dcbcd871a529e30864fac859a9841059621cc5
|