180th meridian

From OpenStreetMap Wiki
Jump to navigation Jump to search

The 180th meridian, also known as the antimeridian because it lies directly opposite the (Greenwich) Prime Meridian on the globe, is the line of longitude 180 (positive or negative, the modulus arithmetic works out the same) which runs mostly through the Pacific Ocean from pole to pole.

In theory, it should be a meridian like any other. In OSM, there's two copies at ±180° longitude because the data model doesn't wrap around, so they mark the east-west ends of the world, with line tagged with closure_segment=yes. Hence features crossing the meridian are generally being separated into two parts in OSM.

Here's the mapnik rendering of the 180th meridian passing through Chukotka.

Sample data

There's a lake in Chukotka that crosses the meridian at http://openstreetmap.org/browse/way/31254026.

Taveuni and some other Fiji islands are cut in parts by the 180th meridian.

Software support

This section should summarize to what extent various tools deal with the 180th meridian gracefully.

Editors

Editors treat the 180th meridian as the end of the world, hence have problems editing data that crosses it.

Using some scrolling and zooming, it is possible to edit such data with some degree of success.

Tested tools

OSM-API

The API map call does not allow for bounding boxes crossing the 180th meridian. There is no agreement if this should be implemented in OSM-API or handled by splitting requests by clients.

Renderers

All layers on the slippy Map appear to have problems with rendering coastline near 180°, and with ways crossing the 180th meridian. The data browser doesn't handle ways crossing the 180th meridian nicely due to a limitation in OpenLayers.

For GeoJSON data supplied at runtime, Mapbox libraries accept coordinates beyond ±180°, cutting the feature along the antimeridian before display. [1] However, vector tile data is already cut at ±180° (and along many other meridians).

Rendering

Maps showing 180th meridian:

See also