Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Another WKT pkg #12

Closed
sckott opened this issue Jun 15, 2016 · 2 comments
Closed

Another WKT pkg #12

sckott opened this issue Jun 15, 2016 · 2 comments

Comments

@sckott
Copy link

sckott commented Jun 15, 2016

you mention the wkb package in the readme - i maintain another package for working with WKT data https://github.com/ropensci/wellknown just in case you hadn't seen it and it's of any help

@edzer
Copy link
Member

edzer commented Jun 15, 2016

Thanks @sckott ! Two questions - first: why do you use

list('type' = 'Point', 'coordinates' = c(116.4, 45.2))

and not for instance

list(Point = c(116.4, 52.2))

and second, why can the package generate invalid WKT? My understanding of WKT is that

point(data.frame(1, 2, 3))

should generate point z(1 2 3) or point m(1 2 3), depending on (and indicating what) the 3rd dim means, but not point(1 2 3), however

> point(data.frame(1, 2, 3))
[1] "POINT (1.0000000000000000 2.0000000000000000 3.0000000000000000)"
> lint(point(data.frame(1, 2, 3)))
[1] TRUE

@sckott
Copy link
Author

sckott commented Jun 15, 2016

  1. first point, agreed, that makes more sense, opened issue for that, as you can see above
  2. thanks for pointing that out. I generally haven't taken into account 3d/4d - opened an issue to address that

feel free to close, just letting you know of the pkg :)

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

No branches or pull requests

2 participants