Skip to main content

Girder GeoBrowser

Requirements

Plugin Installation

pip install girder-geobrowser

Custom Python Commands

setup.py includes 2 custom commands:

  • build_ui: This command builds the frontend from the gui folder, and places the build into geobrowser_plugin/external_web_client.
  • clean_build: This command cleans the project of the files generated by the previous command.

WARNING

The standalone frontend will be served at /geobrowser if the built front-end path exists (i.e. python setup.py build_ui has been run), or if the mode is not development. So, if running girder serve in development mode, you should see no errors if the frontend is not built. However, if running girder serve in production mode, it will attempt to serve the files, regardless of if they've been built or not, throwing an error through cherrypy if they don't exist.

Custom Girder CLI Commands

This plugin adds custom Girder CLI commands:

extract-geospatial

This command manually runs the Geospatial plugin on any Girder paths specified (defaults to '/'). To specify one or more path, use the -p argument. For example, to run this command on the collections collection1 and collection2, you would run:

girder extract-geospatial -p collection/collection1 -p collection/collection2

populate-collection-meta

This command populates the specified collection(s) with the provided metadata. The provided metadata must be in JSON format. The rules for setting metadata follow that of the setMetadata function. This script requires that you specify 1 metadata JSON file and one or more collection IDs. For example, to populate the meta field of collections 5d3201b4dbdd758d55819007 and 5d3201c54731b3d3a1350823, with the file metadata.json, you would run:

girder populate-collection-meta -i 5d3201b4dbdd758d55819007 -i 5d3201c54731b3d3a1350823 -d metadata.json

To use a Girder path instead of a collection ID, use the -p/--path option (also works with multiple):

girder populate-collection-meta -p /collection/foo -d metadata.json

When using this option, if the specified path doesn't exist, it will be created.

Standalone Frontend Setup

Install Yarn

npm install -g yarn

Install Frontend packages

cd gui
yarn install

Compiles and hot-reloads for development

yarn run serve

Compiles and minifies for production

yarn run build

Run your tests

yarn run test

Lints and fixes files

yarn run lint

Customize configuration

See Configuration Reference.

Metadata

Release files for girder-geobrowser 0.5.7

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-geobrowser 0.5.7
File Size Uploaded
girder-geobrowser-0.5.7.tar.gz 2.5 MB Details

Release files / girder-geobrowser-0.5.7.tar.gz

Download URL girder-geobrowser-0.5.7.tar.gz
Size 2.5 MB
Tags Source
SHA-256 checksum
How to use checksums
e7f65c80761f5ae8efdded76996bf24dac9b3b32f0cea11dcde05d750bd42f8f
BLAKE2b-256 checksum
How to use checksums
5aeeff344c391e143d74bc74323930bdb90fbb205c3e31dcf419adb834aa0408
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.6.8
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