Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[6377] Add spatial extension #6

Merged
merged 3 commits into from
Dec 27, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion ckan/config/dbca.ini
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ use = config:/srv/app/ckan.ini
ckan.devserver.watch_patterns = /srv/app/ckan.ini

## Plugins Settings ############################################################
ckan.plugins = image_view text_view datatables_view pdf_view datastore xloader pages showcase hierarchy_display hierarchy_form hierarchy_group_form dcat dbca scheming_datasets envvars
ckan.plugins = image_view text_view datatables_view pdf_view datastore xloader pages showcase hierarchy_display hierarchy_form hierarchy_group_form dcat dbca scheming_datasets spatial_metadata spatial_query envvars

## Resource Views Settings #####################################################
ckan.views.default_views = text_view datatables_view pdf_view
Expand All @@ -22,6 +22,11 @@ ckan.resource_formats = /srv/app/src_extensions/ckanext-dbca/ckanext/dbca/config

## CKAN Extensions configuration ###############################################

# ckanext-spatial
ckanext.spatial.search_backend = solr-bbox
ckanext.spatial.common_map.custom.url = https://tiles.stadiamaps.com/tiles/stamen_terrain/{z}/{x}/{y}@2x.png
ckanext.spatial.common_map.type = custom

# ckanext-scheming
scheming.dataset_schemas = ckanext.dbca:dbca_dataset.yaml

Expand Down
7 changes: 7 additions & 0 deletions ckan/setup/dbca_requirements.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,13 @@ pip3 install -r ${SRC_DIR}/ckanext-showcase/requirements.txt
pip3 install -e 'git+https://github.com/ckan/[email protected]#egg=ckanext-scheming'

# Spatial
# dependencies
export PROJ_DIR=/usr
apk add --no-cache \
geos \
geos-dev \
proj-util \
proj-dev
pip3 install -e git+https://github.com/ckan/[email protected]#egg=ckanext-spatial
pip3 install -r ${SRC_DIR}/ckanext-spatial/requirements.txt

Expand Down