-
Notifications
You must be signed in to change notification settings - Fork 96
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add M-dim bindings #600
base: master
Are you sure you want to change the base?
Add M-dim bindings #600
Conversation
} | ||
Ok(wkb) | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe instead of a separate function, modifying the original wkb
/wkt
methods would be nicer, though that would be a breaking change.
pub fn geometry_type_has_m(ty: OGRwkbGeometryType::Type) -> bool { | ||
unsafe { gdal_sys::OGR_GT_HasM(ty) != 0 } | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure about adding a bunch of stand-alone functions like this when they only take an OGRwkbGeometryType
though since that's generated, this might just be good enough?
CHANGES.md
if knowledge of this change could be valuable to users.This PR seeks to add bindings for GDAL functions relating to higher-dimension geometry, in particular Measured geometry, with some other minor fixes/additions.
Added methods for
Geometry
:add_point_zm
add_point_m
set_point_zm
set_point_m
get_point_zm
get_point_vec_zm
iso_wkt
iso_wkb
Considering renaming
get_point_vec_zm
toget_point_zm_vec
, though neither exactly roll off the tongue.Also modified the Debug impl. for
Geometry
to use iso_wkt in cases of measured geometry.