gml:LineString
A LineString is a special curve that consists of a single segment with linear interpolation. It is defined by two or more coordinate tuples, with linear interpolation between them. The number of direct positions in the list shall be at least two.
Element information
Namespace: http://www.opengis.net/gml/3.2
Schema document: external/ogc/gml/3.2.1/geometryBasic0d1d.xsd
Type: gml:LineStringType
Properties: Global, Qualified
Content
- Sequence [1..1]
- gml:metaDataProperty [0..*]
- gml:description [0..1]The value of this property is a text description of the object. gml:description uses gml:StringOrRefType as its content model, so it may contain a simple text string content, or carry a reference to an external description. The use of gml:description to reference an external description has been deprecated and replaced by the gml:descriptionReference property.
- gml:descriptionReference [0..1]The value of this property is a remote text description of the object. The xlink:href attribute of the gml:descriptionReference property references the external description.
- gml:identifier [0..1]Often, a special identifier is assigned to an object by the maintaining authority with the intention that it is used in references to the object For such cases, the codeSpace shall be provided. That identifier is usually unique either globally or within an application domain. gml:identifier is a pre-defined property for such identifiers.
- gml:name [0..*]The gml:name property provides a label or identifier for the object, commonly a descriptive name. An object may have several names, typically assigned by different authorities. gml:name uses the gml:CodeType content model. The authority for a name is indicated by the value of its (optional) codeSpace attribute. The name may or may not be unique, as determined by the rules of the organization responsible for the codeSpace. In common usage there will be one name per authority, so a processing application may select the name from its preferred codeSpace.
- Choice [1..1]
- Choice [2..*]
- gml:pos
- gml:pointPropertyThis property element either references a point via the XLink-attributes or contains the point element. pointProperty is the predefined property which may be used by GML Application Schemas whenever a GML feature has a property with a value that is substitutable for Point.
- gml:pointRep
- gml:posList
- gml:coordinates
- Choice [2..*]
from type gml:AbstractGMLTypefrom group gml:StandardObjectProperties
Attributes
Name | Occ | Type | Description | Notes |
---|---|---|---|---|
gml:id | [1..1] | xsd:ID | The attribute gml:id supports provision of a handle for the XML element representing a GML Object. Its use is mandatory for all GML objects. It is of XML type ID, so is constrained to be unique in the XML document within which it occurs. | from type gml:AbstractGMLType |
srsName | [0..1] | xsd:anyURI | from group gml:SRSReferenceGroup | |
srsDimension | [0..1] | xsd:positiveInteger | from group gml:SRSReferenceGroup | |
axisLabels | [0..1] | gml:NCNameList | from group gml:SRSInformationGroup | |
uomLabels | [0..1] | gml:NCNameList | from group gml:SRSInformationGroup |
Used in
- Group gml:Value
- Type geo:GeometryType (Elements geo:AreaRegionGeometry, geo:Geometry, geo:LocationGeometry)
- Type geo:LineStringType
- Type gml:ArrayAssociationType (Element gml:members)
- Type gml:CurveArrayPropertyType (Elements gml:curveArrayProperty, gml:curveMembers)
- Type gml:CurvePropertyType (Elements gml:edgeOf, gml:centerLineOf, gml:curveProperty, gml:baseCurve, gml:offsetBase, gml:curveMember)
- Type gml:DomainSetType (Elements gml:domainSet, gml:multiPointDomain, gml:multiCurveDomain, gml:multiSurfaceDomain, gml:multiSolidDomain, gml:gridDomain, gml:rectifiedGridDomain)
- Type gml:GeometricPrimitivePropertyType (Element gml:element)
- Type gml:GeometryArrayPropertyType (Element gml:geometryMembers)
- Type gml:GeometryPropertyType (Elements gml:position, gml:geometryMember)
- Type gml:LocationPropertyType (Element gml:location)
- Type gml:PriorityLocationPropertyType via extension of gml:LocationPropertyType (Element gml:priorityLocation)
- Type gml:TargetPropertyType (Elements gml:target, gml:subject)
- Type gml:ValueArrayPropertyType via reference to gml:Value (Element gml:valueComponents)
- Type gml:ValuePropertyType via reference to gml:Value (Elements gml:valueProperty, gml:valueComponent)
- Type gss:GM_Object_PropertyType (Element gmd:polygon)
- Type mo:WGS84LineStringType (Element mo:WGS84LocationLineString)
Substitution hierarchy
- gml:AbstractObject
- can be substituted with gml:AbstractGML
- can be substituted with gml:AbstractGeometry
- can be substituted with gml:AbstractGeometricPrimitive
- can be substituted with gml:AbstractCurve
- can be substituted with gml:LineString
- can be substituted with gml:AbstractCurve
- can be substituted with gml:AbstractGeometricPrimitive
- can be substituted with gml:AbstractGeometry
- can be substituted with gml:AbstractGML
Sample instance
<gml:LineString gml:id="ID"> <gml:metaDataProperty> <gml:GenericMetaData>Any text, intermingled with: <!--any element--> </gml:GenericMetaData> </gml:metaDataProperty> <gml:description>string</gml:description> <gml:descriptionReference/> <gml:identifier codeSpace="http://www.example.com/">string</gml:identifier> <gml:name>string</gml:name> <gml:pos>1.0 1.0</gml:pos> </gml:LineString>