Creating a dynamic contour map — OpenGeo Suite 4.8 User Manual

The same contour map can be created dynamically with SLD and rendering transformations. The goal is to apply a style to the raster layer such that the contour lines are generated directly, without the need to create a separate vector layer. The data has already been loaded, so all that needs to be done is to craft a style for the raster layer that employs a rendering transformation. We’ll use the style created in the previous section here. Adding a rendering transformation is done with the transform mapping. The transformation name is ras:Contour, the name of the WPS process. From there, the other arguments to the process are supplied as parameters as before, except that no output format is required, and the band is implied as there is only one to choose from: Add this to the YSLD created in the previous section, and then apply the style directly to the raster layer. Adding a rendering transformation is done with the <,Transformation>, tag. The transformation name is ras:Contour, the name of the WPS process. From there, the other arguments to the process are supplied as parameters as before, except that no output format is required, and the band is implied as there is only one to choose from: Add this to the SLD created in the previous section, and then apply the style directly to the raster layer. Using Composer, load this style into the layer on the style/view page for that layer (the original raster layer, not the contour layer), and click Save. This map looks identical to the statically generated one. The advantage here is that a secondary vector layer was never created. This map is generated dynamically based on the source raster data, the built-in contour process, and styling. Source.


Яндекс.Метрика Рейтинг@Mail.ru Free Web Counter
page counter
Last Modified: April 18, 2016 @ 8:07 pm