ckanext-versioned-tiledmap

A CKAN extension with a map view for versioned-datastore backed resources.

https://github.com/naturalhistorymuseum/ckanext-versioned-tiledmap

Science Score: 62.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
    Found CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
  • Committers with academic emails
    2 of 9 committers (22.2%) from academic institutions
  • Institutional organization owner
    Organization naturalhistorymuseum has institutional domain (www.nhm.ac.uk)
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (13.4%) to scientific vocabulary

Keywords

ckan ckan-extension

Keywords from Contributors

sketchfab gbif
Last synced: 6 months ago · JSON representation ·

Repository

A CKAN extension with a map view for versioned-datastore backed resources.

Basic Info
  • Host: GitHub
  • Owner: NaturalHistoryMuseum
  • License: gpl-3.0
  • Language: JavaScript
  • Default Branch: main
  • Homepage:
  • Size: 1.75 MB
Statistics
  • Stars: 0
  • Watchers: 8
  • Forks: 0
  • Open Issues: 3
  • Releases: 21
Topics
ckan ckan-extension
Created over 7 years ago · Last pushed 9 months ago
Metadata Files
Readme Changelog Contributing License Code of conduct Citation Support

README.md

The Natural History Museum logo.

ckanext-versioned-tiledmap

Tests Coveralls CKAN Python Docs

A CKAN extension with a map view for versioned-datastore backed resources.

Overview

A CKAN plugin with a map view for versioned-datastore backed resources allowing for map visualizations of large resources with millions of data points.

This repository is a fork* of ckanext-map.

*you can't fork repositories within the same organisation, so this repository is a duplicate of ckanext-map.

Installation

Path variables used below: - $INSTALL_FOLDER (i.e. where CKAN is installed), e.g. /usr/lib/ckan/default - $CONFIG_FILE, e.g. /etc/ckan/default/development.ini

Pre-install setup

This extension depends on the following projects, which must be installed first: - versioned-datastore-tile-server

Installing from PyPI

shell pip install ckanext-versioned-tiledmap

Installing from source

  1. Clone the repository into the src folder: shell cd $INSTALL_FOLDER/src git clone https://github.com/NaturalHistoryMuseum/ckanext-versioned-tiledmap.git

  2. Activate the virtual env: shell . $INSTALL_FOLDER/bin/activate

  3. Install via pip: shell pip install $INSTALL_FOLDER/src/ckanext-versioned-tiledmap

Installing in editable mode

Installing from a pyproject.toml in editable mode (i.e. pip install -e) requires setuptools>=64; however, CKAN 2.9 requires setuptools==44.1.0. See our CKAN fork for a version of v2.9 that uses an updated setuptools if this functionality is something you need.

Post-install setup

  1. Add 'versionedtiledmap' to the list of plugins in your `$CONFIGFILE: ini ckan.plugins = ... versioned_tiledmap `

  2. Install lessc globally: shell npm install -g "less@~4.1"

  3. Add latitude and longitude fields for the resources you want to use this view for.

Configuration

These are the options that can be specified in your .ini config file.

| Name | Description | Default | |---------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------| | versioned_tilemap.tile_layer.url | The URL to use for the base world tiles | https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png | | versioned_tilemap.tile_layer.attribution | The attribution text to show for this layer (can be HTML) | Base tiles provided by OpenStreetMap. <a href="openstreetmap.org/copyright">View copyright information</a> | | versioned_tilemap.tile_layer.opacity | The opacity for the tile layer | 0.8 | | versioned_tilemap.zoom_bounds.min | Minimum zoom level for initial display of the resource's data | 3 | | versioned_tilemap.zoom_bounds.max | Maximum zoom level for initial display of the resource's data | 18 | | versioned_tilemap.style.plot.point_radius | The integer radius of the rendered points (including the border) | 4 | | versioned_tilemap.style.plot.point_colour | The hex value to render the points in | #ee0000 #ee0000 | | versioned_tilemap.style.plot.border_width | The integer border width of the rendered points | 1 | | versioned_tilemap.style.plot.border_colour | The hex value to render the borders of the points in | #ffffff #ffffff | | versioned_tilemap.style.plot.grid_resolution | The integer size of the cells in the grid that each tile is split into for the UTFGrid. The default of 4 produces a 64x64 grid within each tile | 4 | | versioned_tilemap.style.gridded.cold_colour | The hex value to be used to render the points with the lowest counts | #f4f11a #f4f11a | | versioned_tilemap.style.gridded.hot_colour | The hex value to be used to render the points with the highest counts | #f02323 #f02323 | | versioned_tilemap.style.gridded.range_size | This many colours will be used to render the points dependant on their counts | 12 | | versioned_tilemap.style.gridded.resize_factor | A resize value to use when smoothing the tile. This value will be used to scale the tile and then down (with anti-aliasing) to produce a smoother output. Increasing this value will negatively impact performance | 4 | | versioned_tilemap.style.gridded.grid_resolution | The integer size of the cells in the grid that each tile is split into. The default of 8 produces a 32x32 grid within each tile and therefore matches the default grid.json setting too | 8 | | versioned_tilemap.style.heatmap.point_radius | The integer radius of the rendered points (including the border) | 8 | | versioned_tilemap.style.heatmap.cold_colour | The hex value to be used to render the points with the lowest counts | #0000ee #0000ee | | versioned_tilemap.style.heatmap.hot_colour | The hex value to be used to render the points with the highest counts | #ee0000 #ee0000 | | versioned_tilemap.style.heatmap.intensity | The decimal intensity (between 0 and 1) to render the tile with | 0.5 | | versioned_tilemap.info_template | The name of the template to use when a point is clicked | point_detail | | versioned_tilemap.quick_info_template | The name of the template to use when a point is hovered over | point_detail_hover |

