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.
