[postgis-tickets] [PostGIS] #3713: Data loss on big encoded polyline

PostGIS trac at osgeo.org
Thu Nov 30 12:47:43 PST 2017


#3713: Data loss on big encoded polyline
----------------------------+---------------------------
  Reporter:  ismail BASKIN  |      Owner:  dbaston
      Type:  defect         |     Status:  new
  Priority:  medium         |  Milestone:  PostGIS 2.3.5
 Component:  postgis        |    Version:  2.3.x
Resolution:                 |   Keywords:
----------------------------+---------------------------

Comment (by pramsey):

 Here's an example that is small enough to debug:
 {{{
 with d as (select 'SRID=4326;LINESTRING(33.6729 38.7071,33.6692
 38.701,33.6673 38.6972,33.6626 38.6871)'::geometry as g),
 e as (
    select g, ST_LineFromEncodedPolyline(ST_AsEncodedPolyline(g)) as gl
    from d
    )
 select
   st_astext(g), ST_AsEncodedPolyline(g), st_npoints(g),
   st_astext(gl), st_npoints(gl)
 from e
 }}}
 yuck.

--
Ticket URL: <https://trac.osgeo.org/postgis/ticket/3713#comment:9>
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