Package org.esa.snap.core.datamodel
Class GenericPlacemarkDescriptor
- java.lang.Object
-
- org.esa.snap.core.datamodel.AbstractPlacemarkDescriptor
-
- org.esa.snap.core.datamodel.GenericPlacemarkDescriptor
-
- All Implemented Interfaces:
PlacemarkDescriptor
public class GenericPlacemarkDescriptor extends AbstractPlacemarkDescriptor
Used as a fallback for the case that we can't find any suitablePlacemarkDescriptor
for a given SimpleFeatureType.- 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 GenericPlacemarkDescriptor(org.opengis.feature.simple.SimpleFeatureType featureType)
-
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 ft)
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 ft)
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:
ft
- 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.
-
-