code: public static int getCode(Geometry geometry) {
  		int code = getCode(geometry.getGeometryType());
  		if (geometry.hasZ()) {
  			code += 1000;
  		}
  		if (geometry.hasM()) {
  			code += 2000;
  		}
  		return code;
  	}
docs: Get the geometry code from the geometry
  
  @param geometry
  geometry
  @return geometry code