[−][src]Struct geos::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]
Deprecated:
renamed to to_wkt_precision
pub fn to_wkt_precision(&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_multipoint(points: 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]
pub fn voronoi(
&self,
envelope: Option<&GGeom>,
tolerance: f64,
only_edges: bool
) -> Result<GGeom, Error>
[src]
&self,
envelope: Option<&GGeom>,
tolerance: f64,
only_edges: bool
) -> Result<GGeom, Error>
pub fn normalize(&mut self) -> Result<bool, Error>
[src]
Trait Implementations
impl<'a> TryInto<GGeom> for &'a Point<f64>
[src]
impl<'a> TryInto<GGeom> for &'a [Point<f64>]
[src]
impl<'a> TryInto<GGeom> for &'a LineString<f64>
[src]
impl<'a> TryInto<GGeom> for &'a Polygon<f64>
[src]
impl<'a> TryInto<GGeom> for &'a MultiPolygon<f64>
[src]
impl<'a> TryInto<Geometry<f64>> for GGeom
[src]
impl Clone for GGeom
[src]
fn clone(&self) -> GGeom
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Drop for GGeom
[src]
Auto Trait Implementations
Blanket Implementations
impl<T> From for T
[src]
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,