-
Notifications
You must be signed in to change notification settings - Fork 216
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
Writing 3D WKT: Z in prefix? #664
Comments
Yes, only when writing WKT as defined the ISO SQL/MM specification. Boost.Geometry is not compliant with the SQL/MM. The WKT I/O is based on the SFSQL 1.0 specification (still, I'm not betting my head it's fully compliant with it either). I'd suggest to consider the WKT I/O is a utility for user's convenience and for convenience of developers testing the library features itself. It is not really a fully-featured up-to-date production-ready and SQL/MM WKT implementation. It wouldn't take huge effort to add support for writing |
So we'd need a separate function for that. We should also probably do it for |
I thought perhaps I think |
I would like to work on this. Is what @mloskot suggested final or does this need more inputs? |
@sudo-panda If my comment does not receive any responses and if my suggestion seems sensible to you, and you are willing to give it a go, then I'd suggest you to submit PR. Once there is a (working) proof of concept ready to review, it will be much easier for more people to offer specific feedback. It may turn out the idea is a good one and your PR will be accepted or we will find problems and your PR will need rework. You need to decide if you want to take the risk :) |
@mloskot Since this appears to be closely related to the header file I am already working on, do you think it will be better if I let that one get merged first?
This seems like a detect approach but I think we should let the users decide which one to follow |
You need to link issue or PR or whatever you are talking about.
I'm not familiar with this name, could you elaborate?
If user serialises Do you mean to offer user an option to force |
I was talking about #670
Sorry, that was a typo. I wanted to say something on the line of this being a good approach.
I mean to let users decide whether to output The only doubt that remains is should I start working on this before #670 is merged? In my opinion it is going to cause a lot of merge conflicts. |
hey @mloskot, I am a new contributor and would like to work on this issue? |
FYI, related comments posted in #782 (comment) |
I am not fluent with GIS applications but |
When writing 3D objects in WKT, a "Z" is supposed to be added to the prefix, such that a 2D point and a 3D point are differentiated:
But as far as I tested, when writing 3D objects using the WKT writer of Boost Geometry, the "Z" prefix is never written, leading to this kind of output:
It seems to be similar for other types of primitives (
LINESTRING
, etc.).Reading 3D objects with Boost both works with and without "Z" in the input.
Wouldn't it make more sense to add "Z" to the prefix whenever a 3D object is written?
The text was updated successfully, but these errors were encountered: