public class LinearGeometry extends Object implements Serializable
Copyright (c) 2013-2014 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
Constructor and Description |
---|
LinearGeometry(LinkGeotools<?,?> link,
com.vividsolutions.jts.geom.LineString lineString,
org.opengis.referencing.crs.CoordinateReferenceSystem crs) |
LinearGeometry(LinkGeotools<?,?> link,
org.opengis.geometry.coordinate.PointArray pointArray) |
Modifier and Type | Method and Description |
---|---|
org.opengis.referencing.crs.CoordinateReferenceSystem |
getCRS() |
DoubleScalar.Rel<LengthUnit> |
getLineLength() |
com.vividsolutions.jts.geom.LineString |
getLineString() |
LinkGeotools<?,?> |
getLink() |
public LinearGeometry(LinkGeotools<?,?> link, org.opengis.geometry.coordinate.PointArray pointArray) throws NetworkException
link
- the link for which this geometry applies.pointArray
- the geometry from geotools that represents the link in a CRS.NetworkException
- when transformation for distance calculation failed.public LinearGeometry(LinkGeotools<?,?> link, com.vividsolutions.jts.geom.LineString lineString, org.opengis.referencing.crs.CoordinateReferenceSystem crs) throws NetworkException
link
- the link for which this geometry applies.lineString
- a JTS LineString representing the geometry.crs
- the Coordinate Reference System for this line.NetworkException
- when transformation for distance calculation failed.public final LinkGeotools<?,?> getLink()
public final com.vividsolutions.jts.geom.LineString getLineString()
public final org.opengis.referencing.crs.CoordinateReferenceSystem getCRS()
public final DoubleScalar.Rel<LengthUnit> getLineLength()
Copyright © 2014–2015 Delft University of Technology. All rights reserved.