1) Should say on the front page of GeoServer? There's more than one possible explanation regarding the use of the temp directory.
2) GWC 1.0.x (used in GS 1.7.2) appends header information to the files. This mean that the files will not be readable to Photoshop unless you slice away the first 32 bytes. PS should really throw a fit about this being an invalid image. (Maybe they're leftovers, generated by your previous installation?)
3) " just altered the demo html for that image to call /geoserver/gwc/service/wms rather than /geoserver/wms"
This will generally not work. Even if OpenLayers is requesting 256x256 tiles, the resolutions (coordinate units / pixel) and the tile boundaries have to match up too. Surprised right clicking does not give you the answer, but I am assuming an OpenLayers client with only one layer. (With multiple layers you have to use Firebug or something similar.)
Always use the OpenLayers demos generated by http://localhost:8080geoserver/gwc/demo while debugging, and if those work then you can copy those resolutions and bounds to your client.
Hi Arne,
1)Maybe my download proceedure incorrect, I downloaded 1.7.2 war and put it in the webb apps folder of Tomcat.
2)The last one I tried was a 10Mb aerial photo, but files still 2Kb and empty if viewed in photoshop.
3) Pink tiles when I call it through the openlayers html. I just altered the demo html for that image to call /geoserver/gwc/service/wms rather than /geoserver/wms.When I right click and view image no error message is visible.
Thanks heaps
Chris
On Mon, Apr 6, 2009 at 8:07 PM, Arne Kepp <ak@anonymised.com <mailto:ak@anonymised.com>> wrote:
1) What version of GeoServer did you settle on? I'd expect 1.7.3
to revert to the temp directory, but not 1.7.2 (or 1.7.1 for that
matter)
2) 2kbyte is small, but not unusual, depends on the image format
and what it is showing.
3) Pink tiles:
- Is this while looking at the demos, or some other client you've
switched to using gwc/service/wms ?
- Right click on one pink tile and do view image, it's probably an
error message
-Arne
chris Wild wrote:
Hi Arne,
Followed your instructions and re installed, and some improvement.
Editing the WEB-INF/web.xml makes no difference unfortunately,
It won't pick up the old data directory (but no worries I can
reload data) and the seeding cache it is defaulting to
C:\Program Files\Apache Software Foundation\Tomcat
6.0\temp\geowebcache as before.
The demo displays the layers and seeds files to folders. The
image files are very small 2kb. Is that what would be expected
after caching a 3Mb image at 4 zoom levels.? When I request
the cached image with /geoserver/gwc/service/wms they are pink
screens.
Here is the log.
2009-04-06 13:46:56,656 INFO
[util.GetCapabilitiesConfiguration] - Loaded 24 layers from
http://localhost:8080/geoserver/wms?request=GetCapabilities
2009-04-06 13:46:56,656 INFO [layer.TileLayerDispatcher] -
Adding layers from
http://localhost:8080/geoserver/wms?request=GetCapabilities
2009-04-06 13:46:56,656 ERROR [file.FileCache] - Found no
usable default cache prefixes !!! Please set GEOWEBCACHE_CACHE_DIR
2009-04-06 13:46:56,656 WARN [file.FileCache] - Reverting to
java.io.tmpdir: C:\Program Files\Apache Software
Foundation\Tomcat 6.0\temp\geowebcache
2009-04-06 13:46:56,671 ERROR [util.XMLConfiguration] - Failed
to find geowebcache.xml
2009-04-06 13:46:56,671 ERROR [layer.TileLayerDispatcher] -
Unable to determine configuration directory.
2009-04-06 13:46:56,671 WARN [cache.CacheFactory] - Received
request for default cache, returning gwcCacheFile 2009-04-06
13:46:56,671 INFO [file.FileCache] - Succesfully opened
C:\Program Files\Apache Software Foundation\Tomcat
6.0\temp\geowebcache\tiger_poi for writing
2009-04-06 13:49:52,937 INFO [seed.SeedTask] - Thread 0 begins
seeding layer : topp:RectifyTRC_App_wgs
2009-04-06 13:49:53,984 INFO [seed.SeedTask] - Thread 0
completed (re)seeding level 0 for layer
topp:RectifyTRC_App_wgs (ca. 11.25%)
2009-04-06 13:49:54,171 INFO [seed.SeedTask] - Thread 0
completed (re)seeding level 1 for layer
topp:RectifyTRC_App_wgs (ca. 22.50%)
2009-04-06 13:49:54,500 INFO [seed.SeedTask] - Thread 0
completed (re)seeding level 2 for layer
topp:RectifyTRC_App_wgs (ca. 33.75%)
2009-04-06 13:49:54,906 INFO [seed.SeedTask] - Thread 0
completed (re)seeding level 3 for layer
topp:RectifyTRC_App_wgs (ca. 45.0%)
2009-04-06 13:49:55,062 INFO [seed.SeedTask] - Thread 0
completed (re)seeding level 4 for layer
topp:RectifyTRC_App_wgs (ca. 56.25%)
2009-04-06 13:49:55,062 INFO [seed.SeedTask] - Thread 0
completed (re)seeding layer topp:RectifyTRC_App_wgs after 45
tiles, of an estimated 5
Regards
Chris
On Fri, Apr 3, 2009 at 11:35 PM, Arne Kepp <ak@anonymised.com
<mailto:ak@anonymised.com> <mailto:ak@anonymised.com
<mailto:ak@anonymised.com>>> wrote:
Chris,
Please do not email me in three different ways about the same
thing. We do a *lot* of community support, and Andrea
definitely
deserves a medal for spoiling GeoServer users, but we cannot
always drop the things we are working on to help you. If
that is
insufficient then you should look into getting a support
contract,
see http://geoserver.org/display/GEOS/Commercial+Support
I don't know where
"C:\eclipse\workspace\geoserver_trunk\cite\confCiteWFSPostGIS"
came from, it could be that you are running an old, nightly
build
with an accidental commit. Then you say you changed
GEOSERVER_DATA_DIR, but the log below suggests you really set
GEOWEBCACHE_CACHE_DIR. It's really hard to help you when
there are
so many other things that could be messed up, so I think
you are
better off starting from the beginning.
Here is what I suggest you do:
1) Copy your data directory to c:\geoserver_data
2) Uninstall GeoServer, remove the servlet and any
leftovers from
the data directory, so that Tomcat's webapps directory no
longer
contains a directory named geoserver
3) Grab the GeoServer 1.7.2* WAR from SourceForge and
install it
4) Edit WEB-INF/web.xml , set GEOSERVER_DATA_DIR to
c:\geoserver_data. Do NOT set GEOWEBCACHE_CACHE_DIR or anything
like that
5) Restart Tomcat
6) Go to http://localhost:8080/geoserver/gwc/demo , test
7) Deal with the the proxy base url etc, once you are sure
everything else works locally.
Hope this helps,
-Arne
*: Normally I would say 1.7.3a, but it looks like you're
desperate
for solid ground. 1.7.3a contains a new version of GWC with two
observed bugs:
a) Doesn't look for geowebcache.xml in GEOSERVER_DATA_DIR\gwc ,
you have to put it in WEB-INF\classes
b) Potential resource leak in H2, only observed in intensive
(synthetic) multi-threaded tests so far
chris Wild wrote:
Hi Arne,
Thanks for your reply. Im new to open source and am
trying to
set up a mapping web service for our environmental
group. My
background is as a GIS user so its a steep learning
curve and
I really appreciate the help. I am happy to document my
journey and contribute it back as a user story.
I downloaded Geoserver 1.7.1 from the official site and
installed it in the webapps of tomcat so files are on
my hard
drive at this time till we move it to its website in
production. All seems to run ok till this gwc issue.
No I don't have a directory like
C:\eclipse\workspace\geoserver_trunk\cite\confCiteWFSPostGIS.
So changed it to C:\Program Files\Apache Software
Foundation\Tomcat 6.0\webapps\geoserver\data\data, put the
geowebcahe.xml there also.
But not seeding anywhere now.The other seeded layers
were all
blank.
The actual data layers are sitting in C:\Program
Files\Apache
Software Foundation\Tomcat
6.0\webapps\geoserver\data\data\shapefiles or
data\coverages. The demo finds them all.
I
Here is the log file.
2009-04-02 09:45:52,203 INFO
[util.GetCapabilitiesConfiguration] - Loaded 80 layers from
http://localhost:8080/geoserver/wms?request=GetCapabilities
2009-04-02 09:45:52,203 INFO [layer.TileLayerDispatcher] -
Adding layers from
http://localhost:8080/geoserver/wms?request=GetCapabilities
2009-04-02 09:45:52,218 INFO [file.FileCache] - Found
System
environment variable GEOWEBCACHE_CACHE_DIR set to
C:\Program
Files\Apache Software Foundation\Tomcat
6.0\webapps\geoserver\data\data, using it as the
default prefix.
2009-04-02 09:45:52,218 INFO [util.XMLConfiguration] -
Configuration directory set to: C:\Program Files\Apache
Software Foundation\Tomcat 6.0\webapps\geoserver\data\data
2009-04-02 09:45:52,265 ERROR [util.XMLConfiguration] -
cvc-elt.1: Cannot find the declaration of element
'gwcConfiguration'.
2009-04-02 09:45:52,265 INFO [util.XMLConfiguration] - Will
try to use configuration anyway.
2009-04-02 09:45:52,625 INFO [layer.TileLayerDispatcher] -
Adding layers from C:\Program Files\Apache Software
Foundation\Tomcat 6.0\webapps\geoserver\data\data
2009-04-02 09:48:30,781 WARN [cache.CacheFactory] -
Received
request for default cache, returning gwcCacheFile
2009-04-02 09:48:30,781 WARN [wms.WMSLayer] -
cachePrefix not
defined for layer topp:fencelinewgs, using default
prefix and
name instead: C:\Program Files\Apache Software
Foundation\Tomcat
6.0\webapps\geoserver\data\data\topp_fencelinewgs
2009-04-02 09:48:30,781 INFO [file.FileCache] - C:\Program
Files\Apache Software Foundation\Tomcat
6.0\webapps\geoserver\data\data\topp_fencelinewgs did not
exist, has been created recursively.
2009-04-02 09:48:55,703 INFO [rest.SeedTask] - Thread 0
begins
seeding layer : topp:fencelinewgs
Then stalls and nothing happens.
Regards
Chris
On Thu, Apr 2, 2009 at 7:25 AM, Arne Kepp
<ak@anonymised.com <mailto:ak@anonymised.com>
<mailto:ak@anonymised.com>
<mailto:ak@anonymised.com
<mailto:ak@anonymised.com>>> wrote:
Hi Chris,
not sure I follow. OpenLayers is not directly accessing
files on
your harddrive, that would be a security issue. The gwc
plugin in
GeoServer receives the WMS-C request, reads the file
from
disk and
streams it to the client.
The GEOSERVER_DATA_DIR value looks weird, like
something a
developer would use while testing. By default that
variable
should
be commented out anyway. Are you sure this is an
official
distribution of GeoServer 1.7.1?
I'm guessing you dont have a directory like
C:\eclipse\workspace\geoserver_trunk\cite\confCiteWFSPostGIS , so
gwc reverts to the temp directory instead. If you change
GEOSERVER_DATA_DIR to something that actually
exists, the tiles
should end up in %GEOSERVER_DATA_DIR%/gwc
Tiles you have already seeded can be moved.
Hope this helps,
-Arne
chris Wild wrote:
Hi,
Im using GeoServer 1.7.1 and its accompanying
GWC with
Tomcat
and Openlayers.
When i use the GWC demo to seed an image it
stores it in
C:\Program Files\Apache Software Foundation\Tomcat
6.0\temp\geowebcache.
The GeoServer web.xml lists the
<param-name>GEOSERVER_DATA_DIR</param-name>
<param-value>C:\eclipse\workspace\geoserver_trunk\cite\confCiteWFSPostGIS</param-value>
<context-param>
<param-name>PROXY_BASE_URL</param-name>
<param-value>http://82.58.146.45/</param\-value>
</context-param>
This configuration is unlike any of the
documentation
Ive read.
Does it need to be reconfigured in order for
OpenLayers to
find the seeded image? If so whats the ideal
configuration?
Thanks Chris
-- Arne Kepp
OpenGeo - http://opengeo.org/>
<http://opengeo.org/>
<http://opengeo.org/>
Expert service straight from the developers
-- Arne Kepp
OpenGeo - http://opengeo.org/>
<http://opengeo.org/>
Expert service straight from the developers
-- Arne Kepp
OpenGeo - http://opengeo.org/>
Expert service straight from the developers