[Tilecache] Tilecache not seeding

Damiano Morosi damiano.morosi at gmail.com
Sat Oct 25 08:21:38 EDT 2008


Hi all,

this is the first time I use Tilecache. I'm trying to generate tiles for a
Map (that I can visualize successfully in OpenLayers with Mapserver). The
.map file is as following:

----

#
# Start of map file
#
#
NAME NAVSTREETS
STATUS ON
SIZE 600 600
SYMBOLSET "/var/www/maps/symbols.sym"
EXTENT 12 41 13 42

SHAPEPATH "/var/www/shapes/"
IMAGETYPE png
IMAGECOLOR 150 150 150

#
# Start of web interface definition
#
WEB
  #MINSCALE 2000000
  #MAXSCALE 50000000
  IMAGEPATH "/tmp/ms_tmp/"
  IMAGEURL "/ms_tmp/"
  METADATA
    "wms_title" "navstreet map"
    "wms_onlineresource" "http://213.199.15.252/cgi-bin/mapserv?map=ms.map&"

  END
  TEMPLATE "test.html"
END

# Layers

LAYER
  METADATA
        "queryable" "true"
        "wms_title" "GreenA"
  END

  TEMPLATE "test.html"

  NAME GreenA
  TYPE POLYGON
  STATUS ON

  DATA LandUseA
 CLASS
    NAME "Streets"
    OUTLINECOLOR 0 255 0
    COLOR 0 255 0
  END
END # layer

END # MAP

----

The following is my tilecache.cfg file:

----

[cache]
base = /tmp/tilecache
type = Disk

[basic]
layers = GreenA
spherical_mercator = no
data_extent = 12,41,13,42
extension = png
url = http://213.199.15.252/cgi-bin/mapserv?map=ms.map
metatile = no
bbox = 12,41,13,42
type = WMS

----

The layer is deriving from a shapefile. Then I try the command:

python tilecache_seed.py "http://213.199.15.252/cgi-bin/tilecache.cgi?"
basic 0 5

and I get the error

msWMSLoadGetMapParams(): WMS server error. Invalid SRS given : SRS must be
valid for all requested layers.

The point is that I don't want to project my map, so as far as I know, I
haven't to set a projection object in mapfile. Is it mandatory to fullfill
the tilecache requisites? How can I produce tiles from map that are usable
by OpenLayers?

Thank you all,

Damiano Morosi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/tilecache/attachments/20081025/bc2963ee/attachment.html


More information about the Tilecache mailing list