Hi all,
Thanks for your comments and help this far.
One further thing, on top of using zoom levels, im also trying to
implement rule based vector styles, and when I validate the sld its
just throws up errors. Can I do the two things at the same time?
I have included below my (poor) sld code:
Thanks again!
Chris
<?xml version="1.0" encoding="ISO-8859-1"?>
<StyledLayerDescriptor version="1.0.0"
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"
xsi:schemaLocation="http://www.opengis.net/sld
http://schemas.opengis.net/sld/1.0.0/StyledLayerDescriptor.xsd">
<NamedLayer>
<Name>Default Point</Name>
<UserStyle>
<Title>Default point</Title>
<Abstract>A sample style that just prints out a 6px wide red
square</Abstract>
<FeatureTypeStyle>
<MinScaleDenominator>100000000</MinScaleDenominator>
<MaxScaleDenominator>200000000</MaxScaleDenominator>
<Rule>
<Name>Lowest Exposure</Name>
<Title>4</Title>
<ogc:Filter>
<ogc:PropertyIsEqualTo>
<ogc:PropertyName>ThematicKey</ogc:PropertyName>
<ogc:Literal>1</ogc:Literal>
</ogc:PropertyIsEqualTo>
</ogc:Filter>
<PolygonSymbolizer>
<Fill>
<CssParameter name="fill">#58FAF4</CssParameter>
</Fill>
<Stroke></Stroke>
</PolygonSymbolizer>
</Rule>
<Rule>
<Name>Upper Middle Exposure</Name>
<Title>3</Title>
<ogc:Filter>
<ogc:PropertyIsEqualTo>
<ogc:PropertyName>ThematicKey</ogc:PropertyName>
<ogc:Literal>2</ogc:Literal>
</ogc:PropertyIsEqualTo>
</ogc:Filter>
<PolygonSymbolizer>
<Fill>
<CssParameter name="fill">#2EFE2E</CssParameter>
</Fill>
<Stroke></Stroke>
</PolygonSymbolizer>
</Rule>
<Rule>
<Name>Lower Middle Exposure</Name>
<Title>2</Title>
<ogc:Filter>
<ogc:PropertyIsEqualTo>
<ogc:PropertyName>ThematicKey</ogc:PropertyName>
<ogc:Literal>3</ogc:Literal>
</ogc:PropertyIsEqualTo>
</ogc:Filter>
<PolygonSymbolizer>
<Fill>
<CssParameter name="fill">#FF8000</CssParameter>
</Fill>
<Stroke></Stroke>
</PolygonSymbolizer>
</Rule>
<Rule>
<Name>Highest Exposure</Name>
<Title>1</Title>
<ogc:Filter>
<ogc:PropertyIsEqualTo>
<ogc:PropertyName>ThematicKey</ogc:PropertyName>
<ogc:Literal>4</ogc:Literal>
</ogc:PropertyIsEqualTo>
</ogc:Filter>
<PolygonSymbolizer>
<Fill>
<CssParameter name="fill">#DF0101</CssParameter>
</Fill>
<Stroke></Stroke>
</PolygonSymbolizer>
</Rule>
</FeatureTypeStyle>
</UserStyle>
</NamedLayer>
</StyledLayerDescriptor>
-----Original Message-----
From: [email protected] [mailto:[email protected]]
Sent: 13 October 2010 02:36
To: Jones, Christopher
Cc: [email protected]
Subject: Re: [Geoserver-users] Vector Layers - Zoom Pyramid
The counterpart of pyramids for raster are generalizations for vector
data, reducing the number of vertices for a geometry.
Look here
http://docs.geoserver.org/stable/en/user/data/featurepregen.html
and
http://docs.geoserver.org/stable/en/user/tutorials/feature-pregeneralize
d/feature-pregeneralized_tutorial.html
The standard configuration is an XML document, but I personally use a
plugin fetching config data from the database.
In case of further questions, please ask.
Cheers
Christian
Quoting "Jones, Christopher" <[email protected]>:
>
>
>
> Hi all,
>
>
>
> Probably a stupid question but I cant seem to find any answers to
this.
>
>
>
> I have three vector layers State, County and Zip, and would like to
> display them at different zoom levels. Beyond the Image Pyramid
plugin
> which is for raster data, is this possible?
>
>
>
> Thanks in advance
>
>
>
> Chris
>
>
>
> IMPORTANT - This email and the information that it contains may be
> confidential, legally privileged and protected by law. Access by the
> intended recipient only is authorised. Any liability (in negligence
> or otherwise) arising from any third party acting, or refraining
> from acting, on any information contained in this email is hereby
> excluded. If you are not the intended recipient, please notify
> [email protected] immediately then delete it and do
> not disclose the contents to any other person, use it for any
> purpose or store or copy the information in any medium.
>
> Copyright in this email and attachments created by us belong to
> Amlin plc and/or one or more of its subsidiaries (Amlin Group). The
> author also asserts the right to be identified as such and object to
> any misuse.
>
> The Amlin Group prohibits and takes steps to prevent its email
> systems from being used to view, store or transmit offensive,
> obscene or discriminatory material. If this message contains
> inappropriate material please report it immediately to
> [email protected].
>
> The Amlin Group records, monitors and may inspect messages that use
> its telecoms systems in order to protect its information, interests
> and reputation. Any message sent by you to or within the Amlin Group
> may therefore be viewed and may be acted upon.
>
> Of the companies within the Amlin Group, Amlin Underwriting Limited,
> Amlin Underwriting Services Limited, Amlin UK Limited and Amlin
> Plus Limited are authorised and regulated by the Financial Services
> Authority.
>
> This email has been sent by a member of staff of one or more of the
> following Amlin Group companies:
>
> Amlin plc. Registered in England and Wales no. 2854310
> Amlin Underwriting Limited. Registered in England and Wales no.
2323018
> Amlin Underwriting Services Limited. Registered in England and Wales
> no. 422615
> Amlin UK Limited. Registered in England and Wales no. 2739220
> Amlin Plus Limited. Registered in England and Wales no. 4729659
>
> Registered Offices: St Helen's, 1 Undershaft, London EC3A 8ND, United
Kingdom
>
> Amlin plc switchboard: 020 7746 1000
> Web Site: http://www.amlin.com
----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.
IMPORTANT - This email and the information that it contains may be
confidential, legally privileged and protected by law. Access by the intended
recipient only is authorised. Any liability (in negligence or otherwise)
arising from any third party acting, or refraining from acting, on any
information contained in this email is hereby excluded. If you are not the
intended recipient, please notify [email protected] immediately
then delete it and do not disclose the contents to any other person, use it for
any purpose or store or copy the information in any medium.
Copyright in this email and attachments created by us belong to Amlin plc
and/or one or more of its subsidiaries (Amlin Group). The author also asserts
the right to be identified as such and object to any misuse.
The Amlin Group prohibits and takes steps to prevent its email systems from
being used to view, store or transmit offensive, obscene or discriminatory
material. If this message contains inappropriate material please report it
immediately to [email protected].
The Amlin Group records, monitors and may inspect messages that use its
telecoms systems in order to protect its information, interests and reputation.
Any message sent by you to or within the Amlin Group may therefore be viewed
and may be acted upon.
Of the companies within the Amlin Group, Amlin Underwriting Limited, Amlin
Underwriting Services Limited, Amlin UK Limited and Amlin Plus Limited are
authorised and regulated by the Financial Services Authority.
This email has been sent by a member of staff of one or more of the following
Amlin Group companies:
Amlin plc. Registered in England and Wales no. 2854310
Amlin Underwriting Limited. Registered in England and Wales no. 2323018
Amlin Underwriting Services Limited. Registered in England and Wales no. 422615
Amlin UK Limited. Registered in England and Wales no. 2739220
Amlin Plus Limited. Registered in England and Wales no. 4729659
Registered Offices: St Helen's, 1 Undershaft, London EC3A 8ND, United Kingdom
Amlin plc switchboard: 020 7746 1000
Web Site: http://www.amlin.com
------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3.
Spend less time writing and rewriting code and more time creating great
experiences on the web. Be a part of the beta today.
http://p.sf.net/sfu/beautyoftheweb
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users