org.n52.oxf.conversion.gml32.util
Class GeodesicApproximationTools

java.lang.Object
  extended by org.n52.oxf.conversion.gml32.util.GeodesicApproximationTools

public class GeodesicApproximationTools
extends Object

Helper class provides geodesic approximation methods. E.g. approximate a Great Circle to a LineString representation (the algorithm uses the intermediate point calculation documented at http://williams.best.vwh.net/avform.htm#Intermediate).

Author:
matthes rieke

Constructor Summary
GeodesicApproximationTools()
           
 
Method Summary
static com.vividsolutions.jts.geom.LineString approximateGreatCircle(com.vividsolutions.jts.geom.Coordinate start, com.vividsolutions.jts.geom.Coordinate end, double segmentLength)
          Approximates a Great Circle on the earth using start and end coordinates and the estimate target segment length
static com.vividsolutions.jts.geom.LineString approximateGreatCircle(int segmentsPerHalf, com.vividsolutions.jts.geom.Coordinate start, com.vividsolutions.jts.geom.Coordinate end)
          Approximates a Great Circle on the earth using start and end coordinates and the number of segments per half of the target circle.
static com.vividsolutions.jts.geom.LineString approximateRhumbline(com.vividsolutions.jts.geom.Coordinate start, com.vividsolutions.jts.geom.Coordinate end, double segmentLength)
          Approximates a Rhumbline on the earth using start and end coordinates and the estimate target segment length
static com.vividsolutions.jts.geom.LineString approximateRhumbline(int segmentsPerHalf, com.vividsolutions.jts.geom.Coordinate start, com.vividsolutions.jts.geom.Coordinate end)
          Approximates a Rhumbline on the earth using start and end coordinates and the number of segments per half of the target circle.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GeodesicApproximationTools

public GeodesicApproximationTools()
Method Detail

approximateGreatCircle

public static com.vividsolutions.jts.geom.LineString approximateGreatCircle(com.vividsolutions.jts.geom.Coordinate start,
                                                                            com.vividsolutions.jts.geom.Coordinate end,
                                                                            double segmentLength)
Approximates a Great Circle on the earth using start and end coordinates and the estimate target segment length

Returns:
a JTS LineString

approximateGreatCircle

public static com.vividsolutions.jts.geom.LineString approximateGreatCircle(int segmentsPerHalf,
                                                                            com.vividsolutions.jts.geom.Coordinate start,
                                                                            com.vividsolutions.jts.geom.Coordinate end)
Approximates a Great Circle on the earth using start and end coordinates and the number of segments per half of the target circle.

Returns:
a JTS LineString

approximateRhumbline

public static com.vividsolutions.jts.geom.LineString approximateRhumbline(com.vividsolutions.jts.geom.Coordinate start,
                                                                          com.vividsolutions.jts.geom.Coordinate end,
                                                                          double segmentLength)
Approximates a Rhumbline on the earth using start and end coordinates and the estimate target segment length

Returns:
a JTS LineString

approximateRhumbline

public static com.vividsolutions.jts.geom.LineString approximateRhumbline(int segmentsPerHalf,
                                                                          com.vividsolutions.jts.geom.Coordinate start,
                                                                          com.vividsolutions.jts.geom.Coordinate end)
Approximates a Rhumbline on the earth using start and end coordinates and the number of segments per half of the target circle.

Returns:
a JTS LineString


Copyright © 2012-2013 52north.org. All Rights Reserved.