FAO-SID / GSOCmap-web-services

0 stars 0 forks source link

Configure tile caching #10

Closed mauriciopasquier closed 6 years ago

mauriciopasquier commented 6 years ago

For reference, I created a gridset with tile size based on GSOCmap layer (recommended 512 x 512) so it can use the cache. When trying to add this gridset to defaults, I get this error:

Loading quota store failed, the disk quota subsystem is disabled, please re-configure: Could not open JDBC Connection for transaction; nested exception is org.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (Database may be already in use: Locked by another process. Possible solutions: close all other connection(s); use the server mode [90020-119])"

midraed commented 6 years ago

solved

mauriciopasquier commented 6 years ago

Cache it's working but the tiles are not served from it.

Besides, at seeding we hit this bug: https://gis.stackexchange.com/a/264544

mauriciopasquier commented 6 years ago

Another bug: it seems geowebcache can't read correctly a layer name with dots. This link to 1.2.0 is reported as "Unknown layer GSOC:GSOCmapV1.2"

mauriciopasquier commented 6 years ago

Done! I had to:

curl -u "user:password" -H "Content-type: text/xml" -H "Accept: text/xml" -XPOST -i -d "<seedRequest> <name>GSOC:NE2</name> <type>seed</type> <gridSetId>EPSG:4326</gridSetId> <bounds> <coords> <double>-180</double> <double>-90</double> <double>180</double> <double>90</double> </coords> </bounds> <zoomStart>0</zoomStart> <zoomStop>10</zoomStop> <format>image/jpeg</format> <threadCount>02</threadCount> </seedRequest>" "http://localhost:8080/geoserver/gwc/rest/seed/GSOC:NE2.xml"

curl -u "user:password" -H "Content-type: text/xml" -H "Accept: text/xml" -XPOST -i -d "<seedRequest> <name>GSOC:GSOCmapV120</name> <type>seed</type> <gridSetId>EPSG:4326</gridSetId> <bounds> <coords> <double>-180</double> <double>-90</double> <double>180</double> <double>90</double> </coords> </bounds> <zoomStart>0</zoomStart> <zoomStop>10</zoomStop> <format>image/png8</format> <threadCount>02</threadCount> </seedRequest>" "http://localhost:8080/geoserver/gwc/rest/seed/GSOC:GSOCmapV120.xml"