[postgis-tickets] [PostGIS] #3432: Add mechanism to use standard test geometries in cunit suite

PostGIS trac at osgeo.org
Sat Jan 16 07:11:22 PST 2016


#3432: Add mechanism to use standard test geometries in cunit suite
-------------------------+---------------------------
 Reporter:  dbaston      |      Owner:  pramsey
     Type:  enhancement  |     Status:  new
 Priority:  medium       |  Milestone:  PostGIS 2.3.0
Component:  postgis      |    Version:  trunk
 Keywords:               |
-------------------------+---------------------------
 It's currently a bit of a pain to add cunit tests to cover all of the
 available geometry types, especially when you think of all the different
 ways to get an EMPTY. I think it would be worthwhile to create a standard
 list of test geometries that can be pulled in to any individual test as
 desired.

 Maybe this would be as simple as a text file of WKT entries with an ID for
 each; some helper functions would then let you:

 - bring in an individual geometry by ID
 - bring in an array of all test available geometries meeting certain
 filters (3d yes/no, measures yes/no, curves yes/no, empty yes/no, etc).

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