boostorg / boostorg/geometry

Writing 3D WKT: Z in prefix?

オープン
#664 コメント 12 件 リアクション 0 件 担当者 0 名 GitHub で見る
enhancement good-first-issue
主要言語
C++
スター
517
フォーク
232
PR マージ指標
30日以内にマージされた PR はありません

説明

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:
```
POINT (1,2)
POINT Z (1,2,3)
```
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:

```
POINT (1,2)
POINT (1,2,3)
```
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?

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。