Skip to content

Commit

Permalink
vmh õhusaaste kaardikiht vaikekujundus + testid bivariaatidega (#45)
Browse files Browse the repository at this point in the history
  • Loading branch information
tkardi committed Feb 14, 2018
1 parent 2740049 commit 836d71b
Show file tree
Hide file tree
Showing 16 changed files with 1,085 additions and 0 deletions.
59 changes: 59 additions & 0 deletions src/gwc-layers/LayerInfoImpl--2d71cb2f_1602c4a5940_-7d03.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
<GeoServerTileLayer>
<id>LayerInfoImpl--2d71cb2f:1602c4a5940:-7d03</id>
<enabled>true</enabled>
<inMemoryCached>true</inMemoryCached>
<name>vmh:air_grid</name>
<mimeFormats>
<string>image/png</string>
<string>application/json;type=geojson</string>
<string>application/json;type=topojson</string>
</mimeFormats>
<gridSubsets>
<gridSubset>
<gridSetName>EPSG:3301</gridSetName>
<extent>
<coords>
<double>40500.0</double>
<double>5993000.0</double>
<double>1064500.0</double>
<double>7017000.0</double>
</coords>
</extent>
<zoomStart>0</zoomStart>
<zoomStop>14</zoomStop>
<minCachedLevel>0</minCachedLevel>
<maxCachedLevel>13</maxCachedLevel>
</gridSubset>
<gridSubset>
<gridSetName>EPSG:3857</gridSetName>
<extent>
<coords>
<double>1895077.536859468</double>
<double>7146853.682714877</double>
<double>3907986.127196144</double>
<double>9064985.563917274</double>
</coords>
</extent>
<zoomStart>5</zoomStart>
<zoomStop>18</zoomStop>
<minCachedLevel>5</minCachedLevel>
<maxCachedLevel>13</maxCachedLevel>
</gridSubset>
</gridSubsets>
<metaWidthHeight>
<int>1</int>
<int>1</int>
</metaWidthHeight>
<parameterFilters>
<styleParameterFilter>
<key>STYLES</key>
<defaultValue></defaultValue>
<availableStyles class="sorted-set">
<string>vmh:population-nox.bivariate</string>
<string>vmh:population-so2.bivariate</string>
</availableStyles>
<defaultStyle>vmh:pop.default</defaultStyle>
</styleParameterFilter>
</parameterFilters>
<gutter>0</gutter>
</GeoServerTileLayer>
5 changes: 5 additions & 0 deletions src/workspaces/vmh/namespace.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<namespace>
<id>NamespaceInfoImpl--2d71cb2f:1602c4a5940:-7d0f</id>
<prefix>vmh</prefix>
<uri>http://registry.envir.ee/namespaces/vmh</uri>
</namespace>
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
105 changes: 105 additions & 0 deletions src/workspaces/vmh/styles/pop.default.sld
Original file line number Diff line number Diff line change
@@ -0,0 +1,105 @@
<?xml version="1.0" encoding="UTF-8"?>
<StyledLayerDescriptor version="1.0.0"
xsi:schemaLocation="http://www.opengis.net/sld StyledLayerDescriptor.xsd"
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">
<!-- a Named Layer is the basic building block of an SLD document -->
<NamedLayer>
<Name>air_grid</Name>
<UserStyle>
<Title>Rahvastik</Title>
<Abstract>Rahvastikutihedus Statistikaameti ruutkilomeetri-võrgul</Abstract>
<!--FeatureTypeStyle>
<Rule>
<Name>halo</Name>
<ogc:Filter>
<ogc:PropertyIsGreaterThan>
<ogc:PropertyName>population</ogc:PropertyName>
<ogc:Literal>3</ogc:Literal>
</ogc:PropertyIsGreaterThan>
</ogc:Filter>
<PointSymbolizer uom="http://www.opengeospatial.org/se/units/metre">
<Graphic>
<Mark>
<WellKnownName>circle</WellKnownName>
<Fill>
<CssParameter name="fill">#FEFAF8</CssParameter>
<CssParameter name="fill-opacity">0.5</CssParameter>
</Fill>
<Stroke>
<CssParameter name="stroke">#FEFAF8</CssParameter>
<CssParameter name="stroke-width">200</CssParameter>
<CssParameter name="stroke-opacity">0.25</CssParameter>
</Stroke>
</Mark>
<Size>800</Size>
</Graphic>
</PointSymbolizer>
</Rule>
</FeatureTypeStyle-->

<FeatureTypeStyle>
<Rule>
<Name>rahvastik</Name>
<!--ogc:Filter>
<ogc:PropertyIsGreaterThan>
<ogc:PropertyName>population</ogc:PropertyName>
<ogc:Literal>3</ogc:Literal>
</ogc:PropertyIsGreaterThan>
</ogc:Filter-->
<PointSymbolizer uom="http://www.opengeospatial.org/se/units/metre">
<Graphic>
<Mark>
<WellKnownName>square</WellKnownName>
<Fill>
<CssParameter name="fill">
<ogc:Function name="Interpolate">
<ogc:PropertyName>population</ogc:PropertyName>

<!--ogc:Literal>4</ogc:Literal>
<ogc:Literal>#fdccb8</ogc:Literal>

<ogc:Literal>2500</ogc:Literal>
<ogc:Literal>#f44d37</ogc:Literal>

<ogc:Literal>10000</ogc:Literal>
<ogc:Literal>#c5161b</ogc:Literal>

<ogc:Literal>20000</ogc:Literal>
<ogc:Literal>#67000d</ogc:Literal-->
<ogc:Literal>0</ogc:Literal>
<ogc:Literal>#030303</ogc:Literal>

<ogc:Literal>4</ogc:Literal>
<ogc:Literal>#1a1c1c</ogc:Literal>

<ogc:Literal>250</ogc:Literal>
<ogc:Literal>#5C1100</ogc:Literal>

<ogc:Literal>1000</ogc:Literal>
<ogc:Literal>#FC2E00</ogc:Literal>

<ogc:Literal>10000</ogc:Literal>
<ogc:Literal>#FC0800</ogc:Literal>


<ogc:Literal>color</ogc:Literal>

</ogc:Function>

</CssParameter>
<CssParameter name="fill-opacity">0.4</CssParameter>
</Fill>
</Mark>
<Size>2125</Size>
<Rotation>45</Rotation>
<!--Rotation><ogc:Function name="toDegrees"><ogc:Function name="sin"><ogc:Function name="getY"><ogc:PropertyName>shape</ogc:PropertyName></ogc:Function></ogc:Function></ogc:Function></Rotation-->
</Graphic>
</PointSymbolizer>
</Rule>
</FeatureTypeStyle>
</UserStyle>
</NamedLayer>
</StyledLayerDescriptor>
12 changes: 12 additions & 0 deletions src/workspaces/vmh/styles/pop.default.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<style>
<id>StyleInfoImpl--2d71cb2f:1602c4a5940:-7d02</id>
<name>pop.default</name>
<workspace>
<id>WorkspaceInfoImpl--2d71cb2f:1602c4a5940:-7d10</id>
</workspace>
<format>sld</format>
<languageVersion>
<version>1.0.0</version>
</languageVersion>
<filename>pop.default.sld</filename>
</style>
Loading

0 comments on commit 836d71b

Please sign in to comment.