[postgis-tickets] [PostGIS] #4561: ST_AsEWKT excluding Z and M in WKT representation

PostGIS trac at osgeo.org
Sat Oct 26 03:58:13 PDT 2019


#4561: ST_AsEWKT excluding Z and M in WKT representation
---------------------+---------------------------
 Reporter:  tilt     |      Owner:  pramsey
     Type:  defect   |     Status:  new
 Priority:  low      |  Milestone:  PostGIS 3.0.1
Component:  postgis  |    Version:  3.0.x
 Keywords:           |
---------------------+---------------------------
 Compare:
 {{{
 SELECT ST_AsText(ST_GeomFromText('POINT ZM(10 10 2 3)'));
 $ POINT ZM (10 10 2 3)
 }}}


 to:
 {{{
 SELECT ST_AsEwkt(ST_GeomFromText('POINT ZM(10 10 2 3)'));
 $ POINT(10 10 2 3)
 }}}

 This seems inconsistent as I would expect the WKT representation to be the
 same.

 On a side note: the postgis manual states for AsEWKT:
 `This function supports 3d and will not drop the z-index.`
 but is lacking that information for the AsText.

-- 
Ticket URL: <https://trac.osgeo.org/postgis/ticket/4561>
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