pub enum ShapeType {
Show 14 variants
NullShape,
Point,
Polyline,
Polygon,
Multipoint,
PointZ,
PolylineZ,
PolygonZ,
MultipointZ,
PointM,
PolylineM,
PolygonM,
MultipointM,
Multipatch,
}
Expand description
The enum for the ShapeType as defined in the specification
Variants§
NullShape
Point
Polyline
Polygon
Multipoint
PointZ
PolylineZ
PolygonZ
MultipointZ
PointM
PolylineM
PolygonM
MultipointM
Multipatch
Implementations§
source§impl ShapeType
impl ShapeType
sourcepub fn from(code: i32) -> Option<ShapeType>
pub fn from(code: i32) -> Option<ShapeType>
Returns the ShapeType corresponding to the input code if the code is valid
use shapefile::ShapeType;
assert_eq!(ShapeType::from(25), Some(ShapeType::PolygonM));
assert_eq!(ShapeType::from(60), None);
sourcepub fn is_multipart(self) -> bool
pub fn is_multipart(self) -> bool
Returns true if the shape may have multiple parts