Invalid extent
Johansen Per Henrik
phj at COWI.NO
Mon Oct 24 05:10:23 PDT 2005
Hi,
I am upgrading mapserver from 4.0.1 to 4.6.1.
Compilation goes without any problems, but when I access the map application using the new MapServer I get the following error:
loadMapInternal(): General error message. Given map extent is invalid.
It seems that the new version is stricter, but I am not able to put my hands on the problem and how to fix it, and am hoping for some advice.
The url sent to the server is as follows:
http://gpi-test.nijos.no/cgi-bin/mapserv.ny?map=/var/www/html/nijos/nijos32.map&zoomsize=2&program=/cgi-bin/mapserv.ny&map_web_imagepath=/var/www/html/tmp/&map_web_imageurl=/tmp/&zoomdir=0&layers=DEK&map_SHAPEPATH=/var/www/html/tmp/&shapeDEK=/var/www/html/tmp/dek48760.shp&mapext=268824.846055588+6575985.30473746+269770.43459368+6577382.87979713
As you can see the extent is 268824.846055588 6575985.30473746 269770.43459368 6577382.87979713
The layer is defined as follows:
LAYER
NAME "DEK"
TYPE Polygon
STATUS off
DATA "%shapeDEK%"
DEBUG ON
LABELITEM "id"
LABELCACHE on
PROJECTION
ellps=GRS80
proj=utm
zone=33
ellps=WGS84
datum=WGS84
units=m
no_defs
END
CLASS
Name dek
DEBUG ON
OUTLINECOLOR 255 153 153
SYMBOL 'circle'
size 3
LABEL
COLOR 0 0 0
TYPE TRUETYPE
FONT arial
SIZE 18
ANTIALIAS TRUE
POSITION AUTO
PARTIALS FALSE
MINDISTANCE 500
BUFFER 4
FORCE TRUE
END # end of label
END # CLASS
END
And the ogrinfo is as follows:
INFO: Open of `C:\Documents and Settings\dfkons\Mine Dokumenter\dek48760.shp'
using driver `ESRI Shapefile' successful.
Layer name: dek48760
Geometry: Polygon
Feature Count: 2
Extent: (268854.846056, 6576015.304737) - (269740.434594, 6577352.879797)
Layer SRS WKT:
(unknown)
id: String (5.0)
type: String (4.0)
area: String (5.0)
areafakt: String (5.0)
Regards,
Per Henrik
More information about the MapServer-users
mailing list