org.progeeks.geo
Class ShapeTest

java.lang.Object
  extended by org.progeeks.geo.ShapeTest

public class ShapeTest
extends java.lang.Object

Playing with ESRI shape files.

Version:
$Revision$
Author:
Paul Speed

Field Summary
static int SHAPE_MULTIPATCH
           
static int SHAPE_MULTIPOINT
           
static int SHAPE_MULTIPOINT_M
           
static int SHAPE_MULTIPOINT_Z
           
static int SHAPE_NULL
           
static int SHAPE_POINT
           
static int SHAPE_POINT_M
           
static int SHAPE_POINT_Z
           
static int SHAPE_POLYGON
           
static int SHAPE_POLYGON_M
           
static int SHAPE_POLYGON_Z
           
static int SHAPE_POLYLINE
           
static int SHAPE_POLYLINE_M
           
static int SHAPE_POLYLINE_Z
           
 
Constructor Summary
ShapeTest(java.io.File shapes, java.io.File index)
           
 
Method Summary
static java.lang.String getShapeTypeString(int type)
           
static void main(java.lang.String[] args)
           
 void println(double d)
           
 void println(int i)
           
 void println(java.lang.String s)
           
 void println2(double d)
           
 void println2(int i)
           
 void println2(java.lang.String s)
           
 void readIndex()
           
protected  void readIndexRecord()
           
protected  void readRecord()
           
 void readShapes()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SHAPE_NULL

public static final int SHAPE_NULL
See Also:
Constant Field Values

SHAPE_POINT

public static final int SHAPE_POINT
See Also:
Constant Field Values

SHAPE_POLYLINE

public static final int SHAPE_POLYLINE
See Also:
Constant Field Values

SHAPE_POLYGON

public static final int SHAPE_POLYGON
See Also:
Constant Field Values

SHAPE_MULTIPOINT

public static final int SHAPE_MULTIPOINT
See Also:
Constant Field Values

SHAPE_POINT_Z

public static final int SHAPE_POINT_Z
See Also:
Constant Field Values

SHAPE_POLYLINE_Z

public static final int SHAPE_POLYLINE_Z
See Also:
Constant Field Values

SHAPE_POLYGON_Z

public static final int SHAPE_POLYGON_Z
See Also:
Constant Field Values

SHAPE_MULTIPOINT_Z

public static final int SHAPE_MULTIPOINT_Z
See Also:
Constant Field Values

SHAPE_POINT_M

public static final int SHAPE_POINT_M
See Also:
Constant Field Values

SHAPE_POLYLINE_M

public static final int SHAPE_POLYLINE_M
See Also:
Constant Field Values

SHAPE_POLYGON_M

public static final int SHAPE_POLYGON_M
See Also:
Constant Field Values

SHAPE_MULTIPOINT_M

public static final int SHAPE_MULTIPOINT_M
See Also:
Constant Field Values

SHAPE_MULTIPATCH

public static final int SHAPE_MULTIPATCH
See Also:
Constant Field Values
Constructor Detail

ShapeTest

public ShapeTest(java.io.File shapes,
                 java.io.File index)
          throws java.lang.Exception
Throws:
java.lang.Exception
Method Detail

getShapeTypeString

public static java.lang.String getShapeTypeString(int type)

println

public void println(int i)

println

public void println(double d)

println

public void println(java.lang.String s)

println2

public void println2(int i)

println2

public void println2(double d)

println2

public void println2(java.lang.String s)

readIndex

public void readIndex()
               throws java.lang.Exception
Throws:
java.lang.Exception

readIndexRecord

protected void readIndexRecord()
                        throws java.lang.Exception
Throws:
java.lang.Exception

readShapes

public void readShapes()
                throws java.lang.Exception
Throws:
java.lang.Exception

readRecord

protected void readRecord()
                   throws java.lang.Exception
Throws:
java.lang.Exception

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception
Throws:
java.lang.Exception


Copyright © 2002-2003 Paul Speed. All Rights Reserved.