Skip to content

Instantly share code, notes, and snippets.

@tomkralidis
Last active December 20, 2015 03:09
Show Gist options
  • Save tomkralidis/6062032 to your computer and use it in GitHub Desktop.
Save tomkralidis/6062032 to your computer and use it in GitHub Desktop.
Sample impact function format proposal as per https://github.com/AIFDR/inasafe/issues/587
<?xml version="1.0" encoding="UTF-8"?>
<Record
xmlns="http://www.opengis.net/cat/csw/2.0.2" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:dct="http://purl.org/dc/terms/" xmlns:ows="http://www.opengis.net/ows" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.opengis.net/cat/csw/2.0.2 http://schemas.opengis.net/csw/2.0.2/record.xsd">
<dc:identifier>123</dc:identifier>
<dc:title>My Impact function calculation</dc:title>
<dct:modified>2013-07-23T11:01:41Z</dct:modified>
<dct:abstract>This is my impact function description</dct:abstract>
<dc:type>model</dc:type>
<dc:subject>impact</dc:subject>
<dc:subject>function</dc:subject>
<dc:subject>disaster</dc:subject>
<dc:format>XML+JSON</dc:format>
<dc:creator>ACME, inc.</dc:creator>
<dc:language>en</dc:language>
<inasafe:impact_function><![CDATA[
{
version: x.y.z,
document_type: 'impact_assessment',
function_details: {
...
}
...
}
]]></inasafe:impact_function>
<ows:WGS84BoundingBox>
<ows:LowerCorner>miny minx</ows:LowerCorner>
<ows:UpperCorner>maxy maxx</ows:UpperCorner>
</ows:WGS84BoundingBox>
</Record>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment