gdal icon indicating copy to clipboard operation
gdal copied to clipboard

GeometryRef is not pub

Open nms-scribe opened this issue 1 year ago • 0 comments

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
}

nms-scribe avatar Oct 02 '24 14:10 nms-scribe