Skip to content
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

GeometryRef is not pub #567

Open
nms-scribe opened this issue Oct 2, 2024 · 0 comments
Open

GeometryRef is not pub #567

nms-scribe opened this issue Oct 2, 2024 · 0 comments

Comments

@nms-scribe
Copy link

nms-scribe commented Oct 2, 2024

I would like to request that gdal::vector either export GeometryRef or mod geometry.

I keep on running into situations where I want to store the value returned by gdal::vector::geometry::Geometry::get_geometry in a struct without cloning. However, I can't because the following causes a compiler error of "module geometry is private".

use gdal::vector::geometry::GeometryRef;

struct GeometryCache<'a> {
   geometry: GeometryRef<'a>,
   result_of_complicated_analysis_for_future_use: f64
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant