pub struct Geometry { /* private fields */ }
Expand description
OGR Geometry
Implementations
sourceimpl Geometry
impl Geometry
pub unsafe fn lazy_feature_geometry() -> Geometry
pub fn has_gdal_ptr(&self) -> bool
pub unsafe fn set_c_geometry(&self, c_geometry: OGRGeometryH)
pub fn empty(wkb_type: Type) -> Result<Geometry>
pub fn is_empty(&self) -> bool
sourcepub fn bbox(w: f64, s: f64, e: f64, n: f64) -> Result<Geometry>
pub fn bbox(w: f64, s: f64, e: f64, n: f64) -> Result<Geometry>
Create a rectangular geometry from West, South, East and North values.
pub unsafe fn c_geometry(&self) -> OGRGeometryH
pub unsafe fn into_c_geometry(self) -> OGRGeometryH
pub fn set_point_2d(&mut self, i: usize, p: (f64, f64))
pub fn get_point(&self, i: i32) -> (f64, f64, f64)
pub fn get_point_vec(&self) -> Vec<(f64, f64, f64)>
sourcepub fn convex_hull(&self) -> Result<Geometry>
pub fn convex_hull(&self) -> Result<Geometry>
Compute the convex hull of this geometry.
pub fn geometry_type(&self) -> Type
pub fn geometry_count(&self) -> usize
pub unsafe fn _get_geometry(&self, n: usize) -> Geometry
pub fn add_geometry(&mut self, sub: Geometry) -> Result<()>
pub fn transform_inplace(&self, htransform: &CoordTransform) -> Result<()>
pub fn transform(&self, htransform: &CoordTransform) -> Result<Geometry>
pub fn transform_to_inplace(&self, spatial_ref: &SpatialRef) -> Result<()>
pub fn transform_to(&self, spatial_ref: &SpatialRef) -> Result<Geometry>
pub fn area(&self) -> f64
sourcepub fn spatial_reference(&self) -> Option<SpatialRef>
pub fn spatial_reference(&self) -> Option<SpatialRef>
May or may not contain a reference to a SpatialRef: if not, it returns
an Ok(None)
; if it does, it tries to build a SpatialRef. If that
succeeds, it returns an Ok(Some(SpatialRef)), otherwise, you get the
Err.
pub fn set_spatial_reference(&mut self, spatial_ref: SpatialRef)
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for Geometry
impl !Send for Geometry
impl !Sync for Geometry
impl Unpin for Geometry
impl UnwindSafe for Geometry
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more