[postgis-tickets] [PostGIS] #3031: "POINT EMPTY" as WKB defaults to "MULTIPOINT EMPTY" when restoring with copy and failing validation

PostGIS trac at osgeo.org
Fri Mar 20 04:13:20 PDT 2015


#3031: "POINT EMPTY" as WKB defaults to "MULTIPOINT EMPTY" when restoring with
copy and failing validation
--------------------------------------------+-------------------------------
 Reporter:  jeanchristophesaville           |       Owner:  pramsey      
     Type:  defect                          |      Status:  new          
 Priority:  medium                          |   Milestone:  PostGIS 2.1.6
Component:  postgis                         |     Version:  2.1.x        
 Keywords:  POINT EMPTY , MULTIPOINT EMPTY  |  
--------------------------------------------+-------------------------------

Comment(by strk):

 With r13363 in 2.1 branch and r13364 in trunk I've added the non-empty
 point and multipoint cases to the test, confirming that a "point"
 typmod'ed geometry/geography do can accept non-empty points and a
 "multipoint" typmod'ed geometry/geography cannot accept non-empty points:
 {{{
 point|0|Point|0|KO-BKO-GKO-BGKO
 point|0|PointNE|0|OK-BOK-GOK-BGOK
 point|4326|Point|0|KO-BKO-GKO-BGKO
 point|4326|PointNE|0|OK-BOK-GOK-BGOK
 point||COUNT|4|
 point||GCOUNT|4|
 }}}

 {{{
 multipoint|0|Point|0|OK-BOK-GOK-BGOK
 multipoint|0|PointNE|0|KO-BKO-GKO-BGKO
 multipoint|0|MultiPoint|0|OK-BOK-GOK-BGOK
 multipoint|0|MultiPointNE|0|OK-BOK-GOK-BGOK
 multipoint|4326|Point|0|OK-BOK-GOK-BGOK
 multipoint|4326|PointNE|0|KO-BKO-GKO-BGKO
 multipoint|4326|MultiPoint|0|OK-BOK-GOK-BGOK
 multipoint|4326|MultiPointNE|0|OK-BOK-GOK-BGOK
 multipoint||COUNT|12|
 multipoint||GCOUNT|12|
 }}}

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