com.partnersoft.formats.shapefile
Class ShpPolyLineZ

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

public class ShpPolyLineZ
extends java.lang.Object
implements ShpShape

ESRI's multiple-section, multiple part polyline in (x, y, z) space with measure factor (m).

By our definitions, a shapefile PolyLineZ entity is really a list of polyline objects. Each of these is the standard ordered series of connected vertices.

Copyright 2007 Partner Software, Inc.

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

Constructor Summary
ShpPolyLineZ(ShapeByteReader reader)
          Creates a new ShpPolyLine object from the given input.
 
Method Summary
 XyzBounds getBounds()
          Return the bounds.
 double getMaximumM()
          Return the maximum M value.
 double getMinimumM()
          Return the minimum M value.
 int getNumParts()
          The number of polyline parts.
 int getNumPoints()
          The total number of points of all parts.
 java.util.List<java.util.List<ShpPointZ>> getPoints()
          Returns the points as a list of lists.
 ShapeType getType()
          Returns the type for this shape.
 java.util.List<XyPolyline> toXyPolylines()
          Converts the ShpPolyLine to a list of XyPolyline objects.
 java.util.List<XyzPolyline> toXyzPolylines()
          Converts the ShpPolyLine to a list of XyzPolyline objects.
 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

ShpPolyLineZ

public ShpPolyLineZ(ShapeByteReader reader)
Creates a new ShpPolyLine object from the given input.

Method Detail

toXyPolylines

public java.util.List<XyPolyline> toXyPolylines()
Converts the ShpPolyLine to a list of XyPolyline objects.


toXyzPolylines

public java.util.List<XyzPolyline> toXyzPolylines()
Converts the ShpPolyLine to a list of XyzPolyline objects.


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

getNumParts

public int getNumParts()
The number of polyline parts.


getNumPoints

public int getNumPoints()
The total number of points of all parts.

Returns:
number of points

getPoints

public java.util.List<java.util.List<ShpPointZ>> getPoints()
Returns the points as a list of lists. Each sublist is one of the parts.


getBounds

public XyzBounds getBounds()
Return the bounds.


getMinimumM

public double getMinimumM()
Return the minimum M value.


getMaximumM

public double getMaximumM()
Return the maximum M value.