[mapserver-users] MapServer with TileCache

Dave Chetan csdave4u at gmail.com
Mon Aug 25 03:05:11 PDT 2014


Group,

I am bit struggling with the MapServer + Tile Cache.

Please anyone can help me.

My detailed configurations are as follow

*1) Map File (tm.map)*



MAP

        IMAGETYPE       PNG

        EXTENT          -180 -90 180 90

        SIZE            800 600

        SHAPEPATH       "C:/Temp/"

        IMAGECOLOR      255 255 255



        PROJECTION

                "init=EPSG:4326"

        END



        WEB

                METADATA

                        "ows_enable_request"   "*"

                        "wms_title"             "WMS Street"

                        "wms_onlineresource"    "
http://localhost:1080/cgi-bin/mapserv.exe?map=c:/ms4w/maps/tm.map&"

                        "wms_srs"               "EPSG:4326"

                END

        END





                        LAYER

                                                DATA "Street.shp"

                                                NAME Streetview

                                                TYPE POLYGON

                                                CLASS

                                                            STYLE


color 255 0 0


WIDTH 1


#MINSCALEDENOM 508342

                                                            END

                                                            METADATA


"wms_title"     "Streetview"


"wms_srs"       "EPSG:4326"


END

                                                END

                        END

END






*2) tilecache.cfg is –.*

[cache]

type=Disk

base=C:\Inetpub\wwwroot\tilecache\Cache



[Streetview]

size=256,256

srs=EPSG:4326

type=WMS

url=http://localhost:1080/cgi-bin/mapserv?map=c:/ms4w/maps/tm.map

layers=Streetview

mapfile=c:/ms4w/maps/tm.map

bbox=-180 -90 180 90

extension=png

mime_type=image/png

maxresolution=234.375

extent_type=loose

levels=20

expire=3600



*3) Tile Generater Command*

tilecache_seed.py Streetview 04 09 -b "-180, -90, 180, 90" -p 1 -f -c
c:\Inetpub\wwwroot\TileCache\tilecache.cfg

Error

Traceback (most recent call last):

  File "C:\Inetpub\wwwroot\TileCache\tilecache_seed.py", line 9, in ?

    TileCache.Client.main()

  File "C:\Inetpub\wwwroot\TileCache\TileCache\Client.py", line 166, in main

    layer = svc.layers["Streetview"]

KeyError: 'Streetview'
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20140825/9f2fc201/attachment.htm>


More information about the MapServer-users mailing list