Invalid extent

Johansen Per Henrik phj at COWI.NO
Tue Oct 25 03:31:27 EDT 2005


Hi,

found out what was wrong, the error message said it all:
 --> loadMapInternal(): General error message. Given map extent is invalid.

It was an invalid extent in the mapfile. Fixed it and everything seem fine.

Per Henrik

-----Original Message-----
From:	UMN MapServer Users List on behalf of Johansen Per Henrik
Sent:	Mon 10/24/2005 7:10 PM
To:	MAPSERVER-USERS at LISTS.UMN.EDU
Cc:	
Subject:	[UMN_MAPSERVER-USERS] Invalid extent
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