Package org.esa.snap.core.datamodel
Class PlacemarkDescriptorRegistry
java.lang.Object
org.esa.snap.core.datamodel.PlacemarkDescriptorRegistry
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionPlacemarkDescriptorRegistry(ServiceRegistry<PlacemarkDescriptor> serviceRegistry) -
Method Summary
Modifier and TypeMethodDescriptionstatic PlacemarkDescriptorRegistrygetPlacemarkDescriptor(Class<? extends PlacemarkDescriptor> clazz) Gives a placemark descriptors from the service registry which is compatible with the given class which extendsPlacemarkDescriptor.getPlacemarkDescriptor(String className) Gives a placemark descriptor from the service registry which is compatible with the given class name.getPlacemarkDescriptor(org.opengis.feature.simple.SimpleFeatureType featureType) Returns the 'best qualified' placemark descriptors which is compatible with the given feature type.Gives all placemark descriptors from the service registry.getPlacemarkDescriptors(org.opengis.feature.simple.SimpleFeatureType featureType) Returns an ordered list of placemark descriptors that are compatible with the given feature type.static voidsetInstance(PlacemarkDescriptorRegistry instance)
-
Field Details
-
PROPERTY_NAME_PLACEMARK_DESCRIPTOR
- See Also:
-
-
Constructor Details
-
PlacemarkDescriptorRegistry
-
-
Method Details
-
getInstance
-
setInstance
-
getPlacemarkDescriptor
Gives a placemark descriptors from the service registry which is compatible with the given class which extendsPlacemarkDescriptor.- Parameters:
clazz- The class.- Returns:
- the placemark descriptor
-
getPlacemarkDescriptor
Gives a placemark descriptor from the service registry which is compatible with the given class name.- Parameters:
className- The class name.- Returns:
- the placemark descriptor
-
getPlacemarkDescriptors
Gives all placemark descriptors from the service registry.- Returns:
- the placemark descriptors
-
getPlacemarkDescriptors
public List<PlacemarkDescriptor> getPlacemarkDescriptors(org.opengis.feature.simple.SimpleFeatureType featureType) Returns an ordered list of placemark descriptors that are compatible with the given feature type. The list is sorted by by the level of compatibility (seeDecodeQualification). A feature type may have given the class name of an appropriate placemark descriptor in its "user data", the key for that descriptor name is given byAbstractPlacemarkDescriptor.PROPERTY_NAME_PLACEMARK_DESCRIPTOR.- Parameters:
featureType- The feature type.- Returns:
- An ordered list of descriptors, which may be empty.
-
getPlacemarkDescriptor
public PlacemarkDescriptor getPlacemarkDescriptor(org.opengis.feature.simple.SimpleFeatureType featureType) Returns the 'best qualified' placemark descriptors which is compatible with the given feature type.- Parameters:
featureType- The feature type.- Returns:
- the placemark descriptor
-