Functions

DseLineStringIterator *

dse_line_string_iterator_new

( )

Creates a new line string iterator.

Returns:
Type Details
DseLineStringIterator *

Returns an iterator that must be freed.

See Also:
void

dse_line_string_iterator_free

( DseLineStringIterator * iterator )

Frees a line string iterator instance.

Parameters:
Name Type Details
in iterator DseLineStringIterator *
CassError

dse_line_string_iterator_reset

( DseLineStringIterator * iterator, const CassValue * value )

Resets a line string iterator so that it can be reused to process a binary representation.

Parameters:
Name Type Details
in iterator DseLineStringIterator *

the iterator to reset

in value const CassValue *

binary representation of the line string

Returns:
Type Details
CassError

CASS_OK if successful, otherwise an error occurred.

CassError

dse_line_string_iterator_reset_with_wkt

( DseLineStringIterator * iterator, const char * wkt )

Resets a line string iterator so that it can be reused to parse WKT.

Parameters:
Name Type Details
in iterator DseLineStringIterator *

the iterator to reset

in wkt const char *

WKT representation of the line string

Returns:
Type Details
CassError

CASS_OK if successful, otherwise an error occurred.

CassError

dse_line_string_iterator_reset_with_wkt_n

( DseLineStringIterator * iterator, const char * wkt, size_t wkt_length )

Same as DseLineStringIterator::dse_line_string_iterator_reset_with_wkt, but with lengths for string parameters.

Parameters:
Name Type Details
in iterator DseLineStringIterator *

the iterator to reset

in wkt const char *

WKT representation (string) of the line string

in wkt_length size_t

length of wkt string

Returns:
Type Details
CassError

CASS_OK if successful, otherwise an error occurred.

cass_uint32_t

dse_line_string_iterator_num_points

( const DseLineStringIterator * iterator )

Gets the number of points in the line string.

Parameters:
Name Type Details
in iterator const DseLineStringIterator *
Returns:
Type Details
cass_uint32_t

The number of points in the line string.

CassError

dse_line_string_iterator_next_point

( DseLineStringIterator * iterator, cass_double_t * x, cass_double_t * y )

Gets the next point in the line string.

Parameters:
Name Type Details
in iterator DseLineStringIterator *
out x cass_double_t *
out y cass_double_t *
Returns:
Type Details
CassError

CASS_OK if successful, otherwise an error occurred.