On Sat, Mar 29, 2014 at 10:04 AM, Diego M. <oo_o2...@hotmail.com> wrote:
> I have a PostGIS database that gets updated about once every two hours. Since
> Geoserver datastore do not do any caching, I was looking for service does
> that and i found GeoWebCache REST API
> http://geowebcache.org/docs/current/rest/seed.html
>
>  from what i understand, its the only option for caching updated (new) data.
> am i right? and is there any detailed example on how to apply it?
>
> I am using openlayers, with wms

Hi

Yes, you can use the GeoWebCache REST API, for example:

export GEOSERVER_URL=http://localhost:8080/geoserver
export GEOSERVER_USER=admin
export GEOSERVER_PWD=xyz
export LAYER=mylayer

curl -v -u $GEOSERVER_USER:$GEOSERVER_PWD -XPOST -H "Content-type:
text/xml" -d 
'<seedRequest><name>$LAYER</name><srs><number>900913</number></srs><zoomStart>1</zoomStart><zoomStop>20</zoomStop><format>image/png</format><type>truncate</type><threadCount>2</threadCount></seedRequest>'
 "$GEOSERVER_URL/gwc/rest/seed/$LAYER.xml"

regards
p

-- 
Paolo Corti
Geospatial software developer
web: http://www.paolocorti.net
twitter: @capooti
skype: capooti

------------------------------------------------------------------------------
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to