[mapserver-users] Error configuring WMS app : Projection library error. Invalid argument...

stela anders stelaanders at gmail.com
Tue Jan 5 06:20:26 PST 2010


Hello all...
I´m stuck trying to convert a mapscript app to WMS ...

My mapfile :

MAP
    EXTENT -79.7892 -34.2426 -24.9958 6.11775
    FONTSET "..\Fonts.txt"
    IMAGECOLOR 230 254 254
    IMAGETYPE png
    SIZE 400 200
    STATUS ON
    UNITS dd
    NAME "Map"

    INCLUDE "Simbols.sym"

    OUTPUTFORMAT
        NAME "png"
        MIMETYPE "image/png"
        DRIVER "GD/PNG"
        EXTENSION "png"
        IMAGEMODE "PC256"
        TRANSPARENT TRUE
    END

    PROJECTION
        'proj=longlat'
        'ellps=WGS84'
        'datum=WGS84'
        'no_defs'
    END

    WEB
        IMAGEPATH 'C:\map\temp'
        IMAGEURL '/tmp/'
        QUERYFORMAT text/html
        LEGENDFORMAT text/html
        BROWSEFORMAT text/html

        METADATA
            "wms_title"     "WMS Server"  ##required
            "wms_onlineresource" "http://localhost/cgi-bin-last/mapserv.exe?"
##required
            "wms_srs"       "EPSG:42304 EPSG:42101 EPSG:4269 EPSG:4326"
##recommended
        END
    END

    LEGEND
       ...
    END

    REFERENCE
       ...
    END

        LAYER
        NAME Argentina
        METADATA
            "wms_title"    "Argentina"   ##required
        END
        TYPE POLYGON
        STATUS ON
        INCLUDE "Connection.map"
        DATA "the_geom from tbl_argentina USING UNIQUE gid USING SRID=0"
        PROJECTION
            "proj=longlat"
            "ellps=WGS84"
            "datum=WGS84"
            "no_defs"
        END

        CLASS
            COLOR 255 200 255
        END
        END

END

When I try to open that with my OpenLayer app, I got images with that error
:

Error: msProcessProjection(): *Projection library error*. *Invalid argument

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

Any help pleasssssse!

Stella
*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20100105/14f84ee8/attachment.htm>


More information about the MapServer-users mailing list