pub enum Shape {
Show 13 variants
Null,
Point(Point),
PointZ(PointZ),
PointM(PointM),
PolyLine(MultiPartShape),
Polygon(MultiPartShape),
MultiPoint(MultiPartShape),
PolyLineZ(MultiPartShapeZ),
PolygonZ(MultiPartShapeZ),
MultiPointZ(MultiPartShapeZ),
PolyLineM(MultiPartShapeM),
PolygonM(MultiPartShapeM),
MultiPointM(MultiPartShapeM),
}Expand description
Shape geometry variants
Variants§
Null
Null shape (no geometry)
Point(Point)
2D point
PointZ(PointZ)
3D point with Z
PointM(PointM)
Point with M value
PolyLine(MultiPartShape)
PolyLine (one or more line strings)
Polygon(MultiPartShape)
Polygon (one or more rings)
MultiPoint(MultiPartShape)
MultiPoint (collection of points)
PolyLineZ(MultiPartShapeZ)
PolyLine with Z coordinates
PolygonZ(MultiPartShapeZ)
Polygon with Z coordinates
MultiPointZ(MultiPartShapeZ)
MultiPoint with Z coordinates
PolyLineM(MultiPartShapeM)
PolyLine with M values
PolygonM(MultiPartShapeM)
Polygon with M values
MultiPointM(MultiPartShapeM)
MultiPoint with M values
Implementations§
Source§impl Shape
impl Shape
Sourcepub fn shape_type(&self) -> ShapeType
pub fn shape_type(&self) -> ShapeType
Returns the shape type
Sourcepub fn content_length(&self) -> i32
pub fn content_length(&self) -> i32
Calculates the content length in 16-bit words (excluding shape type)
Trait Implementations§
impl StructuralPartialEq for Shape
Auto Trait Implementations§
impl Freeze for Shape
impl RefUnwindSafe for Shape
impl Send for Shape
impl Sync for Shape
impl Unpin for Shape
impl UnsafeUnpin for Shape
impl UnwindSafe for Shape
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more