deegree 2.5 (2011/06/29 09:44 build-8-official)

org.deegree.io.shpapi.shape_new
Class ShapeMultiPoint

java.lang.Object
  extended by org.deegree.io.shpapi.shape_new.ShapeMultiPoint
All Implemented Interfaces:
Shape

public class ShapeMultiPoint
extends java.lang.Object
implements Shape

ShapeMultiPoint encapsulates shapefile MultiPoint/M/Z structures.

Version:
$Revision: 18195 $, $Date: 2009-06-18 17:55:39 +0200 (Do, 18 Jun 2009) $
Author:
Andreas Schmitz, last edited by: $Author: mschneider $

Field Summary
protected  ShapePoint[] points
           
 
Constructor Summary
ShapeMultiPoint(boolean isZ, boolean isM)
           
ShapeMultiPoint(boolean isZ, boolean isM, CoordinateSystem crs)
           
ShapeMultiPoint(MultiPoint p)
          Creates MultiPointZ from deegree MultiPoint
 
Method Summary
 int getByteLength()
           
 ShapeEnvelope getEnvelope()
           
 Geometry getGeometry()
          This creates a MultiPoint object.
 int getType()
           
 int read(byte[] bytes, int offset)
          Reads the object from a byte array.
 java.lang.String toString()
           
 int write(byte[] bytes, int offset)
          Writes the object to a byte array.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

points

protected ShapePoint[] points
Constructor Detail

ShapeMultiPoint

public ShapeMultiPoint(boolean isZ,
                       boolean isM)
Parameters:
isZ -
isM -

ShapeMultiPoint

public ShapeMultiPoint(boolean isZ,
                       boolean isM,
                       CoordinateSystem crs)
Parameters:
isZ -
isM -
crs - CoordinateSystem for shape

ShapeMultiPoint

public ShapeMultiPoint(MultiPoint p)
Creates MultiPointZ from deegree MultiPoint

Parameters:
p -
Method Detail

getByteLength

public int getByteLength()
Specified by:
getByteLength in interface Shape
Returns:
the number of bytes necessary to write this instance.

read

public int read(byte[] bytes,
                int offset)
Description copied from interface: Shape
Reads the object from a byte array.

Specified by:
read in interface Shape
offset - where to start reading
Returns:
the new offset or -1, if the type was wrong.

write

public int write(byte[] bytes,
                 int offset)
Description copied from interface: Shape
Writes the object to a byte array.

Specified by:
write in interface Shape
Returns:
the new offset.

getType

public int getType()
Specified by:
getType in interface Shape
Returns:
the type of the shape

getEnvelope

public ShapeEnvelope getEnvelope()
Specified by:
getEnvelope in interface Shape
Returns:
the shapes' envelope, or null, if it has none

getGeometry

public Geometry getGeometry()
                     throws ShapeGeometryException
This creates a MultiPoint object.

Specified by:
getGeometry in interface Shape
Returns:
the shape as deegree Geometry
Throws:
ShapeGeometryException - if the deegree geometry could not be constructed
See Also:
Shape.getGeometry()

toString

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

deegree 2.5 (2011/06/29 09:44 build-8-official)

an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://www.deegree.org