java.lang.Object
org.apache.sis.internal.storage.gpx.Types

final class Types extends Object
Feature types that may appear in GPX files. All values defined in this class are immutable and can be shared by many Reader instances. There is usually only one Types instance for a running JVM, but we nevertheless allows definition of alternative Types with names created by different factories.
Since:
0.8
Version:
0.8
  • Field Details

    • parent

      final DefaultFeatureType parent
      The parent of all other feature types.
    • wayPoint

      final DefaultFeatureType wayPoint
      Way point GPX feature type.
    • route

      final DefaultFeatureType route
      Route GPX feature type.
    • track

      final DefaultFeatureType track
      Track GPX feature type.
    • trackSegment

      final DefaultFeatureType trackSegment
      Track segment GPX feature type.
    • metadata

      final Collection<org.opengis.metadata.content.ContentInformation> metadata
      The list of feature types to be given to GPC metadata objects.
    • names

      Deprecated.
      We are not sure yet if we will keep this field. Decision is pending acquisition of more experience with the API proposed by FeatureSet.
      Binding from names to feature type instances. Shall not be modified after construction.
    • geometries

      final Geometries<?> geometries
      Accessor to the geometry implementation in use (Java2D, ESRI or JTS).
    • DEFAULT

      static final Types DEFAULT
      A system-wide instance for FeatureType instances created using the DefaultNameFactory. This is normally the only instance used in an application.
  • Constructor Details

    • Types

      Types(org.opengis.util.NameFactory factory, Locale locale, GeometryLibrary library) throws org.opengis.util.FactoryException, IllegalNameException
      Creates new FeatureTypes with feature names and property names created using the given factory.
      Parameters:
      factory - the factory to use for creating names, or null for the default factory.
      locale - the locale to use for formatting error messages, or null for the default locale.
      library - the required geometry library, or null for the default.
      Throws:
      org.opengis.util.FactoryException - if an error occurred while creating an "envelope bounds" operation.
      IllegalNameException
  • Method Details

    • create

      private static DefaultFeatureType create(FeatureTypeBuilder builder, Map<String,org.opengis.util.InternationalString[]> previous)
      Adds internationalized designation and definition information for all properties in the given type. Then, returns the result of FeatureTypeBuilder.build().
      Parameters:
      builder - the feature type builder for which to add designations and definitions.
      previous - previously created international strings as array of length 2. The first element is the designation and the second element is the definition.