Skip to content

Commit

Permalink
Merge pull request rodekruis#595 from rodekruis/feat.flood_susceptibi…
Browse files Browse the repository at this point in the history
…lity

Feat.flood susceptibility
  • Loading branch information
jannisvisser authored Mar 19, 2021
2 parents f0ae12d + db27375 commit 8ffe1d3
Show file tree
Hide file tree
Showing 6 changed files with 207 additions and 1 deletion.
11 changes: 10 additions & 1 deletion services/API-service/src/scripts/json/layer-metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -76,11 +76,20 @@
"leadTimeDependent": false,
"active": "no"
},
{
"country_codes": "EGY",
"name": "flood_susceptibility",
"label": "Flood susceptibility",
"type": "wms",
"legendColor": "#3690c0",
"leadTimeDependent": false,
"active": "no"
},
{
"country_codes": "UGA,ZMB,KEN,ETH,EGY",
"name": "admin_regions",
"label": "Admin Regions",
"type": "shape",
"active": "yes"
}
]
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<coverageStore>
<id>CoverageStoreInfoImpl--348e44ac:17849e219c0:-76f0</id>
<name>flood_susceptibility_EGY</name>
<description>flood_susceptibility_EGY</description>
<type>GeoTIFF</type>
<enabled>true</enabled>
<workspace>
<id>WorkspaceInfoImpl-48cab08a:175ace47603:-7ffb</id>
</workspace>
<__default>false</__default>
<dateCreated>2021-03-19 16:21:14.575 UTC</dateCreated>
<url>file:workspaces/ibf-system/ibf-pipeline/input/flood_susceptibility/fs_reclass_Egypt_compressed.tif</url>
</coverageStore>
Original file line number Diff line number Diff line change
@@ -0,0 +1,122 @@
<coverage>
<id>CoverageInfoImpl--348e44ac:17849e219c0:-76ef</id>
<name>flood_susceptibility_EGY</name>
<nativeName>flood_susceptibility_EGY</nativeName>
<namespace>
<id>NamespaceInfoImpl-48cab08a:175ace47603:-7ffa</id>
</namespace>
<title>flood_susceptibility_EGY</title>
<description>Generated from GeoTIFF</description>
<keywords>
<string>fs_reclass_Egypt_compressed</string>
<string>WCS</string>
<string>GeoTIFF</string>
</keywords>
<nativeCRS>GEOGCS[&quot;WGS 84&quot;,
DATUM[&quot;World Geodetic System 1984&quot;,
SPHEROID[&quot;WGS 84&quot;, 6378137.0, 298.257223563, AUTHORITY[&quot;EPSG&quot;,&quot;7030&quot;]],
AUTHORITY[&quot;EPSG&quot;,&quot;6326&quot;]],
PRIMEM[&quot;Greenwich&quot;, 0.0, AUTHORITY[&quot;EPSG&quot;,&quot;8901&quot;]],
UNIT[&quot;degree&quot;, 0.017453292519943295],
AXIS[&quot;Geodetic longitude&quot;, EAST],
AXIS[&quot;Geodetic latitude&quot;, NORTH],
AUTHORITY[&quot;EPSG&quot;,&quot;4326&quot;]]</nativeCRS>
<srs>EPSG:4326</srs>
<nativeBoundingBox>
<minx>24.698776957</minx>
<maxx>36.247603465</maxx>
<miny>21.72521916</miny>
<maxy>31.667761359</maxy>
<crs>EPSG:4326</crs>
</nativeBoundingBox>
<latLonBoundingBox>
<minx>24.698776957</minx>
<maxx>36.247603465</maxx>
<miny>21.72521916</miny>
<maxy>31.667761359</maxy>
<crs>EPSG:4326</crs>
</latLonBoundingBox>
<projectionPolicy>REPROJECT_TO_DECLARED</projectionPolicy>
<enabled>true</enabled>
<metadata>
<entry key="DirectDownload.Key">
<directDownloadSettings>
<directDownloadEnabled>false</directDownloadEnabled>
<maxDownloadSize>0</maxDownloadSize>
</directDownloadSettings>
</entry>
<entry key="cachingEnabled">false</entry>
<entry key="dirName">flood_susceptibility_EGY_fs_reclass_Egypt_compressed</entry>
</metadata>
<store class="coverageStore">
<id>CoverageStoreInfoImpl--348e44ac:17849e219c0:-76f0</id>
</store>
<serviceConfiguration>false</serviceConfiguration>
<simpleConversionEnabled>false</simpleConversionEnabled>
<nativeFormat>GeoTIFF</nativeFormat>
<grid dimension="2">
<range>
<low>0 0</low>
<high>14207 12231</high>
</range>
<transform>
<scaleX>8.128969175758427E-4</scaleX>
<scaleY>-8.128969175864605E-4</scaleY>
<shearX>0.0</shearX>
<shearY>0.0</shearY>
<translateX>24.699183405458786</translateX>
<translateY>31.667354910541206</translateY>
</transform>
<crs>EPSG:4326</crs>
</grid>
<supportedFormats>
<string>GIF</string>
<string>PNG</string>
<string>JPEG</string>
<string>TIFF</string>
<string>GEOTIFF</string>
</supportedFormats>
<interpolationMethods>
<string>nearest neighbor</string>
<string>bilinear</string>
<string>bicubic</string>
</interpolationMethods>
<defaultInterpolationMethod>nearest neighbor</defaultInterpolationMethod>
<dimensions>
<coverageDimension>
<name>GRAY_INDEX</name>
<description>GridSampleDimension[-Infinity,Infinity]</description>
<range>
<min>-inf</min>
<max>inf</max>
</range>
<nullValues>
<double>127.0</double>
</nullValues>
<dimensionType>
<name>UNSIGNED_8BITS</name>
</dimensionType>
</coverageDimension>
</dimensions>
<requestSRS>
<string>EPSG:4326</string>
</requestSRS>
<responseSRS>
<string>EPSG:4326</string>
</responseSRS>
<parameters>
<entry>
<string>InputTransparentColor</string>
<null/>
</entry>
<entry>
<string>SUGGESTED_TILE_SIZE</string>
<string>512,512</string>
</entry>
<entry>
<string>RescalePixels</string>
<boolean>true</boolean>
</entry>
</parameters>
<nativeCoverageName>fs_reclass_Egypt_compressed</nativeCoverageName>
</coverage>
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<layer>
<name>flood_susceptibility_EGY</name>
<id>LayerInfoImpl--348e44ac:17849e219c0:-76ee</id>
<type>RASTER</type>
<defaultStyle>
<id>StyleInfoImpl--348e44ac:17849e219c0:-766f</id>
</defaultStyle>
<resource class="coverage">
<id>CoverageInfoImpl--348e44ac:17849e219c0:-76ef</id>
</resource>
<attribution>
<logoWidth>0</logoWidth>
<logoHeight>0</logoHeight>
</attribution>
<dateCreated>2021-03-19 16:21:20.890 UTC</dateCreated>
<dateModified>2021-03-19 16:27:45.272 UTC</dateModified>
</layer>
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
<?xml version="1.0" encoding="UTF-8"?>
<StyledLayerDescriptor xmlns="http://www.opengis.net/sld" xmlns:ogc="http://www.opengis.net/ogc" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.opengis.net/sld
http://schemas.opengis.net/sld/1.0.0/StyledLayerDescriptor.xsd" version="1.0.0">
<NamedLayer>
<Name>ESA</Name>
<UserStyle>
<Title>A raster style</Title>
<FeatureTypeStyle>
<Rule>
<RasterSymbolizer>
<Opacity>0.5</Opacity>
<ColorMap>
<ColorMapEntry color="#d0d1e6" quantity="0" opacity="0"/>
<ColorMapEntry color="#d0d1e6" quantity="1" label="1"/>
<ColorMapEntry color="#a6bddb" quantity="2" label="2" />
<ColorMapEntry color="#74a9cf" quantity="3" label="3" />
<ColorMapEntry color="#3690c0" quantity="4" label="4" />
</ColorMap>
<ImageOutline>
<LineSymbolizer>
<Stroke>
<CssParameter name="stroke">#0000ff</CssParameter>
</Stroke>
</LineSymbolizer>
</ImageOutline>
</RasterSymbolizer>
</Rule>
</FeatureTypeStyle>
</UserStyle>
</NamedLayer>
</StyledLayerDescriptor>
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<style>
<id>StyleInfoImpl--348e44ac:17849e219c0:-766f</id>
<name>flood_susceptibility</name>
<workspace>
<id>WorkspaceInfoImpl-48cab08a:175ace47603:-7ffb</id>
</workspace>
<format>sld</format>
<languageVersion>
<version>1.0.0</version>
</languageVersion>
<filename>flood_susceptibility.sld</filename>
<dateCreated>2021-03-19 16:27:27.860 UTC</dateCreated>
<dateModified>2021-03-19 16:31:21.293 UTC</dateModified>
</style>

0 comments on commit 8ffe1d3

Please sign in to comment.