Type Alias shapefile::record::polygon::PolygonM

source ·
pub type PolygonM = GenericPolygon<PointM>;
Expand description

Specialization of the GenericPolygon struct to represent a PolygonM shape ( collection of PointM)

Aliased Type§

struct PolygonM { /* private fields */ }

Trait Implementations§

source§

impl ConcreteReadableShape for PolygonM

source§

fn read_shape_content<T: Read>( source: &mut T, record_size: i32 ) -> Result<Self, Error>

Function that actually reads the ActualShape from the source and returns it
source§

impl Display for PolygonM

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl EsriShape for PolygonM

source§

fn x_range(&self) -> [f64; 2]

source§

fn y_range(&self) -> [f64; 2]

source§

fn m_range(&self) -> [f64; 2]

Should return the M range of this shape
source§

fn z_range(&self) -> [f64; 2]

Should return the Z range of this shape
source§

impl HasShapeType for PolygonM

source§

fn shapetype() -> ShapeType

Returns the ShapeType
source§

impl TryFrom<Shape> for PolygonM

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(shape: Shape) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl WritableShape for PolygonM

source§

fn size_in_bytes(&self) -> usize

Returns the size in bytes that the Shapes will take once written. Does not include the shapetype
source§

fn write_to<T: Write>(&self, dest: &mut T) -> Result<(), Error>

Writes the shape to the dest
source§

impl ConcreteShape for PolygonM