Extension Geonode


Extension Basics

Title
Geonode
Name
ckanext-geonode
Type
Public extension
Description
CKAN harvester for GeoNode instances
CKAN versions
Download-Url (zip)
Last commit
2 years ago (2023-04-04 17:20:01)
Url to repo
Category
Data Management & Quality


Background Infos

Description (long)
Show details

ckanext-geonode: a GeoNode harvester for CKAN

This extensions implements a GeoNode harvester using GeoNode’s own API.

Even if GeoNode layers may be queried using CSW, you can’t get maps or documents as CSW records.
Furthermore, by using the internal API for layers also, we can retrieve some more information that are not published along with the CSW metadata.

Compatibility

This extension has been tested using python 3.7 and CKAN2.9.

For previous versions of CKAN please use the tag pre-py3

Installation

  1. Clone the project: “`bash git clone https://github.com/https://github.com/geosolutions-it/ckanext-geonode.git

  2. Activate your CKAN virtual environment, for example:

    . /usr/lib/ckan/default/bin/activate
    
  3. Install the ckanext-geonode requirements into your virtual environment:

    cd ckanext-geonode
    (venv) $ pip install -r requirements.txt
    
  4. Install the ckanext-geonode Python package into your virtual environment:

    (venv) $ pip install -e .
    

Configuration

  1. Make sure the CKAN configuration ini file contains the geonode_harvester plugin, as well as the harvest plugin (provided in the ckanext-harvest plugin):: ini ckan.plugins = [...] harvest [...] geonode_harvester

Harvester configuration

When creating/editing a geonode harvester instance, you may use these configuration items:

  • import: used to harvest only some resources subtypes (layers, maps, docs).
    By default the harvester will read all subtypes; If the import configuration is given, only the selected entries will be harvested.
    e.g.
    json {"import": {"maps": true}}
  • dynamic_mapping: add values to local dataset according to values in the GeoNode resource; you can add tags, extras, or associate the dataset to groups.
    See next section
Version
Version release date
(not set)
Contact name
(not set)
Contakt email
(not set)
Contact Url
(not set)


Installation Guide

Configuration hints
  1. Clone the project: “`bash git clone https://github.com/https://github.com/geosolutions-it/ckanext-geonode.git

  2. Activate your CKAN virtual environment, for example:

    . /usr/lib/ckan/default/bin/activate
    
  3. Install the ckanext-geonode requirements into your virtual environment:

    cd ckanext-geonode
    (venv) $ pip install -r requirements.txt
    
  4. Install the ckanext-geonode Python package into your virtual environment: “`bash (venv) $ pip

Plugins to configure (ckan.ini)
harvest
CKAN Settings (ckan.ini)
DB migration to be executed
(not set)
<< back to Extensions