Hi Jody, I am using the z-index as follows

In the polygon styling:
water  z-index: 50;
forest z-index: 40;
national parks z-index: 30;

This should ensure that river polys are drawn over the top of forests and
both drawn over the top of National Parks

The docs to not specify any magnitudes for it, and it appears to be a way
of grouping styles within a feature type style and ordering the
featuretypestyle so the rendering is as required.

For roads, I am using the following CSS

  stroke: #000000, #3CB371;
  stroke-width: 5.0px, 3.0px;

which forces two draws of the line. the first at #0000 5px, then drawn
again with #3CB371 at 3px to give the thinner line with a  black casing.

I do use z-index on the roads to ensure that motorways are drawn on top of
trunks, which are drawn on top of primary's, which are drawn on top of
secondary's, etc

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 <jody.garn...@gmail.com>
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 <markcup...@gmail.com> 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
>>
>
>
------------------------------------------------------------------------------
Open source business process management suite built on Java and Eclipse
Turn processes into business applications with Bonita BPM Community Edition
Quickly connect people, data, and systems into organized workflows
Winner of BOSSIE, CODIE, OW2 and Gartner awards
http://p.sf.net/sfu/Bonitasoft
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to