org.tridas.spatial
Class GMLPointSRSHandler

java.lang.Object
  extended by org.tridas.spatial.GMLPointSRSHandler

public class GMLPointSRSHandler
extends Object

Helper class to take care of handling the srsName for coordinates. Where possible it will project points and handle axis order ambiguities.

Author:
pwb48

Nested Class Summary
static class GMLPointSRSHandler.AxisOrder
           
 
Constructor Summary
GMLPointSRSHandler(net.opengis.gml.schema.PointType point)
          Standard constructor.
 
Method Summary
 net.opengis.gml.schema.PointType getAsWGS84PointType()
          Get this point with the correct WGS84 srsName
 GMLPointSRSHandler.AxisOrder getAxisOrder()
          The correct order in which the axis should appear in gml:Pos
 String getEPSGCode()
           
 String getProjectionDescription()
           
 String getProjectionName()
           
 Double getWGS84LatCoord()
          Get the Y (latitude) coordinate for this location
 Double getWGS84LongCoord()
          Get the X (longitude) coordinate for this location
 Boolean hasSpecificProjection()
          Does this location have a known and useable projection?
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GMLPointSRSHandler

public GMLPointSRSHandler(net.opengis.gml.schema.PointType point)
                   throws ProjectionException
Standard constructor. Takes a GML PointType.

Parameters:
point -
Throws:
ProjectionException
Method Detail

getProjectionName

public String getProjectionName()

getProjectionDescription

public String getProjectionDescription()

getEPSGCode

public String getEPSGCode()

hasSpecificProjection

public Boolean hasSpecificProjection()
Does this location have a known and useable projection?

Returns:

getWGS84LongCoord

public Double getWGS84LongCoord()
Get the X (longitude) coordinate for this location

Returns:

getWGS84LatCoord

public Double getWGS84LatCoord()
Get the Y (latitude) coordinate for this location

Returns:

getAxisOrder

public GMLPointSRSHandler.AxisOrder getAxisOrder()
The correct order in which the axis should appear in gml:Pos

Returns:

getAsWGS84PointType

public net.opengis.gml.schema.PointType getAsWGS84PointType()
Get this point with the correct WGS84 srsName

Returns:


Copyright © 2011. All Rights Reserved.