<html><body bgcolor="#FFFFFF"><div>Yeah I have the same Projection in my map file.<br></div><div><br></div><span class="Apple-style-span" style="font-size: 13px; -webkit-tap-highlight-color: rgba(26, 26, 26, 0.296875); -webkit-composition-fill-color: rgba(175, 192, 227, 0.230469); -webkit-composition-frame-color: rgba(77, 128, 180, 0.230469); "><span style="font-family: 'courier new', monospace; ">PROJECTION</span><br style="font-family: 'courier new', monospace; "><span style="font-family: 'courier new', monospace; ">&nbsp; "proj=longlat"</span><br style="font-family: 'courier new', monospace; "><span style="font-family: 'courier new', monospace; ">&nbsp; "ellps=WGS84"</span><br style="font-family: 'courier new', monospace; "><span style="font-family: 'courier new', monospace; ">&nbsp; "datum=WGS84"</span><br style="font-family: 'courier new', monospace; "><span style="font-family: 'courier new', monospace; ">&nbsp; "no_defs"</span><br style="font-family: 'courier new', monospace; "><span style="font-family: 'courier new', monospace; ">END</span></span><div><span class="Apple-style-span" style="font-family: 'courier new'; font-size: 13px; -webkit-tap-highlight-color: rgba(26, 26, 26, 0.289062); -webkit-composition-fill-color: rgba(175, 192, 227, 0.222656); -webkit-composition-frame-color: rgba(77, 128, 180, 0.222656);"><br></span></div><div><span class="Apple-style-span" style="font-family: 'courier new'; font-size: 13px; -webkit-tap-highlight-color: rgba(26, 26, 26, 0.292969); -webkit-composition-fill-color: rgba(175, 192, 227, 0.226562); -webkit-composition-frame-color: rgba(77, 128, 180, 0.226562);">Thanks for the response. It's pretty fustrating there must be another simple method to call the layer<br></span><div><br>On 6 Oct 2009, at 13:37, Daniel Walton &lt;<a href="mailto:dgwalton@gmail.com">dgwalton@gmail.com</a>&gt; wrote:<br><br></div><div></div><blockquote type="cite"><div>I have this same problem, only I am using a Silverlight client to view the layers. I can view layers only by setting their status to DEFAULT.&nbsp; Whenever I request a layer whose status is ON, I get the response:<br><br><div style="margin-left: 40px;">

<span style="font-family: courier new,monospace;">Invalid CRS given : CRS must be valid for all requested layers.</span></div><br>The CRS query string I passed is: <span style="font-family: courier new,monospace;"><br><br>

</span><div style="margin-left: 40px;"><span style="font-family: courier new,monospace;">&amp;CRS=EPSG:4326</span><br></div><br>The projection in my mapfile both for the whole map and individual layers is:<br><br><div style="margin-left: 40px;">

<span style="font-family: courier new,monospace;">PROJECTION</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">&nbsp; "proj=longlat"</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">&nbsp; "ellps=WGS84"</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">&nbsp; "datum=WGS84"</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">&nbsp; "no_defs"</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">END</span><br><br></div><div style="text-align: left;">

<font face="arial,helvetica,sans-serif">It looks like the problem is in referencing the EPSG file, and I have tried every method I know to reference it: <br></font><ol><li><font face="arial,helvetica,sans-serif">setting <span style="font-family: courier new,monospace;">CONFIG "PROJ_LIB" "C:/ms4w/proj/nad/"</span> at the top of my mapfile</font></li>

<li><font face="arial,helvetica,sans-serif">adding the line <span style="font-family: courier new,monospace;">SetEnv PROJ_LIB "c:/ms4w/proj/nad/"</span> to Apache's httpd.conf file</font></li><li><font face="arial,helvetica,sans-serif">doing 1 and 2 but omitting the leading "c:"<br>

</font></li></ol>Further confirmation that this is the problem is that I tried to set the map's projection in MapScript using the line <br><br><div style="margin-left: 40px; font-family: courier new,monospace;">mapObj.setProjection("init=epsg:4326");<br>

</div><div style="font-family: courier new,monospace;"><br><font face="arial,helvetica,sans-serif">and received the PROJ4 error:<br><br></font><div style="margin-left: 40px;"><font face="arial,helvetica,sans-serif"><span style="font-family: courier new,monospace;">msProcessProjection(): Projection library error. No such file or directory</span></font><br>

<br></div><span style="font-family: arial,helvetica,sans-serif;">Any ideas out there?</span><br></div><div style="margin-left: 40px; font-family: courier new,monospace;"><br></div></div><blockquote style="margin: 1.5em 0pt;">

