code::Shapefile Class Reference

List of all members.

Detailed Description

Will read in a .shp file in ESRI's shapefile format.

Author:
Lakshman
Version:
Id
code_Shapefile.h,v 1.13 2009/06/02 20:17:37 lakshman Exp


Public Member Functions

 Shapefile (const URL &url)
 To create a Shapefile object, specify where it is stored.
int numShapeTypes () const
 The number of primitives (ShapeType) in the shape file.
const ShapeTypegetShapeType (int index) const
 Returns the ith shape type.
ShapeTypegetShapeType (int index)
 Returns the ith shape type.
ShapeType::ESRI_Shape getFileShapeType () const
 Returns the primitive found in this file.
BoundingBox getBoundingBox () const

Classes

struct  BoundingBox
 The Bounding box encoded in the shapefile MainHeader. More...
struct  MainHeader
 This is the header found in the main file. More...
struct  Record
 A single record in the shape file. More...
struct  RecordHeader
 The header for a single record in the Shape file. More...


Constructor & Destructor Documentation

code::Shapefile::Shapefile ( const URL url  ) 

To create a Shapefile object, specify where it is stored.

This class reads in only the .shp file; to read the .dbf file, use the dBASE file class.

Parameters:
url location of the file.


Member Function Documentation

BoundingBox code::Shapefile::getBoundingBox (  )  const [inline]

ShapeType::ESRI_Shape code::Shapefile::getFileShapeType (  )  const [inline]

Returns the primitive found in this file.

ShapeType& code::Shapefile::getShapeType ( int  index  ) 

Returns the ith shape type.

const ShapeType& code::Shapefile::getShapeType ( int  index  )  const

Returns the ith shape type.

int code::Shapefile::numShapeTypes (  )  const

The number of primitives (ShapeType) in the shape file.


Generated on Fri May 4 13:40:12 2012 for WDSS-IIw2 by  doxygen 1.4.7