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
Used as a fallback for the case that
we can't find any suitable
PlacemarkDescriptor 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
ConstructorsConstructorDescriptionGenericPlacemarkDescriptor(org.opengis.feature.simple.SimpleFeatureType featureType) -
Method Summary
Modifier and TypeMethodDescriptionorg.opengis.feature.simple.SimpleFeatureTypeGets the feature type that provides the minimum set of attributes required for this placemark descriptor.getCompatibilityFor(org.opengis.feature.simple.SimpleFeatureType ft) Gets the compatibility for the givenfeatureTypewith respect to the placemarks created by this descriptor.Deprecated.Deprecated.Methods inherited from class org.esa.snap.core.datamodel.AbstractPlacemarkDescriptor
createPlacemark, getCursorHotSpot, getCursorImage, getPlacemarkGroup, getShowLayerCommandId, setUserDataOf, updateGeoPos, updatePixelPos
-
Constructor Details
-
GenericPlacemarkDescriptor
public GenericPlacemarkDescriptor(org.opengis.feature.simple.SimpleFeatureType featureType)
-
-
Method Details
-
getCompatibilityFor
Description copied from interface:PlacemarkDescriptorGets the compatibility for the givenfeatureTypewith 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:
getCompatibilityForin interfacePlacemarkDescriptor- Overrides:
getCompatibilityForin classAbstractPlacemarkDescriptor- Parameters:
ft- The feature type to be tested.- Returns:
true, if thefeatureTypeis compatible.
-
getBaseFeatureType
public org.opengis.feature.simple.SimpleFeatureType getBaseFeatureType()Description copied from interface:PlacemarkDescriptorGets the feature type that provides the minimum set of attributes required for this placemark descriptor.- Returns:
- The base feature type.
-
getRoleName
Deprecated. -
getRoleLabel
Deprecated.
-