[−][src]Struct geos::ConstGeometry
only not mutable operations are implemented on it.
Example
use geos::{Geom, Geometry}; let geom = Geometry::new_from_wkt("POLYGON((0 0, 10 0, 10 6, 0 6, 0 0),\ (1 1, 2 1, 2 5, 1 5, 1 1),\ (8 5, 8 4, 9 4, 9 5, 8 5))") .expect("Invalid geometry"); let point_geom = geom .get_interior_ring_n(0) .expect("failed to get const geometry");
Implementations
impl<'a, 'b> ConstGeometry<'a, 'b>
[src]
pub fn get_context_handle(&self) -> &ContextHandle<'a>
[src]
Get the context handle of the geometry.
use geos::{ContextInteractions, Geometry}; let point_geom = Geometry::new_from_wkt("POINT (2.5 2.5)").expect("Invalid geometry"); let context = point_geom.get_context_handle(); context.set_notice_message_handler(Some(Box::new(|s| println!("new message: {}", s))));
Trait Implementations
impl<'a, 'd> ContextHandling for ConstGeometry<'a, 'd>
[src]
type Context = Arc<ContextHandle<'a>>
fn get_raw_context(&self) -> GEOSContextHandle_t
[src]
fn clone_context(&self) -> Arc<ContextHandle<'a>>
[src]
impl<'a, 'd> Geom<'a> for ConstGeometry<'a, 'd>
[src]
fn get_type(&self) -> GResult<String>
[src]
fn geometry_type(&self) -> GeometryTypes
[src]
fn is_valid(&self) -> bool
[src]
fn is_valid_reason(&self) -> GResult<String>
[src]
fn get_coord_seq(&self) -> GResult<CoordSeq<'a>>
[src]
fn area(&self) -> GResult<f64>
[src]
fn to_wkt(&self) -> GResult<String>
[src]
fn to_wkt_precision(&self, precision: u32) -> GResult<String>
[src]
fn is_ring(&self) -> GResult<bool>
[src]
fn intersects<'b, G: Geom<'b>>(&self, other: &G) -> GResult<bool>
[src]
fn crosses<'b, G: Geom<'b>>(&self, other: &G) -> GResult<bool>
[src]
fn disjoint<'b, G: Geom<'b>>(&self, other: &G) -> GResult<bool>
[src]
fn touches<'b, G: Geom<'b>>(&self, other: &G) -> GResult<bool>
[src]
fn overlaps<'b, G: Geom<'b>>(&self, other: &G) -> GResult<bool>
[src]
fn within<'b, G: Geom<'b>>(&self, other: &G) -> GResult<bool>
[src]
fn equals<'b, G: Geom<'b>>(&self, other: &G) -> GResult<bool>
[src]
fn equals_exact<'b, G: Geom<'b>>(
&self,
other: &G,
precision: f64
) -> GResult<bool>
[src]
&self,
other: &G,
precision: f64
) -> GResult<bool>
fn covers<'b, G: Geom<'b>>(&self, other: &G) -> GResult<bool>
[src]
fn covered_by<'b, G: Geom<'b>>(&self, other: &G) -> GResult<bool>
[src]
fn contains<'b, G: Geom<'b>>(&self, other: &G) -> GResult<bool>
[src]
fn buffer(&self, width: f64, quadsegs: i32) -> GResult<Geometry<'a>>
[src]
fn is_empty(&self) -> GResult<bool>
[src]
fn is_simple(&self) -> GResult<bool>
[src]
fn difference<'b, G: Geom<'b>>(&self, other: &G) -> GResult<Geometry<'a>>
[src]
fn envelope(&self) -> GResult<Geometry<'a>>
[src]
fn sym_difference<'b, G: Geom<'b>>(&self, other: &G) -> GResult<Geometry<'a>>
[src]
fn union<'b, G: Geom<'b>>(&self, other: &G) -> GResult<Geometry<'a>>
[src]
fn get_centroid(&self) -> GResult<Geometry<'a>>
[src]
fn unary_union(&self) -> GResult<Geometry<'a>>
[src]
fn voronoi<'b, G: Geom<'b>>(
&self,
envelope: Option<&G>,
tolerance: f64,
only_edges: bool
) -> GResult<Geometry<'a>>
[src]
&self,
envelope: Option<&G>,
tolerance: f64,
only_edges: bool
) -> GResult<Geometry<'a>>
fn intersection<'b, G: Geom<'b>>(&self, other: &G) -> GResult<Geometry<'a>>
[src]
fn convex_hull(&self) -> GResult<Geometry<'a>>
[src]
fn boundary(&self) -> GResult<Geometry<'a>>
[src]
fn has_z(&self) -> GResult<bool>
[src]
fn is_closed(&self) -> GResult<bool>
[src]
fn length(&self) -> GResult<f64>
[src]
fn distance<'b, G: Geom<'b>>(&self, other: &G) -> GResult<f64>
[src]
fn distance_indexed<'b, G: Geom<'b>>(&self, other: &G) -> GResult<f64>
[src]
fn hausdorff_distance<'b, G: Geom<'b>>(&self, other: &G) -> GResult<f64>
[src]
fn hausdorff_distance_densify<'b, G: Geom<'b>>(
&self,
other: &G,
distance_frac: f64
) -> GResult<f64>
[src]
&self,
other: &G,
distance_frac: f64
) -> GResult<f64>
fn frechet_distance<'b, G: Geom<'b>>(&self, other: &G) -> GResult<f64>
[src]
fn frechet_distance_densify<'b, G: Geom<'b>>(
&self,
other: &G,
distance_frac: f64
) -> GResult<f64>
[src]
&self,
other: &G,
distance_frac: f64
) -> GResult<f64>
fn get_length(&self) -> GResult<f64>
[src]
fn snap<'b, G: Geom<'b>>(
&self,
other: &G,
tolerance: f64
) -> GResult<Geometry<'a>>
[src]
&self,
other: &G,
tolerance: f64
) -> GResult<Geometry<'a>>
fn extract_unique_points(&self) -> GResult<Geometry<'a>>
[src]
fn nearest_points<'b, G: Geom<'b>>(&self, other: &G) -> GResult<CoordSeq<'a>>
[src]
fn get_x(&self) -> GResult<f64>
[src]
fn get_y(&self) -> GResult<f64>
[src]
fn get_z(&self) -> GResult<f64>
[src]
fn get_point_n(&self, n: usize) -> GResult<Geometry<'a>>
[src]
fn get_start_point(&self) -> GResult<Geometry<'a>>
[src]
fn get_end_point(&self) -> GResult<Geometry<'a>>
[src]
fn get_num_points(&self) -> GResult<usize>
[src]
fn get_num_interior_rings(&self) -> GResult<usize>
[src]
fn get_num_coordinates(&self) -> GResult<usize>
[src]
fn get_num_dimensions(&self) -> GResult<usize>
[src]
fn get_coordinate_dimension(&self) -> GResult<Dimensions>
[src]
fn make_valid(&self) -> GResult<Geometry<'a>>
[src]
fn get_num_geometries(&self) -> GResult<usize>
[src]
fn get_srid(&self) -> GResult<usize>
[src]
fn get_precision(&self) -> GResult<f64>
[src]
fn set_precision(
&self,
grid_size: f64,
flags: Precision
) -> GResult<Geometry<'a>>
[src]
&self,
grid_size: f64,
flags: Precision
) -> GResult<Geometry<'a>>
fn get_x_max(&self) -> GResult<f64>
[src]
fn get_x_min(&self) -> GResult<f64>
[src]
fn get_y_max(&self) -> GResult<f64>
[src]
fn get_y_min(&self) -> GResult<f64>
[src]
fn minimum_clearance(&self) -> GResult<f64>
[src]
fn minimum_clearance_line(&self) -> GResult<Geometry<'a>>
[src]
fn minimum_rotated_rectangle(&self) -> GResult<Geometry<'a>>
[src]
fn minimum_width(&self) -> GResult<Geometry<'a>>
[src]
fn delaunay_triangulation(
&self,
tolerance: f64,
only_edges: bool
) -> GResult<Geometry<'a>>
[src]
&self,
tolerance: f64,
only_edges: bool
) -> GResult<Geometry<'a>>
fn interpolate(&self, d: f64) -> GResult<Geometry<'a>>
[src]
fn interpolate_normalized(&self, d: f64) -> GResult<Geometry<'a>>
[src]
fn project<'b, G: Geom<'b>>(&self, p: &G) -> GResult<f64>
[src]
fn project_normalized<'b, G: Geom<'b>>(&self, p: &G) -> GResult<f64>
[src]
fn node(&self) -> GResult<Geometry<'a>>
[src]
fn offset_curve(
&self,
width: f64,
quadrant_segments: i32,
join_style: JoinStyle,
mitre_limit: f64
) -> GResult<Geometry<'a>>
[src]
&self,
width: f64,
quadrant_segments: i32,
join_style: JoinStyle,
mitre_limit: f64
) -> GResult<Geometry<'a>>
fn point_on_surface(&self) -> GResult<Geometry<'a>>
[src]
fn polygonize_full(
&self
) -> GResult<(Geometry<'a>, Option<Geometry<'a>>, Option<Geometry<'a>>, Option<Geometry<'a>>)>
[src]
&self
) -> GResult<(Geometry<'a>, Option<Geometry<'a>>, Option<Geometry<'a>>, Option<Geometry<'a>>)>
fn shared_paths<'b, G: Geom<'b>>(&self, other: &G) -> GResult<Geometry<'a>>
[src]
fn to_hex(&self) -> GResult<CVec<u8>>
[src]
fn to_wkb(&self) -> GResult<CVec<u8>>
[src]
fn to_prepared_geom(&self) -> GResult<PreparedGeometry<'a>>
[src]
fn clone(&self) -> Geometry<'a>
[src]
fn get_geometry_n<'c>(&'c self, n: usize) -> GResult<ConstGeometry<'a, 'c>>
[src]
fn get_interior_ring_n<'c>(&'c self, n: u32) -> GResult<ConstGeometry<'a, 'c>>
[src]
fn get_exterior_ring<'c>(&'c self) -> GResult<ConstGeometry<'a, 'c>>
[src]
impl<'a, 'b, 'd, G: Geom<'b>> PartialEq<G> for ConstGeometry<'a, 'd>
[src]
impl<'a, 'd> Send for ConstGeometry<'a, 'd>
[src]
impl<'a, 'd> Sync for ConstGeometry<'a, 'd>
[src]
impl<'a, 'b, 'c> TryFrom<&'b ConstGeometry<'a, 'c>> for Geometry<f64>
[src]
type Error = Error
The type returned in the event of a conversion error.
fn try_from(
other: &'b ConstGeometry<'a, 'c>
) -> Result<Geometry<f64>, Self::Error>
[src]
other: &'b ConstGeometry<'a, 'c>
) -> Result<Geometry<f64>, Self::Error>
impl<'a, 'c> TryFrom<ConstGeometry<'a, 'c>> for Geometry<f64>
[src]
type Error = Error
The type returned in the event of a conversion error.
fn try_from(other: ConstGeometry<'a, 'c>) -> Result<Geometry<f64>, Self::Error>
[src]
impl<'a, 'c> TryFrom<ConstGeometry<'a, 'c>> for Geometry
[src]
Auto Trait Implementations
impl<'a, 'b> RefUnwindSafe for ConstGeometry<'a, 'b>
impl<'a, 'b> Unpin for ConstGeometry<'a, 'b> where
'a: 'b,
'a: 'b,
impl<'a, 'b> UnwindSafe for ConstGeometry<'a, 'b>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
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, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,