|author||Lewis John McGibbney <email@example.com>||Tue Nov 26 12:09:04 2019 -0800|
|committer||GitHub <firstname.lastname@example.org>||Tue Nov 26 12:09:04 2019 -0800|
Merge pull request #9 from lewismc/SDAP-212 SDAP-212 Update EDGE to Python 3.7
The Extensible Data Gateway Environment (EDGE) is a data integration platform designed to facilitate high-performance geospatial data discovery and access with the ability to support multimetadata standard specifications. EDGE is designed with two main building blocks: data aggregation service and enterprise geospatial indexed search cluster. The data aggregation service provides web service interfaces for searches, metadata packaging, and data access. Aggregation often involves retrieving data from two or more sources and packaging the resulting sets into a single response to the requestor. It could also serve as a proxy to other local/remote services to reduce the number of interfaces a requestor has to access. The enterprise geospatial indexed search cluster, which currently supports Apache Solr (http://lucene.apache.org/solr/) and ElasticSearch (http://elasticsearch.org), is a horizontal scale cluster for faceted search with geospatial support.
Setup and activate a conda environment
conda create --name edge python source activate edge
cd edge/src/main/python pip install -r requirements.txt
Launch EDGE service
You will need to customize EDGE to work with your existing Apache Solr or ElasticSearch metadata endpoints.
For an ElasticSearch example plugin, see plugins/example/elastic
Copy the plugins/example/elastic plugin into a new directory, for example, plugins/myproject/elastic.
Update plugin.conf datasetUrl to point to an ElasticSarch index endpoint.
Update template.xml to modify the response XML. Metadata values for each document returned are stored in the doc variable dictionary, for example, doc[‘ShortName’].
To handle additional search parameters, update plugin.conf parameters to include additional parameters, for example,
Update Writer.py to handle these additional parameters by modifying the resulting query sent to ElasticSearch endpoint.
Update server.py to add a new endpoint that will invoke the newly created plugin, for example,
(r"/myplugin/es", GenericHandler, dict(pluginName='myplugin', format=['elastic'])),
Restart EDGE and access the new endpoint at http://localhost:8890/myplugin/es.