|
File Geodatabase API
|
MultiPart Shape Buffer accessor functions. More...
Inherits FileGDBAPI::ShapeBuffer.
Public Member Functions | |
| fgdbError | GetExtent (double *&extent) |
| Get a pointer to the geomtries extent. | |
| fgdbError | GetNumParts (int &numParts) |
| Get the number of parts. | |
| fgdbError | GetNumPoints (int &numPoints) |
| Get the number of coordinates in the geometry. | |
| fgdbError | GetParts (int *&parts) |
| Get a pointer to the parts array. | |
| fgdbError | GetPoints (Point *&points) |
| Get a pointer to the point array. | |
| fgdbError | GetZExtent (double *&zExtent) |
| Get a pointer to the z extent. | |
| fgdbError | GetZs (double *&zArray) |
| Get a pointer to the z array. | |
| fgdbError | GetMExtent (double *&mExtent) |
| Get a pointer to the m extent. | |
| fgdbError | GetMs (double *&mArray) |
| Get a pointer to the m array. | |
| fgdbError | GetNumCurves (int &numCurves) |
| Get the number of curves in the geometry. | |
| fgdbError | GetCurves (byte *&curves) |
| Get a pointer to the curve array. | |
| fgdbError | GetIDs (int *&ids) |
| Get a pointer to the id array. | |
| fgdbError | Setup (ShapeType shapeType, int numParts, int numPoints, int numCurves=0) |
| Setup a shape buffer for insert. | |
| fgdbError | CalculateExtent (void) |
| Calculates the extent for the shape after all of the coordinate arrays have been filled. | |
| fgdbError | PackCurves (void) |
| Remove excess space allocated for curves. | |
MultiPart Shape Buffer accessor functions.
These functions provide access to the shape buffer. Consult the extended shapefile format document for the buffer layout. When reading a multipart shape buffer you should first create the appropriate shape buffer, get the geometry, get the number of points, get the number of parts, get the number of curves, get a pointer to the part array, get a pointer to the point array, and, if present pointers to the z, m, and id arrays. To write a multipart shape buffer create a row buffer, create a shape buffer, set up the shape buffer, get the points, assign the coordinates to the point array, get the part array and populate the array as needed, and if needed get the z, m, id and curve arrays and populate, calculate the extent of the geometry, set the geometry and insert the row. If curves were added Pact the curves before setting the geometry. To improve load use Table::LoadOnlyMode. Set it to true before you insert any rows and set it too false when finished. If all grid size values in the spatial index are zero, the values will be calculated based on the existing geometries.
| fgdbError FileGDBAPI::MultiPartShapeBuffer::GetExtent | ( | double *& | extent | ) |
Get a pointer to the geomtries extent.
| [out] | extent | A pointer to the geometries extent. |
| fgdbError FileGDBAPI::MultiPartShapeBuffer::GetNumParts | ( | int & | numParts | ) |
Get the number of parts.
| [out] | numParts | The number of parts in the geometry. |
| fgdbError FileGDBAPI::MultiPartShapeBuffer::GetNumPoints | ( | int & | numPoints | ) |
Get the number of coordinates in the geometry.
| [out] | numPoints | The number of points. |
| fgdbError FileGDBAPI::MultiPartShapeBuffer::GetParts | ( | int *& | parts | ) |
Get a pointer to the parts array.
| [out] | parts | A pointer to the parts array. |
| fgdbError FileGDBAPI::MultiPartShapeBuffer::GetPoints | ( | Point *& | points | ) |
Get a pointer to the point array.
| [out] | points | A pointer to the point array. |
| fgdbError FileGDBAPI::MultiPartShapeBuffer::GetZExtent | ( | double *& | zExtent | ) |
Get a pointer to the z extent.
| [out] | zExtent | A pointer to the z extent. |
| fgdbError FileGDBAPI::MultiPartShapeBuffer::GetZs | ( | double *& | zArray | ) |
Get a pointer to the z array.
| [out] | zArray | A pointer to the z array. |
| fgdbError FileGDBAPI::MultiPartShapeBuffer::GetMExtent | ( | double *& | mExtent | ) |
Get a pointer to the m extent.
| [out] | mExtent | A pointer to the m extent. |
| fgdbError FileGDBAPI::MultiPartShapeBuffer::GetMs | ( | double *& | mArray | ) |
Get a pointer to the m array.
| [out] | mArray | A pointer to the m array. |
| fgdbError FileGDBAPI::MultiPartShapeBuffer::GetNumCurves | ( | int & | numCurves | ) |
Get the number of curves in the geometry.
| [out] | numCurves | The number of curves. |
| fgdbError FileGDBAPI::MultiPartShapeBuffer::GetCurves | ( | byte *& | curves | ) |
Get a pointer to the curve array.
| [out] | curves | A pointer to the curve array. |
| fgdbError FileGDBAPI::MultiPartShapeBuffer::GetIDs | ( | int *& | ids | ) |
Get a pointer to the id array.
| [out] | ids | A pointer to the id array. |
| fgdbError FileGDBAPI::MultiPartShapeBuffer::Setup | ( | ShapeType | shapeType, |
| int | numParts, | ||
| int | numPoints, | ||
| int | numCurves = 0 |
||
| ) |
Setup a shape buffer for insert.
Allocates the correct length buffer for the selected shape type.
| [in] | shapeType | The shape type of the buffer. Shape Type |
| [in] | numParts | The number of parts that the geometry will contain. |
| [in] | numPoints | The number of points that the geometry will contain. |
| [in] | numCurves | The number of curves that the geometry will contain, defaults to zero. |
| fgdbError FileGDBAPI::MultiPartShapeBuffer::CalculateExtent | ( | void | ) |
Calculates the extent for the shape after all of the coordinate arrays have been filled.
| fgdbError FileGDBAPI::MultiPartShapeBuffer::PackCurves | ( | void | ) |
Remove excess space allocated for curves.
Setup allocates space for curves based of the max size that could be required. Depending on the curves loaded, all of the allocated space may not be required.