<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Chris,<br>
    <br>
      I've used the Iconic Rewriter with older versions of IIS (the
    native rewriting capability in IIS7 looks interesting).  You may be
    able to use an environment variable to set the default map file, but
    this may not be very useful if you have multiple map files.  There
    are a few other options for hiding the mapfile (proxy script,
    redirect, form post instead of get, etc), put I think the rewrite
    method is the most effective (the client never gets the map file
    path), with almost no performance hit.<br>
    <br>
      The way I access Mapnik tiles in mapserver is to create a layer in
    the map file:<br>
    <br>
    LAYER<br>
        DATA "frmt_wms_openstreetmap_MAPNIK.xml"<br>
        NAME "Mapnik"<br>
        PROJECTION<br>
          "proj=merc" "a=6378137" "b=6378137" "lat_ts=0.0" "lon_0=0.0"
    "x_0=0.0" "y_0=0" "k=1.0" "units=m" "nadgrids=@null" "no_defs"<br>
        END<br>
        STATUS ON<br>
        TYPE RASTER<br>
        PROCESSING "OVERSAMPLE_RATIO=1"<br>
        PROCESSING "LOAD_FULL_RES_IMAGE=NO"<br>
        UNITS METERS<br>
    END # LAYER<br>
    <br>
    and frmt_wms_openstreetmap_MAPNIK.xml XML file of <br>
    <br>
    <GDAL_WMS><br>
        <Service name="TMS"><br>
           
<ServerUrl><a class="moz-txt-link-freetext" href="http://tile.openstreetmap.org/$">http://tile.openstreetmap.org/$</a>{z}/${x}/${y}.png</ServerUrl><br>
        </Service><br>
        <DataWindow><br>
            <UpperLeftX>-20037508.34</UpperLeftX><br>
            <UpperLeftY>20037508.34</UpperLeftY><br>
            <LowerRightX>20037508.34</LowerRightX><br>
            <LowerRightY>-20037508.34</LowerRightY><br>
            <TileLevel>19</TileLevel><br>
            <TileCountX>1</TileCountX><br>
            <TileCountY>1</TileCountY><br>
            <YOrigin>top</YOrigin><br>
        </DataWindow><br>
        <Projection>EPSG:900913</Projection><br>
        <BlockSizeX>256</BlockSizeX><br>
        <BlockSizeY>256</BlockSizeY><br>
        <BandsCount>3</BandsCount><br>
        <Cache /><br>
    </GDAL_WMS><br>
    <br>
    <br>
    <pre class="moz-signature" cols="72">Best Regards,
Brent Fraser</pre>
    <br>
    On 9/2/2011 8:13 AM, Chris Jackson wrote:
    <blockquote
cite="mid:CACU1gf7sJ-4+EL1VPD31ogkm4kHxbvUa8XFb9rHV_EX0R+0bWg@mail.gmail.com"
      type="cite">Hi<br>
      <br>
      I just wanted to check if the only way to parse a mapfile in an
      IIS environment to use an absolute path to the mapfiles e.g. <a
        moz-do-not-send="true"
        href="http://myserver/cgi-bin/mapserv.exe?map=C">http://myserver/cgi-bin/mapserv.exe?map=C</a>:\Inetpub\wwwroot\workshop\itasca.map. 
      I wonder if anyone has had success with rewrite rules (IIS7)?<br>
      <br>
      Also how is GDAL triggered when calling the mapfile (in IIS).  The
      scenario is I am trying to use an xml in the mapfile layer which
      then calls <a moz-do-not-send="true"
        href="http://tile.openstreetmap.org/">http://tile.openstreetmap.org/</a><br>
      <br>
      The XML is<br>
      <br>
      <GDAL_WMS><br>
      <Service name="TMS"><br>
      <ServerUrl><a moz-do-not-send="true"
        href="http://tile.openstreetmap.org/$%7Bz%7D/$%7Bx%7D/$%7By%7D.png">http://tile.openstreetmap.org/${z}/${x}/${y}.png</a></ServerUrl><br>
      </Service><br>
      <DataWindow><br>
      <UpperLeftX>-20037508.34</UpperLeftX><br>
      <UpperLeftY>20037508.34</UpperLeftY><br>
      <LowerRightX>20037508.34</LowerRightX><br>
      <LowerRightY>-20037508.34</LowerRightY><br>
      <TileLevel>19</TileLevel><br>
      <TileCountX>1</TileCountX><br>
      <TileCountY>1</TileCountY><br>
      <YOrigin>top</YOrigin><br>
      </DataWindow><br>
      <Projection>EPSG:900913</Projection><br>
      <BlockSizeX>256</BlockSizeX><br>
      <BlockSizeY>256</BlockSizeY><br>
      <BandsCount>3</BandsCount><br>
      <Cache/><br>
      </GDAL_WMS><br>
      <br>
      Am I remotely doing this the right way?  I am used to calling
      local data from the mapfile and tiled services is a bit of a new
      beast, so I thought I would give it a go!<br>
      <br>
      Many thanks in advance<br>
      <br>
      Chris<br>
      <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>
  </body>
</html>