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&LAYERS=Argentina&TRANSPARENT=true&FORMAT=image/png&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application/vnd.ogc.se_inimage&SRS=EPSG:4326&BBOX=-62.9142,-17.3676,-57.2892,-11.7426&WIDTH=256&HEIGHT=256">http://localhost/cgi-bin-last/mapserv.exe?MAP=C:/inetpub/wwwroot/Openlayer/Mapserver/Mapfile/Map.map&LAYERS=Argentina&TRANSPARENT=true&FORMAT=image/png&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application/vnd.ogc.se_inimage&SRS=EPSG:4326&BBOX=-62.9142,-17.3676,-57.2892,-11.7426&WIDTH=256&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"><<a href="mailto:warmerdam@pobox.com">warmerdam@pobox.com</a>></span><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="im">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>
"wms_title" "Argentina" ##required<br>
END TYPE POLYGON<br>
STATUS ON<br>
INCLUDE "Connection.map" DATA "the_geom from tbl_argentina USING UNIQUE gid USING SRID=0"<br>
PROJECTION<br>
"proj=longlat"<br>
"ellps=WGS84"<br>
"datum=WGS84"<br>
"no_defs"<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't<br>
find "Invalid argument" in either MapServer or PROJ.4. Are you working on<br>
linux or Windows? Were the "/" 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'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 class="im"><br>
<br>
> PROJECTION<br>
> "proj=longlat"<br>
> "ellps=WGS84"<br>
> "datum=WGS84"<br>
> "no_defs"<br>
> END<br>
<br></div>
to:<br>
<br>
PROJECTION<br>
"+init=epsg:4326"<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 class="h5"><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><br>