Skip to end of metadata
Go to start of metadata
You are viewing an old version of this page. View the current version. Compare with Current  |   View Page History

See the Release 3 Milestone Summary page.

WBS 1.2.3.21.40.01
ID M112
Description Capability extensions to index and query datasets by geospatial metadata beyond geospatial points supported in R2
Deliverable ID D053
Deliverable Data Access Service
Development Owner M. Manning
Development Team Data Processing
Developers  
Release R3
Status Pending
Start Date TBD
End Date TBD
Comments  

Milestone Scoping and Requirements

Requirements and Capabilities Tracing

html-include: java.net.UnknownHostException: architecture.oceanobservatories.org

Use Cases

Basic: Find data within 2-d bounding box or named area
  • Refinement: Overlapping With, Wholly Contained In, Mostly Contained In
  • Refinement: Find raw data of an instrument that does not incorporate location in its data records (mooring case)
  • Refinement: Find raw data of an instrument that does not incorporate location in its data records (glider case)
  • Refinement: Take location error bars into account
    Basic: Find data within 3-d bounding cube or named volume
  • Refinement: Mostly Contained In
  • Refinement: relative to specified datum (e.g., WGS-84) — reference ellipsoid or sea level
  • Refinement: relative to benthic surface (e.g., within this lat/lon, between 30m and 60m above sea floor)
    Basic: Find data within bounding area that meets the additional condition of time within a given range
    Basic: Find data within bounding area that meets the additional condition of a variable (e.g., temperature) within a given range
  • Refinement: Multiple additional conditions
    Advanced: Find out how many entities meet the search criteria.
  • Refinement: Provide an indication of how many entities meet the search criteria in real-time (for immediate update in the user interface).

Assumptions and Prerequisites

Steps

Milestone Tasks

Task Description
Identify Geospatial search requirements Analyze existing requirements and propose revisions for milestone work. Communicate with Marine IOs and other stakeholders to determine specific detailed features and analyze available documentation as needed. Work with the System Engineer on a requirements revision proposal.
Design Geospatial search behavior model Develop detailed designs of this milestone's capabilities as needed for subsequent implementation and integration with the production system and other components. Identify core interfaces and dependencies to the system and to other compoents. Describe core interfaces provided. Get review from system architect and make design artifacts available in the CI architecture documentation.
Define enhanced geospatial indexes in database Implement database indexes as designed and scoped using the integrated database technology. Develop tests to demonstrate the correct operation of the indexes.
Enhance discovery to use enhanced indexes Implement the capability as designed and scoped. Develop unit and integration tests to demonstrate the correct operation of the code.
Enhance resource attributes for geospatial resources Implement the capability as designed and scoped. Develop unit and integration tests to demonstrate the correct operation of the code.
Enhance business logic for geospatial resources Implement the capability as designed and scoped. Develop unit and integration tests to demonstrate the correct operation of the code.
Integrate and test with production environment Take all developed software capabilities of this milestone and integrate them with the remainder of the system. Demonstrate the correct function of the additions through successful automatic tests running against a fully launched system and by interactive demonstration on the test/alpha system.

Milestone Design

Identify Geospatial search requirements

Analyze existing requirements and propose revisions for milestone work. Communicate with Marine IOs and other stakeholders to determine specific detailed features and analyze available documentation as needed. Work with the System Engineer on a requirements revision proposal.

Design Geospatial search behavior model

Develop detailed designs of this milestone's capabilities as needed for subsequent implementation and integration with the production system and other components. Identify core interfaces and dependencies to the system and to other compoents. Describe core interfaces provided. Get review from system architect and make design artifacts available in the CI architecture documentation.

Define enhanced geospatial indexes in database

Implement database indexes as designed and scoped using the integrated database technology. Develop tests to demonstrate the correct operation of the indexes.

Consider OpenGEO Indexing Tutorial. For tables in PostGIS that will have geospatial support, consideration for how to index and creating indexes will need to be designed and implemented. This logic is probably best suited for wherever the CREATE TABLE logic is implemented. A simple scan of the resource fields to identify any fields that are geometries should suffice, and then add an index to the database.

Enhance discovery to use enhanced indexes

