<div class="gmail_quote">I tried this and am still not getting anything from my TIFFs. I switched over to using the statesp020.shp data (which is epsg:4326, right?) and am getting very oddly-garbled tiles:<br><br><a href="http://209.98.160.119:8080/map.html">http://209.98.160.119:8080/map.html</a><br>
<br>On Wed, Jan 6, 2010 at 2:41 PM, Fawcett, David (MPCA) <span dir="ltr"><<a href="mailto:David.Fawcett@state.mn.us">David.Fawcett@state.mn.us</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div link="blue" vlink="purple" lang="EN-US">
<div>
<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);">Ian, </span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);">I haven’t used tilemode, but my assumption is that the map
projection block is used to define what the output projection for your tile is
(like in the other MapServer modes). </span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);">Try setting map projection to epsg:3785 or using the proj4 text:</span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>
<p class="MsoNormal"><span style="font-size: 10pt; font-family: "Courier New";">+proj=merc
+lon_0=0 +k=1 +x_0=0 +y_0=0 +a=6378137 +b=6378137 +towgs84=0,0,0,0,0,0,0
+units=m +no_defs </span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);">If tilemode requires a map extent, it should be expressed in
units of the output projection.</span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);">David.</span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>
<div style="border-style: solid none none; border-color: rgb(181, 196, 223) -moz-use-text-color -moz-use-text-color; border-width: 1pt medium medium; padding: 3pt 0in 0in;">
<p class="MsoNormal"><b><span style="font-size: 10pt;">From:</span></b><span style="font-size: 10pt;">
<a href="mailto:mapserver-users-bounces@lists.osgeo.org" target="_blank">mapserver-users-bounces@lists.osgeo.org</a>
[mailto:<a href="mailto:mapserver-users-bounces@lists.osgeo.org" target="_blank">mapserver-users-bounces@lists.osgeo.org</a>] <b>On Behalf Of </b>Ian Dees<br>
<b>Sent:</b> Wednesday, January 06, 2010 2:24 PM<br>
<b>To:</b> <a href="mailto:mapserver-users@lists.osgeo.org" target="_blank">mapserver-users@lists.osgeo.org</a><br>
<b>Subject:</b> [mapserver-users] Tilemode Projection Problem</span></p>
</div><div><div></div><div class="h5">
<p class="MsoNormal"> </p>
<p class="MsoNormal">Hi everyone,<br>
<br>
I've spent the better part of today scouring the internet for documentation and
help on the tile mode present in mapserver, but I couldn't find an answer to my
problem, so please forgive me if I'm missing some obvious documentation some
where...<br>
<br>
I am attempting to show some GeoTIFFs (from here: <a href="ftp://geoftp.ibge.gov.br/mapas/ortofoto/" target="_blank">ftp://geoftp.ibge.gov.br/mapas/ortofoto/</a>).
My research says they're in epsg:31984.<br>
<br>
I'm trying to use MapServer's tile mode to display them on a Google Map API
instance, but can't seem to get any of the images to show up.<br>
<br>
Also, why am I required to give a PROJECTION statement as a child to the MAP
statement (what I assume is the "viewing projection") if the tile mode
is just going to reproject to spherical mercator?<br>
<br>
My .map file is below.<br>
<br>
Thanks!<br>
<br>
MAP<br>
NAME GMAP_TILE<br>
STATUS ON<br>
<br>
PROJECTION
"init=epsg:31984" END<br>
<br>
IMAGECOLOR 192 192 192<br>
IMAGEQUALITY 95<br>
IMAGETYPE png<br>
<br>
OUTPUTFORMAT<br>
NAME png<br>
DRIVER 'GD/PNG'<br>
TRANSPARENT ON<br>
END<br>
<br>
LAYER <br>
NAME brazil<br>
TYPE raster<br>
DATA "/var/www/map/2414-1-SO.tif"<br>
STATUS ON<br>
PROJECTION "init=epsg:31984" END<br>
END<br>
END</p>
</div></div></div>
</div>
</blockquote></div><br>