Hi guys,
its possible to use view parameters (viewparams) in conjunction with geowebcache (gwc) or it impossible ??
im using a layer from SQL view and took parameters dynamically ...
--
Ariel Falduto
afalduto@anonymised.com
Hi guys,
its possible to use view parameters (viewparams) in conjunction with geowebcache (gwc) or it impossible ??
im using a layer from SQL view and took parameters dynamically ...
--
Ariel Falduto
afalduto@anonymised.com
If I understand your question, you need to explicitly enable this in your
GWC instance in order to allow GWC to cache alternate parameters. You do
this by using the stringParameterFilter, e.g.
<wmsUrl><string>http://192.168.100.5:8080/geoserver/wms</string></wmsUrl>
<parameterFilters>
<regexParameterFilter>
<key>format_options</key>
<defaultValue></defaultValue>
<regex>dpi:*</regex>
</regexParameterFilter>
</parameterFilters>
<wmsLayers>contours_2_all</wmsLayers>
You can check out the document on geowebcache.org for more.
Best,
Steve
Stephen Mather
Geographic Information Systems (GIS) Manager
(216) 635-3243
svm@anonymised.com
clevelandmetroparks.com
-----Original Message-----
From: Ariel Falduto [mailto:afalduto@anonymised.com]
Sent: Friday, June 15, 2012 5:36 PM
To: geoserver-users@lists.sourceforge.net
Subject: [Geoserver-users] viewparams + gwc
Hi guys,
its possible to use view parameters (viewparams) in conjunction with
geowebcache (gwc) or it impossible ??
im using a layer from SQL view and took parameters dynamically ...
--
Ariel Falduto
afalduto@anonymised.com
----------------------------------------------------------------------------
--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users
Woow, thks Stephen !!
I will check tomorrow ... And i give some feedback !!
--
Ariel Falduto
afalduto@anonymised.com
On 15/06/2012, at 23:36, "Stephen V. Mather"
<svm@anonymised.com> wrote:
If I understand your question, you need to explicitly enable this in your
GWC instance in order to allow GWC to cache alternate parameters. You do
this by using the stringParameterFilter, e.g.<wmsUrl><string>http://192.168.100.5:8080/geoserver/wms</string></wmsUrl>
<parameterFilters>
<regexParameterFilter>
<key>format_options</key>
<defaultValue></defaultValue>
<regex>dpi:*</regex>
</regexParameterFilter>
</parameterFilters>
<wmsLayers>contours_2_all</wmsLayers>You can check out the document on geowebcache.org for more.
Best,
SteveStephen Mather
Geographic Information Systems (GIS) Manager
(216) 635-3243
svm@anonymised.com
clevelandmetroparks.com-----Original Message-----
From: Ariel Falduto [mailto:afalduto@anonymised.com]
Sent: Friday, June 15, 2012 5:36 PM
To: geoserver-users@lists.sourceforge.net
Subject: [Geoserver-users] viewparams + gwcHi guys,
its possible to use view parameters (viewparams) in conjunction with
geowebcache (gwc) or it impossible ??im using a layer from SQL view and took parameters dynamically ...
--
Ariel Falduto
afalduto@anonymised.com----------------------------------------------------------------------------
--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users
Yheaaa, Stephen works awesome !
take a look a snippet of my gwc config ...
<wmsLayer>
<name>ns:foo</name>
<mimeFormats>
<string>image/png</string>
</mimeFormats>
<wmsUrl>
<string>http://localhost:8080/geoserver/wms</string>
</wmsUrl>
<parameterFilters>
<regexParameterFilter>
<key>viewparams</key>
<defaultValue></defaultValue>
<regex>.*</regex>
</regexParameterFilter>
</parameterFilters>
</wmsLayer>
but, one more question ... how gwc "cache" works with this "special" parameters ??
gwc generate a new image for each request or internally he stores a touple of "parameters" -> "image" and according that returns one o other ?
cos' if viewparams change i will "logical" to create a new image for the new params ... it understands ?
thks !
--
Ariel Falduto
afalduto@anonymised.com
On Jun 15, 2012, at 11:36 PM, Stephen V. Mather wrote:
If I understand your question, you need to explicitly enable this in your
GWC instance in order to allow GWC to cache alternate parameters. You do
this by using the stringParameterFilter, e.g.<wmsUrl><string>http://192.168.100.5:8080/geoserver/wms</string></wmsUrl>
<parameterFilters>
<regexParameterFilter>
<key>format_options</key>
<defaultValue></defaultValue>
<regex>dpi:*</regex>
</regexParameterFilter>
</parameterFilters>
<wmsLayers>contours_2_all</wmsLayers>You can check out the document on geowebcache.org for more.
Best,
SteveStephen Mather
Geographic Information Systems (GIS) Manager
(216) 635-3243
svm@anonymised.com
clevelandmetroparks.com-----Original Message-----
From: Ariel Falduto [mailto:afalduto@anonymised.com]
Sent: Friday, June 15, 2012 5:36 PM
To: geoserver-users@lists.sourceforge.net
Subject: [Geoserver-users] viewparams + gwcHi guys,
its possible to use view parameters (viewparams) in conjunction with
geowebcache (gwc) or it impossible ??im using a layer from SQL view and took parameters dynamically ...
--
Ariel Falduto
afalduto@anonymised.com----------------------------------------------------------------------------
--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users
On Sat, Jun 16, 2012 at 8:54 PM, Ariel Falduto <afalduto@anonymised.com> wrote:
but, one more question … how gwc “cache” works with this “special” parameters ??
gwc generate a new image for each request or internally he stores a touple of “parameters” → “image” and according that returns one o other ?
cos’ if viewparams change i will “logical” to create a new image for the new params … it understands ?
It will create a separate tile cache hierarchy for each of the viewparams values it encounters,
pretty much as if each new value defines a new layer (because cached tile wise, it does).
Which means the disk usage can grow pretty much in an uncontrolled way if your service
is exposed to the web and you’re not using the disk quota subsystem.
Cheers
Andrea
–
Ing. Andrea Aime
GeoSolutions S.A.S.
Tech lead
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 962313
mob: +39 339 8844549
http://www.geo-solutions.it
http://geo-solutions.blogspot.com/
http://www.youtube.com/user/GeoSolutionsIT
http://www.linkedin.com/in/andreaaime
http://twitter.com/geowolf