Skip to content

ST_AddPoint wants a LINESTRING as input #1440

Description

@gpetit

I'm using the last snapshot downloaded here https://github.com/orbisgis/h2gis/actions/runs/15487102470

I was checking the documentation of ST_AddPoint (source code) and I discovered that there is a problem when executing the examples.

All SQL instructions where the input IS NOT a LINESTRING returns this error message

First argument must be a LINESTRING; SQL statement

Example

SELECT ST_AddPoint('POLYGON((1 1, 1 5, 5 5, 5 1, 1 1),
                            (2 2, 4 2, 4 4, 2 4, 2 2))',
                   'POINT(3 3)', 1);

gives

First argument must be a LINESTRING; SQL statement:
SELECT ST_AddPoint('POLYGON((1 1, 1 5, 5 5, 5 1, 1 1),
                            (2 2, 4 2, 4 4, 2 4, 2 2))',
                   'POINT(3 3)', 1) [0-232] null/0 [(Aide)](https://h2database.com/javadoc/org/h2/api/ErrorCode.html#c0)

Linked with #1416

Activity

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions