Thanks, Luca and David. Changing the SLD sounds like a good approach, and one that would not likely have come up with on my own (I've never played with SLDs, but that's about to change).

That's interesting, that a tile cache could be automatically invalidated when its style changes....

David

On 4/28/2011 6:00 AM, David Winslow wrote:
My first thought would be to create a VIEW in Postgres, joining your spatial information with the secondary information that you want to use for styling. Rather than configuring your actual spatial table in GeoServer, you would set GeoServer up to serve tiles from the view, which would automatically reflect updates to the styling information.

It's fairly simple from there to create an SLD which determines styling details based on feature attributes, and all map viewers would see updates immediately (apart from browser caching.) There are some basic examples of such data-driven styles in the "SLD Cookbook" section of the user manual.

The suggestion of regenerating SLDs when data changes is also a good one, especially if you don't want to run a postgres server. If you are using the GeoWebCache service embedded in GeoServer then your cache will automatically be invalidated when the style is updated, so you would be able to use cached tiles with minimal upkeep.

--
David Winslow
OpenGeo - http://opengeo.org/

On Wed, Apr 27, 2011 at 9:37 PM, Luca Morandini <[email protected] <mailto:[email protected]>> wrote:

    On 04/28/2011 02:59 AM, David Rush wrote:
    >
    > Any quick-start recommendations to get me running in the right
    > direction(s) would be much appreciated....

    Well, there are number of options... but if you're experienced in
    XML, you may try
    to change the styling that is defined in an SLD file (an XML file)
    rather than the
    Shapefile.

    It could work out as follows:
    1) A new file upload/web-service request comes along.
    2) Those new data are converted into an SLD style file (at every
    section's polygon
    is associated a symbol according to the new data).
    3) Using the ReST interface, the SLD file is uploaded and replaces
    the previous one.
    4) Every new request to GeoServer now uses the symbols based on
    new data.

    Regards,

    Luca Morandini
    http://www.lucamorandini.it


    
------------------------------------------------------------------------------
    WhatsUp Gold - Download Free Network Management Software
    The most intuitive, comprehensive, and cost-effective network
    management toolset available today.  Delivers lowest initial
    acquisition cost and overall TCO of any competing solution.
    http://p.sf.net/sfu/whatsupgold-sd
    _______________________________________________
    Geoserver-users mailing list
    [email protected]
    <mailto:[email protected]>
    https://lists.sourceforge.net/lists/listinfo/geoserver-users



------------------------------------------------------------------------------
WhatsUp Gold - Download Free Network Management Software
The most intuitive, comprehensive, and cost-effective network
management toolset available today.  Delivers lowest initial
acquisition cost and overall TCO of any competing solution.
http://p.sf.net/sfu/whatsupgold-sd


_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users
------------------------------------------------------------------------------
WhatsUp Gold - Download Free Network Management Software
The most intuitive, comprehensive, and cost-effective network 
management toolset available today.  Delivers lowest initial 
acquisition cost and overall TCO of any competing solution.
http://p.sf.net/sfu/whatsupgold-sd
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to