Package org.geotools.gml2
Class GMLSchema
Object
SchemaImpl
GMLSchema
- All Implemented Interfaces:
Map<Name,
,AttributeType> Schema
-
Nested Class Summary
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final FeatureType
static final FeatureType
static final FeatureType
static final AttributeType
<complexType abstract="true" name="AbstractGeometryCollectionBaseType"> <annotation> <documentation> This abstract base type for geometry collections just makes the srsName attribute mandatory.
static final AttributeType
<complexType abstract="true" name="AbstractGeometryType"> <annotation> <documentation> All geometry elements are derived from this abstract supertype; a geometry element may have an identifying attribute (gid).
static final AttributeType
<complexType name="BoundingShapeType"> <annotation> <documentation> Bounding shapes--a Box or a null element are currently allowed.
static final AttributeType
<complexType name="BoxType"> <annotation> <documentation> The Box structure defines an extent using a pair of coordinate tuples.
static final AttributeType
<complexType name="CoordinatesType"> <annotation> <documentation> Coordinates can be included in a single string, but there is no facility for validating string content.
static final AttributeType
<complexType name="CoordType"> <annotation> <documentation> Represents a coordinate tuple in one, two, or three dimensions.
static final AttributeType
<complexType name="FeatureAssociationType"> <annotation> <documentation> An instance of this type (e.g. a featureMember) can either enclose or point to a feature (or feature collection); this type can be restricted in an application schema to allow only specified features as valid participants in the association.
static final AttributeType
<complexType name="GeometryAssociationType"> <annotation> <documentation> An instance of this type (e.g. a geometryMember) can either enclose or point to a primitive geometry element.
static final AttributeType
<complexType name="GeometryCollectionType"> <annotation> <documentation> A geometry collection must include one or more geometries, referenced through geometryMember elements.
static final AttributeType
<complexType name="GeometryPropertyType"> <annotation> <documentation> A simple geometry property encapsulates a geometry element.
static final AttributeType
<complexType name="LinearRingMemberType"> <annotation> <documentation>Restricts the outer or inner boundary of a polygon instance to being a LinearRing.</documentation> </annotation> <complexContent> <restriction base="gml:GeometryAssociationType"> <sequence minOccurs="0"> <element ref="gml:LinearRing"/> </sequence> <attributeGroup ref="gml:AssociationAttributeGroup"/> </restriction> </complexContent> </complexType>
static final AttributeType
<complexType name="LinearRingType"> <annotation> <documentation> A LinearRing is defined by four or more coordinate tuples, with linear interpolation between them; the first and last coordinates must be coincident.
static final AttributeType
<complexType name="LineStringMemberType"> <annotation> <documentation>Restricts the geometry member to being a LineString instance.</documentation> </annotation> <complexContent> <restriction base="gml:GeometryAssociationType"> <sequence minOccurs="0"> <element ref="gml:LineString"/> </sequence> <attributeGroup ref="gml:AssociationAttributeGroup"/> </restriction> </complexContent> </complexType>
static final AttributeType
<complexType name="LineStringPropertyType"> <annotation> <documentation> Encapsulates a single LineString to represent centerLineOf or edgeOf properties.
static final AttributeType
<complexType name="LineStringType"> <annotation> <documentation> A LineString is defined by two or more coordinate tuples, with linear interpolation between them.
static final AttributeType
<complexType name="MultiGeometryPropertyType"> <annotation> <documentation>Encapsulates a MultiGeometry element.</documentation> </annotation> <complexContent> <restriction base="gml:GeometryAssociationType"> <sequence minOccurs="0"> <element ref="gml:MultiGeometry"/> </sequence> <attributeGroup ref="xlink:simpleLink"/> <attribute ref="gml:remoteSchema" use="optional"/> </restriction> </complexContent> </complexType>
static final AttributeType
<complexType name="MultiLineStringPropertyType"> <annotation> <documentation> Encapsulates a MultiLineString element to represent the following discontiguous geometric properties: multiEdgeOf, multiCenterLineOf.
static final AttributeType
<complexType name="MultiLineStringType"> <annotation> <documentation> A MultiLineString is defined by one or more LineStrings, referenced through lineStringMember elements.
static final AttributeType
<complexType name="MultiPointPropertyType"> <annotation> <documentation> Encapsulates a MultiPoint element to represent the following discontiguous geometric properties: multiLocation, multiPosition, multiCenterOf.
static final AttributeType
<complexType name="MultiPointType"> <annotation> <documentation> A MultiPoint is defined by one or more Points, referenced through pointMember elements.
static final AttributeType
<complexType name="MultiPolygonPropertyType"> <annotation> <documentation> Encapsulates a MultiPolygon to represent the following discontiguous geometric properties: multiCoverage, multiExtentOf.
static final AttributeType
<complexType name="MultiPolygonType"> <annotation> <documentation> A MultiPolygon is defined by one or more Polygons, referenced through polygonMember elements.
static final AttributeType
<simpleType name="NullType"> <annotation> <documentation> If a bounding shape is not provided for a feature collection, explain why.
static final AttributeType
<complexType name="PointMemberType"> <annotation> <documentation>Restricts the geometry member to being a Point instance.</documentation> </annotation> <complexContent> <restriction base="gml:GeometryAssociationType"> <sequence minOccurs="0"> <element ref="gml:Point"/> </sequence> <attributeGroup ref="gml:AssociationAttributeGroup"/> </restriction> </complexContent> </complexType>
static final AttributeType
<complexType name="PointPropertyType"> <annotation> <documentation> Encapsulates a single point to represent position, location, or centerOf properties.
static final AttributeType
<complexType name="PointType"> <annotation> <documentation> A Point is defined by a single coordinate tuple.
static final AttributeType
<complexType name="PolygonMemberType"> <annotation> <documentation>Restricts the geometry member to being a Polygon instance.</documentation> </annotation> <complexContent> <restriction base="gml:GeometryAssociationType"> <sequence minOccurs="0"> <element ref="gml:Polygon"/> </sequence> <attributeGroup ref="gml:AssociationAttributeGroup"/> </restriction> </complexContent> </complexType>
static final AttributeType
<complexType name="PolygonPropertyType"> <annotation> <documentation> Encapsulates a single polygon to represent coverage or extentOf properties.
static final AttributeType
<complexType name="PolygonType"> <annotation> <documentation> A Polygon is defined by an outer boundary and zero or more inner boundaries which are in turn defined by LinearRings.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprofile()
Profile of GMLSchema capturing a unique mapping of Java classes.Methods inherited from class SchemaImpl
add, clear, containsKey, containsValue, entrySet, equals, get, getURI, hashCode, isEmpty, keySet, profile, put, putAll, remove, size, toString, values
Methods inherited from interface Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
-
Field Details
-
ABSTRACTGEOMETRYTYPE_TYPE
<complexType abstract="true" name="AbstractGeometryType"> <annotation> <documentation> All geometry elements are derived from this abstract supertype; a geometry element may have an identifying attribute (gid). It may be associated with a spatial reference system. </documentation> </annotation> <complexContent> <restriction base="anyType"> <attribute name="gid" type="ID" use="optional"/> <attribute name="srsName" type="anyURI" use="optional"/> </restriction> </complexContent> </complexType>
-
ABSTRACTGEOMETRYCOLLECTIONBASETYPE_TYPE
<complexType abstract="true" name="AbstractGeometryCollectionBaseType"> <annotation> <documentation> This abstract base type for geometry collections just makes the srsName attribute mandatory. </documentation> </annotation> <complexContent> <restriction base="gml:AbstractGeometryType"> <attribute name="gid" type="ID" use="optional"/> <attribute name="srsName" type="anyURI" use="required"/> </restriction> </complexContent> </complexType>
-
GEOMETRYASSOCIATIONTYPE_TYPE
<complexType name="GeometryAssociationType"> <annotation> <documentation> An instance of this type (e.g. a geometryMember) can either enclose or point to a primitive geometry element. When serving as a simple link that references a remote geometry instance, the value of the gml:remoteSchema attribute can be used to locate a schema fragment that constrains the target instance. </documentation> </annotation> <sequence minOccurs="0"> <element ref="gml:_Geometry"/> </sequence>optional <!-- <attributeGroup ref="gml:AssociationAttributeGroup"/> --> <attributeGroup ref="xlink:simpleLink"/> <attribute ref="gml:remoteSchema" use="optional"/> </complexType>
-
GEOMETRYCOLLECTIONTYPE_TYPE
<complexType name="GeometryCollectionType"> <annotation> <documentation> A geometry collection must include one or more geometries, referenced through geometryMember elements. User-defined geometry collections that accept GML geometry classes as members must instantiate--or derive from--this type. </documentation> </annotation> <complexContent> <extension base="gml:AbstractGeometryCollectionBaseType"> <sequence> <element maxOccurs="unbounded" ref="gml:geometryMember"/> </sequence> </extension> </complexContent> </complexType>
-
COORDTYPE_TYPE
<complexType name="CoordType"> <annotation> <documentation> Represents a coordinate tuple in one, two, or three dimensions. </documentation> </annotation> <sequence> <element name="X" type="decimal"/> <element minOccurs="0" name="Y" type="decimal"/> <element minOccurs="0" name="Z" type="decimal"/> </sequence> </complexType>
-
COORDINATESTYPE_TYPE
<complexType name="CoordinatesType"> <annotation> <documentation> Coordinates can be included in a single string, but there is no facility for validating string content. The value of the 'cs' attribute is the separator for coordinate values, and the value of the 'ts' attribute gives the tuple separator (a single space by default); the default values may be changed to reflect local usage. </documentation> </annotation> <simpleContent> <extension base="string"> <attribute default="." name="decimal" type="string" use="optional"/> <attribute default="," name="cs" type="string" use="optional"/> <attribute default=" " name="ts" type="string" use="optional"/> </extension> </simpleContent> </complexType>
-
LINEARRINGTYPE_TYPE
<complexType name="LinearRingType"> <annotation> <documentation> A LinearRing is defined by four or more coordinate tuples, with linear interpolation between them; the first and last coordinates must be coincident. </documentation> </annotation> <complexContent> <extension base="gml:AbstractGeometryType"> <sequence> <choice> <element maxOccurs="unbounded" minOccurs="4" ref="gml:coord"/> <element ref="gml:coordinates"/> </choice> </sequence> </extension> </complexContent> </complexType>
-
LINEARRINGMEMBERTYPE_TYPE
<complexType name="LinearRingMemberType"> <annotation> <documentation>Restricts the outer or inner boundary of a polygon instance to being a LinearRing.</documentation> </annotation> <complexContent> <restriction base="gml:GeometryAssociationType"> <sequence minOccurs="0"> <element ref="gml:LinearRing"/> </sequence> <attributeGroup ref="gml:AssociationAttributeGroup"/> </restriction> </complexContent> </complexType>
-
POLYGONTYPE_TYPE
<complexType name="PolygonType"> <annotation> <documentation> A Polygon is defined by an outer boundary and zero or more inner boundaries which are in turn defined by LinearRings. </documentation> </annotation> <complexContent> <extension base="gml:AbstractGeometryType"> <sequence> <element ref="gml:outerBoundaryIs"/> <element maxOccurs="unbounded" minOccurs="0" ref="gml:innerBoundaryIs"/> </sequence> </extension> </complexContent> </complexType>
-
POLYGONMEMBERTYPE_TYPE
<complexType name="PolygonMemberType"> <annotation> <documentation>Restricts the geometry member to being a Polygon instance.</documentation> </annotation> <complexContent> <restriction base="gml:GeometryAssociationType"> <sequence minOccurs="0"> <element ref="gml:Polygon"/> </sequence> <attributeGroup ref="gml:AssociationAttributeGroup"/> </restriction> </complexContent> </complexType>
-
MULTIPOLYGONTYPE_TYPE
<complexType name="MultiPolygonType"> <annotation> <documentation> A MultiPolygon is defined by one or more Polygons, referenced through polygonMember elements. </documentation> </annotation> <complexContent> <restriction base="gml:GeometryCollectionType"> <sequence> <element maxOccurs="unbounded" ref="gml:polygonMember"/> </sequence> <attribute name="gid" type="ID" use="optional"/> <attribute name="srsName" type="anyURI" use="required"/> </restriction> </complexContent> </complexType>
-
MULTIPOLYGONPROPERTYTYPE_TYPE
<complexType name="MultiPolygonPropertyType"> <annotation> <documentation> Encapsulates a MultiPolygon to represent the following discontiguous geometric properties: multiCoverage, multiExtentOf. </documentation> </annotation> <complexContent> <restriction base="gml:GeometryAssociationType"> <sequence minOccurs="0"> <element ref="gml:MultiPolygon"/> </sequence> <attributeGroup ref="xlink:simpleLink"/> <attribute ref="gml:remoteSchema" use="optional"/> </restriction> </complexContent> </complexType>
-
MULTIGEOMETRYPROPERTYTYPE_TYPE
<complexType name="MultiGeometryPropertyType"> <annotation> <documentation>Encapsulates a MultiGeometry element.</documentation> </annotation> <complexContent> <restriction base="gml:GeometryAssociationType"> <sequence minOccurs="0"> <element ref="gml:MultiGeometry"/> </sequence> <attributeGroup ref="xlink:simpleLink"/> <attribute ref="gml:remoteSchema" use="optional"/> </restriction> </complexContent> </complexType>
-
LINESTRINGTYPE_TYPE
<complexType name="LineStringType"> <annotation> <documentation> A LineString is defined by two or more coordinate tuples, with linear interpolation between them. </documentation> </annotation> <complexContent> <extension base="gml:AbstractGeometryType"> <sequence> <choice> <element maxOccurs="unbounded" minOccurs="2" ref="gml:coord"/> <element ref="gml:coordinates"/> </choice> </sequence> </extension> </complexContent> </complexType>
-
LINESTRINGMEMBERTYPE_TYPE
<complexType name="LineStringMemberType"> <annotation> <documentation>Restricts the geometry member to being a LineString instance.</documentation> </annotation> <complexContent> <restriction base="gml:GeometryAssociationType"> <sequence minOccurs="0"> <element ref="gml:LineString"/> </sequence> <attributeGroup ref="gml:AssociationAttributeGroup"/> </restriction> </complexContent> </complexType>
-
MULTILINESTRINGTYPE_TYPE
<complexType name="MultiLineStringType"> <annotation> <documentation> A MultiLineString is defined by one or more LineStrings, referenced through lineStringMember elements. </documentation> </annotation> <complexContent> <restriction base="gml:GeometryCollectionType"> <sequence> <element maxOccurs="unbounded" ref="gml:lineStringMember"/> </sequence> <attribute name="gid" type="ID" use="optional"/> <attribute name="srsName" type="anyURI" use="required"/> </restriction> </complexContent> </complexType>
-
MULTILINESTRINGPROPERTYTYPE_TYPE
<complexType name="MultiLineStringPropertyType"> <annotation> <documentation> Encapsulates a MultiLineString element to represent the following discontiguous geometric properties: multiEdgeOf, multiCenterLineOf. </documentation> </annotation> <complexContent> <restriction base="gml:GeometryAssociationType"> <sequence minOccurs="0"> <element ref="gml:MultiLineString"/> </sequence> <attributeGroup ref="xlink:simpleLink"/> <attribute ref="gml:remoteSchema" use="optional"/> </restriction> </complexContent> </complexType>
-
BOXTYPE_TYPE
<complexType name="BoxType"> <annotation> <documentation> The Box structure defines an extent using a pair of coordinate tuples. </documentation> </annotation> <complexContent> <extension base="gml:AbstractGeometryType"> <sequence> <choice> <element maxOccurs="2" minOccurs="2" ref="gml:coord"/> <element ref="gml:coordinates"/> </choice> </sequence> </extension> </complexContent> </complexType>
-
NULLTYPE_TYPE
<simpleType name="NullType"> <annotation> <documentation> If a bounding shape is not provided for a feature collection, explain why. Allowable values are: innapplicable - the features do not have geometry unknown - the boundingBox cannot be computed unavailable - there may be a boundingBox but it is not divulged missing - there are no features </documentation> </annotation> <restriction base="string"> <enumeration value="inapplicable"/> <enumeration value="unknown"/> <enumeration value="unavailable"/> <enumeration value="missing"/> </restriction> </simpleType>
-
BOUNDINGSHAPETYPE_TYPE
<complexType name="BoundingShapeType"> <annotation> <documentation> Bounding shapes--a Box or a null element are currently allowed. </documentation> </annotation> <sequence> <choice> <element ref="gml:Box"/> <element name="null" type="gml:NullType"/> </choice> </sequence> </complexType>
-
ABSTRACTFEATURETYPE_TYPE
-
ABSTRACTFEATURECOLLECTIONBASETYPE_TYPE
-
FEATUREASSOCIATIONTYPE_TYPE
<complexType name="FeatureAssociationType"> <annotation> <documentation> An instance of this type (e.g. a featureMember) can either enclose or point to a feature (or feature collection); this type can be restricted in an application schema to allow only specified features as valid participants in the association. When serving as a simple link that references a remote feature instance, the value of the gml:remoteSchema attribute can be used to locate a schema fragment that constrains the target instance. </documentation> </annotation> <sequence minOccurs="0"> <element ref="gml:_Feature"/> </sequence> <attributeGroup ref="xlink:simpleLink"/> <attribute ref="gml:remoteSchema" use="optional"/> </complexType>
-
ABSTRACTFEATURECOLLECTIONTYPE_TYPE
-
GEOMETRYPROPERTYTYPE_TYPE
<complexType name="GeometryPropertyType"> <annotation> <documentation> A simple geometry property encapsulates a geometry element. Alternatively, it can function as a pointer (simple-type link) that refers to a remote geometry element. </documentation> </annotation> <sequence minOccurs="0"> <element ref="gml:_Geometry"/> </sequence> <attributeGroup ref="xlink:simpleLink"/> <attribute ref="gml:remoteSchema" use="optional"/> </complexType>
-
POLYGONPROPERTYTYPE_TYPE
<complexType name="PolygonPropertyType"> <annotation> <documentation> Encapsulates a single polygon to represent coverage or extentOf properties. </documentation> </annotation> <complexContent> <restriction base="gml:GeometryAssociationType"> <sequence minOccurs="0"> <element ref="gml:Polygon"/> </sequence> <attributeGroup ref="xlink:simpleLink"/> <attribute ref="gml:remoteSchema" use="optional"/> </restriction> </complexContent> </complexType>
-
POINTTYPE_TYPE
<complexType name="PointType"> <annotation> <documentation> A Point is defined by a single coordinate tuple. </documentation> </annotation> <complexContent> <extension base="gml:AbstractGeometryType"> <sequence> <choice> <element ref="gml:coord"/> <element ref="gml:coordinates"/> </choice> </sequence> </extension> </complexContent> </complexType>
-
POINTPROPERTYTYPE_TYPE
<complexType name="PointPropertyType"> <annotation> <documentation> Encapsulates a single point to represent position, location, or centerOf properties. </documentation> </annotation> <complexContent> <restriction base="gml:GeometryAssociationType"> <sequence minOccurs="0"> <element ref="gml:Point"/> </sequence> <attributeGroup ref="xlink:simpleLink"/> <attribute ref="gml:remoteSchema" use="optional"/> </restriction> </complexContent> </complexType>
-
POINTMEMBERTYPE_TYPE
<complexType name="PointMemberType"> <annotation> <documentation>Restricts the geometry member to being a Point instance.</documentation> </annotation> <complexContent> <restriction base="gml:GeometryAssociationType"> <sequence minOccurs="0"> <element ref="gml:Point"/> </sequence> <attributeGroup ref="gml:AssociationAttributeGroup"/> </restriction> </complexContent> </complexType>
-
MULTIPOINTTYPE_TYPE
<complexType name="MultiPointType"> <annotation> <documentation> A MultiPoint is defined by one or more Points, referenced through pointMember elements. </documentation> </annotation> <complexContent> <restriction base="gml:GeometryCollectionType"> <sequence> <element maxOccurs="unbounded" ref="gml:pointMember"/> </sequence> <attribute name="gid" type="ID" use="optional"/> <attribute name="srsName" type="anyURI" use="required"/> </restriction> </complexContent> </complexType>
-
MULTIPOINTPROPERTYTYPE_TYPE
<complexType name="MultiPointPropertyType"> <annotation> <documentation> Encapsulates a MultiPoint element to represent the following discontiguous geometric properties: multiLocation, multiPosition, multiCenterOf. </documentation> </annotation> <complexContent> <restriction base="gml:GeometryAssociationType"> <sequence minOccurs="0"> <element ref="gml:MultiPoint"/> </sequence> <attributeGroup ref="xlink:simpleLink"/> <attribute ref="gml:remoteSchema" use="optional"/> </restriction> </complexContent> </complexType>
-
LINESTRINGPROPERTYTYPE_TYPE
<complexType name="LineStringPropertyType"> <annotation> <documentation> Encapsulates a single LineString to represent centerLineOf or edgeOf properties. </documentation> </annotation> <complexContent> <restriction base="gml:GeometryAssociationType"> <sequence minOccurs="0"> <element ref="gml:LineString"/> </sequence> <attributeGroup ref="xlink:simpleLink"/> <attribute ref="gml:remoteSchema" use="optional"/> </restriction> </complexContent> </complexType>
-
-
Constructor Details
-
GMLSchema
public GMLSchema()
-
-
Method Details
-
profile
Profile of GMLSchema capturing a unique mapping of Java classes.This profile mostly matches to JTS Geometry classes.
- Returns:
- Subset of GMLSchema capturing a unique mapping of Java classes
-