nickmckay / LiPD-utilities

Input/output and manipulation utilities for LiPD files in Matlab, R and Python
http://nickmckay.github.io/LiPD-utilities/
GNU General Public License v2.0
28 stars 9 forks source link

R: Geo linestring not supported #22

Open chrismheiser opened 7 years ago

chrismheiser commented 7 years ago

The excel template supports entering 4 unique coordinate values. N lat, S lat, W lon, E lon. Generally, only 2 coordinates have been used in most datasets so far, but now 4 unique coordinates are starting to appear. Python supports the creation of LiPD files with a linestring type, but R does not support reading those LiPD files properly.

The Error:

One longitude value occupies L$geo$geometry$coordinates$longitude, but then the same longitude value mistakenly overwrites the L$geo$geometry$coordinates$latitude value. The other 3 values are dropped.

PupukePiatrunia.2016_2.xlsx Pupuke.Piatrunia.2016.zip