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.1.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.1.tar.gz.
File metadata
- Download URL: ckanext_gpkg_view-0.0.1.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 |
761efe3eb46345e5c7c607c2ab74c0fe413e972fafb4845b531d54be52c8ecbd
|
|
| MD5 |
448d2c4055741d6f52a591099058cc53
|
|
| BLAKE2b-256 |
c0a1a0e6f8a250875be89048ba3a17e35a49ce9d3a8de0ccc2cc39addfcedf5b
|
File details
Details for the file ckanext_gpkg_view-0.0.1-py3-none-any.whl.
File metadata
- Download URL: ckanext_gpkg_view-0.0.1-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 |
a02f489851d97f7832f456dc147f5214e99a5ed77c5151bf3accb1a4aac6e683
|
|
| MD5 |
d6d68c31dc2c62f0fb2f5b25d1f0f02d
|
|
| BLAKE2b-256 |
60a352a3134bc86137a5388bf0686cb5d86cd7521875a526bf6c06f7faf81139
|