[][src]Struct shapefile::record::multipatch::Multipatch

pub struct Multipatch {
    pub bbox: BBox,
    pub points: Vec<PointZ>,
    pub parts: Vec<i32>,
    pub parts_type: Vec<PatchType>,
    pub z_range: [f64; 2],
    pub m_range: [f64; 2],
}

Fields

bbox: BBoxpoints: Vec<PointZ>parts: Vec<i32>parts_type: Vec<PatchType>z_range: [f64; 2]m_range: [f64; 2]

Methods

impl Multipatch[src]

pub fn new(
    points: Vec<PointZ>,
    parts: Vec<i32>,
    parts_type: Vec<PatchType>
) -> Self
[src]

Trait Implementations

impl MultipointShape<PointZ> for Multipatch[src]

impl MultipartShape<PointZ> for Multipatch[src]

fn part(&self, index: usize) -> Option<&[PointType]>[src]

Returns the slice of points corresponding to part n°ìndex if the shape actually has multiple parts Read more

Important traits for PartIterator<'a, PointType, Shape>
fn parts(&self) -> PartIterator<PointType, Self>[src]

Returns an iterator over the parts of a MultipartShape Read more

impl HasShapeType for Multipatch[src]

impl ConcreteShape for Multipatch[src]

impl ConcreteReadableShape for Multipatch[src]

impl WritableShape for Multipatch[src]

impl EsriShape for Multipatch[src]

impl From<Polygon<f64>> for Multipatch[src]

impl From<MultiPolygon<f64>> for Multipatch[src]

impl From<Multipatch> for Shape[src]

impl Display for Multipatch[src]

impl TryFrom<Multipatch> for MultiPolygon<f64>[src]

Converts a Multipatch to Multipolygon

For simplicity,reasons, Triangle Fan & Triangle Strip are considered to be valid polygons When the individual types of rings in a collection of rings representing a polygonal patch with holes are unknown, the sequence must start with First Ring, followed by a number of Rings. A sequence of Rings not preceded by an First Ring is treated as a sequence of Outer Rings without holes.

type Error = Error

The type returned in the event of a conversion error.

impl TryFrom<Shape> for Multipatch[src]

type Error = Error

The type returned in the event of a conversion error.

Auto Trait Implementations

Blanket Implementations

impl<S> ReadableShape for S where
    S: ConcreteReadableShape
[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]