com.partnersoft.formats.shapefile
Class ShpPointZ

java.lang.Object
  extended by com.partnersoft.formats.shapefile.ShpPointZ
All Implemented Interfaces:
Immutable, ShpPointShape, ShpShape

public class ShpPointZ
extends java.lang.Object
implements ShpPointShape

A three-dimensional ESRI point.

Copyright 2006-2007 Partner Software, Inc.

Version:
$Id: ShpPointZ.java 1701 2009-01-13 22:11:48Z paul $
Author:
Paul Reavis

Constructor Summary
ShpPointZ(double x, double y, double z)
           
ShpPointZ(double x, double y, double z, double m)
           
ShpPointZ(ShapeByteReader reader)
           
ShpPointZ(XyzPoint point)
           
ShpPointZ(XyzPoint point, double m)
           
 
Method Summary
 double getM()
           
 ShapeType getType()
          Returns the type for this shape.
 double getX()
           
 double getY()
           
 double getZ()
           
 XyPoint toXyPoint()
           
 XyzPoint toXyzPoint()
           
 void writeBytes(ShapeByteWriter writer)
          Writes this shape, in binary format, to the given output.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ShpPointZ

public ShpPointZ(XyzPoint point)

ShpPointZ

public ShpPointZ(XyzPoint point,
                 double m)

ShpPointZ

public ShpPointZ(double x,
                 double y,
                 double z)

ShpPointZ

public ShpPointZ(double x,
                 double y,
                 double z,
                 double m)

ShpPointZ

public ShpPointZ(ShapeByteReader reader)
Method Detail

toXyPoint

public XyPoint toXyPoint()
Specified by:
toXyPoint in interface ShpPointShape

toXyzPoint

public XyzPoint toXyzPoint()

getType

public ShapeType getType()
Description copied from interface: ShpShape
Returns the type for this shape.

Specified by:
getType in interface ShpShape

writeBytes

public void writeBytes(ShapeByteWriter writer)
Description copied from interface: ShpShape
Writes this shape, in binary format, to the given output. Does not include the type code.

Specified by:
writeBytes in interface ShpShape

getX

public double getX()
Specified by:
getX in interface ShpPointShape

getY

public double getY()
Specified by:
getY in interface ShpPointShape

getZ

public double getZ()

getM

public double getM()