Struct geos::GGeom
[−]
[src]
#[repr(C)]pub struct GGeom(_);
Methods
impl GGeom
[src]
pub fn new(wkt: &str) -> Result<GGeom, Error>
[src]
pub fn is_valid(&self) -> bool
[src]
pub fn get_coord_seq(&self) -> Result<CoordSeq, Error>
[src]
get the underlying geos CoordSeq object from the geometry
Note: this clones the underlying CoordSeq to avoid double free (because CoordSeq handles the object ptr and the CoordSeq is still owned by the geos geometry) if this method's performance becomes a bottleneck, feel free to open an issue, we could skip this clone with cleaner code
pub fn geometry_type(&self) -> Result<GEOSGeomTypes, Error>
[src]
pub fn area(&self) -> Result<f64, Error>
[src]
pub fn to_wkt(&self) -> String
[src]
pub fn to_wkt_precison(&self, precision: Option<u32>) -> String
[src]
pub fn is_ring(&self) -> Result<bool, Error>
[src]
pub fn intersects(&self, g2: &GGeom) -> Result<bool, Error>
[src]
pub fn crosses(&self, g2: &GGeom) -> Result<bool, Error>
[src]
pub fn disjoint(&self, g2: &GGeom) -> Result<bool, Error>
[src]
pub fn touches(&self, g2: &GGeom) -> Result<bool, Error>
[src]
pub fn overlaps(&self, g2: &GGeom) -> Result<bool, Error>
[src]
pub fn within(&self, g2: &GGeom) -> Result<bool, Error>
[src]
pub fn equals(&self, g2: &GGeom) -> Result<bool, Error>
[src]
pub fn equals_exact(&self, g2: &GGeom, precision: f64) -> Result<bool, Error>
[src]
pub fn covers(&self, g2: &GGeom) -> Result<bool, Error>
[src]
pub fn covered_by(&self, g2: &GGeom) -> Result<bool, Error>
[src]
pub fn contains(&self, g2: &GGeom) -> Result<bool, Error>
[src]
pub fn buffer(&self, width: f64, quadsegs: i32) -> Result<GGeom, Error>
[src]
pub fn is_empty(&self) -> Result<bool, Error>
[src]
pub fn is_simple(&self) -> Result<bool, Error>
[src]
pub fn difference(&self, g2: &GGeom) -> Result<GGeom, Error>
[src]
pub fn envelope(&self) -> Result<GGeom, Error>
[src]
pub fn sym_difference(&self, g2: &GGeom) -> Result<GGeom, Error>
[src]
pub fn get_centroid(&self) -> Result<GGeom, Error>
[src]
pub fn create_polygon(
exterior: GGeom,
interiors: Vec<GGeom>
) -> Result<GGeom, Error>
[src]
exterior: GGeom,
interiors: Vec<GGeom>
) -> Result<GGeom, Error>
pub fn create_multipolygon(polygons: Vec<GGeom>) -> Result<GGeom, Error>
[src]
pub fn create_point(s: &CoordSeq) -> Result<GGeom, Error>
[src]
pub fn create_line_string(s: CoordSeq) -> Result<GGeom, Error>
[src]
pub fn create_linear_ring(s: CoordSeq) -> Result<GGeom, Error>
[src]
Trait Implementations
impl Drop for GGeom
[src]
impl Clone for GGeom
[src]
fn clone(&self) -> GGeom
[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