File Geodatabase API
FileGDBAPI::PointShapeBuffer Class Reference

Point Shape Buffer accessor functions. More...

Inherits FileGDBAPI::ShapeBuffer.

List of all members.

Public Member Functions

fgdbError GetPoint (Point *&point)
 Get a pointer to the points coordinates.
fgdbError GetZ (double *&z)
 Get a pointer to the points z coordinate.
fgdbError GetM (double *&m)
 Get a pointer to the points measure.
fgdbError GetID (int *&id)
 Get a pointer to the points ID value.
fgdbError Setup (ShapeType shapeType)
 Setup a shape buffer for insert.

Detailed Description

Point 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 point shape buffer you should first create the appropriate shape buffer, get the geometry, get the point, and any z or m values. To write a point create a row buffer, create a shape buffer, set up the shape buffer, get the point, assign the coordinates to the point, assign z and m values if present, set the geometry and insert the row.


Member Function Documentation

fgdbError FileGDBAPI::PointShapeBuffer::GetPoint ( Point *&  point)

Get a pointer to the points coordinates.

Parameters:
[out]pointA pointer to the coordinate.
Returns:
Error code indicating whether the method finished successfully.
fgdbError FileGDBAPI::PointShapeBuffer::GetZ ( double *&  z)

Get a pointer to the points z coordinate.

Parameters:
[out]zA pointer to the z value.
Returns:
Error code indicating whether the method finished successfully..
fgdbError FileGDBAPI::PointShapeBuffer::GetM ( double *&  m)

Get a pointer to the points measure.

Parameters:
[out]mA pointer to the m value.
Returns:
Error code indicating whether the method finished successfully.
fgdbError FileGDBAPI::PointShapeBuffer::GetID ( int *&  id)

Get a pointer to the points ID value.

Parameters:
[out]idA pointer to the id.
Returns:
Error code indicating whether the method finished successfully..
fgdbError FileGDBAPI::PointShapeBuffer::Setup ( ShapeType  shapeType)

Setup a shape buffer for insert.

Allocates the correct length buffer for the selected shape type.

Parameters:
[in]shapeTypeThe shape type of the buffer. Shape Type
Returns:
Error code indicating whether the method finished successfully.