[mapserver-users] Problem with an empty mapfile
Lester Caine
lester at lsces.co.uk
Mon May 3 23:23:54 PDT 2010
Felipe Alcacibar wrote:
> I am using MapServer 5.6.3, and php mapscript, and i am making the
> mapfiles dynamicly, but now when i update mapserver i cannot read the
> mapserver file. i trying with:
>
> MAP
> PROJECTION
> "init=epsg:4326"
> END
> END
>
> - i recive 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
> /hosting/http/tryer.cl/dom/devel/www/orionforestal/openlayers/res/include/gis.map.php
> on line 5
>
> - mapserver info:
>
> rohan openlayers # echo "<?= ms_GetVersion() ?>" | php
> MapServer version 5.6.3 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP
> OUTPUT=PDF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE
> SUPPORTS=ICONV SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT
> SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER
> SUPPORTS=SOS_SERVER SUPPORTS=THREADS SUPPORTS=GEOS INPUT=EPPL7
> INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE
>
> how i could fix that?
http://mapserver.org/introduction.html#map-object
While the content of the error is not particularly clear, it is describing the
situation correctly! Every map requires an EXTENT, and SIZE, otherwise the map
does not exist .... hence the zero size ... hence failed to open.
--
Lester Caine - G8HFL
-----------------------------
Contact - http://lsces.co.uk/wiki/?page=contact
L.S.Caine Electronic Services - http://lsces.co.uk
EnquirySolve - http://enquirysolve.com/
Model Engineers Digital Workshop - http://medw.co.uk//
Firebird - http://www.firebirdsql.org/index.php
More information about the MapServer-users
mailing list