[−][src]Struct osmptparser::Relation
OSM relation representation with all the relevant osm data (tags and ids of relation and all ways and nodes)
Fields
id: u64
info: HashMap<String, String>
ways: Vec<Way>
stops: Vec<Node>
Implementations
impl Relation
[src]
pub fn flatten_ways(
&self,
tolerance: f64
) -> Result<(Vec<Vec<Node>>, ParseStatus), ()>
[src]
&self,
tolerance: f64
) -> Result<(Vec<Vec<Node>>, ParseStatus), ()>
best effort get a linestring or multilinestring from all the ways that compose this relation
if tolerance
is > 0, then it also join gaps in the ways into one linestring when possible
tolerance
is in meters
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Relation
impl Send for Relation
impl Sync for Relation
impl Unpin for Relation
impl UnwindSafe for Relation
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,