[postgis-tickets] [PostGIS] #2616: Reduce geometry::text conversion in topology functions

PostGIS trac at osgeo.org
Mon Jan 27 02:13:22 PST 2014


#2616: Reduce geometry::text conversion in topology functions
-------------------------+--------------------------------------------------
 Reporter:  strk         |       Owner:  strk         
     Type:  enhancement  |      Status:  new          
 Priority:  low          |   Milestone:  PostGIS 2.1.2
Component:  topology     |     Version:  2.1.x        
 Keywords:               |  
-------------------------+--------------------------------------------------
 A single call to TopoGeo_addPolygon, against an _empty_ topology, results
 in 24 calls to the text(geometry) function. The second most-called
 function is "postgis_type_name" (6 calls).

 The time spent in geometry::text is really not much (16th most expensive
 function) but still it sounds like something worth cleaning up.

 There are 2 tasks:

  1. Avoid converting the geometry multiple times within a single function
  2. Use EXECUTE .. USING expression (to avoid conversion to text as a
 whole)

 If someone is looking for an easy task to get used to the code, this is
 the perfect task :)

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