Extension Iotrans


Extension Basics

Title
Iotrans
Name
ckanext-iotrans
Type
Public extension
Description
Converts datastore resources into files of different formats and/or CRSs
CKAN versions
Download-Url (zip)
Last commit
a year ago (2024-11-18 16:51:40)
Url to repo
Category
Data Management & Quality


Background Infos

Description (long)
Show details

ckanext-iotrans

This CKAN extension lets you convert datastore resources into files of various formats and, for spatial data, Coordinate Reference Systems.

This extension is intended for use cases that require download of datastore resources in multiple formats of Coordinate Reference Systems aside from CKAN’s built in formats.

This extension leverages the Fiona Python library.

Requirements

This extension only works if the CKAN Datastore Extension is active

Compatibility with core CKAN versions:

CKAN version Compatible?
2.6 and earlier not tested
2.7 not tested
2.8 not tested
2.9 yes

Usage

ckanext-iotrans creates the following CKAN actions - both will only work for admin users:

to_file

Inputs:

  • resource_id: CKAN datastore resource ID

  • source_epsg: source EPSG of resource ID, if data is spatial, as an integer

  • target_epsgs: list of desired EPSGs of output files, if data is spatial, as integers

  • target_formats: list of desired file formats as strings. ex: ["csv", "xml", "json"]

Spatial Formats Non Spatial Formats
CSV CSV
GEOJSON JSON
GPKG XML
SHP

Outputs:

Writes desired files to folder in /tmp, and returns a list of filepaths where the outputs are stored on disk

prune

Inputs:

  • path: path to file or directory in /tmp to delete

Outputs:

Removes file or directory, as long as its in /tmp directory

Details

Memory and Disk Use

When running to_file, data is first streamed from the datastore into a csv stored on disk. All subsequent files created will be created from this “dump” file. When writing to new ou

Version
1.2.3
Version release date
2023-03-27
Contact name
Open Data Toronto
Contakt email
Contact Url
(not set)


Installation Guide

Configuration hints

This extension only works if the CKAN Datastore Extension is active Compatibility with core CKAN versions: | CKAN version | Compatible? | | ————— | ————- | | 2.6 and earlier | not tested | | 2.7 | not tested | | 2.8 | not tested | | 2.9 | yes |

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