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
[email protected]
www.tiefengrad.de
--
<?xml version="1.0" encoding="UTF-8"?>
<!-- see the accompanying mapcache.xml.sample for a fully commented configuration file -->
<mapcache>
<!--
<cache name="disk" type="disk">
<base>C:/ms4w/tmp/ms_tmp/cache</base> -->
<!-- <symlink_blank/> -->
<!-- </cache> -->
<!-- sqlite cache
requires building with "with-sqlite"
-->
<!--
<cache name="sqlite" type="sqlite3"> -->
<!-- base
absolute filesystem path where the sqlite database files will be stored.
this directory needs to be readable and writable by the user running
apache
-->
<!--
<base>C:/ms4w/tmp/ms_tmp/cache</base> -->
<!--<dbname_template>/tmp/{tileset}-{grid}.db</dbname_template>-->
<!-- hitstats
log last access time and total number of hits for each tile in the cache.
note that this slows the tile accesses drastically as it requires a write
to the database for each tile access
-->
<!-- <hitstats>false</hitstats> -->
<cache name="osm" type="disk">
<template>d:/geodaten/osm/tiles/{z}/{x}/{y}.png</template>
<base>d:/geodaten/osm/tiles</base>
<!-- <format>myjpeg</format> -->
</cache>
<source name="osmmap" type="wms">
<getmap>
<params>
<FORMAT>image/png</FORMAT>
<LAYERS>basic</LAYERS>
</params>
</getmap>
<http>
<url>http://mapserver/osmmap</url>
</http>
</source>
<tileset name="tiles">
<source>osmmap</source>
<cache>osm</cache>
<grid>WGS84</grid>
<format>PNG</format>
<metatile>5 5</metatile>
<metabuffer>10</metabuffer>
<expires>3600</expires>
</tileset>
<default_format>JPEG</default_format>
<service type="wms" enabled="true">
<full_wms>assemble</full_wms>
<resample_mode>bilinear</resample_mode>
<format>JPEG</format>
<maxsize>4096</maxsize>
</service>
<service type="wmts" enabled="true"/>
<service type="tms" enabled="true"/>
<service type="kml" enabled="true"/>
<service type="gmaps" enabled="true"/>
<service type="ve" enabled="true"/>
<service type="demo" enabled="true"/>
<errors>report</errors>
<lock_dir>d:/geodaten/osm/tiles</lock_dir>
</mapcache>
_______________________________________________
mapserver-users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapserver-users