[mapserver-users] creating dynamic map from php mapscript

Jeff McKenna jmckenna at gatewaygeomatics.com
Wed May 19 10:25:01 EDT 2010


Felipe Alcacibar wrote:
> I am using MapServer 5.6.3, and php mapscript, and i am making the
> maps dynamicly with mapscript for php, but now when i update mapserver
> i cannot read the
> mapserver file, i got the following error.
> 
> Warning: [MapServer Error]: msProcessProjection(): major axis or
> radius = 0 or not given in res/include/gis.map.php on line 5
> 
> Warning: Failed to open map file res/include/../map/main.map in
> res/include/gis.map.php
> on line 5
> 
> i am probing with different types but i cannot create a map, i am testing with
> 
> MAP
>        NAME    "lalalala"
>        EXTENT  -180 -90 180 90
>        SIZE    320 250
>        IMAGECOLOR 255 255 255
>        PROJECTION
>                "init=epsg:4326"
>        END
> END
> 
> i cannot know what i do, someone could help me
> 

Does that small test file work with the shp2img command?  If you get the 
same error, you could use the PROJ.4 parameters instead, such as:

    PROJECTION
      "proj=latlong"
      "ellps=WGS84"
    END

-jeff


-- 
Jeff McKenna
MapServer Consulting and Training Services
http://www.gatewaygeomatics.com/







More information about the mapserver-users mailing list