<div style="border: 1px solid black; padding: 5px; font-family: tahoma; font-size: 8pt; font-weight: bold; width: 150px;">
Dan Walton<br>
<a href="mailto:dgwalton@gmail.com"><a href="mailto:dgwalton@gmail.com">dgwalton@gmail.com</a></a>
</div></blockquote><br><br><div class="gmail_quote">On Mon, Oct 5, 2009 at 8:49 AM,  <span dir="ltr">&lt;<a href="mailto:jbloc1878@googlemail.com"><a href="mailto:jbloc1878@googlemail.com">jbloc1878@googlemail.com</a></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 bgcolor="#FFFFFF"><div>Thanks for the response. I am using openlayers and my map does not appear unless layer is STATUS DEFAULT.</div><div><br></div><div>I call layer as follows&nbsp;<span><span></span></span></div><div>
<span><br>
</span></div><div><span><span>layer1 = new OpenLayers.Layer.WMS("OpenLayers WMS",</span><div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "<a href="http://localhost/cgi-bin/mapserv.exe" target="_blank"></a><a href="http://localhost/cgi-bin/mapserv.exe" target="_blank"><a href="http://localhost/cgi-bin/mapserv.exe">http://localhost/cgi-bin/mapserv.exe</a></a>?", { layers: "testlayer", map: '/ms4w/.../data/tr00.map',<br>

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; gutter: 15, minZoomLevel: 1, maxZoomLevel: 10, units:'meters' });</div><div>&nbsp;<span></span></div><div><span>&nbsp;map.addLayer(layer1);</span></div><div><span><br></span></div><div><span>I only view pink tiles when STATUS ON?</span></div>

</span><br>Thanks&nbsp;</div><div><div></div><div class="h5"><div><br>On 5 Oct 2009, at 14:40, "Fawcett, David" &lt;<a href="mailto:David.Fawcett@state.mn.us" target="_blank"><a href="mailto:David.Fawcett@state.mn.us">David.Fawcett@state.mn.us</a></a>&gt; wrote:<br>

<br></div><div></div><blockquote type="cite"><div>

<div>

<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">You don’t.&nbsp; That is how you tell MapServer that you want to view
a particular layer that doesn’t have a status of default.&nbsp; </span></p>

<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">&nbsp;</span></p>

<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">In many cases, if you are viewing your map using a client like
OpenLayers, the client does this for you.</span></p>

<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">&nbsp;</span></p>

<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">David.</span></p>

<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">&nbsp;</span></p>

<div>

<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><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"><a href="mailto:mapserver-users-bounces@lists.osgeo.org">mapserver-users-bounces@lists.osgeo.org</a></a>
[mailto:<a href="mailto:mapserver-users-bounces@lists.osgeo.org" target="_blank"><a href="mailto:mapserver-users-bounces@lists.osgeo.org">mapserver-users-bounces@lists.osgeo.org</a></a>] <b>On Behalf Of </b><a href="mailto:jbloc1878@googlemail.com" target="_blank"><a href="mailto:jbloc1878@googlemail.com">jbloc1878@googlemail.com</a></a><br>


<b>Sent:</b> Monday, October 05, 2009 8:31 AM<br>
<b>To:</b> <a href="mailto:mapserver-users@lists.osgeo.org" target="_blank"><a href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a></a><br>
<b>Subject:</b> [mapserver-users] Call layer</span></p>

</div>

</div>

<p>&nbsp;</p>

<div>

<p><span><span style="font-size: 10pt;">Hi,</span></span></p>

</div>

<div>

<p><span style="font-size: 10pt;"><br>
<br>
</span></p>

</div>

<div>

<p><span><span style="font-size: 10pt;">If
&nbsp;the status of my layer is set to ON how do I call the layer without
adding '&amp;layer=[layername]' on the end of the URL?</span></span></p>

</div>

<div>

<p><span style="font-size: 10pt;"><br>
<br>
</span></p>

</div>

<div>

<p><span><span style="font-size: 10pt;">I
am viewing the map via localhost/cgi-bin/mapserv.exe? &nbsp;</span></span></p>

</div>

<div>

<p><span><span style="font-size: 10pt;">&nbsp;</span></span></p>

</div>

<div>

<p style="margin-bottom: 12pt;"><span><span style="font-size: 10pt;">Cheers for any help</span></span><br>
<br>
</p>

</div>

</div>




</div></blockquote></div></div></div><br>_______________________________________________<br>
mapserver-users mailing list<br>
<a href="mailto:mapserver-users@lists.osgeo.org"><a href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a></a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/mapserver-users" target="_blank"><a href="http://lists.osgeo.org/mailman/listinfo/mapserver-users">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a></a><br>
<br></blockquote></div><br>
</div></blockquote></div></body></html>