unit92 / spatial-search

Applies fine grained spatial searches to GeoNetwork metadata based on linked Geoserver features

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Spatial Search

Applies fine grained spatial searches to GeoNetwork metadata based on linked Geoserver features

Configuration

Ensure that spatial search is configured to index the desired GeoNetwork instance. See geonetwork.search.serverURL and geonetwork.index.serverURL in Config.groovy

Indexing New Layers

For a layer to be indexed Spatial Search needs to know a little about it. Read this to see how to do that and read this to know the history behind this need.

Usage

The API consists of the following functions with corresponding URLs.

Harvest

A harvest consists of a queue followed by an index for each of the queued records.

To harvest:

$ curl http://localhost:8080/spatialsearch/index/harvest
Queueing started at Wed Oct 30 12:12:08 EST 2013<br>943 metadata documents queued finishing at Wed Oct 30 12:12:15 EST 2013<br>Indexing started at Wed Oct 30 12:12:15 EST 2013<br>

Queue

A queue will query the configured GeoNetwork for all of its records containing a WMS layer.

To queue:

$ curl http://localhost:8080/spatialsearch/index/queue
Queueing started at Wed Oct 30 12:09:05 EST 2013<br>943 metadata documents queued finishing at Wed Oct 30 12:09:14 EST 2013<br>

Index

An index will index each of the queued metadata records. Indexing is the function whereby geoserver instances are hit via WFS and the responses parsed into geometries.

To index:

$ curl http://localhost:8080/spatialsearch/index/index
Indexing started at Wed Oct 30 12:13:09 EST 2013<br>

Debugging

GeoNetwork Responses

To view a single record as it would be returned from GeoNetwork to spatial search for queuing use:

$ curl http://catalogue-123.aodn.org.au/geonetwork/srv/eng/q?uuid=c1344e70-480e-0993-e044-00144f7bc0f4&fast=index

To view the entire list of records that spatial search queues use:

$ curl http://catalogue-123.aodn.org.au/geonetwork/srv/eng/q?from=1&to=15&protocol=OGC:WMS-1.1.1-http-get-map%20or%20OGC:WMS-1.3.0-http-get-map&fast=index

changing from and to parameters to paginate.

About

Applies fine grained spatial searches to GeoNetwork metadata based on linked Geoserver features

License:GNU General Public License v3.0


Languages

Language:Groovy 97.8%Language:CSS 2.0%Language:JavaScript 0.1%