Skip to main content

GeoPortal plugin for OneCode

Project description

GeoPortal Plugin for OneCode

This plugin wraps OneCode input and output elements so that they work seamlessly with the GeoPortal. Compatible with OneCode 1.0.0+ only.

CLI

To produce interface.json as well as i18n files, run from the root OneCode project:

geoportal-extract

API

Inputs Use geo_ prefix in front of all OneCode elements, e.g. geo_slider instead of slider, etc.

Outputs

geo_file_output(
    path: str,              # Path to the output file
    type: str,              # GeoPortal type, e.g. CSV, BlockModel, etc.
    prefix: str = "",       # Optional prefix to left-strip file path
    group: bool = False,    # True for GeoPortal multi-files (e.g. ShpFile)
    release: bool = False,  # True to record file as a release for the sign-off process
    key: str = None,        # Specific key in case file is reference in another workflow
    **kwargs                # Any additional properties to attach to the GeoPortal file
)

Examples

Checkout the examples folders.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

geoportal-1.0.0.tar.gz (6.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

geoportal-1.0.0-py3-none-any.whl (11.7 kB view details)

Uploaded Python 3

File details

Details for the file geoportal-1.0.0.tar.gz.

File metadata

  • Download URL: geoportal-1.0.0.tar.gz
  • Upload date:
  • Size: 6.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.10.12

File hashes

Hashes for geoportal-1.0.0.tar.gz
Algorithm Hash digest
SHA256 8479d1baf2fae0b5c8ac5545556d7b3ef66088a67070d5754ba7f0686db35af0
MD5 a5c159318f39afb2fa27716d6b1ab8f5
BLAKE2b-256 601b6b49cb40b462f4b73d4772935cb94899231e9c82cce0f7aefaf8154f85b7

See more details on using hashes here.

File details

Details for the file geoportal-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: geoportal-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 11.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.10.12

File hashes

Hashes for geoportal-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9e1d72844963d05402e8267ed03b85b224afefbd81070a2282cc90b729cd84dd
MD5 06af35a987c6d0863a2c904151402325
BLAKE2b-256 95692acb6276921f0d530e7b5b730755e1193fb9eaade5dd2380734a24fab206

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page