org.deegree.io.shpapi.shape_new
Class ShapeFileReader
java.lang.Object
org.deegree.io.shpapi.shape_new.ShapeFileReader
public class ShapeFileReader
- extends Object
ShapeFileReader
is a class to read shapefiles.
- Version:
- $Revision: 9342 $, $Date: 2007-12-27 13:32:57 +0100 (Do, 27 Dez 2007) $
- Author:
- Andreas Schmitz, last edited by: $Author: apoth $
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ShapeFileReader
public ShapeFileReader(String baseName)
- Does not read it yet - just initializes the object.
- Parameters:
baseName
-
read
public ShapeFile read()
throws IOException
- Returns:
- the shape file contents.
- Throws:
IOException
getTables
public DBaseFile getTables()
throws IOException
- Returns:
- the dbase file
- Throws:
IOException
getShapeCount
public int getShapeCount()
throws IOException
- Returns:
- the number of shapes stored in this shape file.
- Throws:
IOException
getShapeType
public int getShapeType()
throws IOException
- Returns:
- the type of the shape file's contents.
- Throws:
IOException
an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://deegree.sourceforge.net