layer.getType() before setType(): No enum class edu.umn.gis.mapscript.MS_LAYER_TYPE with value -1

Arkadi Shishlov arkadi at MEBIUS.LV
Fri Jun 1 03:47:32 PDT 2007


If layer.getType() is called before setType() the exception is raised:

java.lang.IllegalArgumentException: No enum class edu.umn.gis.mapscript.MS_LAYER_TYPE with value -1
	at edu.umn.gis.mapscript.MS_LAYER_TYPE.swigToEnum(MS_LAYER_TYPE.java:35)
	at edu.umn.gis.mapscript.layerObj.getType(layerObj.java:118)

Is it intentional? Would it be more convinient to extend enum with UNKNOWN or NOT_INITIALIZED?
MapServer 4.10.1.



More information about the MapServer-users mailing list