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
--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Caching-Updated-Data-tp5132000.html
Sent from the GeoServer - User mailing list archive at Nabble.com.
On Sat, Mar 29, 2014 at 10:04 AM, Diego M. <oo_O2_oo@anonymised.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
Thank you! i did initiate the seed tiles then i replaced wms with
gwc/service/wms in layer requesting in OpenLayers.
ow, how can i tell if it works? do the tiles get refreshed by themselves
without me refreshing the page or what?
and I use WMS to display my points on the map, is there any way to cache the
layer where it doesn't need to reload points whenever i navigate on the map?
--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Caching-Updated-Data-tp5132000p5133301.html
Sent from the GeoServer - User mailing list archive at Nabble.com.
Hi,
You can check your tile cache directory on the GeoServer to see what tiles have been pre-cached.
Tiles won’t be refreshed unless you force them to be.
Caching the points - I believe you might be able to use WMS-C for that.
Cheers,
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.
···
On 5 April 2014 18:18, Diego M. <oo_O2_oo@anonymised.com> wrote:
Thank you! i did initiate the seed tiles then i replaced wms with
gwc/service/wms in layer requesting in OpenLayers.
ow, how can i tell if it works? do the tiles get refreshed by themselves
without me refreshing the page or what?
and I use WMS to display my points on the map, is there any way to cache the
layer where it doesn’t need to reload points whenever i navigate on the map?
–
View this message in context: http://osgeo-org.1560.x6.nabble.com/Caching-Updated-Data-tp5132000p5133301.html
Sent from the GeoServer - User mailing list archive at Nabble.com.
Geoserver-users mailing list
Geoserver-users@anonymised.comsts.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users