| |
|
| java.lang.Object org.deegree.graphics.AbstractLayer org.deegree.graphics.FeatureLayer
FeatureLayer | public class FeatureLayer extends AbstractLayer (Code) | | A Layer is a collection of Features building a thematic 'unit' waterways or country
borders for example. Features can be added or removed from the layer. A
Feature can e changed by a modul of the application using the layer because only
references to Features are stored within a layer.
author: Andreas Poth version: $Revision: 10222 $ $Date: 2008-02-21 05:10:50 -0800 (Thu, 21 Feb 2008) $ |
FeatureLayer | protected FeatureLayer(String name) throws Exception(Code) | | creates a layer with EPSG:4326 as default coordinate system
|
getAllFeatures | public Feature[] getAllFeatures()(Code) | | returns all features
all features as array |
getFeature | public Feature getFeature(int index)(Code) | | returns the feature that matches the submitted index
Parameters: index - a feature |
getFeatureById | public Feature getFeatureById(String id)(Code) | | returns the feature that matches the submitted id
Parameters: id - feature identified by its id |
getFeaturesById | public Feature[] getFeaturesById(String[] ids)(Code) | | returns the feature that matches the submitted id
Parameters: ids - features identified by their id |
getSize | public int getSize()(Code) | | returns the amount of features within the layer.
number of contained features |
removeFeature | public void removeFeature(Feature feature) throws Exception(Code) | | removes a display Element from the layer
Parameters: feature - throws: Exception - |
removeFeature | public void removeFeature(int id) throws Exception(Code) | | removes the display Element from the layer that matches the submitted id
Parameters: id - throws: Exception - |
setCoordinatesSystem | public void setCoordinatesSystem(CoordinateSystem crs) throws Exception(Code) | | sets the coordinate reference system of the MapView. If a new crs is set all geometries of
GeometryFeatures will be transformed to the new coordinate reference system.
Parameters: crs - throws: Exception - |
|
|
|