@Api(allMethods=true) public interface InternalFeature extends Cloneable, Comparable<InternalFeature>
This is the main feature class, internally used on the server. Even though each
VectorLayer may have it's own specific feature objects, this is the common feature type
that comes out of the VectorLayerService class and is used throughout the back-end.
| Modifier and Type | Method and Description |
|---|---|
InternalFeature |
clone()
Create a deep clone of this internal feature.
|
InternalFeature |
cloneWithoutGeometry()
Create a deep clone of this internal feature but without cloning the geometry (stays null).
|
int |
compareTo(InternalFeature other)
This function compares style ID's between features.
|
Map<String,Attribute> |
getAttributes()
Get the attributes for the feature (can be null when the attributes are lazy loaded).
|
com.vividsolutions.jts.geom.Envelope |
getBounds()
Get the feature's bounding box.
|
com.vividsolutions.jts.geom.Geometry |
getClippedGeometry()
Get the clipped geometry.
|
com.vividsolutions.jts.geom.Geometry |
getGeometry()
Get the feature geometry (or null when it is lazy loaded).
|
String |
getId()
Get the feature id.
|
String |
getLabel()
Get the label for the feature (if any).
|
VectorLayer |
getLayer()
Get the layer this feature is part of.
|
FeatureStyleInfo |
getStyleInfo()
Get the style info for this feature (or null when it is lazy loaded).
|
boolean |
isClipped()
Has the feature geometry been clipped ?
|
boolean |
isDeletable()
Is the logged in user allowed to delete this feature?
|
boolean |
isEditable()
Is the logged in user allowed to edit this feature?
|
void |
setAttributes(Map<String,Attribute> attributes)
Set the map with the attributes, keyed on the attribute name.
|
void |
setClipped(boolean clipped)
Set clipped status for feature.
|
void |
setClippedGeometry(com.vividsolutions.jts.geom.Geometry clippedGeometry)
Set the clipped geometry.
|
void |
setDeletable(boolean deletable)
Set whether the logged in user is allowed to delete this feature.
|
void |
setEditable(boolean editable)
Set whether the logged in user is allowed to edit/update this feature.
|
void |
setGeometry(com.vividsolutions.jts.geom.Geometry geometry)
Set the geometry for the feature.
|
void |
setId(String id)
Set the feature id.
|
void |
setLabel(String label)
Ser the label for the feature.
|
void |
setLayer(VectorLayer layer)
Set the layer this feature is part of.
|
void |
setStyleDefinition(FeatureStyleInfo style)
Set the style info for this feature.
|
com.vividsolutions.jts.geom.Envelope getBounds()
int compareTo(InternalFeature other)
compareTo in interface Comparable<InternalFeature>other - InternalFeature to compare withvoid setId(String id)
id - feature idString getId()
Map<String,Attribute> getAttributes()
void setAttributes(Map<String,Attribute> attributes)
attributes - attributes mapcom.vividsolutions.jts.geom.Geometry getGeometry()
void setGeometry(com.vividsolutions.jts.geom.Geometry geometry)
geometry - geometry for the featureFeatureStyleInfo getStyleInfo()
void setStyleDefinition(FeatureStyleInfo style)
style - styleVectorLayer getLayer()
void setLayer(VectorLayer layer)
layer - layer this feature is part ofString getLabel()
void setLabel(String label)
label - label for featureboolean isClipped()
void setClipped(boolean clipped)
clipped - clipped statuscom.vividsolutions.jts.geom.Geometry getClippedGeometry()
void setClippedGeometry(com.vividsolutions.jts.geom.Geometry clippedGeometry)
clippedGeometry - clipped geometryboolean isEditable()
void setEditable(boolean editable)
editable - true when edit/update is allowed for this featureboolean isDeletable()
void setDeletable(boolean deletable)
deletable - true when deleting this feature is allowedInternalFeature clone()
InternalFeature cloneWithoutGeometry()
Copyright © 2015 Geosparc. All Rights Reserved.