[Geoserver-users] GeoServer don't caching my map

Hi all, I'm a newbie,
(I searched in the forum for similar questions but for now I don't have
found)

I'm using GeoServer 2.6.1 Web Archive application (war) and it works right,
but it doesn't do the caching of the map, at every reload of the web page it
reloads all the map.

I tried to change a lot of settings in the layers and caching pages, but the
result is the same

I'm working with tomcat 7, java jre7 with jdk1.7.0_51

What is it wrong?

thanks for all

--
View this message in context: http://osgeo-org.1560.x6.nabble.com/GeoServer-don-t-caching-my-map-tp5175007.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

Hi,

What URL are you using to request the maps? If you are using the integrated GeoWebCache, you need to ensure that you change the wms getMap call to include the gwc/service/ section to generate/use the cached tiles.

Chris Snider
Senior Software Engineer
Intelligent Software Solutions, Inc.

-----Original Message-----
From: civieroc [mailto:civieroc@anonymised.com]
Sent: Wednesday, November 26, 2014 3:44 AM
To: geoserver-users@lists.sourceforge.net
Subject: [Geoserver-users] GeoServer don't caching my map

Hi all, I'm a newbie,
(I searched in the forum for similar questions but for now I don't have
found)

I'm using GeoServer 2.6.1 Web Archive application (war) and it works right, but it doesn't do the caching of the map, at every reload of the web page it reloads all the map.

I tried to change a lot of settings in the layers and caching pages, but the result is the same

I'm working with tomcat 7, java jre7 with jdk1.7.0_51

What is it wrong?

thanks for all

--
View this message in context: http://osgeo-org.1560.x6.nabble.com/GeoServer-don-t-caching-my-map-tp5175007.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server from Actuate! Instantly Supercharge Your Business Reports and Dashboards with Interactivity, Sharing, Native Excel Exports, App Integration & more Get technology previously reserved for billion-dollar corporations, FREE http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Hi, here a sample of my URL (I hope it is correct):

https://avmwebapp:8443/geoserver/actv/wms?service=WMS&version=1.1.0&request=GetMap&layers=actv:venice_italy.osm-polygon&styles=&bbox=1294534.4029627747,5640906.164015926,1417653.6707245426,5750113.346629103&width=512&height=454&srs=EPSG:3857&format=application/openlayers

I'm using the integrated GeoWebCache and I don't understand this (sorry ):

"you need to ensure that you change the wms getMap call to include the
gwc/service/ section to generate/use the cached tiles"

can you explain me more, or give me a step by step example?

thankyou so much

--
View this message in context: http://osgeo-org.1560.x6.nabble.com/GeoServer-don-t-caching-my-map-tp5175007p5175252.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

Hi,
You'll want to take a look at this page which should help:
http://docs.geoserver.org/stable/en/user/geowebcache/using.html#direct-integration-with-geoserver-wms

Basically you need to ensure a few things are in the URL (including tiled=true which you seem to be missing).
When that's done requests should hopefully be cached as required.
Cheers,
Jonathan

-----Original Message-----
From: civieroc [mailto:civieroc@anonymised.com]
Sent: Thursday, November 27, 2014 10:57 AM
To: geoserver-users@lists.sourceforge.net
Subject: Re: [Geoserver-users] GeoServer don't caching my map

Hi, here a sample of my URL (I hope it is correct):

https://avmwebapp:8443/geoserver/actv/wms?service=WMS&version=1.1.0&request=GetMap&layers=actv:venice_italy.osm-polygon&styles=&bbox=1294534.4029627747,5640906.164015926,1417653.6707245426,5750113.346629103&width=512&height=454&srs=EPSG:3857&format=application/openlayers

I'm using the integrated GeoWebCache and I don't understand this (sorry ):

"you need to ensure that you change the wms getMap call to include the gwc/service/ section to generate/use the cached tiles"

can you explain me more, or give me a step by step example?

thankyou so much

--
View this message in context: http://osgeo-org.1560.x6.nabble.com/GeoServer-don-t-caching-my-map-tp5175007p5175252.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server from Actuate! Instantly Supercharge Your Business Reports and Dashboards with Interactivity, Sharing, Native Excel Exports, App Integration & more Get technology previously reserved for billion-dollar corporations, FREE http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

This message has been scanned for viruses by MailControl - www.mailcontrol.com

