Thanks for your prompt reply Andrea
I figured out the solution almost at the same moment your mail came in
What I did was modify my tilecache config in a way that encapsulates the namespace inside the layer definition so that the config went from:
[topp:Level_13]
layers=topp:Level_13
to
[Level_13]
layers=topp:Level_13
so the request to the tilecache server becomes layers=Level_13 which the tilecache then translates into layers=topp:Level_13
This will allow me to use namespaces in the future, which I plan on doing, since I'll be hosting a wide array of data for various clients, which will almost certainly have naming conflicts otherwise.
Again, thanks a lot, and I'm looking forward to working further, and hopefully contributing something.
Kind regards from Iceland,
Gissur Þórhallsson
-----Original Message-----
From: Andrea Aime [mailto:aaime@anonymised.com]
Sent: 11. janúar 2008 15:18
To: Gissur Þórhallsson
Cc: geoserver-users@lists.sourceforge.net
Subject: Re: [Geoserver-users] Colon after namespace
Gissur Þórhallsson ha scritto:
...
The problem I'm experiencing is that I'm making tilecache cache to the
disk(diskcache) at the moment and when I try to cache from Geoserver,
tilecache tries to create a directory structure which uses the name of
the layer as its parent. The name of the layer is
[namespace]*:*[layername] (topp*:*layer13 in my case).Anybody see the problem yet?
All the installations of GeoServer + TileCache I'm aware of are under
the linux operating system, where ":" is a legal part of a filename,
so no, I wasn't aware of it.
I think I can suggest a workaround. GeoServer will respond to queries
that do not include the namespace provided the layer is in the default
namespace. For example, this request:
http://geo.openplans.org:8080/geoserver/wms?bbox=-130,24,-66,50&styles=population&Format=image/png&request=GetMap&layers=topp:states&width=550&height=250&srs=EPSG:4326
works also if you name the layer without namespace:
http://geo.openplans.org:8080/geoserver/wms?bbox=-130,24,-66,50&styles=population&Format=image/png&request=GetMap&layers=states&width=550&height=250&srs=EPSG:4326
This is because topp is the default namespace.
So if you put all your layers in the default namespace (or make the
namespace the layers are now into the default one) you can make
tilecache work without the column.
Hope this helps
Cheers
Andrea
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.5.516 / Virus Database: 269.19.0/1218 - Release Date: 10.1.2008 13:32
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.5.516 / Virus Database: 269.19.0/1218 - Release Date: 10.1.2008 13:32