Geometry SDK operations and data structures#

Choose an operation using the geometry family, dimensions, SRID evidence, NULL or EMPTY state, layout, pairing and required result. Check the installed provider’s capabilities and qualification for the operation as well as its identity.

Context and bindings#

At context creation, inspect cugeo_geometry_cuda_build_info, cugeo_geometry_cuda_capabilities and cugeo_geometry_cuda_contract_digest, and compare the contract digest with the expected digest. Initialize descriptors to zero and set their size tags. Provider identity, advertised capability and qualification are separate facts.

Rust Client::load checks the installed binary and provider. The ownership binding declares Rust 1.85.1 and libloading 0.8.9. C++ move-only RAII wrappers, Rust owned wrappers and Rust raw declarations have distinct ownership contracts.

Representations and operations#

Work

Contract to check

Host upload

cugeo_geometry_cuda_geometry_upload copies host data before returning.

WKB decode

CUGEO_GEOMETRY_CUDA_ANY is a decode selector. Retained collection WKB establishes transport support. Rust Context::decode_wkb_host accepts offsets and options and provides typed success or failure.

Device file decode and construction

The unsafe Rust FileGDB decode interface requires its device span and context obligations to be met. Device construction also includes cugeo_geometry_cuda_geometry_to_geography_device. See its declaration.

Predicates

Choose direct or prepared evaluation according to the inputs and pairing.

Measures and filters

Check the geometry family, dimensions and result required.

Overlay and repair

Check the supported families and input states.

Proximity and nearest

Check operand roles, pairing and result representation. The CUDA pair-distance descriptor includes distance_mode, modes and modes_bytes. With CUGEO_GEOMETRY_CUDA_DISTANCE_WGS84_PER_PAIR, each mode byte selects sphere or spheroid distance. A zero byte makes that pair NULL. See the descriptor and declaration.

Counts and reductions

Check preparation, grouping and result access.

CUDA ring classification

The installed template distinguishes outside, boundary and interior.

Distance and boundary contact#

cugeo_geometry_cuda_evaluate_dwithin_pairs uses logical left and right operands and either a scalar threshold or per-pair thresholds. In this signature, the per-pair threshold array has a host carrier.

CUGEO_GEOMETRY_CUDA_TOUCHES accepts point/region boundary contact in either operand order. Those cases are omitted from the advertised capability tuples, even though source and tests support them. Point/point has a different boundary case because a point’s boundary is empty.

Results and preparation#

Results include Booleans, selections, sparse pairs, grouped counts, distances, nearest results, areas, coordinates, classifications and reductions. Use the accessor for the result type. Jobs support query, wait, cancel, result and stats operations. Cursors return pages using caller-specified capacity.

For prepared point/region counts, Rust provides Context::grouped_predicate_counts, Index::prepared_info(), PointRegionReduction, reduce_prepared_point_regions_submit and typed host count retrieval. Context::memory_info reports provider allocator accounting.

Borrowed device results#

For the release condition of a borrowed device result, see the typed lease rows in Device buffers, streams and ownership.