Struct gdal::vector::Geometry
[−]
[src]
pub struct Geometry { /* fields omitted */ }
OGR Geometry
Methods
impl Geometry
[src]
unsafe fn lazy_feature_geometry() -> Geometry
fn has_gdal_ptr(&self) -> bool
unsafe fn set_c_geometry(&self, c_geometry: *const c_void)
fn empty(wkb_type: c_int) -> Geometry
fn from_wkt(wkt: &str) -> Geometry
Create a geometry by parsing a WKT string.
fn bbox(w: f64, s: f64, e: f64, n: f64) -> Geometry
Create a rectangular geometry from West, South, East and North values.
fn json(&self) -> String
Serialize the geometry as JSON.
fn wkt(&self) -> String
Serialize the geometry as WKT.
unsafe fn c_geometry(&self) -> *const c_void
unsafe fn into_c_geometry(self) -> *const c_void
fn set_point_2d(&mut self, i: usize, p: (f64, f64))
fn get_point(&self, i: i32) -> (f64, f64, f64)
fn get_point_vec(&self) -> Vec<(f64, f64, f64)>
fn convex_hull(&self) -> Geometry
Compute the convex hull of this geometry.