bufferLayer.setType(mapscriptConstants.MS_LAYER_POINT);
bufferLayer.setType(MS_LAYER_TYPE.MS_LAYER_POINT);
    public void createBuffer(mapObj map) {	layerObj layer = map.getLayer(3);	if (layer!=null) {		layer.open();		shapeObj shape=layer.getFeature(0,-1);		if (shape!=null) {			shapeObj buffer=shape.buffer(0.1);			if (buffer != null) {				layerObj bufferLayer=new layerObj(map);				bufferLayer.setStatus(mapscriptConstants.MS_DEFAULT);				bufferLayer.setDebug(mapscriptConstants.MS_ON);				bufferLayer.setName("BUFFER");				//bufferLayer.setType(mapscriptConstants.MS_LAYER_POLYGON);				bufferLayer.setProjection("init=epsg:4326");				bufferLayer.setType(mapscriptConstants.MS_LAYER_POINT);				bufferLayer.setTransparency(50);				classObj clazz=new classObj(bufferLayer);				clazz.setName("Buffer class");				styleObj style=new styleObj(clazz);				colorObj green=new colorObj(0,254,0,-4);				//green.setRGB(0,254,0);				style.setColor(green);				bufferLayer.addFeature(buffer);			} else {				System.out.println("Buffer shape is NULL!");			}		}	}	    }