Sunday, 10 January 2016

style - Classified contour-line visualization in SLD Geoserver


I have a problem with the Styling for the contour-lines. here is how I want to style them:



  1. 4 different classes with different display zoom MaxScaleDenominator.

  2. The interval is a variable (not fixed) based on user what to choose.

  3. most important is Rule number 4 that shows all the contour-lines with the elevation higher than 500, but the most important part is, I don't want to show all bands(all lines) just each 5 band.(leads us to render fewer lines on the map, that is why I used the IEEERemainder).


But simply it doesn't work with the tag PropertyIsGreaterThan but it works with the PropertyIsEqualTo tag, but this tag problem is, doesn't work with interval ex. 43.


Is there any solution to fix it or another approach for my purpose?




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">

CL

CL

CL


rule 1
CL (all)
40000


#006600
1





rule 2
CL (50)






value


50.0


0



value

50


200





120000


#8600b3
1




rule 3

CL (200)




value


200.0




200


500



150000



#3366ff
1




Rule 4
CL (500)





value


500.0



0




#ff0000
1










No comments:

Post a Comment

arcpy - Changing output name when exporting data driven pages to JPG?

Is there a way to save the output JPG, changing the output file name to the page name, instead of page number? I mean changing the script fo...