Usage

After enabling this extension in the list of plugins, the Map view should become available for resources with latitude and longitude values.

Testing

There is a Docker compose configuration available in this repository to make it easier to run tests. The ckan image uses the Dockerfile in the docker/ folder.

To run the tests against ckan 2.9.x on Python3:

  1. Build the required images: shell docker compose build

  2. Then run the tests. The root of the repository is mounted into the ckan container as a volume by the Docker compose configuration, so you should only need to rebuild the ckan image if you change the extension's dependencies. shell docker compose run ckan

Owner

  • Name: Natural History Museum
  • Login: NaturalHistoryMuseum
  • Kind: organization
  • Location: London

Citation (CITATION.cff)

cff-version: 1.2.0
title: CKAN Versioned Tiledmap extension
message: >-
  If you use this software, please cite it using the
  metadata from this file.
type: software
authors:
  - name: Natural History Museum
    city: London
    country: GB
    alias: NHM
    email: data@nhm.ac.uk
repository-code: 'https://github.com/NaturalHistoryMuseum/ckanext-versioned-tiledmap'
abstract: A CKAN extension with a map view for versioned-datastore backed resources.
keywords:
  - ckan
  - ckanext
  - versioned_tiledmap
license: GPL-3.0-or-later
version: 2.3.4

GitHub Events

Total
  • Release event: 2
  • Delete event: 4
  • Push event: 13
  • Pull request event: 14
  • Create event: 5
Last Year
  • Release event: 2
  • Delete event: 4
  • Push event: 13
  • Pull request event: 14
  • Create event: 5

Committers

Last synced: almost 3 years ago

All Time
  • Total Commits: 283
  • Total Committers: 9
  • Avg Commits per committer: 31.444
  • Development Distribution Score (DDS): 0.583
Top Committers
Name Email Commits
Alice Heaton a****n@n****k 118
Andy Allan a****y@g****k 50
Alice Butcher a****i@g****m 38
benscott b****n@b****k 29
Josh Humphries j****s@n****k 25
github-actions[bot] g****]@u****m 10
vagrant v****t@p****) 7
Alice Heaton a****5@g****m 5
Josh Humphries j****s@g****m 1
Committer Domains (Top 20 + Academic)

Packages

  • Total packages: 1
  • Total downloads:
    • pypi 92 last-month
  • Total dependent packages: 0
  • Total dependent repositories: 0
  • Total versions: 19
  • Total maintainers: 1
pypi.org: ckanext-versioned-tiledmap

A CKAN extension with a map view for versioned-datastore backed resources.

  • Versions: 19
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Downloads: 92 Last month
Rankings
Dependent packages count: 6.6%
Downloads: 11.0%
Average: 23.6%
Forks count: 30.5%
Dependent repos count: 30.6%
Stargazers count: 39.1%
Maintainers (1)
Last synced: 7 months ago

Dependencies

.github/workflows/bump.yml actions
  • actions/checkout v3 composite
  • commitizen-tools/commitizen-action master composite
  • softprops/action-gh-release v1 composite
.github/workflows/main.yml actions
  • actions/checkout v3 composite
.github/workflows/pypi-publish.yml actions
  • actions/checkout v3 composite
  • actions/setup-python v3 composite
  • pypa/gh-action-pypi-publish release/v1 composite
docker/Dockerfile docker
  • naturalhistorymuseum/ckantest latest build
docker-compose.yml docker
  • ckan/ckan-solr 2.9
  • redis latest
docs/requirements.txt pypi
  • mkdocs *
  • mkdocs-gen-files *
  • mkdocs-include-markdown-plugin *
  • mkdocs-material *
  • mkdocs-section-index *
  • mkdocstrings *
pyproject.toml pypi
  • ckanext-versioned-datastore >=3.7.0
  • ckantools >=0.3.0