[Tilecache] Tilecache not seeding
Christopher Schmidt
crschmidt at metacarta.com
Sat Oct 25 08:36:00 EDT 2008
On Sat, Oct 25, 2008 at 02:21:38PM +0200, Damiano Morosi wrote:
> 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?
You need to set up your mapfile for WMS.
http://mapserver.gis.umn.edu/docs/howto/wms_server
http://mapserver.gis.umn.edu/docs/howto/wms_server/#setup-a-mapfile-for-your-wms
> Thank you all,
>
> Damiano Morosi
> _______________________________________________
> Tilecache mailing list
> Tilecache at openlayers.org
> http://openlayers.org/mailman/listinfo/tilecache
--
Christopher Schmidt
MetaCarta
More information about the Tilecache
mailing list