Interface PlacemarkDescriptor
- All Known Implementing Classes:
AbstractPlacemarkDescriptor,GcpDescriptor,GenericPlacemarkDescriptor,GeometryDescriptor,PinDescriptor,PointDescriptor,PointPlacemarkDescriptor,TrackPointDescriptor
Placemarks.
New placemark descriptors can be added by using the Service Provider Interface
META-INF/services/PlacemarkDescriptor.
Since this interface is likely to change, clients should not directly implement it.
Instead they should derive their implementation from AbstractPlacemarkDescriptor.
- Since:
- BEAM 2.0 (full revision since BEAM 4.10)
- Version:
- 2.0
-
Method Summary
Modifier and TypeMethodDescriptioncreatePlacemark(org.opengis.feature.simple.SimpleFeature feature) Creates a new placemark by wrapping the given feature.org.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 featureType) Gets the compatibility for the givenfeatureTypewith respect to the placemarks created by this descriptor.Deprecated.Deprecated.getPlacemarkGroup(Product product) Deprecated.Deprecated.Deprecated.Deprecated.voidsetUserDataOf(org.opengis.feature.simple.SimpleFeatureType compatibleFeatureType) Asks the descriptor to set any application specific information in the feature type's user data.updateGeoPos(GeoCoding geoCoding, PixelPos pixelPos, GeoPos geoPos) Deprecated.updatePixelPos(GeoCoding geoCoding, GeoPos geoPos, PixelPos pixelPos) Deprecated.
-
Method Details
-
createPlacemark
Creates a new placemark by wrapping the given feature.- Parameters:
feature- The feature to be wrapped.- Returns:
- The new placemark.
-
setUserDataOf
void setUserDataOf(org.opengis.feature.simple.SimpleFeatureType compatibleFeatureType) Asks the descriptor to set any application specific information in the feature type's user data. When called, the framework has already classified the given feature type as beingDecodeQualification.INTENDEDorDecodeQualification.SUITABLEby consulting the methodgetCompatibilityFor(org.opengis.feature.simple.SimpleFeatureType).Implementors of this method may consider setting specific user data that allows
getCompatibilityFor(org.opengis.feature.simple.SimpleFeatureType)to returnDecodeQualification.INTENDEDafter e.g. data has been deserialized from a persistent data store.- Parameters:
compatibleFeatureType- A compatible feature type whose user data may or may not be altered.
-
getCompatibilityFor
Gets 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 bysetUserDataOf(org.opengis.feature.simple.SimpleFeatureType).The method may return
DecodeQualification.SUITABLE, if thecreatePlacemark(org.opengis.feature.simple.SimpleFeature)method can successfully create a new placemark from a feature having the compatiblefeatureType.- Parameters:
featureType- The feature type to be tested.- Returns:
true, if thefeatureTypeis compatible.
-
getBaseFeatureType
org.opengis.feature.simple.SimpleFeatureType getBaseFeatureType()Gets the feature type that provides the minimum set of attributes required for this placemark descriptor.- Returns:
- The base feature type.
-
getRoleName
Deprecated. -
getRoleLabel
Deprecated. -
getPlacemarkGroup
Deprecated. -
updatePixelPos
Deprecated. -
updateGeoPos
Deprecated. -
getShowLayerCommandId
Deprecated. -
getCursorImage
Deprecated. -
getCursorHotSpot
Deprecated.
-