Skip to content

Instantly share code, notes, and snippets.

@sgillies
Last active August 29, 2015 14:05
Show Gist options
  • Select an option

  • Save sgillies/fbd3ac64d7e878f751db to your computer and use it in GitHub Desktop.

Select an option

Save sgillies/fbd3ac64d7e878f751db to your computer and use it in GitHub Desktop.
Dateline Crossing Test

A demonstration of the trouble with dateline-crossing features. Without extra info it's unclear whether you mean the longest possible line or the shortest possible line. GitHub has the longer interpretation of my two lines, but I mean the shorter.

The bounding box recommendation in geojson/draft-geojson#42 gives software the extra info needed to interpret the geometries: I mean the geometry that fits in the box that has a SW corner at [170, 10] and a NW corner at [-170, 11].

Display the source blob
Display the rendered blob
Raw
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Display the source blob
Display the rendered blob
Raw
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment