ScyllaDB University Live | Free Virtual Training Event
Learn more
ScyllaDB Documentation Logo Documentation
  • Server
  • Cloud
  • Tools
    • ScyllaDB Manager
    • ScyllaDB Monitoring Stack
    • ScyllaDB Operator
  • Drivers
    • CQL Drivers
    • DynamoDB Drivers
  • Resources
    • ScyllaDB University
    • Community Forum
    • Tutorials
Download
ScyllaDB Docs Scylla C/C++ Driver API Documentation DsePolygonIterator

DsePolygonIterator¶

struct DsePolygonIterator¶

Public Functions

DsePolygonIterator *dse_polygon_iterator_new()¶

Creates a new polygon iterator.

See also

dse_polygon_iterator_free()

Returns:

Returns an iterator that must be freed.

void dse_polygon_iterator_free(DsePolygonIterator *iterator)¶

Frees a polygon iterator instance.

Parameters:

iterator – [in]

CassError dse_polygon_iterator_reset(DsePolygonIterator *iterator, const CassValue *value)¶

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

Parameters:
  • iterator – [in] the iterator to reset

  • value – [in] binary representation of the polygon

Returns:

CASS_OK if successful, otherwise an error occurred.

CassError dse_polygon_iterator_reset_with_wkt(DsePolygonIterator *iterator, const char *wkt)¶

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

Note

The wkt string must remain allocated throughout the lifetime of the iterator since the iterator traverses the string without copying it.

Parameters:
  • iterator – [in] the iterator to reset

  • wkt – [in] WKT representation of the polygon

Returns:

CASS_OK if successful, otherwise an error occurred.

CassError dse_polygon_iterator_reset_with_wkt_n(DsePolygonIterator *iterator, const char *wkt, size_t wkt_length)¶

Same as dse_polygon_iterator_reset_with_wkt(), but with lengths for string parameters.

Note

The wkt string must remain allocated throughout the lifetime of the iterator since the iterator traverses the string without copying it.

Parameters:
  • iterator – [in] the iterator to reset

  • wkt – [in] WKT representation (string) of the polygon

  • wkt_length – [in] length of wkt string

Returns:

CASS_OK if successful, otherwise an error occurred.

cass_uint32_t dse_polygon_iterator_num_rings(const DsePolygonIterator *iterator)¶

Gets the number rings in the polygon.

Parameters:

iterator – [in]

Returns:

The number of rings in the polygon.

CassError dse_polygon_iterator_next_num_points(DsePolygonIterator *iterator, cass_uint32_t *num_points)¶

Gets the number of points for the current ring.

Parameters:
  • iterator – [in]

  • num_points – [out]

Returns:

CASS_OK if successful, otherwise an error occurred.

CassError dse_polygon_iterator_next_point(DsePolygonIterator *iterator, cass_double_t *x, cass_double_t *y)¶

Gets the next point in the current ring.

Parameters:
  • iterator – [in]

  • x – [out]

  • y – [out]

Returns:

CASS_OK if successful, otherwise an error occurred.

Was this page helpful?

PREVIOUS
DsePolygon
NEXT
Features
  • Create an issue
  • Edit this page

On this page

  • DsePolygonIterator
    • DsePolygonIterator
      • DsePolygonIterator::dse_polygon_iterator_new()
      • DsePolygonIterator::dse_polygon_iterator_free()
      • DsePolygonIterator::dse_polygon_iterator_reset()
      • DsePolygonIterator::dse_polygon_iterator_reset_with_wkt()
      • DsePolygonIterator::dse_polygon_iterator_reset_with_wkt_n()
      • DsePolygonIterator::dse_polygon_iterator_num_rings()
      • DsePolygonIterator::dse_polygon_iterator_next_num_points()
      • DsePolygonIterator::dse_polygon_iterator_next_point()
Scylla C/C++ Driver
  • master
    • master
  • C/C++ Driver for ScyllaDB
  • API Documentation
    • CassAggregateMeta
    • CassAuthenticator
    • CassAuthenticatorCallbacks
    • CassBatch
    • CassCluster
    • CassCollection
    • CassColumnMeta
    • CassCustomPayload
    • CassDataType
    • CassErrorResult
    • CassExecProfile
    • CassFunctionMeta
    • CassFuture
    • CassIndexMeta
    • CassInet
    • CassIterator
    • CassKeyspaceMeta
    • CassLogMessage
    • CassMaterializedViewMeta
    • CassMetrics
    • CassNode
    • CassPrepared
    • CassResult
    • CassRetryPolicy
    • CassRow
    • CassSchemaMeta
    • CassSession
    • CassSpeculativeExecutionMetrics
    • CassSsl
    • CassStatement
    • CassTableMeta
    • CassTimestampGen
    • CassTuple
    • CassUserType
    • CassUuid
    • CassUuidGen
    • CassValue
    • CassVersion
    • DseDateRange
    • DseDateRangeBound
    • DseLineString
    • DseLineStringIterator
    • DsePolygon
    • DsePolygonIterator
  • Features
    • Basics
      • Batches
      • Binding Parameters
      • Client-side timestamps
      • Consistency
      • Data Types
      • The date and time Types
      • Futures
      • Handling Results
      • Keyspaces
      • Prepared Statements
      • Schema Metadata
      • Tuples
      • User-Defined Types (UDTs)
      • UUIDs
    • Building
    • Client Configuration
    • Cloud
    • Configuration
      • Retry policies
    • Execution Profiles
    • FAQ
    • Installation
    • Logging
    • Metrics
    • Scylla Specific Features
    • Security
      • SSL
    • Testing
      • Cassandra Cluster Manager (CCM)
    • Tracing
  • DSE Features
    • Authentication
    • Geospatial types
Docs Tutorials University Contact Us About Us
© 2025, ScyllaDB. All rights reserved. | Terms of Service | Privacy Policy | ScyllaDB, and ScyllaDB Cloud, are registered trademarks of ScyllaDB, Inc.
Last updated on 28 April 2025.
Powered by Sphinx 7.4.7 & ScyllaDB Theme 1.8.6