[postgis-tickets] [PostGIS] #3098: ST_GeomFromText() cannot read MultiPoint containing empty Points with Z or M coordinates

PostGIS trac at osgeo.org
Thu Apr 23 15:26:23 PDT 2015


#3098: ST_GeomFromText() cannot read MultiPoint containing empty Points with Z or
M coordinates
-------------------------+-------------------------------------------------
  Reporter:  benmorel    |      Owner:  pramsey
      Type:  defect      |     Status:  new
  Priority:  low         |  Milestone:  PostGIS 2.1.8
 Component:  postgis     |    Version:  2.1.x
Resolution:              |   Keywords:  ST_GeomFromText, MultiPoint,
                         |  MultiLineString, MultiPolygon, Empty, Z, M, ZM
-------------------------+-------------------------------------------------

Comment (by pramsey):

 In a similar vein, it's possible to make one of these
 {{{
 GEOMETRYCOLLECTION Z (POINT Z (1 2 3), POINT M(3 4 5))
 }}}
 The dimensionality policing parts are trying to work on a case by case
 basis as components are added, and they don't have enough information to
 do it. I have a fix that can handle this
 {{{
 MULTIPOINT ZM (1 2 3 4,EMPTY)
 }}}
 but it cannot handle this
 {{{
 MULTIPOINT ZM (EMPTY,1 2 3 4)
 }}}
 because the first thing into the collection (the EMPTY) in this case, sets
 the base dimensionality against which everything else is then tested. To
 fix this I would need to rework the parser to do dimensionality tests at
 finalization time, which wouldn't be the end of the world. Because it's a
 big fix it can't go into 2.1, but could go into 2.2

--
Ticket URL: <http://trac.osgeo.org/postgis/ticket/3098#comment:4>
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