Expand description
All WM tooling
Structs§
- Converted
Geometry - The resultant geometry after conversion
- Converted
Line String - LineString converted from WM to S2
Enums§
Constants§
- A
- 900913 (Web Mercator) constant
- FACE_
RULE_ SET - Ruleset for converting an S2Point from a face to another.
While this this set includes opposite side faces, without axis mirroring,
it is not technically accurate and shouldn’t be used. Instead, data should let two points travel
further than a full face width.
FACE_RULE_SET[target_face][currentFace] = [rot, x, y] - MAXEXTENT
- 900913 (Web Mercator) max extent
- MAXLAT
- 900913 (Web Mercator) maximum latitude
Traits§
- Convert
Feature - Underlying conversion mechanic to move GeoJSON Feature to GeoJSON Vector Feature
- Convert
Vector FeatureWM - Underlying conversion mechanic to move GeoJSON Geometry to S2 Geometry
Functions§
- altitude_
from_ mercator_ z - Convert mercator projection’s Z-Value to altitude returns the altitude
- altitude_
to_ mercator_ z - Convert altitude to mercator projection Z-Value returns the Z-Value
- bbox_
to_ xyz_ bounds - Convert a bbox of the form
[w, s, e, n]to a tile’s bounding box in the form of { minX, maxX, minY, maxY } The bbox can be in lon-lat (WGS84) or WebMercator (900913) The default expectation is in WebMercator (900913) returns the tile’s bounding box - circumference_
at_ latitude - The circumference at a line of latitude in meters.
- convert_
bbox - Convert a bbox of the form
[w, s, e, n]to a bbox of the form[w, s, e, n]The result can be in lon-lat (WGS84) or WebMercator (900913) - convert_
geometry_ to_ vector - Convert a GeoJSON Geometry to an Vector Geometry
- convert_
geometry_ wm_ to_ s2 - Underlying conversion mechanic to move GeoJSON Geometry to S2Geometry
- convert_
vector_ to_ geometry - Convert a GeoJSON Geometry to an Vector Geometry
- lat_
from_ mercator_ y - Convert mercator projection’s Y-Value to latitude returns the latitude
- lat_
to_ mercator_ y - Convert latitude to mercator projection Y-Value returns the Y-Value
- ll_
to_ merc - Convert Longitude and Latitude to a mercator x-y coordinates Return the mercator x-y coordinates
- ll_
to_ px - Convert Longitude and Latitude to a mercator pixel coordinate Return the mercator pixel coordinate
- ll_
to_ tile - Convert a lat-lon and zoom to the tile’s x-y coordinates Return the tile x-y
- ll_
to_ tile_ px - given a lon-lat and tile, find the offset in pixels return the tile xy pixel
- lng_
from_ mercator_ x - Convert mercator projection’s X-Value to longitude returns the longitude
- lng_
to_ mercator_ x - Convert longitude to mercator projection X-Value returns the X-Value
- merc_
to_ ll - Convert mercator x-y coordinates to Longitude and Latitude Return the Longitude and Latitude
- mercator_
lat_ scale - Determine the Mercator scale factor for a given latitude, See more
- px_
to_ ll - Convert mercator pixel coordinates to Longitude and Latitude Return the Longitude and Latitude
- px_
to_ tile - Convert a pixel coordinate to a tile x-y coordinate Return the tile x-y
- tile_
to_ bbox - Convert a tile x-y-z to a bbox of the form
[w, s, e, n]Return the bbox - xyz_
to_ bbox - Convert a tile x-y-z to a bbox of the form
[w, s, e, n]The result can be in lon-lat (WGS84) or WebMercator (900913) The default result is in WebMercator (900913)
Type Aliases§
- Converted
Geometry List - A list of converted geometries