Implement the capability as designed and scoped. Develop unit and integration tests to demonstrate the correct operation of the code.

Indexes are inherently used when available in PostgreSQL, without an index a brute-force or exhaustive search is used.

Enhance business logic for geospatial resources

Implement the capability as designed and scoped. Develop unit and integration tests to demonstrate the correct operation of the code.

We will define a resource type hierarchy that supports geometries that are intended to be geospatially indexed.

  • Geometry
  • Point
  • Circle
  • Square
  • Polygon

A Resource that intends to have a field or subset of fields that are geospatially indexed will include a field that is of a geometric type:

The resource registry will need to be modified so when the tables are created and a field of type Geometry is created an appropriate PostGIS data type is selected and a proper index is created to geospatially index the resource.

We will refactor the existing discovery code to use PostGIS capabilities for search and navigation as well as geospatial search. We will expose GIS searching capabilities through discovery service.

  • 3D Closest Point
  • 3D Distance
  • 3D Within
  • 3D Fully Within
  • 3D Intersects
  • 3D Longest Line
  • 3D Max Distance
  • 3D Shortest Line
  • Area
  • Azimuth
  • Centroid
  • Closest Point
  • Contains
  • Contains Properly
  • Covers
  • Covered By
  • Crosses
  • Line Crossing Direction
  • Disjoint
  • Distance
  • Hausdorff Distance
  • Max Distance
  • Distance Sphere
  • Distance Spheroid
  • D-Fully Within
  • D-Within
  • Equals
  • Has Arc
  • Intersects
  • Length
  • Length 2D
  • 3D Length
  • Length Spheroid
  • Length 2D Spheroid
  • Length 3D Spheroid
  • Longest Line
  • Ordering Equals
  • Overlaps
  • Perimeter
  • Perimeter 2D
  • Perimeter 3D
  • Point on Surface
  • Project
  • Relate
  • Relate Match
  • Shortest Line
  • Touches
  • Within
Integrate and test with production environment

Take all developed software capabilities of this milestone and integrate them with the remainder of the system. Demonstrate the correct function of the additions through successful automatic tests running against a fully launched system and by interactive demonstration on the test/alpha system.

Design References and Context

Design Notes

After our migration efforts for milestone M166 PostgreSQL data store, we should be able to leverage the featureset of PostGIS to provide OOIN and clients with geospatial awareness for all system resoures that have a geospatial identity. Once PostGIS is installed and the PostgreSQL database has the GIS extension installed then extended resources to include GIS aware objects is simple.

GIS Objects
The GIS objects supported by PostGIS are a superset of the "Simple Features" defined by the OpenGIS Consortium (OGC). As of version 0.9, PostGIS supports all the objects and functions specified in the OGC "Simple Features for SQL" specification.

PostGIS extends the standard with support for 3DZ,3DM and 4D coordinates.

The OpenGIS specification defines two standard ways of expressing spatial objects: the Well-Known Text (WKT) form and the Well-Known Binary (WKB) form. Both WKT and WKB include information about the type of the object and the coordinates which form the object.

Examples of the text representations (WKT) of the spatial objects of the features are as follows:

  • POINT(0 0)
  • LINESTRING(0 0,1 1,1 2)
  • POLYGON((0 0,4 0,4 4,0 4,0 0),(1 1, 2 1, 2 2, 1 2,1 1))
  • MULTIPOINT(0 0,1 2)
  • MULTILINESTRING((0 0,1 1,1 2),(2 3,3 2,5 4))
  • MULTIPOLYGON(((0 0,4 0,4 4,0 4,0 0),(1 1,2 1,2 2,1 2,1 1)), ((-1 -1,-1 -2,-2 -2,-2 -1,-1 -1)))
  • GEOMETRYCOLLECTION(POINT(2 3),LINESTRING(2 3,3 4))

The database provides the capability to query against spatial relationships. With standard geometrical relationships: contains, within, touches, etc.

Here is a quick SQL example of the geospatial capabilities:

PostGIS also supports parsers for standard industry shapefiles including KMZ, ESRI Shape files etc. This may play a role if we provide users with the capability of inputing system resources and defining shape boundaries for the resources.

Implementation Notes

Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.