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
Metadata
Release files for ckanext-gpkg-view 0.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| ckanext_gpkg_view-0.0.3.tar.gz | 117.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| ckanext_gpkg_view-0.0.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 236.5 kB
Release files / ckanext_gpkg_view-0.0.3.tar.gz
| Download URL | ckanext_gpkg_view-0.0.3.tar.gz |
|---|---|
| Size | 117.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c746ca830c0725d7d9753c648479c2929ae1e049db41dfc90de5598767e09ccd
|
|
BLAKE2b-256 checksum How to use checksums |
b7f2865d5e8396b431155654cf6ece2c51e5c27d82827974790d67be3fdf1314
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.11.4
|
Release files / ckanext_gpkg_view-0.0.3-py3-none-any.whl
| Download URL | ckanext_gpkg_view-0.0.3-py3-none-any.whl |
|---|---|
| Size | 119.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a568c8fe9c99b5542374ec0962002e7a749bbb8307c89a5bb7713fe2f363dbee
|
|
BLAKE2b-256 checksum How to use checksums |
b1abf6e3d6145e36b717f90781dcbcd871a529e30864fac859a9841059621cc5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.11.4
|