elasticsearch/elasticsearch — pull request #6162 by marcuswr (2014-05-14 05:51:02+00:00)
Title: Only use dateline fix when polygon crosses dateline.

- es1.x attempts to split polygons on the dateline along
with holes, and then re-assign the holes to the new
polygons. In certain circumstances this assignment
fails (https://github.com/elasticsearch/elasticsearch/issues/5773)
The geojson format makes it clear which hole belongs to which
polygon, and these issues can be avoided for polygons which
do not span the dateline.
- there are additional issues with splitting polygons on the
dateline. Some shapes are lost in certain circumstances (bug
yet to be filed).
Sample shape: https://gist.github.com/anonymous/7f1bb6d7e9cd72f5977c