Click https://www.mailcontrol.com/sr/uknSF4mWPhHGX2PQPOmvUoRq5N+0kMbN5lHDTGWJClWg6BAc0dEXZA23dlpbsKS8IFhSkzh7n+isCq9I+zBdpQ== to report this email as spam.

________________________________

HR Wallingford and its subsidiaries uses faxes and emails for confidential and legally privileged business communications. They do not of themselves create legal commitments. Disclosure to parties other than addressees requires our specific consent. We are not liable for unauthorised disclosures nor reliance upon them.
If you have received this message in error please advise us immediately and destroy all copies of it.

HR Wallingford Limited
Howbery Park, Wallingford, Oxfordshire, OX10 8BA, United Kingdom
Registered in England No. 02562099

________________________________

Ok, I read, I try to change the settings, but a question:

Where I can set the TILED=true ? I don't find the place where setting it.

This is my configuration now:
(Caching Defaults)
<http://osgeo-org.1560.x6.nabble.com/file/n5175300/Caching_Defaults.jpg&gt;

(and Tile layers)
<http://osgeo-org.1560.x6.nabble.com/file/n5175300/tile_layers.jpg&gt;

Many thanks!

--
View this message in context: http://osgeo-org.1560.x6.nabble.com/GeoServer-don-t-caching-my-map-tp5175007p5175300.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

Hi,
It goes in the URL.
Previously you had:

https://avmwebapp:8443/geoserver/actv/wms?service=WMS&version=1.1.0&request=GetMap&layers=actv:venice_italy.osm-polygon&styles=&bbox=1294534.4029627747,5640906.164015926,1417653.6707245426,5750113.346629103&width=512&height=454&srs=EPSG:3857&format=application/openlayers

So you need to make that:
https://avmwebapp:8443/geoserver/actv/wms?service=WMS&version=1.1.0&request=GetMap&layers=actv:venice_italy.osm-polygon&styles=&bbox=1294534.4029627747,5640906.164015926,1417653.6707245426,5750113.346629103&width=512&height=454&srs=EPSG:3857&format=application/openlayers&tiled=true

You may also need to change a few other things per that page, but that should get you on the right course.
Cheers,
Jonathan

-----Original Message-----
From: civieroc [mailto:civieroc@anonymised.com]
Sent: Thursday, November 27, 2014 2:41 PM
To: geoserver-users@lists.sourceforge.net
Subject: Re: [Geoserver-users] GeoServer don't caching my map

Ok, I read, I try to change the settings, but a question:

Where I can set the TILED=true ? I don't find the place where setting it.

This is my configuration now:
(Caching Defaults)
<http://osgeo-org.1560.x6.nabble.com/file/n5175300/Caching_Defaults.jpg&gt;

(and Tile layers)
<http://osgeo-org.1560.x6.nabble.com/file/n5175300/tile_layers.jpg&gt;

Many thanks!

--
View this message in context: http://osgeo-org.1560.x6.nabble.com/GeoServer-don-t-caching-my-map-tp5175007p5175300.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server from Actuate! Instantly Supercharge Your Business Reports and Dashboards with Interactivity, Sharing, Native Excel Exports, App Integration & more Get technology previously reserved for billion-dollar corporations, FREE http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

This message has been scanned for viruses by MailControl - www.mailcontrol.com

Click https://www.mailcontrol.com/sr/3emZ2nPZkdvGX2PQPOmvUgEBY15Clgt1VF!zC3twNcJaU59eV3FkWQ23dlpbsKS8IFhSkzh7n+iNI5tH4SJ!Mg== to report this email as spam.

________________________________

HR Wallingford and its subsidiaries uses faxes and emails for confidential and legally privileged business communications. They do not of themselves create legal commitments. Disclosure to parties other than addressees requires our specific consent. We are not liable for unauthorised disclosures nor reliance upon them.
If you have received this message in error please advise us immediately and destroy all copies of it.

HR Wallingford Limited
Howbery Park, Wallingford, Oxfordshire, OX10 8BA, United Kingdom
Registered in England No. 02562099

________________________________

If you are using openlayers as your client, then you need to add tiled:true to the options in your layer.WMS constructor eg
layer - new OpenLayers.Layer.WMS(name,url, { layers: layerName,tiled:true,transparent:true},{ etc } );

Notice: This email and any attachments are confidential.
If received in error please destroy and immediately notify us.
Do not copy or disclose the contents.

tiled=true will be a query param on your wms request URL

