Class PlacemarkDescriptorRegistry

java.lang.Object
org.esa.snap.core.datamodel.PlacemarkDescriptorRegistry

public class PlacemarkDescriptorRegistry extends Object
  • Field Details

  • Constructor Details

  • Method Details

    • getInstance

      public static PlacemarkDescriptorRegistry getInstance()
    • setInstance

      public static void setInstance(PlacemarkDescriptorRegistry instance)
    • getPlacemarkDescriptor

      public PlacemarkDescriptor getPlacemarkDescriptor(Class<? extends PlacemarkDescriptor> clazz)
      Gives a placemark descriptors from the service registry which is compatible with the given class which extends PlacemarkDescriptor.
      Parameters:
      clazz - The class.
      Returns:
      the placemark descriptor
    • getPlacemarkDescriptor

      public PlacemarkDescriptor getPlacemarkDescriptor(String className)
      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

      public Set<PlacemarkDescriptor> 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 (see DecodeQualification). 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 by AbstractPlacemarkDescriptor.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