Class LineStringType

  extended by net.opengis.gml.AbstractGMLType
      extended by net.opengis.gml.AbstractGeometryType
          extended by net.opengis.gml.AbstractGeometricPrimitiveType
              extended by net.opengis.gml.AbstractCurveType
                  extended by net.opengis.gml.LineStringType

public class LineStringType
extends AbstractCurveType

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. It is backwards compatible with the LineString of GML 2, GM_LineString of ISO 19107 is implemented by LineStringSegment.

Java class for LineStringType complex type.

The following schema fragment specifies the expected content contained within this class.

 <complexType name="LineStringType">
     <extension base="{}AbstractCurveType">
           <choice maxOccurs="unbounded" minOccurs="2">
             <element ref="{}pos"/>
             <element ref="{}pointProperty"/>
             <element ref="{}pointRep"/>
             <element ref="{}coord"/>
           <element ref="{}posList"/>
           <element ref="{}coordinates"/>

Field Summary
protected  CoordinatesType coordinates
protected  DirectPositionListType posList
protected  List<JAXBElement<?>> posOrPointPropertyOrPointRep
Fields inherited from class net.opengis.gml.AbstractGeometryType
axisLabels, gid, srsDimension, srsName, uomLabels
Fields inherited from class net.opengis.gml.AbstractGMLType
description, id, metaDataProperty, name
Constructor Summary
Method Summary
 CoordinatesType getCoordinates()
          Deprecated with GML version 3.1.0.
 DirectPositionListType getPosList()
          Gets the value of the posList property.
 List<JAXBElement<?>> getPosOrPointPropertyOrPointRep()
          Gets the value of the posOrPointPropertyOrPointRep property.
 void setCoordinates(CoordinatesType value)
          Sets the value of the coordinates property.
 void setPosList(DirectPositionListType value)
          Sets the value of the posList property.
Methods inherited from class net.opengis.gml.AbstractGeometryType
getAxisLabels, getGid, getSrsDimension, getSrsName, getUomLabels, setGid, setSrsDimension, setSrsName
Methods inherited from class net.opengis.gml.AbstractGMLType
getDescription, getId, getMetaDataProperty, getName, setDescription, setId
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Field Detail


protected List<JAXBElement<?>> posOrPointPropertyOrPointRep


protected DirectPositionListType posList


protected CoordinatesType coordinates
Constructor Detail


public LineStringType()
Method Detail


public List<JAXBElement<?>> getPosOrPointPropertyOrPointRep()
Gets the value of the posOrPointPropertyOrPointRep property.

This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a set method for the posOrPointPropertyOrPointRep property.

For example, to add a new item, do as follows:


Objects of the following type(s) are allowed in the list JAXBElement<PointPropertyType> JAXBElement<PointPropertyType> JAXBElement<CoordType> JAXBElement<DirectPositionType>


public DirectPositionListType getPosList()
Gets the value of the posList property.

possible object is DirectPositionListType


public void setPosList(DirectPositionListType value)
Sets the value of the posList property.

value - allowed object is DirectPositionListType


public CoordinatesType getCoordinates()
Deprecated with GML version 3.1.0. Use "posList" instead.

possible object is CoordinatesType


public void setCoordinates(CoordinatesType value)
Sets the value of the coordinates property.

value - allowed object is CoordinatesType

Copyright © 2008. All Rights Reserved.