@Api(allMethods=true)
@UserImplemented
public interface FeatureModel
| Modifier and Type | Method and Description |
|---|---|
boolean |
canHandle(Object feature)
Can a given 'feature' object be handled by this FeatureModel?
|
Attribute |
getAttribute(Object feature,
String name)
Return the attribute value with the given name.
|
Map<String,Attribute> |
getAttributes(Object feature)
Deprecated.
the back-end implements this itself since 1.9.0 to provide lazy attribute loading if needed
|
com.vividsolutions.jts.geom.Geometry |
getGeometry(Object feature)
Return the geometry of a feature.
|
String |
getGeometryAttributeName()
Return the name which can be used to get the geometric attribute.
|
String |
getId(Object feature)
Return the id of a feature.
|
int |
getSrid()
Return the spatial reference id of the coordinate reference system.
|
Object |
newInstance()
Create a default feature.
|
Object |
newInstance(String id)
Create a default feature.
|
void |
setAttributes(Object feature,
Map<String,Attribute> attributes)
Set the attributes of a feature.
|
void |
setGeometry(Object feature,
com.vividsolutions.jts.geom.Geometry geometry)
Set the geometry of a feature.
|
void |
setLayerInfo(VectorLayerInfo vectorLayerInfo)
Set the layer info for this layer model.
|
void setLayerInfo(VectorLayerInfo vectorLayerInfo) throws LayerException
vectorLayerInfo - vector layer infoLayerException - oopsAttribute getAttribute(Object feature, String name) throws LayerException
feature - the featurename - the attribute nameLayerException - oops@Deprecated Map<String,Attribute> getAttributes(Object feature) throws LayerException
feature - the featureLayerException - oopsString getId(Object feature) throws LayerException
feature - the featureLayerException - oopscom.vividsolutions.jts.geom.Geometry getGeometry(Object feature) throws LayerException
feature - the featureLayerException - oopsvoid setAttributes(Object feature, Map<String,Attribute> attributes) throws LayerException
feature - the featureattributes - the attributesLayerException - oopsvoid setGeometry(Object feature, com.vividsolutions.jts.geom.Geometry geometry) throws LayerException
feature - the featuregeometry - the geometryLayerException - oopsObject newInstance() throws LayerException
LayerException - oopsObject newInstance(String id) throws LayerException
id - Optional ID. use null, if you want the id to be generated.LayerException - oopsint getSrid()
throws LayerException
LayerException - oopsString getGeometryAttributeName() throws LayerException
LayerException - oopsboolean canHandle(Object feature)
feature - A object from a layer.Copyright © 2015 Geosparc. All Rights Reserved.