我在WGS84中有raindata作为点shapefile:
点之间的距离为 11km,数据的边界框为 450*300km。
我想在 Geoserver 中可视化这些数据,而不是作为一个点,而是作为插值多边形。这可以vec:BarnesSurface
在 SLD 中使用。
有关此内容的更多信息,请访问https://docs.boundlessgeo.com/suite/1.1.0/cartography/rt/barnes.html
我无法确定在 SLD 中使用哪些值。我找不到太多关于此的文档。
scale
使用我的数据,maxObservationDistance
或的逻辑值是什么pixelsPerCell
?
这是我的 SLD:
<?xml version="1.0" encoding="ISO-8859-1"?>
<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">
<NamedLayer>
<Name>Barnes surface</Name>
<UserStyle>
<Title>Barnes Surface</Title>
<Abstract>A style that produces a Barnes surface using a rendering transformation</Abstract>
<FeatureTypeStyle>
<Transformation>
<ogc:Function name="vec:BarnesSurface">
<ogc:Function name="parameter">
<ogc:Literal>data</ogc:Literal>
</ogc:Function>
<ogc:Function name="parameter">
<ogc:Literal>valueAttr</ogc:Literal>
<ogc:Literal>rain</ogc:Literal>
</ogc:Function>
<ogc:Function name="parameter">
<ogc:Literal>scale</ogc:Literal>
<ogc:Literal>0.05</ogc:Literal>
</ogc:Function>
<ogc:Function name="parameter">
<ogc:Literal>convergence</ogc:Literal>
<ogc:Literal>0.3</ogc:Literal>
</ogc:Function>
<ogc:Function name="parameter">
<ogc:Literal>passes</ogc:Literal>
<ogc:Literal>2</ogc:Literal>
</ogc:Function>
<ogc:Function name="parameter">
<ogc:Literal>minObservations</ogc:Literal>
<ogc:Literal>1</ogc:Literal>
</ogc:Function>
<ogc:Function name="parameter">
<ogc:Literal>maxObservationDistance</ogc:Literal>
<ogc:Literal>0.2</ogc:Literal>
</ogc:Function>
<ogc:Function name="parameter">
<ogc:Literal>pixelsPerCell</ogc:Literal>
<ogc:Literal>50</ogc:Literal>
</ogc:Function>
<ogc:Function name="parameter">
<ogc:Literal>queryBuffer</ogc:Literal>
<ogc:Literal>0</ogc:Literal>
</ogc:Function>
<ogc:Function name="parameter">
<ogc:Literal>outputBBOX</ogc:Literal>
<ogc:Function name="env">
<ogc:Literal>wms_bbox</ogc:Literal>
</ogc:Function>
</ogc:Function>
<ogc:Function name="parameter">
<ogc:Literal>outputWidth</ogc:Literal>
<ogc:Function name="env">
<ogc:Literal>wms_width</ogc:Literal>
</ogc:Function>
</ogc:Function>
<ogc:Function name="parameter">
<ogc:Literal>outputHeight</ogc:Literal>
<ogc:Function name="env">
<ogc:Literal>wms_height</ogc:Literal>
</ogc:Function>
</ogc:Function>
</ogc:Function>
</Transformation>
<Rule>
<RasterSymbolizer>
<!-- specify geometry attribute of input to pass validation -->
<Geometry><ogc:PropertyName>geom</ogc:PropertyName></Geometry>
<Opacity>0.8</Opacity>
<ColorMap type="ramp" >
<ColorMapEntry color="#FF0000" quantity="0" label="0" opacity="0" />
<ColorMapEntry color="#EBFBFF" quantity="0.1" label="0.1" />
<ColorMapEntry color="#0000FF" quantity="300" label="300" />
</ColorMap>
</RasterSymbolizer>
</Rule>
</FeatureTypeStyle>
</UserStyle>
</NamedLayer>
</StyledLayerDescriptor>
这个 SLD 没有给出预期的结果,而且图层预览也非常缓慢。
我尝试改变scale
和/或maxObservationDistance
但我不确定什么是逻辑值。