Query engine interfaces and compatibility#
Choose an installed target for the work your application needs and check its dependency and feature requirements.
Work and installed target#
Goal |
Target |
Requirements and choices |
|---|---|---|
Use primitive SDK operations |
|
CMake 3.28 and CUDA Toolkit 13.0. |
Use the cuDF backend |
|
Descriptor-only or runtime mode, stock or alternate linked RAPIDS dependencies, and optional Proj. Generation requires Python 3.12. |
Integrate with cuDF |
|
Static target with CMake 4.0, CUDA 13, cuDF and the required Geometry CUDA SDK components. Coordinate-operation integration is selectable. |
Integrate with Velox GPU |
|
CMake 4.0, CUDA Toolkit 13 and a matched RAPIDS prefix. The optional native Velox Parquet route requires FBThrift. |
Compile a spatial recipe |
|
Cargo-built static compiler. |
Compile and bind a plan#
cugeo_geometry_fragment_compile returns an owned typed recipe and projections. It allows up to 4096 fields per input and 4096 projections. Its profile is PostGIS planar XY with SRID 0. The Presto profile is refused. Release the recipe after its readers finish.
cugeo_geometry_function_compile covers Area, Centroid, XMin, NPoints, Distance and DWithin. A successful compile supplies a recipe. Obtaining values requires an execution interface.
Rust and SQL interfaces#
For Rust binding, inspect bind, BindingOutcome, input requirements, JSON bind and restore, and plan and schema digests. file_query, grouped_request and projection_request are gated by cudf-request.
The SQL frontend uses the PostgreSQL 17 parser and PostGIS profile and admits one bounded SELECT. The support matrix describes frontend admission.
cuDF backend workloads#
The cugeo-geometry-cudf C99 interface includes identity and digest, contexts, uintptr_t CUDA driver handles, memory reports, reserve and pinned-pool controls, sources, Arrow table import, typed programs, results, streams and leases. Distinguish cugeo_geometry_cudf_program_compile_records, resident execution, streamed-input execution and paged output when selecting a workload.
Source conditions depend on format: Parquet, Shapefile, FlatGeobuf, FileGDB, KML, GeoPackage, OSM PBF, CSV and GeoJSON each have their own admission conditions. cugeo_geometry_cudf_geopackage_source_open requires a feature layer and a clean, quiescent local source. For Parquet, cugeo_geometry_cudf_parquet_source_get_file_stamp belongs with footer and schema inspection and projected scan controls.
An embedding adapter can supply an unconstrained typed Geometry input whose planar XY Point or polygonal rows carry different normalized SRIDs. cuGeo retains those labels through row selection and checks SRID compatibility when a spatial operation evaluates the operands. The native input contract defines the admitted families and observed input evidence.
Arrow ownership#
For when an aliased Arrow owner can be released, see the relevant import or export call in Device buffers, streams and ownership.
cuDF and Velox adapters#
Check column and schema validation and WKB layout before registering an adapter or binding, opening and unbinding its resources. SpatialFunctionNode, SpatialJoinNode, DevicePassthroughNode and insertSpatialFragments are adapter entry points. Consult the relevant node’s configuration, limits, observations and output pool. Delivery observations apply to the measured adapter boundary.
Builds with Proj integration also expose coordinate_operation_cache and device_xy_rows. Velox resource binding can refuse managed memory with missing_capability. For the meaning of a returned class and the layer that decided it, see the adapter entries in Errors, refusals and diagnostic fields.