Skip to content

Commit

Permalink
typo
Browse files Browse the repository at this point in the history
  • Loading branch information
JosiahParry committed Mar 22, 2024
1 parent a076578 commit 4138f0b
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/geometry.rs
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ pub enum EsriGeometry<const N: usize> {
MultiPoint(EsriMultiPoint<N>),
Polygon(EsriPolygon<N>),
Polyline(EsriPolyline<N>),
Envelope(EsriEnvelope)
Envelope(EsriEnvelope),
}

impl<const N: usize> EsriGeometry<N> {
Expand All @@ -224,15 +224,15 @@ impl<const N: usize> EsriGeometry<N> {
pub fn as_multipoint(self) -> Option<EsriMultiPoint<N>> {
match self {
EsriGeometry::MultiPoint(p) => Some(p),
_ => None
_ => None,
}
}

/// Returns a polyline if possible
pub fn as_polyline(self) -> Option<EsriPolyline<N>> {
match self {
EsriGeometry::Polyline(pl) => Some(pl),
_ => None
_ => None,
}
}

Expand All @@ -248,7 +248,6 @@ impl<const N: usize> EsriGeometry<N> {
// Completed: esriGeometryPoint | esriGeometryMultipoint | esriGeometryPolyline | esriGeometryPolygon |
// TODO: esriGeometryEnvelope.


#[allow(non_snake_case)]
#[derive(Clone, Deserialize, Serialize, Debug)]
#[skip_serializing_none]
Expand All @@ -261,5 +260,5 @@ pub struct EsriEnvelope {
zmax: Option<f64>,
mmin: Option<f64>,
mmax: Option<f64>,
spatialReference: Option<spatialReference>
spatialReference: Option<SpatialReference>,
}

0 comments on commit 4138f0b

Please sign in to comment.