Package org.esa.snap.core.datamodel
Class GeometryDescriptor
- java.lang.Object
-
- org.esa.snap.core.datamodel.AbstractPlacemarkDescriptor
-
- org.esa.snap.core.datamodel.GeometryDescriptor
-
- All Implemented Interfaces:
PlacemarkDescriptor
public class GeometryDescriptor extends AbstractPlacemarkDescriptor
APlacemarkDescriptor
that is used to create placemarks that are actually plain geometries.- Since:
- BEAM 4.10
-
-
Field Summary
-
Fields inherited from class org.esa.snap.core.datamodel.AbstractPlacemarkDescriptor
PROPERTY_NAME_DEFAULT_GEOMETRY, PROPERTY_NAME_PLACEMARK_DESCRIPTOR
-
-
Constructor Summary
Constructors Constructor Description GeometryDescriptor()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description org.opengis.feature.simple.SimpleFeatureType
getBaseFeatureType()
Gets the feature type that provides the minimum set of attributes required for this placemark descriptor.DecodeQualification
getCompatibilityFor(org.opengis.feature.simple.SimpleFeatureType featureType)
Gets the compatibility for the givenfeatureType
with respect to the placemarks created by this descriptor.String
getRoleLabel()
Deprecated.String
getRoleName()
Deprecated.-
Methods inherited from class org.esa.snap.core.datamodel.AbstractPlacemarkDescriptor
createPlacemark, getCursorHotSpot, getCursorImage, getPlacemarkGroup, getShowLayerCommandId, setUserDataOf, updateGeoPos, updatePixelPos
-
-
-
-
Method Detail
-
getCompatibilityFor
public DecodeQualification getCompatibilityFor(org.opengis.feature.simple.SimpleFeatureType featureType)
Description copied from interface:PlacemarkDescriptor
Gets the compatibility for the givenfeatureType
with respect to the placemarks created by this descriptor.The method shall only return
DecodeQualification.INTENDED
, if the descriptor was designed for interpreting the given feature type, e.g. by inspecting thefeatureType
's user data which may be set byPlacemarkDescriptor.setUserDataOf(org.opengis.feature.simple.SimpleFeatureType)
.The method may return
DecodeQualification.SUITABLE
, if thePlacemarkDescriptor.createPlacemark(org.opengis.feature.simple.SimpleFeature)
method can successfully create a new placemark from a feature having the compatiblefeatureType
.- Specified by:
getCompatibilityFor
in interfacePlacemarkDescriptor
- Overrides:
getCompatibilityFor
in classAbstractPlacemarkDescriptor
- Parameters:
featureType
- The feature type to be tested.- Returns:
true
, if thefeatureType
is compatible.
-
getBaseFeatureType
public org.opengis.feature.simple.SimpleFeatureType getBaseFeatureType()
Description copied from interface:PlacemarkDescriptor
Gets the feature type that provides the minimum set of attributes required for this placemark descriptor.- Returns:
- The base feature type.
-
getRoleName
@Deprecated public String getRoleName()
Deprecated.
-
getRoleLabel
@Deprecated public String getRoleLabel()
Deprecated.
-
-