de.fhg.igd.earth.model.input.shapefile
Class ESRIPoly

java.lang.Object
  extended byde.fhg.igd.earth.model.input.shapefile.ShapeUtils
      extended byde.fhg.igd.earth.model.input.shapefile.ESRIPoly
Direct Known Subclasses:
ESRIPoly.ESRIFloatPoly

public abstract class ESRIPoly
extends ShapeUtils

A representation of a shape file polygon, subordinate to an ESRIPolygonRecord. This is an abstract class, please use one of the fully derived internal classes to do your bidding.

TODO

Title : Earth Copyright : Copyright (c) 2001 Organisation : IGD FhG

Version:
: 1.0
Author:
: Werner Beutel

Nested Class Summary
static class ESRIPoly.ESRIFloatPoly
          Poly with data stored in floating point format.
 
Field Summary
 int nPoints
          The number of (y,x) pairs of the ESRIPoly.
 
Fields inherited from class de.fhg.igd.earth.model.input.shapefile.ShapeUtils
SHAPE_FILE_HEADER_LENGTH, SHAPE_FILE_HEADER_LENGTH_DB, SHAPE_FILE_RECORD_HEADER_LENGTH, SHAPE_TYPE_ARC, SHAPE_TYPE_MULTIPOINT, SHAPE_TYPE_NULL, SHAPE_TYPE_POINT, SHAPE_TYPE_POLYGON, SHAPE_TYPE_POLYLINE
 
Constructor Summary
ESRIPoly()
           
 
Method Summary
abstract  int read(byte[] b, int off, boolean connect)
          Reads a polygon from the given buffer starting at the given offset.
 
Methods inherited from class de.fhg.igd.earth.model.input.shapefile.ShapeUtils
readBEInt, readBox, readLEDouble, readLEInt, readLEInt, readLELong, readPoint, writeBEInt, writeBox, writeLEDouble, writeLEInt, writeLELong, writePoint
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

nPoints

public int nPoints
The number of (y,x) pairs of the ESRIPoly. This value should be the points.length>>1.

Constructor Detail

ESRIPoly

public ESRIPoly()
Method Detail

read

public abstract int read(byte[] b,
                         int off,
                         boolean connect)
Reads a polygon from the given buffer starting at the given offset.

Parameters:
b - the buffer
off - the offset
Returns:
the number of bytes read


Copyright © Fraunhofer Gesellschaft. All Rights Reserved.