Skip to main content

girder_geospatial

CircleCI codecov

Installation

  1. Install girder.

  2. Install gdal version 2 or higher on to your system.

    • To install with a wheel, run:

        pip install gdal -f https://manthey.github.io/large_image_wheels/
      
    • If not installing with a wheel:

      • Install gdal to your system with the instructions above
      • Check system gdal version by running gdal-config --version
      • Pip install the corresponding version of gdal
  3. Test your gdal installation by running

python -c "from osgeo import gdal"
  1. Install the geospatial plugin and desired types packages.
pip install girder-geospatial
pip install girder-geospatial-raster \
            girder-geospatial-vector \
            girder-geospatial-grid
  1. Enable Girder cache by adding following to your girder config file:
[cache]
enabled = True
cache.global.backend = "dogpile.cache.memory"
cache.request.backend = "cherrypy_request"

Usage

  1. Uploading a geospatial file

    After the plugin is enabled in Girder, simply upload a geospatial file that gdal or ogr can handle. To see lists of supported formats see the gdal and ogr format documentation. This plugin responds to the upload file event. File uploads will trigger a handler setting geospatial metadata on the uploaded file's item automatically.

  2. Creating geospatial metadata on an already existing item

    If you already have data in Girder, and you don't want to reupload your data. There is an endpoint which takes an item id and creates geospatial metadata on the item.

    curl '{girderApiUrl}/item/{itemId}/geometa' -X PUT
    

    This endpoint will inspect the file and attach 'geometa' key to the given item.

  3. Creating arbitrary geospatial metadata on an existing item

    Some users might want more control on what they are saving. The same endpoint in option 2 can be used to create arbitrary metadata following the base schema. In other words, as long as you have the required parameters that are defined in the base schema, you are free to add your own additional data for your own purposes.

    curl '{girderApiUrl}/item/{itemId}/geometa?geometa={geospatialMetadata}' -X PUT
    
  4. Querying mongo for geospatial datasets

    To query mongo, use the following endpoint with required query parameters.

    curl '{girderApiUrl}/item/geometa?{necessaryQueryStringParameters} -X GET
    

    This endpoint accepts a number of geospatial queries, including:

    1. WKT geometry and relation
    2. Bounding box and relation
    3. Geojson geometry and relation
    4. Latitude, longitude and radius.

    When providing latitude, longitude, and radius, the relation will be always "within" as opposed to "intersects". This might create unexpected results. We recommend using options 1, 2 or 3 above.

    Also, please note these options are mutually exclusive so you cannot pass both geojson and bounding box options. The Opensearch Geo Schema validators will raise an exception if mutually exclusive parameters are passed.

  5. Getting geometa from an item

    To get geospatial metadata on an item, call the following endpoint:

    curl '{girderApiUrl}/item/{itemId}/geometa' -X GET
    

Vagrant Examples

There are currently 2 vagrant examples to quickly get up and running. If you are having problems installing this plugin check ansible playbooks for ubuntu-16.04 and ubuntu-18.04.

Running tests

cd geometa
pip install -r requirements-dev.txt
pytest -n 4

Metadata

Release files for girder-geospatial 0.3.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for girder-geospatial 0.3.1
File Size Uploaded Provenance
girder-geospatial-0.3.1.zip 19.5 kB Without provenance Details

Release files / girder-geospatial-0.3.1.zip

Download URL girder-geospatial-0.3.1.zip
Size 19.5 kB
Tags Source
SHA-256 checksum
How to use checksums
669811269a6e4d240d43660f6c38f175cff741d0f76046c6344d5dbb459b9196
BLAKE2b-256 checksum
How to use checksums
7cc1a890227c1a9e02bd8faada84131bdffd9018442a719f17a85369e9dff8c4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/3.9.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.8.5

Security for girder-geospatial 0.3.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page