Skip to content

Add point and polygon to monitoring facility editor

Jonathan Cooper requested to merge EMC-44-point-poly-ui into develop

This adds point and polygon drawing to the monitoring facility editor. The point or polygon can also be specified by pasting geojson into the adjacent text box. There is no validation of the geojson. The point or polygon is saved with the metadata document.

Server side, the catalogue.gemini.Geometry object has a getWkt() method that converts its geojson to Well Known Text. This is needed to allow the solr indexing to work via the WellKnownText interface used by catalogue.indexing.solr.SolrIndexMetadataDocumentGenerator. The MonitoringFacility implements this interface, which is where it calls Geometry.getWkt().

Closes EMC-44

Merge request reports

Loading