Hi Edward,
Awesome, that did it. I didn't know you could have multiple
FeatureTypeStyles. Another little tidbit of knowledge.
Many thanks!
Jonathan
On 2 July 2013 13:09, Edward Mac Gillavry <[email protected]> wrote:
> Hi Jonathan,
>
> The approach to achieve the effect you are after is to create multiple
> <FeatureTypeStyle> elements, each with different <ogc:Filter> properties.
> This forces GeoServer to do another pass of the table and select another
> class of roads to be rendered. Here's a rough structure:
>
> <FeatureTypeStyle>
> <ogc:Filter>
> Other roads (casing)
> </ogc:Filter>
> <FeatureTypeStyle>
> <FeatureTypeStyle>
> <ogc:Filter>
> B-roads (casing)
> </ogc:Filter>
> </FeatureTypeStyle>
> <FeatureTypeStyle>
> <ogc:Filter>
> A-roads (casing)
> </ogc:Filter>
> </FeatureTypeStyle>
> <FeatureTypeStyle>
> <ogc:Filter>
> Other roads (fill)
> </ogc:Filter>
> <FeatureTypeStyle>
> <FeatureTypeStyle>
> <ogc:Filter>
> B-roads (fill)
> </ogc:Filter>
> </FeatureTypeStyle>
> <FeatureTypeStyle>
> <ogc:Filter>
> A-roads (fill)
> </ogc:Filter>
> </FeatureTypeStyle>
> <FeatureTypeStyle>
> <ogc:Filter>
> Motorways (casing)
> </ogc:Filter>
> </FeatureTypeStyle>
> <FeatureTypeStyle>
> <ogc:Filter>
> Motorways (fill)
> </ogc:Filter>
> </FeatureTypeStyle>
>
> Notice the different approach for the Motorways. This forces the Motorways
> to be rendered last, thus on top of all other roads for them to become
> genuine freeways (without crossing other roads). If you have some attribute
> to indicate a road to be in a tunnel or on a bridge, you can add more
> <FeatureTypeStyle> tags with more specific <ogc:Filter>s to the SLD.
>
> HTH
>
> Edward
> ------------------------------
> From: [email protected]
> Date: Tue, 2 Jul 2013 12:29:49 +0100
> To: [email protected]
> Subject: [Geoserver-users] Layer render order within a layer
>
>
> Hi List,
> I have a single dataset of road lines that are of different
> classifications and so need to be rendered differently. Because they're all
> in the same dataset they're using the same SLD.
> My problem is, that I want to determine which roads are on top of which
> other roads. As you can see in the attached, I want the red road on top of
> the white ones.
> How do I accomplish this within a single layer/SLD?
> I've tried changing the ordering of the items within the SLD but this has
> no effect.
>
> Or am I going to have to simply use different SLD's?
>
> Thanks,
> Jonathan
>
> This transmission is intended for the named addressee(s) only and may
> contain sensitive or protectively marked material up to RESTRICTED and
> should be handled accordingly. Unless you are the named addressee (or
> authorised to receive it for the addressee) you may not copy or use it, or
> disclose it to anyone else. If you have received this transmission in error
> please notify the sender immediately. All email traffic sent to or from us,
> including without limitation all GCSX traffic, may be subject to recording
> and/or monitoring in accordance with relevant legislation.
> ------------------------------------------------------------------------------
> This SF.net email is sponsored by Windows: Build for Windows Store.
> http://p.sf.net/sfu/windows-dev2dev
> _______________________________________________ Geoserver-users mailing
> list [email protected]
> https://lists.sourceforge.net/lists/listinfo/geoserver-users
>
--
This transmission is intended for the named addressee(s) only and may
contain sensitive or protectively marked material up to RESTRICTED and
should be handled accordingly. Unless you are the named addressee (or
authorised to receive it for the addressee) you may not copy or use it, or
disclose it to anyone else. If you have received this transmission in error
please notify the sender immediately. All email traffic sent to or from us,
including without limitation all GCSX traffic, may be subject to recording
and/or monitoring in accordance with relevant legislation.
------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:
Build for Windows Store.
http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users