···

On Thu, Nov 27, 2014 at 8:41 AM, civieroc <civieroc@anonymised.com> wrote:

Ok, I read, I try to change the settings, but a question:

Where I can set the TILED=true ? I don’t find the place where setting it.

This is my configuration now:
(Caching Defaults)
<http://osgeo-org.1560.x6.nabble.com/file/n5175300/Caching_Defaults.jpg>

(and Tile layers)
<http://osgeo-org.1560.x6.nabble.com/file/n5175300/tile_layers.jpg>

Many thanks!


View this message in context: http://osgeo-org.1560.x6.nabble.com/GeoServer-don-t-caching-my-map-tp5175007p5175300.html

Sent from the GeoServer - User mailing list archive at Nabble.com.


Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk


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

Hello thanks at all!

In this time I understood a little the problem...

Here my actual configuration:
(I changed from https://AVMWEBAPP:8443/geoserver/actv/wms to
https://AVMWEBAPP:8443/geoserver/actv/gwc/service/wms)

clientConfiguration.mapLayerProperties.type = TileWMS
clientConfiguration.mapLayerProperties.url=
https://AVMWEBAPP:8443/geoserver/actv/gwc/service/wms
clientConfiguration.mapLayerProperties.LAYERS = actv_map
clientConfiguration.mapLayerProperties.VERSION = 1.3
clientConfiguration.mapLayerProperties.SRS = EPSG:3857
clientConfiguration.mapLayerProperties.TILED = true
clientConfiguration.mapLayerProperties.BBOX = 717794,4967342,809793,5094206
clientConfiguration.mapLayerProperties.WIDTH = 512
clientConfiguration.mapLayerProperties.HEIGHT = 421
clientConfiguration.mapLayerProperties.FORMAT = image/png

and here my actual real url:

https://avmwebapp:8443/geoserver/actv/gwc/service/wms?SERVICE=WMS&VERSION=1.3&REQUEST=GetMap&FORMAT=image%2Fpng&TRANSPARENT=true&LAYERS=actv_map&SRS=EPSG%3A3857&BBOX=1372197.5317754857%2C5691806.874227364%2C1374643.5166806113%2C5694252.859132489&WIDTH=256&HEIGHT=256&TILED=https%3A%2F%2FAVMWEBAPP%3A8443%2Fgeoserver%2Factv%2Fgwc%2Fservice%2Fwms&CRS=EPSG%3A3857&STYLES=

what is it wrong? I understand that in the url must be tiled=true but how I
can write it?
for me already there's the right setting:

clientConfiguration.mapLayerProperties.TILED = true

Hope you can help me! many thanks!!

--
View this message in context: http://osgeo-org.1560.x6.nabble.com/GeoServer-don-t-caching-my-map-tp5175007p5176623.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

Hi,
This is more a question for whatever your client application is.

However, to add it all you need to do is... well add it.

https://avmwebapp:8443/geoserver/actv/gwc/service/wms?SERVICE=WMS&VERSION=1.3&REQUEST=GetMap&FORMAT=image%2Fpng&TRANSPARENT=true&LAYERS=actv_map&SRS=EPSG%3A3857&BBOX=1372197.5317754857%2C5691806.874227364%2C1374643.5166806113%2C5694252.859132489&WIDTH=256&HEIGHT=256&TILED=https%3A%2F%2FAVMWEBAPP%3A8443%2Fgeoserver%2Factv%2Fgwc%2Fservice%2Fwms&CRS=EPSG%3A3857&STYLES=

becomes

https://avmwebapp:8443/geoserver/actv/gwc/service/wms?SERVICE=WMS&VERSION=1.3&REQUEST=GetMap&FORMAT=image%2Fpng&TRANSPARENT=true&LAYERS=actv_map&SRS=EPSG%3A3857&BBOX=1372197.5317754857%2C5691806.874227364%2C1374643.5166806113%2C5694252.859132489&WIDTH=256&HEIGHT=256&TILED=https%3A%2F%2FAVMWEBAPP%3A8443%2Fgeoserver%2Factv%2Fgwc%2Fservice%2Fwms&CRS=EPSG%3A3857&STYLES=&tiled=true

Although chances are you're going to have to update the base URL somewhere, so maybe you need:

https://AVMWEBAPP:8443/geoserver/actv/wms?tiled=true

Cheers,
Jonathan

-----Original Message-----
From: civieroc [mailto:civieroc@anonymised.com]
Sent: Friday, December 05, 2014 11:24 AM
To: geoserver-users@lists.sourceforge.net
Subject: Re: [Geoserver-users] GeoServer don't caching my map

Hello thanks at all!

In this time I understood a little the problem...

Here my actual configuration:
(I changed from https://AVMWEBAPP:8443/geoserver/actv/wms to
https://AVMWEBAPP:8443/geoserver/actv/gwc/service/wms)

clientConfiguration.mapLayerProperties.type = TileWMS clientConfiguration.mapLayerProperties.url=
https://AVMWEBAPP:8443/geoserver/actv/gwc/service/wms
clientConfiguration.mapLayerProperties.LAYERS = actv_map clientConfiguration.mapLayerProperties.VERSION = 1.3 clientConfiguration.mapLayerProperties.SRS = EPSG:3857 clientConfiguration.mapLayerProperties.TILED = true clientConfiguration.mapLayerProperties.BBOX = 717794,4967342,809793,5094206 clientConfiguration.mapLayerProperties.WIDTH = 512 clientConfiguration.mapLayerProperties.HEIGHT = 421 clientConfiguration.mapLayerProperties.FORMAT = image/png

and here my actual real url:

https://avmwebapp:8443/geoserver/actv/gwc/service/wms?SERVICE=WMS&VERSION=1.3&REQUEST=GetMap&FORMAT=image%2Fpng&TRANSPARENT=true&LAYERS=actv_map&SRS=EPSG%3A3857&BBOX=1372197.5317754857%2C5691806.874227364%2C1374643.5166806113%2C5694252.859132489&WIDTH=256&HEIGHT=256&TILED=https%3A%2F%2FAVMWEBAPP%3A8443%2Fgeoserver%2Factv%2Fgwc%2Fservice%2Fwms&CRS=EPSG%3A3857&STYLES=

what is it wrong? I understand that in the url must be tiled=true but how I can write it?
for me already there's the right setting:

clientConfiguration.mapLayerProperties.TILED = true

Hope you can help me! many thanks!!

--
View this message in context: http://osgeo-org.1560.x6.nabble.com/GeoServer-don-t-caching-my-map-tp5175007p5176623.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server from Actuate! Instantly Supercharge Your Business Reports and Dashboards with Interactivity, Sharing, Native Excel Exports, App Integration & more Get technology previously reserved for billion-dollar corporations, FREE http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

This message has been scanned for viruses by MailControl - www.mailcontrol.com

Click https://www.mailcontrol.com/sr/g0S7VPr5XFPGX2PQPOmvUjg7ce8j6mWJtHsRIfpcF8sZCiJ0ItW4aloT4ILRgIFHFliMNK3Y9!jX0F9OzBqmnw== to report this email as spam.

________________________________

HR Wallingford and its subsidiaries uses faxes and emails for confidential and legally privileged business communications. They do not of themselves create legal commitments. Disclosure to parties other than addressees requires our specific consent. We are not liable for unauthorised disclosures nor reliance upon them.
If you have received this message in error please advise us immediately and destroy all copies of it.

HR Wallingford Limited
Howbery Park, Wallingford, Oxfordshire, OX10 8BA, United Kingdom
Registered in England No. 02562099

________________________________

Hi!!

This is my actual url:

https://avmwebapp:8443/geoserver/actv/wms?SERVICE=WMS&VERSION=1.3&REQUEST=GetMap&FORMAT=image%2Fpng&TRANSPARENT=true&LAYERS=actv_map&SRS=EPSG%3A4326&BBOX=1369751.5468703583%2C5696698.844037615%2C1372197.5317754839%2C5699144.82894274&WIDTH=256&HEIGHT=256&TILED=true&CRS=EPSG%3A3857&STYLES=

Now I have Tiled=true!!
(at the end of url...: &TILED=true&CRS=EPSG%3A3857&STYLES=)

But it doesn't work...

I tried also replacing wms? in the url with gwc/service/wms? but the result
is the same..

I discovered that if I use only the line layer, it does the cache, when I
use the layer group with the polygon layer, It doesn't do the cache...

I controlled but I haven't seen particular differences from the two layers!

--
View this message in context: http://osgeo-org.1560.x6.nabble.com/GeoServer-don-t-caching-my-map-tp5175007p5177393.html
Sent from the GeoServer - User mailing list archive at Nabble.com.