pub enum GeometryFormat {
Twkb,
Wkb,
}Expand description
How osm.nodes and osm.ways store their geometries: chosen by the import, kept by every update.
SQL reads either the same way through osm.geom(geom), which the import creates for the format: it decodes TWKB,
or gives the geometry as it is. It is inlined, so an index on osm.geom(geom) serves both.
It displays and parses as twkb or wkb, its name in osm.state.
Variants§
Twkb
TWKB with OSM’s 7 decimal digits in a bytea, which PostGIS reads exactly as the locations were written:
about a quarter of the size of a line’s WKB.
Wkb
PostGIS’s geometry with SRID 4326, stored as WKB: read without decoding.
Trait Implementations§
Source§impl AsRef<str> for GeometryFormat
impl AsRef<str> for GeometryFormat
Source§impl Clone for GeometryFormat
impl Clone for GeometryFormat
impl Copy for GeometryFormat
Source§impl Debug for GeometryFormat
impl Debug for GeometryFormat
Source§impl Default for GeometryFormat
impl Default for GeometryFormat
Source§impl Display for GeometryFormat
impl Display for GeometryFormat
impl Eq for GeometryFormat
Source§impl FromStr for GeometryFormat
impl FromStr for GeometryFormat
Source§impl Hash for GeometryFormat
impl Hash for GeometryFormat
Source§impl PartialEq for GeometryFormat
impl PartialEq for GeometryFormat
impl StructuralPartialEq for GeometryFormat
Source§impl TryFrom<&str> for GeometryFormat
impl TryFrom<&str> for GeometryFormat
Source§impl VariantNames for GeometryFormat
impl VariantNames for GeometryFormat
Auto Trait Implementations§
impl Forget for GeometryFormat
impl Freeze for GeometryFormat
impl Move for GeometryFormat
impl RefUnwindSafe for GeometryFormat
impl Send for GeometryFormat
impl Sync for GeometryFormat
impl Unpin for GeometryFormat
impl UnsafeUnpin for GeometryFormat
impl UnwindSafe for GeometryFormat
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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 more