#3982 closed defect (fixed)
ST_AsEncodedPolyline('SRID=4326;LINESTRING EMPTY') fails
Reported by: | komzpa | Owned by: | pramsey |
---|---|---|---|
Priority: | medium | Milestone: | PostGIS 2.4.3 |
Component: | postgis | Version: | 2.4.x |
Keywords: | Cc: |
Description
ST_AsEncodedPolyline('SRID=4326;LINESTRING EMPTY') fails:
[local] gis@gis=# select ST_AsEncodedPolyline('SRID=4326;LINESTRING EMPTY'); ERROR: XX000: getPoint2d_cp: point offset out of range LOCATION: pg_error, lwgeom_pg.c:162 Time: 0,263 ms
It should be empty string. Reverse works:
[local] gis@gis=# select ST_AsText(ST_LineFromEncodedPolyline('')); ┌──────────────────┐ │ st_astext │ ├──────────────────┤ │ LINESTRING EMPTY │ └──────────────────┘ (1 row) Time: 2,080 ms
Note:
See TracTickets
for help on using tickets.
In 16254: