org.opengts.extra.shapefile
Class Point

java.lang.Object
  extended by org.opengts.extra.shapefile.Point
All Implemented Interfaces:
GeoPointProvider

public class Point
extends java.lang.Object
implements GeoPointProvider


Constructor Summary
Point(double x, double y)
           
Point(GeoPoint gp)
           
Point(Payload p)
           
Point(Point p)
           
 
Method Summary
 GeoPoint getGeoPoint()
          Returns a GeoPoint instance
 double getLatitude()
           
 double getLongitude()
           
 double getM()
           
static Point[] getPoints(GeoPoint... gp)
          Returns Point array for an array of GeoPoints
static Point[] getPoints(GeoPoint gp)
          Returns Point array for single GeoPoint
static Point[] getPoints(GeoPolygon gp)
          Returns Point array of the GeoPoints contained within the GeoPolygon
 double getX()
           
 double getY()
           
 double getZ()
           
 boolean hasM()
           
 boolean hasZ()
           
 void setM(double m)
           
 void setZ(double z)
           
 java.lang.String toString()
           
 Payload write(Payload p)
           
 Payload writeM(Payload p)
           
 Payload writeZ(Payload p)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Point

public Point(Point p)

Point

public Point(Payload p)

Point

public Point(double x,
             double y)

Point

public Point(GeoPoint gp)
Method Detail

getPoints

public static Point[] getPoints(GeoPoint gp)
Returns Point array for single GeoPoint


getPoints

public static Point[] getPoints(GeoPoint... gp)
Returns Point array for an array of GeoPoints


getPoints

public static Point[] getPoints(GeoPolygon gp)
Returns Point array of the GeoPoints contained within the GeoPolygon


getX

public double getX()

getLongitude

public double getLongitude()

getY

public double getY()

getLatitude

public double getLatitude()

getGeoPoint

public GeoPoint getGeoPoint()
Description copied from interface: GeoPointProvider
Returns a GeoPoint instance

Specified by:
getGeoPoint in interface GeoPointProvider
Returns:
A GeoPoint instance

setZ

public void setZ(double z)

hasZ

public boolean hasZ()

getZ

public double getZ()

setM

public void setM(double m)

hasM

public boolean hasM()

getM

public double getM()

write

public Payload write(Payload p)

writeZ

public Payload writeZ(Payload p)

writeM

public Payload writeM(Payload p)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object