[mapserver-users] Rendering Maperative Tiles via UMN Mapserver with mod-mapcache
thomas bonfort
thomas.bonfort at gmail.com
Sat May 10 03:11:45 PDT 2014
You've got something wrong with your <source> entry. Does the
http://mapserver/osmmap url have a rewrite defined to append a map=
parameter or a MS_MAPFILE envirronment variable? if not, you should at
least add a <map>/path/to/mapfile.map</map> to the source params (at
the same level as <LAYERS>)
--
thomas
On 9 May 2014 11:54, tiefengrad° GIS Consulting <mail at tiefengrad.de> wrote:
> hi group,
>
> i try to serve maperitive osm tiles via umn. I use ms4w 3.0.4 with
> apache-mapserver 2.2.21 und mod-mapcache/0.5-dev. The attached
> osm_mapcache.xml works fine (apache start/stop), but no tiles are rendered.
>
> Apache error log: tileset tiles:
> unknown error (another thread/process failed to create the tile I was
> waiting for)
> wms request for tileset tiles returned an unsupported
> format:\n<HTML>\n<HEAD><TITLE>MapServer Message</TITLE></HEAD>\n<!--
> MapServer version 6.1-dev (MS4W 3.0.4-dev) OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG
> OUTPUT=KML SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=CAIRO SUPPORTS=FREETYPE
> SUPPORTS=ICONV SUPPORTS=FRIBIDI SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT
> SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER
> SUPPORTS=SOS_SERVER SUPPORTS=FASTCGI SUPPORTS=THREADS SUPPORTS=GEOS
> INPUT=JPEG INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE -->\n<BODY
> BGCOLOR="#FFFFFF">\nmsCGILoadMap(): Web application error. CGI variable
> "map" is not set.\n</BODY></HTML>
>
> Browser:
> http://mapserver/osmmap?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetCapabilities
>
> <WMT_MS_Capabilities version="1.1.1"><Service><Name>OGC:WMS</Name><Title>no
> title set, add some in metadata</Title><OnlineResource
> xlink:href="http://mapserver/osmmap?"/></Service><Capability><Request><GetCa
> pabilities><Format>application/vnd.ogc.wms_xml</Format><DCPType><HTTP><Get><
> OnlineResource
> xlink:href="http://mapserver/osmmap?"/></Get></HTTP></DCPType></GetCapabilit
> ies><GetMap><Format>image/png</Format><Format>image/jpeg</Format><DCPType><H
> TTP><Get><OnlineResource
> xlink:href="http://mapserver/osmmap?"/></Get></HTTP></DCPType></GetMap><GetF
> eatureInfo><Format>text/plain</Format><Format>application/vnd.ogc.gml</Forma
> t><DCPType><HTTP><Get><OnlineResource
> xlink:href="http://mapserver/osmmap?"/></Get></HTTP></DCPType></GetFeatureIn
> fo></Request><Exceptions><Format>text/plain</Format></Exceptions><VendorSpec
> ificCapabilities><TileSet><SRS>EPSG:4326</SRS><BoundingBox SRS="EPSG:4326"
> minx="-180.000000" miny="-90.000000" maxx="180.000000"
> maxy="90.000000"/><Resolutions>0.70312500000000000000 0.35156250000000000000
> 0.17578125000000000000 0.08789062500000000000 0.04394531250000000000
> 0.02197265625000000000 0.01098632812500000000 0.00549316406250000000
> 0.00274658203125000000 0.00137329101562500000 0.00068664550781250000
> 0.00034332275390625000 0.00017166137695312500 0.00008583068847656250
> 0.00004291534423828120 0.00002145767211914060 0.00001072883605957030
> 0.00000536441802978516
> </Resolutions><Width>256</Width><Height>256</Height><Format>image/png</Forma
> t><Layers>tiles</Layers><Styles/></TileSet></VendorSpecificCapabilities><Lay
> er><Name>rootlayer</Name><Title>no title set, add some in
> metadata</Title><SRS>EPSG:900913</SRS><SRS>EPSG:4326</SRS><SRS>EPSG:3857</SR
> S><Layer cascaded="1" queryable="0"><Name>tiles</Name><LatLonBoundingBox
> minx="-180.000000" miny="-90.000000" maxx="180.000000"
> maxy="90.000000"/><BoundingBox SRS="EPSG:4326" minx="-180.000000"
> miny="-90.000000" maxx="180.000000"
> maxy="90.000000"/><SRS>EPSG:4326</SRS></Layer></Layer></Capability></WMT_MS_
> Capabilities>
>
> do i need to have to define a grid or the tile-template
> <template>d:/geodaten/osm/tiles/{z}/{x}/{y}.png</template> in the attached
> osm_mapcache.xml is wrong? I do not know howto build a suitable mapfile for
> the maparative tiles.
>
> thanx a lot for any ideas...
>
> best regards
>
> andreas
>
>
> --
> Andreas Borgardt
> mail at tiefengrad.de
> www.tiefengrad.de
> --
>
>
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
More information about the MapServer-users
mailing list