pub struct Node {
pub id: u64,
/* private fields */
}Expand description
Node class contains a single node.
Fields§
§id: u64The node id
Implementations§
Source§impl Node
impl Node
Sourcepub fn get_lon_lat(&self, pb: &PrimitiveBlock) -> (f64, f64)
pub fn get_lon_lat(&self, pb: &PrimitiveBlock) -> (f64, f64)
Get the lon and lat of the node
Sourcepub fn properties(&self, pb: &PrimitiveBlock) -> Properties
pub fn properties(&self, pb: &PrimitiveBlock) -> Properties
Get the properties of the node
Sourcepub fn to_vector_geometry(&self, pb: &PrimitiveBlock) -> VectorPoint<MValue>
pub fn to_vector_geometry(&self, pb: &PrimitiveBlock) -> VectorPoint<MValue>
Gain access to the nodes geometry
Sourcepub fn to_intermediate_feature(&self, pb: &PrimitiveBlock) -> IntermediateNode
pub fn to_intermediate_feature(&self, pb: &PrimitiveBlock) -> IntermediateNode
Converts the way to an intermediate vector feature (way’s nodes have not been parsed)
§Returns
The way as an intermediate vector feature
Trait Implementations§
Source§impl OSMFilterable for Node
impl OSMFilterable for Node
Source§fn is_filterable<T: Reader, _N: KVStore<u64, VectorPoint<MValue>>, N: KVStore<u64, IntermediateNode>, _W: KVStore<u64, WayNodes>, W: KVStore<u64, IntermediateWay>, R: KVStore<u64, IntermediateRelation>>(
&self,
pb: &PrimitiveBlock,
reader: &mut OSMReader<T, _N, N, _W, W, R>,
) -> bool
fn is_filterable<T: Reader, _N: KVStore<u64, VectorPoint<MValue>>, N: KVStore<u64, IntermediateNode>, _W: KVStore<u64, WayNodes>, W: KVStore<u64, IntermediateWay>, R: KVStore<u64, IntermediateRelation>>( &self, pb: &PrimitiveBlock, reader: &mut OSMReader<T, _N, N, _W, W, R>, ) -> bool
Check if the object is filterable
impl StructuralPartialEq for Node
Auto Trait Implementations§
impl Freeze for Node
impl RefUnwindSafe for Node
impl Send for Node
impl Sync for Node
impl Unpin for Node
impl UnwindSafe for Node
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as
ReadEndian::read_from_little_endian().