<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:arial, helvetica, sans-serif;font-size:10pt"><div>It's in the "share/proj" directory... but that will depend on where proj is installed... could be /usr /usr/local /opt /opt/local ... or if you're me ... /opt/mapserver/ (primarily because I'm anal and isolate the crap out of things).</div><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"><div style="font-family:arial, helvetica, sans-serif;font-size:10pt"><br><div style="font-family:times new roman, new york, times, serif;font-size:12pt"><font size="2" face="Tahoma"><b><span style="font-weight: bold;">From:</span></b> Ian Dees &lt;ian.dees@gmail.com&gt;<br><b><span style="font-weight: bold;">To:</span></b> "Fawcett, David (MPCA)" &lt;David.Fawcett@state.mn.us&gt;<br><b><span style="font-weight: bold;">Cc:</span></b> "mapserver-users@lists.osgeo.org"
 &lt;mapserver-users@lists.osgeo.org&gt;<br><b><span style="font-weight: bold;">Sent:</span></b> Thu, January 7, 2010 8:22:12 AM<br><b><span style="font-weight: bold;">Subject:</span></b> Re: [mapserver-users] Tilemode Projection Problem<br></font><br>
After getting all the projection sections into my .map file without any correctly-drawn tiles, I've given up on tilemode for now and am trying out tilecache with MapServer's WMS. However, it appears that EPSG:900913 is not known in my system. On a Linux install, where is the list of projections/WKT?<br>
<br>I've tried using upper and lower-case namespace (epsg and EPSG) to no avail.<br><br>I get the following error through tilecache when it attempts to hit my WMS:<br><pre id="line1">&lt;<span class="start-tag">ServiceExceptionReport</span><span class="attribute-name"> version</span>=<span class="attribute-value">"1.1.1"</span>&gt;<br>
&lt;<span class="start-tag">ServiceException</span><span class="attribute-name"> code</span>=<span class="attribute-value">"InvalidSRS"</span>&gt;<br>msWMSLoadGetMapParams(): WMS server error. Invalid SRS given : SRS must be valid for all requested layers.<br>
&lt;/<span class="end-tag">ServiceException</span>&gt;<br>&lt;/<span class="end-tag">ServiceExceptionReport</span>&gt;<br></pre>URL it tries:<br><span><a target="_blank" href="http://209.98.160.119:8080/cgi-bin/mapserv?map=/var/www/map/map.map&amp;layers=states&amp;styles=&amp;service=WMS&amp;width=256&amp;format=image%2Fpng&amp;request=GetMap&amp;height=256&amp;srs=EPSG%3A900913&amp;version=1.1.1&amp;bbox=-20037508.34%2C-20037508.34%2C20037508.3384%2C20037508.3384">http://209.98.160.119:8080/cgi-bin/mapserv?map=/var/www/map/map.map&amp;layers=states&amp;styles=&amp;service=WMS&amp;width=256&amp;format=image%2Fpng&amp;request=GetMap&amp;height=256&amp;srs=EPSG%3A900913&amp;version=1.1.1&amp;bbox=-20037508.34%2C-20037508.34%2C20037508.3384%2C20037508.3384</a></span><br>
<br><div class="gmail_quote">On Wed, Jan 6, 2010 at 2:56 PM, Ian Dees <span dir="ltr">&lt;<a rel="nofollow" ymailto="mailto:ian.dees@gmail.com" target="_blank" href="mailto:ian.dees@gmail.com">ian.dees@gmail.com</a>&gt;</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 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><span><a target="_blank" href="http://209.98.160.119:8080/map.html">http://209.98.160.119:8080/map.html</a></span><div>
<div></div><div class="h5"><br>
<br>On Wed, Jan 6, 2010 at 2:41 PM, Fawcett, David (MPCA) <span dir="ltr">&lt;<a rel="nofollow" ymailto="mailto:David.Fawcett@state.mn.us" target="_blank" href="mailto:David.Fawcett@state.mn.us">David.Fawcett@state.mn.us</a>&gt;</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 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);">&nbsp;</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).&nbsp; </span></p>

<p class="MsoNormal"><span style="font-size:11pt;color:rgb(31, 73, 125);">&nbsp;</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);">&nbsp;</span></p>

<p class="MsoNormal"><span style="font-size:10pt;">+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);">&nbsp;</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);">&nbsp;</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);">&nbsp;</span></p>

<div style="border-style:solid none none;border-color:rgb(181, 196, 223);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 rel="nofollow" ymailto="mailto:mapserver-users-bounces@lists.osgeo.org" target="_blank" href="mailto:mapserver-users-bounces@lists.osgeo.org">mapserver-users-bounces@lists.osgeo.org</a>
[mailto:<a rel="nofollow" ymailto="mailto:mapserver-users-bounces@lists.osgeo.org" target="_blank" href="mailto:mapserver-users-bounces@lists.osgeo.org">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 rel="nofollow" ymailto="mailto:mapserver-users@lists.osgeo.org" target="_blank" href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a><br>
<b>Subject:</b> [mapserver-users] Tilemode Projection Problem</span></p>

</div><div><div></div><div>

<p class="MsoNormal">&nbsp;</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 rel="nofollow" target="_blank" href="ftp://geoftp.ibge.gov.br/mapas/ortofoto/">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>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; NAME GMAP_TILE<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; STATUS ON<br>
<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; PROJECTION
"init=epsg:31984" END<br>
<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; IMAGECOLOR 192 192 192<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; IMAGEQUALITY 95<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; IMAGETYPE png<br>
<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; OUTPUTFORMAT<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
NAME png<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
DRIVER 'GD/PNG'<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
TRANSPARENT ON<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; END<br>
<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; LAYER&nbsp; <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
NAME brazil<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
TYPE raster<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
DATA "/var/www/map/2414-1-SO.tif"<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
STATUS ON<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
PROJECTION "init=epsg:31984" END<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; END<br>
END</p>

</div></div></div>

</div>


</blockquote></div></div></div><br>
</blockquote></div><br>
</div></div></blockquote><div style="position:fixed"></div>


<!-- cg25.c2.mail.ac4.yahoo.com compressed/chunked Thu Jan  7 05:25:21 PST 2010 -->
</div><br>

      </body></html>