Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
71 changes: 58 additions & 13 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions rust/geodatafusion/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,15 @@ geoarrow-array = { workspace = true }
geoarrow-expr-geo = { workspace = true }
geoarrow-schema = { workspace = true }
geohash = { workspace = true }
geojson = { workspace = true }
serde_json = { workspace = true }
thiserror = { workspace = true }
wkt = { workspace = true }

[dev-dependencies]
approx = { workspace = true }
datafusion = { workspace = true, features = ["sql"] }
spatialbench = { workspace = true }
geo-traits = { workspace = true }
geoarrow-array = { workspace = true, features = ["test-data"] }
object_store = { workspace = true, features = ["http"] }
Expand Down
12 changes: 12 additions & 0 deletions rust/geodatafusion/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,21 +12,33 @@ pub mod udf;

/// Register all UDFs defined in geodatafusion
pub fn register(session_context: &datafusion::prelude::SessionContext) {
// Aggregate spatial functions
crate::udf::geo::aggregate::register(session_context);

// Measurement functions (area, distance, length, perimeter, azimuth, etc.)
crate::udf::geo::measurement::register(session_context);

// Processing functions (buffer, overlay, simplify, affine, editors, linear ref, etc.)
crate::udf::geo::processing::register(session_context);

// Spatial relationships (contains, intersects, dwithin, relate, etc.)
crate::udf::geo::relationships::register(session_context);

// Validation functions (is_valid, is_valid_reason)
crate::udf::geo::validation::register(session_context);

// GeoHash functions
crate::udf::geohash::register(session_context);

// Native accessors (x, y, z, m, geometry_type, dimension, is_empty, etc.)
crate::udf::native::accessors::register(session_context);

// Bounding box functions
crate::udf::native::bounding_box::register(session_context);

// Constructors (point, make_line, make_polygon, make_envelope)
crate::udf::native::constructors::register(session_context);

// I/O functions (WKT, WKB, GeoJSON, EWKT)
crate::udf::native::io::register(session_context);
}
Loading