Skip to content

Add check and warning for wrong lat-long column - #182

Open
fdecunta wants to merge 2 commits into
jamiemkass:masterfrom
fdecunta:fix/lat-long-column-check
Open

Add check and warning for wrong lat-long column#182
fdecunta wants to merge 2 commits into
jamiemkass:masterfrom
fdecunta:fix/lat-long-column-check

Conversation

@fdecunta

Copy link
Copy Markdown

This is related to #180 , since wrong order was the underlying problem there.

Currently there is no check for longitude and latitude order. There is no formal way of checking using the numeric vectors, so the best guess is to see the column names, similar to .checkXYnames in terra::vect (code here).

This patch warns if the column names seems wrong. It doesn't stop the program since it may produce false positives.

All the tests passed and manual testing of this works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant