|
From: Jody G. <jod...@gm...> - 2014-06-25 11:42:32
|
I don't think you did that correctly - you were trying to provide two expressions right - for different z-indexs? So keep using two expressions: stroke: [recode(highway, 'motorway', '#000000')], [recode(highway, 'motorway', '#4169E1')] Jody Garnett On Wed, Jun 25, 2014 at 8:33 PM, Mark Cupitt <mar...@gm...> wrote: > Hi Jody, > > FYI, I tried the recode function, it is excellent, however, it does not > reproduce this > > stroke: #000000, #4169E1; > > using .. > > stroke:[ > recode(highway, > 'motorway', '#000000, #4169E1' > )]; > > Which is sad .. that would be killer .. > > Cheers > Mark > > > > Regards > > Mark Cupitt > > "If we change the world, let it bear the mark of our intelligence" > > See me on Open StreetMap <https://www.openstreetmap.org/user/Mark_Cupitt> > > See me on LinkedIn <http://ph.linkedin.com/in/markcupitt> > > > *See me on StackExchange <http://gis.stackexchange.com/users/17846/mark-c>* > > > =============================================================================================== > The contents of this email are intended only for the individual(s) to whom > it is addressed and may contain > confidential or privileged information. If you are not the intended > recipient, you must not disclose, copy, distribute, > or use the contents of this email. If you have received this email in > error, please notify the sender immediately and > delete the email and any attachments. > =============================================================================================== > > > > On Wed, Jun 25, 2014 at 5:59 PM, Jody Garnett <jod...@gm...> > wrote: > >> I suppose I am just confused about the use of z-index there - I usually >> use a z-index 1 or 2 (and then only if needed based on funny overlapping - >> like simulating line casing, or ensuring that a polygon outline is drawn >> separately overtop of the fill). >> >> I recommend trying very simple examples like this and reviewing the SLD >> that is produced. >> >> Jody Garnett >> >> >> On Wed, Jun 25, 2014 at 2:42 PM, Mark Cupitt <mar...@gm...> >> wrote: >> >>> Hi Jody, in thinking through your remarks, in my last response would >>> this be a better approach to the example I gave? >>> >>> [landuse='forest'][@scale>60000][@scale<100000]{ >>> fill-size: 20px; >>> } >>> [landuse='forest'][@scale<60000]{ >>> fill-size: 30px; >>> } >>> [landuse='commercial'][@scale<1000000] { >>> z-index: 40; >>> stroke: #5F9EA0; >>> fill: #87CEFA, url(" >>> http://icons.markware.net/geoserver/icons/img/areas/commercial.png"); >>> stroke-width: 0.5px; >>> fill-opacity: 0.75; >>> label: [name]; >>> font-size: 10px; >>> font-fill: #000000; >>> } >>> >>> [landuse='forest']{ >>> z-index: 30; >>> stroke: #CBEBB6; >>> fill: #CBEBB6, url(" >>> http://icons.markware.net/geoserver/icons/img/areas/forest.png"); >>> } >>> >>> Regards >>> >>> Mark >>> >> >> > |