Guys, other problem now ;(<br>I have 2 layers with same name ... One with LINE and other with ANNOTATION ... It works fine in mapscript environment... But now, with WMS I got a error when I use both layers with same name:<br>
<br><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: arial,sans-serif; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;">msWMSLoadGetMapParams():<span class="Apple-converted-space"> </span><em style="font-weight: bold; font-style: normal;">WMS server error</em>.<span class="Apple-converted-space"> </span><em style="font-weight: bold; font-style: normal;">Invalid layer</em>(s) given in the<span class="Apple-converted-space"> </span><em style="font-weight: bold; font-style: normal;">LAYERS</em><span class="Apple-converted-space"> </span>parameter<br>
<br>Both layer works separately... <br><br>My 2 layers <br><br>LAYER<br>        NAME Road<br>        METADATA<br>            &quot;wms_title&quot;    &quot;Road&quot;   <br>        END<br>        GROUP &quot;Transport&quot;<br>
        TYPE LINE<br>        STATUS ON<br>        INCLUDE &quot;Connection.map&quot; <br>        DATA ...<br>        PROJECTION<br>            &quot;+init=epsg:4326&quot;<br>        END<br>        CLASS<br>            TEMPLATE &quot;dummy&quot;            <br>
            NAME &quot;Rod x&quot;<br>            STYLE<br>                SYMBOL &quot;road&quot;<br>                COLOR 0 0 0<br>                ANTIALIAS TRUE<br>            END<br>        END        <br>    END<br>    <br>
    LAYER<br>        NAME Road<br>        METADATA<br>            &quot;wms_title&quot;    &quot;Road&quot;   <br>        END<br>        GROUP &quot;Transport&quot;<br>        TYPE ANNOTATION<br>        STATUS ON<br>        INCLUDE &quot;Connection.map&quot;<br>
        DATA ...<br>        PROJECTION<br>            &quot;+init=epsg:4326&quot;<br>        END<br>        LABELITEM &#39;rod&#39;<br>        CLASS<br>            TEMPLATE &quot;dummy&quot;<br>            STYLE<br>                SYMBOL &#39;roadsymbol&#39;<br>
            END<br>            LABEL<br>                TYPE TRUETYPE<br>                FONT Arial<br>                SIZE 7<br>                COLOR 70 70 70<br>                MINDISTANCE 100<br>                MINFEATURESIZE 10<br>
                PARTIALS FALSE<br>                BUFFER 10<br>            END<br>        END    <br>    END<br></span><br><br>Why?<br><br>Thanks and sorry for noob questions <br><br>Stella<br><br><br><br><div class="gmail_quote">
2010/1/5 Daniel Walton <span dir="ltr">&lt;<a href="mailto:dgwalton@gmail.com">dgwalton@gmail.com</a>&gt;</span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
You&#39;re welcome Stella. I struggled through the Windows WMS stuff a few months ago, glad to help.<br><br>-Dan<div><div></div><div class="h5"><br><br><div class="gmail_quote">On Tue, Jan 5, 2010 at 10:18 AM, stela anders <span dir="ltr">&lt;<a href="mailto:stelaanders@gmail.com" target="_blank">stelaanders@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;">Woww!<br>Thats it!!!!<br>Worked now!<br>Thanksss guysss ! Thanks Daniel!<br>iuupi!<br><br>Stella<br>


<br><div class="gmail_quote">2010/1/5 Daniel Walton <span dir="ltr">&lt;<a href="mailto:dgwalton@gmail.com" target="_blank">dgwalton@gmail.com</a>&gt;</span><div><div></div><div><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Stella,<br><br>Try adding a config entry to your mapfile that points to the folder containing your epsg configuration file:<br>



<pre><span>MAP</span><br>    <span>...</span><br>    <span>CONFIG</span> <span>&quot;PROJ_LIB&quot;</span> <span>&quot;C:/somedir/proj/nad/&quot;</span><br>

    <span>...</span><br><span>END</span><br></pre><br><br><span style="color: black;"><div dir="ltr"><div>
<div style="width: 150px; font-family: tahoma; font-size: 8pt; font-weight: bold;">
Dan Walton<br>
<a href="mailto:dgwalton@gmail.com" target="_blank">dgwalton@gmail.com</a>
</div></div><div style="padding: 5px 0pt; font-family: arial,sans-serif; font-size: 13.3px;"><a href="http://www.linkedin.com/in/danielwalton2010" style="padding: 0pt 2px; color: blue; font-size: 10pt;" target="_blank"><img src="" alt="Linkedin" style="vertical-align: middle; padding-bottom: 5px;" width="16" border="0" height="16"></a><a href="http://twitter.com/danwallie" style="padding: 0pt 2px; color: blue; font-size: 10pt;" target="_blank"><img src="" alt="Twitter" style="vertical-align: middle; padding-bottom: 5px;" width="16" border="0" height="16"></a></div>





</div></span><br><br><div class="gmail_quote"><div><div></div><div>On Tue, Jan 5, 2010 at 9:56 AM, stela anders <span dir="ltr">&lt;<a href="mailto:stelaanders@gmail.com" target="_blank">stelaanders@gmail.com</a>&gt;</span> wrote:<br>



</div></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div></div><div>

Hello Frank!<br>Thanks for your time ;)<br><br>I´m working on Windows 7...<br><br>I made all modifications you suggest me, but got the same error...<br>The URL now is :<br><br><a href="http://localhost/cgi-bin-last/mapserv.exe?MAP=C:/inetpub/wwwroot/Openlayer/Mapserver/Mapfile/Map.map&amp;LAYERS=Argentina&amp;TRANSPARENT=true&amp;FORMAT=image/png&amp;SERVICE=WMS&amp;VERSION=1.1.1&amp;REQUEST=GetMap&amp;STYLES=&amp;EXCEPTIONS=application/vnd.ogc.se_inimage&amp;SRS=EPSG:4326&amp;BBOX=-62.9142,-17.3676,-57.2892,-11.7426&amp;WIDTH=256&amp;HEIGHT=256" target="_blank">http://localhost/cgi-bin-last/mapserv.exe?MAP=C:/inetpub/wwwroot/Openlayer/Mapserver/Mapfile/Map.map&amp;LAYERS=Argentina&amp;TRANSPARENT=true&amp;FORMAT=image/png&amp;SERVICE=WMS&amp;VERSION=1.1.1&amp;REQUEST=GetMap&amp;STYLES=&amp;EXCEPTIONS=application/vnd.ogc.se_inimage&amp;SRS=EPSG:4326&amp;BBOX=-62.9142,-17.3676,-57.2892,-11.7426&amp;WIDTH=256&amp;HEIGHT=256</a><br>






