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

Output TRIANGLE type? #97

Open
michaelkirk opened this issue May 2, 2022 · 1 comment
Open

Output TRIANGLE type? #97

michaelkirk opened this issue May 2, 2022 · 1 comment

Comments

@michaelkirk
Copy link
Member

I'm not sure if we should support this, but I wanted to at least gather some facts for documentation.

postgis supports it:

SELECT ST_AsText('TRIANGLE((0 0,0 1,1 1,0 0 ))');
          st_astext          
-----------------------------
 TRIANGLE((0 0,0 1,1 1,0 0))
(1 row)

JTS does not support it

reader.read("TRIANGLE((0 0,0 1,1 1,0 0 ))");
> org.locationtech.jts.io.ParseException: Unknown geometry type: TRIANGLE (line 1)

Nor does GEOS

     message: `ParseException: Unknown type: 'TRIANGLE'`
@urschrei
Copy link
Member

urschrei commented May 2, 2022

It's part of the spec (OpenGIS Implementation Specification for Geographic information - Simple feature access - Part 1: Common architecture, p14, p26), and also part of WKB, so I'm not against it, but I wonder why JTS and GEOS don't support it.

GEOS usually follows JTS, and it's curious that PostGIS uses GEOS, but supports TRIANGLE.

We could just ask JTS?

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