Hi all,
I successfully styled vector data that is zoom dependent (e.g., elevation
contours that appear at certain zoom intervals), but I have yet to get any
styling rules to apply for raster data at given zoom levels. Here's my
YSLD that isn't working (there are no errors, but the zoom filter seems to
have no effect) currently:
title: 'Discrete Ramp'
feature-styles:
- name: raster
rules:
- name: raster
zoom: [6,max]
- symbolizers:
- raster:
opacity: 1.0
color-map:
type: intervals
entries:
- ['#08306b',1,-7000,'']
- ['#083f81',1,-6000,'']
- ['#084e98',1,-5000,'']
- ['#0f5ba4',1,-4000,'']
- ['#1967ad',1,-3000,'']
- ['#2273b6',1,-2000,'']
- ['#2e7ebc',1,-1000,'']
- ['#3a8ac2',1,-500,'']
- ['#4695c8',1,-400,'']
- ['#549fce',1,-300,'']
- ['#63a9d3',1,-200,'']
- ['#73b3d8',1,-100,'']
- ['#85bcdc',1,-90,'']
- ['#97c6e0',1,-80,'']
- ['#a6cee4',1,-70,'']
- ['#b4d4e9',1,-60,'']
- ['#c2daee',1,-50,'']
- ['#ccdff1',1,-40,'']
- ['#d5e5f4',1,-30,'']
- ['#ddebf7',1,-20,'']
- ['#e6f0fa',1,-10,'']
- ['#eff6fd',1,-5,'']
- ['#f7fbff',1,-2,'']
Is there something I'm missing? If this doesn't work with raster, is there
another filter construction I can use (or custom grid set) that will
achieve the same thing? Thanks very much all. I really appreciate the
feedback.
Best,
Todd
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Geoserver-users mailing list
Please make sure you read the following two resources before posting to this
list:
- Earning your support instead of buying it, but Ian Turton:
http://www.ianturton.com/talks/foss4g.html#/
- The GeoServer user list posting guidelines:
http://geoserver.org/comm/userlist-guidelines.html
If you want to request a feature or an improvement, also see this:
https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users