Class Types
java.lang.Object
org.apache.sis.internal.storage.gpx.Types
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 Summary
FieldsModifier and TypeFieldDescription(package private) static final Types
A system-wide instance forFeatureType
instances created using theDefaultNameFactory
.(package private) final Geometries
<?> Accessor to the geometry implementation in use (Java2D, ESRI or JTS).(package private) final Collection
<org.opengis.metadata.content.ContentInformation> The list of feature types to be given to GPC metadata objects.(package private) final FeatureNaming
<DefaultFeatureType> Deprecated.We are not sure yet if we will keep this field.(package private) final DefaultFeatureType
The parent of all other feature types.(package private) final DefaultFeatureType
Route GPX feature type.(package private) final DefaultFeatureType
Track GPX feature type.(package private) final DefaultFeatureType
Track segment GPX feature type.(package private) final DefaultFeatureType
Way point GPX feature type. -
Constructor Summary
ConstructorsConstructorDescriptionTypes
(org.opengis.util.NameFactory factory, Locale locale, GeometryLibrary library) Creates newFeatureTypes
with feature names and property names created using the given factory. -
Method Summary
Modifier and TypeMethodDescriptionprivate 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.
-
Field Details
-
parent
The parent of all other feature types. -
wayPoint
Way point GPX feature type. -
route
Route GPX feature type. -
track
Track GPX feature type. -
trackSegment
Track segment GPX feature type. -
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 byFeatureSet
.Binding from names to feature type instances. Shall not be modified after construction. -
geometries
Accessor to the geometry implementation in use (Java2D, ESRI or JTS). -
DEFAULT
A system-wide instance forFeatureType
instances created using theDefaultNameFactory
. 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 newFeatureTypes
with feature names and property names created using the given factory.- Parameters:
factory
- the factory to use for creating names, ornull
for the default factory.locale
- the locale to use for formatting error messages, ornull
for the default locale.library
- the required geometry library, ornull
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 ofFeatureTypeBuilder.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.
-