<p dir="ltr">Mapcache queries the source as a wms getmap request, not as a tiled one. Remove the 'tile' dimension from your tileset, and the mode=tile and all the tile*= parameters from your mapcache source URL.<br>
Thomas</p>
<div class="gmail_quote">On Jun 24, 2015 00:09, "seandisanti" <<a href="mailto:sdisanti@orionnetworksolutions.com">sdisanti@orionnetworksolutions.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I have a page that currently successfully requests tiles from Mapserver<br>
6.0.3. The working request looks like:<br>
"?map=/map/ahps/precip.map&shape_path=2015/06/23/nws_precip_1day_observed_20150623&mode=tile&tilemode=gmap&service=WMS&version=1.1.1&request=GetMap&Styles=default&SRS=EPSG:102100&width=256&height=256&format=image/PNG&TRANSPARENT=TRUE&layers=conus-raster&dpi=120&tile=3+5+4"<br>
<br>
The layer is defined in the map file like:<br>
<br>
        LAYER<br>
                NAME 'conus-raster'<br>
                TYPE RASTER<br>
                STATUS DEFAULT<br>
                PROJECTION<br>
                        "init=epsg:4326"<br>
                END<br>
                VALIDATION<br>
                        "shape_path"<br>
"^[0-9]{4}\/[0-9]{2}\/[0-9]{2}\/nws_precip_.*_[a-zA-Z]+_[0-9]{8}"<br>
                END<br>
                DATA "/shp/ahps/%shape_path%_conus.png"<br>
        END<br>
<br>
The decision has been made to use mapcache rather than querying mapserver<br>
directly, and I've set up a source and tileset (I will include below) but I<br>
am consistently running into errors. I have tried WMS and WMTS services<br>
because I need to use a dimension to pass the shape_path variable, but if I<br>
specify tile as a dimension, the regex requires me to treat the pluses in<br>
the value as spaces, but then it passes the literal string (with pluses) to<br>
mapserver. Mapserver returns an error that there are the wrong number of<br>
coordinates, that there should be 3.<br>
<br>
Any help would be greatly appreciated, the only thing stopping me from going<br>
in and modifying the source to split on plus or space is that I wouldn't be<br>
able to recompile mapserver in our production environment.<br>
<br>
The source in my config file is:<br>
   <source name="precip_conus" type="wms"><br>
      <getmap><br>
         <params><br>
            <map>/map/ahps/precip.map</map><br>
            <version>1.3.0</version><br>
            <SRS>EPSG:3857</SRS><br>
            <CRS>EPSG:3857</CRS><br>
                        <SRS>EPSG:102100</SRS><br>
                        <CRS>EPSG:102100</CRS><br>
            <TRANSPARENT>TRUE</TRANSPARENT><br>
            <FORMAT>image/png</FORMAT><br>
            <LAYERS>conus-raster</LAYERS><br>
                        <MODE>TILE</MODE><br>
                        <TILEMODE>gmap</TILEMODE><br>
         </params><br>
      </getmap><br>
      <http><br>
         <url>url_to_mapserver</url><br>
         <headers><br>
            <User-Agent>mod_mapcache/r175</User-Agent><br>
            <Referrer>url_to_mapcache</Referrer><br>
         </headers><br>
         <connection_timeout>10</connection_timeout><br>
          </http><br>
   </source><br>
<br>
and the tileset is:<br>
   <tileset name="precip_conus"><br>
      <source>precip_conus</source><br>
          <LAYER>conus-raster</LAYER><br>
      <cache>precip_cache</cache><br>
      <grid>g2</grid><br>
      <format>PNG</format><br>
      <dimensions><br>
         <dimension type="regex" name="shape_path"<br>
default="2015/01/01/nws_precip_1day_observed_20150101">^[0-9]{4}\/[0-9]{2}\/[0-9]{2}\/nws_precip_.*_[a-zA-Z]+_[0-9]{8}$</dimension><br>
                 <dimension type="regex" name="tile"<br>
default="3+5+4">^\d{1,3}\s\d{1,3}\s\d{1,3}$</dimension><br>
      </dimensions><br>
   </tileset><br>
<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://osgeo-org.1560.x6.nabble.com/Communicating-Tile-Coordinates-Between-Mapcache-and-Mapserver-tp5212572.html" rel="noreferrer" target="_blank">http://osgeo-org.1560.x6.nabble.com/Communicating-Tile-Coordinates-Between-Mapcache-and-Mapserver-tp5212572.html</a><br>
Sent from the Mapserver - Dev mailing list archive at Nabble.com.<br>
_______________________________________________<br>
mapserver-dev mailing list<br>
<a href="mailto:mapserver-dev@lists.osgeo.org">mapserver-dev@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/mapserver-dev" rel="noreferrer" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapserver-dev</a><br>
</blockquote></div>