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 ShapeType & | getShapeType (int index) const |
| Returns the ith shape type. | |
| ShapeType & | getShapeType (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... | |
| 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.
| url | location of the file. |
| 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.
1.4.7