<br><br>The only difference that I noticed is that the error in browser now is in TEXT format...<br>Before the error was write in a Image... <br><br>I´m completely lost ! :(<br><br>Any other idea?<br><br>ps.: Sorry for my bad english<br>






<br>Stella<br><br><div class="gmail_quote">2010/1/5 Frank Warmerdam <span dir="ltr">&lt;<a href="mailto:warmerdam@pobox.com" target="_blank">warmerdam@pobox.com</a>&gt;</span><div><div></div><div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">






<div>stela anders wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
        LAYER<br>
        NAME Argentina<br>
        METADATA<br>
            &quot;wms_title&quot;    &quot;Argentina&quot;   ##required<br>
        END               TYPE POLYGON<br>
        STATUS ON<br>
        INCLUDE &quot;Connection.map&quot;                DATA &quot;the_geom from tbl_argentina USING UNIQUE gid USING SRID=0&quot;<br>
        PROJECTION<br>
            &quot;proj=longlat&quot;<br>
            &quot;ellps=WGS84&quot;<br>
            &quot;datum=WGS84&quot;<br>
            &quot;no_defs&quot;<br>
        END<br>
<br>
        CLASS<br>
            COLOR 255 200 255<br>
        END<br>
        END<br>
<br>
END<br>
<br>
When I try to open that with my OpenLayer app, I got images with that error :<br>
<br>
Error: msProcessProjection(): /Projection library error/. /Invalid argument<br>
</blockquote>
<br></div>
Stella,<br>
<br>
I am not sure why you are getting this error.  I search high and low and can&#39;t<br>
find &quot;Invalid argument&quot; in either MapServer or PROJ.4.  Are you working on<br>
linux or Windows?  Were the &quot;/&quot; characters really in this message?  It is<br>
hard for me to understand how this could happen.<br>
<br>
With regard to your mapfile, I was surprised that you don&#39;t have<br>
wms_srs metadata on your layer.  It is a shot in the dark, but perhaps you<br>
could add wms_srs EPSG:4326 metadata on the layer, and reorder the wms_srs<br>
metadata on the map to put EPSG:4326 first.<br>
<br>
Also, you could try changing:<div><br>
<br>
&gt;         PROJECTION<br>
&gt;             &quot;proj=longlat&quot;<br>
&gt;             &quot;ellps=WGS84&quot;<br>
&gt;             &quot;datum=WGS84&quot;<br>
&gt;             &quot;no_defs&quot;<br>
&gt;         END<br>
<br></div>
to:<br>
<br>
PROJECTION<br>
  &quot;+init=epsg:4326&quot;<br>
END<br>
<br>
in both the layer and map.  This is slower to expand but it might<br>
make it easier for mapserver to relate to epsg codes.<div><div></div><div><br>
<br>
Best regards,<br>
-- <br>
---------------------------------------+--------------------------------------<br>
I set the clouds in motion - turn up   | Frank Warmerdam, <a href="mailto:warmerdam@pobox.com" target="_blank">warmerdam@pobox.com</a><br>
light and sound - activate the windows | <a href="http://pobox.com/%7Ewarmerdam" target="_blank">http://pobox.com/~warmerdam</a><br>
and watch the world go round - Rush    | Geospatial Programmer for Rent<br>
<br>
</div></div></blockquote></div></div></div><br>
<br></div></div>_______________________________________________<br>
mapserver-users mailing list<br>
<a href="mailto:mapserver-users@lists.osgeo.org" target="_blank">mapserver-users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/mapserver-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a><br>
<br></blockquote></div><br><br><span style="color: black;"></span>
</blockquote></div></div></div><br>
</blockquote></div><br>
</div></div></blockquote></div><br>