<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;">Hello all...<br>
I´m stuck trying to convert a mapscript app to WMS ...<br><br>My mapfile :<br><br>MAP<br>    EXTENT -79.7892 -34.2426 -24.9958 6.11775<br>    FONTSET "..\Fonts.txt"<br>    IMAGECOLOR 230 254 254<br>    IMAGETYPE png<br>
    SIZE 400 200<br>    STATUS ON<br>    UNITS dd<br>    NAME "Map"    <br>    <br>    INCLUDE "Simbols.sym"<br>    <br>    OUTPUTFORMAT<br>        NAME "png"<br>        MIMETYPE "image/png"<br>
        DRIVER "GD/PNG"<br>        EXTENSION "png"<br>        IMAGEMODE "PC256"<br>        TRANSPARENT TRUE<br>    END<br>    <br>    PROJECTION<br>        'proj=longlat'<br>        'ellps=WGS84'<br>
        'datum=WGS84'<br>        'no_defs'<br>    END<br><br>    WEB<br>        IMAGEPATH 'C:\map\temp'<br>        IMAGEURL '/tmp/'<br>        QUERYFORMAT text/html<br>        LEGENDFORMAT text/html<br>
        BROWSEFORMAT text/html<br>        <br>        METADATA<br>            "wms_title"     "WMS Server"  ##required<br>            "wms_onlineresource" "<a href="http://localhost/cgi-bin-last/mapserv.exe">http://localhost/cgi-bin-last/mapserv.exe</a>?"   ##required<br>
            "wms_srs"       "EPSG:42304 EPSG:42101 EPSG:4269 EPSG:4326"  ##recommended<br>        END<br>    END    <br><br>    LEGEND<br>       ...<br>    END  <br>        <br>    REFERENCE<br>       ...<br>
    END    <br><br>        LAYER<br>        NAME Argentina<br>        METADATA<br>            "wms_title"    "Argentina"   ##required<br>        END        <br>        TYPE POLYGON<br>        STATUS ON<br>
        INCLUDE "Connection.map"         <br>        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():<span class="Apple-converted-space"> </span><em style="font-weight: bold; font-style: normal;">Projection library error</em>.<span class="Apple-converted-space"> </span><em style="font-weight: bold; font-style: normal;">Invalid argument<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%3A4326&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%3A4326&BBOX=-62.9142,-17.3676,-57.2892,-11.7426&WIDTH=256&HEIGHT=256</a><br>
<br>Any help pleasssssse!<br><br>Stella<br></em></span>