Struct gdal::vector::Geometry [−][src]
pub struct Geometry { /* fields omitted */ }
OGR Geometry
Methods
impl Geometry
[src]
impl Geometry
pub unsafe fn lazy_feature_geometry() -> Geometry
[src]
pub unsafe fn lazy_feature_geometry() -> Geometry
pub fn has_gdal_ptr(&self) -> bool
[src]
pub fn has_gdal_ptr(&self) -> bool
pub unsafe fn set_c_geometry(&self, c_geometry: OGRGeometryH)
[src]
pub unsafe fn set_c_geometry(&self, c_geometry: OGRGeometryH)
pub fn empty(wkb_type: Type) -> Result<Geometry>
[src]
pub fn empty(wkb_type: Type) -> Result<Geometry>
pub fn is_empty(&self) -> bool
[src]
pub fn is_empty(&self) -> bool
pub fn from_wkt(wkt: &str) -> Result<Geometry>
[src]
pub fn from_wkt(wkt: &str) -> Result<Geometry>
Create a geometry by parsing a WKT string.
pub fn bbox(w: f64, s: f64, e: f64, n: f64) -> Result<Geometry>
[src]
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 fn json(&self) -> Result<String>
[src]
pub fn json(&self) -> Result<String>
Serialize the geometry as JSON.
pub fn wkt(&self) -> Result<String>
[src]
pub fn wkt(&self) -> Result<String>
Serialize the geometry as WKT.
pub unsafe fn c_geometry(&self) -> OGRGeometryH
[src]
pub unsafe fn c_geometry(&self) -> OGRGeometryH
pub unsafe fn into_c_geometry(self) -> OGRGeometryH
[src]
pub unsafe fn into_c_geometry(self) -> OGRGeometryH
pub fn set_point_2d(&mut self, i: usize, p: (f64, f64))
[src]
pub fn set_point_2d(&mut self, i: usize, p: (f64, f64))
pub fn get_point(&self, i: i32) -> (f64, f64, f64)
[src]
pub fn get_point(&self, i: i32) -> (f64, f64, f64)
pub fn get_point_vec(&self) -> Vec<(f64, f64, f64)>
[src]
pub fn get_point_vec(&self) -> Vec<(f64, f64, f64)>
pub fn convex_hull(&self) -> Result<Geometry>
[src]
pub fn convex_hull(&self) -> Result<Geometry>
Compute the convex hull of this geometry.
pub fn geometry_type(&self) -> Type
[src]
pub fn geometry_type(&self) -> Type
pub fn geometry_count(&self) -> usize
[src]
pub fn geometry_count(&self) -> usize
pub unsafe fn _get_geometry(&self, n: usize) -> Geometry
[src]
pub unsafe fn _get_geometry(&self, n: usize) -> Geometry
pub fn add_geometry(&mut self, sub: Geometry) -> Result<()>
[src]
pub fn add_geometry(&mut self, sub: Geometry) -> Result<()>
pub fn transform_inplace(&self, htransform: &CoordTransform) -> Result<()>
[src]
pub fn transform_inplace(&self, htransform: &CoordTransform) -> Result<()>
pub fn transform(&self, htransform: &CoordTransform) -> Result<Geometry>
[src]
pub fn transform(&self, htransform: &CoordTransform) -> Result<Geometry>
pub fn transform_to_inplace(&self, spatial_ref: &SpatialRef) -> Result<()>
[src]
pub fn transform_to_inplace(&self, spatial_ref: &SpatialRef) -> Result<()>
pub fn transform_to(&self, spatial_ref: &SpatialRef) -> Result<Geometry>
[src]
pub fn transform_to(&self, spatial_ref: &SpatialRef) -> Result<Geometry>
pub fn area(&self) -> f64
[src]
pub fn area(&self) -> f64
pub fn spatial_reference(&self) -> Option<SpatialRef>
[src]
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)
[src]
pub fn set_spatial_reference(&mut self, spatial_ref: SpatialRef)
Trait Implementations
impl Drop for Geometry
[src]
impl Drop for Geometry
impl Clone for Geometry
[src]
impl Clone for Geometry
fn clone(&self) -> Geometry
[src]
fn clone(&self) -> Geometry
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl From<Geometry> for Geometry<f64>
[src]
impl From<Geometry> for Geometry<f64>