[postgis-tickets] [PostGIS] #3982: ST_AsEncodedPolyline('SRID=4326; LINESTRING EMPTY') fails
PostGIS
trac at osgeo.org
Thu Jan 11 01:23:58 PST 2018
#3982: ST_AsEncodedPolyline('SRID=4326;LINESTRING EMPTY') fails
---------------------+---------------------------
Reporter: komzpa | Owner: pramsey
Type: defect | Status: new
Priority: medium | Milestone: PostGIS 2.4.3
Component: postgis | Version: 2.4.x
Keywords: |
---------------------+---------------------------
ST_AsEncodedPolyline('SRID=4326;LINESTRING EMPTY') fails:
{{{
[local] gis at 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 at gis=# select ST_AsText(ST_LineFromEncodedPolyline(''));
┌──────────────────┐
│ st_astext │
├──────────────────┤
│ LINESTRING EMPTY │
└──────────────────┘
(1 row)
Time: 2,080 ms
}}}
--
Ticket URL: <https://trac.osgeo.org/postgis/ticket/3982>
PostGIS <http://trac.osgeo.org/postgis/>
The PostGIS Trac is used for bug, enhancement & task tracking, a user and developer wiki, and a view into the subversion code repository of PostGIS project.
More information about the postgis-tickets
mailing list