Extension IO Trans


Extension Basics

Title
IO Trans
Name
ckanext-iotrans
Type
Public extension
Description
Converts datastore resources into files of different formats (CSV, GeoJSON, GPKG, SHP, XML, JSON) and/or Coordinate Reference Systems. Uses Fiona library for geospatial transformations.
CKAN versions
Download-Url (zip)
Last commit
a year ago (2024-11-18 17: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 or 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: - 2.9: yes - 2.6-2.8: not tested

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 - target_formats: list of desired file formats (CSV, GEOJSON, GPKG, SHP, JSON, XML)

Outputs: Writes desired files to folder in /tmp, and returns a list of filepaths.

prune

Inputs: - path: path to file or directory in /tmp to delete

Memory and Disk Use

Data is first streamed from the datastore into a CSV stored on disk. Processing to convert files is done in memory on one chunk at a time.

Geometric Data

Identifies spatial data as anything containing a geometry attribute. Supported geometry types: Point, LineString, Polygon, MultiPoint, MultiLineString, MultiPolygon.

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

Requires CKAN Datastore Extension. Uses Fiona library (fiona>=1.10.0). Admin-only actions.

Plugins to configure (ckan.ini)
iotrans
CKAN Settings (ckan.ini)
# No specific environment variables required
DB migration to be executed
(not set)
<< back to Extensions