<p dir="ltr">No! You should NOT be adding a fixed bbox to the params, that one is calculated by mapcache!<br>
</p>
<div class="gmail_quote">On Jun 24, 2015 20:26, "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"><div dir="ltr">Removing those, and adding the bbox to the request worked perfectly. Thank you so much for your help!<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jun 24, 2015 at 10:31 AM, tbonfort [via OSGeo.org] <span dir="ltr"><<a href="http:///user/SendEmail.jtp?type=node&node=5212785&i=0" rel="nofollow" link="external" target="_blank">[hidden email]</a>></span> wrote:<br><blockquote style="border-left:2px solid #cccccc;padding:0 1em" class="gmail_quote"><span>

        <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>
</span><div class="gmail_quote"><div><div>On Jun 24, 2015 00:09, "seandisanti" <<a href="http:///user/SendEmail.jtp?type=node&node=5212774&i=0" rel="nofollow" link="external" target="_blank">[hidden email]</a>> wrote:<br type="attribution"></div></div><blockquote style="border-left:2px solid #cccccc;padding:0 1em" class="gmail_quote"><div><div>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="nofollow" link="external" 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>
</div></div><a href="http:///user/SendEmail.jtp?type=node&node=5212774&i=1" rel="nofollow" link="external" target="_blank">[hidden email]</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/mapserver-dev" rel="nofollow" link="external" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapserver-dev</a><br>
</blockquote></div>
<br>_______________________________________________
<br>mapserver-dev mailing list
<br><a href="http:///user/SendEmail.jtp?type=node&node=5212774&i=2" rel="nofollow" link="external" target="_blank">[hidden email]</a>
<br><a href="http://lists.osgeo.org/mailman/listinfo/mapserver-dev" rel="nofollow" link="external" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapserver-dev</a>

        
        
        
        <br>
        <br>
        <hr color="#cccccc" noshade size="1">
        <div style="color:#444;font:12px tahoma,geneva,helvetica,arial,sans-serif">
                <div style="font-weight:bold">If you reply to this email, your message will be added to the discussion below:</div>
                <a href="http://osgeo-org.1560.x6.nabble.com/Communicating-Tile-Coordinates-Between-Mapcache-and-Mapserver-tp5212572p5212774.html" rel="nofollow" link="external" target="_blank">http://osgeo-org.1560.x6.nabble.com/Communicating-Tile-Coordinates-Between-Mapcache-and-Mapserver-tp5212572p5212774.html</a>
        </div>
        <div style="color:#666;font:11px tahoma,geneva,helvetica,arial,sans-serif;margin-top:.4em;line-height:1.5em">
                
                To unsubscribe from Communicating Tile Coordinates Between Mapcache and Mapserver, <a rel="nofollow" link="external">click here</a>.<br>
                <a href="http://osgeo-org.1560.x6.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml" rel="nofollow" style="font:9px serif" link="external" target="_blank">NAML</a>
        </div></blockquote></div><br></div>

<br>
<div style="font-size:15px"><div><font face="Trebuchet" style="background-color:white"><br></font></div><div><font face="Trebuchet" style="background-color:white">Confidential Information:</font></div><div><span style="font-family:Trebuchet;background-color:white"><font color="#808080">This email message, its chain, and any attachments: (a) may include proprietary information, trade secrets, confidential information and/or other protected information ("Confidential Information") which are hereby labeled as Confidential for protection purposes, (b) is sent to you in confidence with a reasonable expectation of privacy, (c) may be protected by confidentiality agreements requiring this notice and/or identification, and (d) is not intended for transmission to, or receipt by unauthorized persons. If you are not the intended recipient, please notify the sender immediately by telephone or by replying to this message. Please then delete this message, any attachments, chains, copies or portions from your system(s). Thank you.</font></span></div></div>

        
        
        
<br><hr align="left" width="300">
View this message in context: <a href="http://osgeo-org.1560.x6.nabble.com/Communicating-Tile-Coordinates-Between-Mapcache-and-Mapserver-tp5212572p5212785.html" target="_blank">Re: Communicating Tile Coordinates Between Mapcache and Mapserver</a><br>
Sent from the <a href="http://osgeo-org.1560.x6.nabble.com/Mapserver-Dev-f4252683.html" target="_blank">Mapserver - Dev mailing list archive</a> at Nabble.com.<br><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>