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