heatmap icon indicating copy to clipboard operation
heatmap copied to clipboard

saveKML only works in north western hemisphere

Open jjguy opened this issue 13 years ago • 1 comments

saveKML() assumes:

  • the inputs are a set of a (latitude, longitude) coordinates.
  • the minimum latitude is east
  • the maximum latitude is west
  • the minimum longitude is south
  • the maximum longitude is north

These assumptions are only valid in the north western hemisphere. I'm not a GIS guy, but AFAICT, the canonical mechanism to eliminate assumptions is to include N/S and E/W indicators with the coordinate that specifies which hemisphere the coordinate is from.

saveKML needs a mechanism to distinguish; perhaps a second argument that is one of ["NW", "NE", "SW", "SE"].

Thanks to Stephen M for the bug report

jjguy avatar Oct 04 '12 18:10 jjguy

I found an issue while playing around with some things today.

The minimum is east is incorrect, it is the maximum. saveKML() has this issue (which I inadvertantly copied and used elsewhere), fixed in my fork. Found it when overriding the area field and wondering why I was getting strange results. Also fixes #15

kwauchope avatar Aug 03 '14 16:08 kwauchope