gradesystem / grade-glue

Ad-hoc Recipes for Grade Staging
0 stars 0 forks source link

Provide Marine regions (Eez) data & relationships #4

Closed eblondel closed 9 years ago

eblondel commented 9 years ago

This includes the data & related mappings such as sovereignty (related to admin unit concept) and exploitation rights (related to flagstate concept).

eblondel commented 9 years ago

Despite retrieving Eez was ok as stream, we have an issue when trying to implement it as Features (which is required to build downstream mappings). The error deals with a problem of attribute data binding (some of the attributes is in int primitive type) - see http://pastebin.com/0QmgX4G7 . I've raised Apache-Sis team to get advice.

To move forward, waiting for feedback from Apache-sis, switch to csv source using: http:// geo.vliz.be/geoserver/MarineRegions/wfs?service=WFS&version=1.1.0&request=GetFeature&typeName=MarineRegions:eez&propertyName=objectid,eez,country,id,sovereign,sov_id,eez_id,iso_3digit,mrgid,area_m2,mrgid_eez&outputFormat=CSV

eblondel commented 9 years ago

A fix was provided in Geotoolkit (see https://github.com/Geomatys/geotoolkit/commit/a13efbbe4e6a019e4fa91f6f68cbe0c9da5fa856), which allows us to retrieve eez data through virtual-ows.

In addition, the business logic for the sovereignty mapping between a country and eez has been added, and the output xml produced with comet format. See the javadoc for the jaxb choices taken for handling code mappings (to discuss further if needed).

eblondel commented 9 years ago

Exploitation rights mapping is now added and available as comet format. This mapping is produced on both eez asset and admin units asset enriched with flagstate information.