<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
hi Ryan<span lang="FR"><o:p></o:p></span>,<br>
try to add the validation pattern inside the layer tag<br>
<br>
METADATA <br>
'file_validation_pattern' "[A-Z0-9._%+-|'\(\)]"<br>
'default_file' "ultima_imatge" #-------> this is to give
a value when you don't put the &file=value in the url call<br>
END<br>
<br>
VALIDATION<br>
'file' "[A-Z0-9._%+-|'\(\)]"<br>
END<br>
<br>
DATA '%file%'<o:p></o:p> <br>
<br>
<br>
Helen<br>
<br>
<br>
El 21/05/12 17:55, Ryan Dussiaume escribió:
<blockquote
cite="mid:F10A44D2F46EB8479FD177C6E7962B700900189600@cagaexch01.mentum.info"
type="cite">
<meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1">
<meta name="Generator" content="Microsoft Word 12 (filtered
medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri","sans-serif";
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
<div class="WordSection1">
<p class="MsoNormal">Hi,<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I’m trying to use runtime substitution to
replace the DATA setting of the Mapfile at runtime. I’m
running in tile mode and using GRD raster format.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Here’s the mapfile:<o:p></o:p></p>
<p class="MsoNormal">MAP<o:p></o:p></p>
<p class="MsoNormal"> NAME Blah2<o:p></o:p></p>
<p class="MsoNormal"> STATUS ON<o:p></o:p></p>
<p class="MsoNormal"> SHAPEPATH "C:/Contours/FSGrids"<o:p></o:p></p>
<p class="MsoNormal"> PROJECTION "init=epsg:26918" END<o:p></o:p></p>
<p class="MsoNormal"> LAYER<o:p></o:p></p>
<p class="MsoNormal"> NAME Contour<o:p></o:p></p>
<p class="MsoNormal"> TYPE RASTER<o:p></o:p></p>
<p class="MsoNormal"> STATUS ON<o:p></o:p></p>
<p class="MsoNormal"> DATA '%file%'<o:p></o:p></p>
<p class="MsoNormal"> CLASS<o:p></o:p></p>
<p class="MsoNormal"> NAME "Contour"<o:p></o:p></p>
<p class="MsoNormal"> END<o:p></o:p></p>
<p class="MsoNormal"> PROJECTION "init=epsg:26918" END<o:p></o:p></p>
<p class="MsoNormal"> END # Layer<o:p></o:p></p>
<p class="MsoNormal">END<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">And here is a sample request for one of the
tiles that I’ve copied from Fiddler …<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><a moz-do-not-send="true"
href="http://%3cmy%20server%3e/cgi-bin/mapserv.exe?map=C:/ms4w/Maps/mapfile2.map&file=Site_1_1_1_Total.grd&mode=tile&layers=Contour&tilemode=ve&tile=03023032203031">http://<my
server>/cgi-bin/mapserv.exe?map=C:/ms4w/Maps/mapfile2.map&file=Site_1_1_1_Total.grd&mode=tile&layers=Contour&tilemode=ve&tile=03023032203031</a><o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">If I put the filename directly in the DATA
setting of the mapfile it works fine and I see the grid in
Virtual Earth. If I try to use runtime substitution to put
the file name it just produces blank tiles.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Any help is very much appreciated, thanks!<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Ryan<span lang="FR"><o:p></o:p></span></p>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
mapserver-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/mapserver-users">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a>
</pre>
</blockquote>
<br>
</body>
</html>