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

org.deegree.io.shpapi.shape_new
Class ShapeFileReader

java.lang.Object
  extended by org.deegree.io.shpapi.shape_new.ShapeFileReader

public class ShapeFileReader
extends java.lang.Object

ShapeFileReader is a class to read shapefiles.

Version:
$Revision: 19488 $, $Date: 2009-09-03 15:05:04 +0200 (Do, 03 Sep 2009) $
Author:
Andreas Schmitz, last edited by: $Author: aschmitz $

Constructor Summary
ShapeFileReader(java.lang.String baseName)
          Does not read it yet - just initializes the object.
ShapeFileReader(java.lang.String baseName, CoordinateSystem defaultCRS)
          Does not read it yet - just initializes the object.
 
Method Summary
 int getShapeCount()
           
 int getShapeType()
           
 DBaseFile getTables()
           
 ShapeFile read()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ShapeFileReader

public ShapeFileReader(java.lang.String baseName)
Does not read it yet - just initializes the object.

Parameters:
baseName -

ShapeFileReader

public ShapeFileReader(java.lang.String baseName,
                       CoordinateSystem defaultCRS)
Does not read it yet - just initializes the object.

Parameters:
baseName -
defaultCRS - CoordinateSystem for the shape file
Method Detail

read

public ShapeFile read()
               throws java.io.IOException
Returns:
the shape file contents.
Throws:
java.io.IOException

getTables

public DBaseFile getTables()
                    throws java.io.IOException
Returns:
the dbase file
Throws:
java.io.IOException

getShapeCount

public int getShapeCount()
                  throws java.io.IOException
Returns:
the number of shapes stored in this shape file.
Throws:
java.io.IOException

getShapeType

public int getShapeType()
                 throws java.io.IOException
Returns:
the type of the shape file's contents.
Throws:
java.io.IOException

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