[postgis-tickets] [PostGIS] #2227: Visvalingam line generalization function

PostGIS trac at osgeo.org
Thu Jan 15 02:51:35 PST 2015


#2227: Visvalingam line generalization function
-------------------------+--------------------------------------------------
 Reporter:  strk         |       Owner:  nicklas      
     Type:  enhancement  |      Status:  new          
 Priority:  medium       |   Milestone:  PostGIS 2.2.0
Component:  postgis      |     Version:  trunk        
 Keywords:               |  
-------------------------+--------------------------------------------------

Comment(by strk):

 Thanks about clarification on the effectiveness of the per-vertex
 indexing.
 I'm fine with the tagging-only function being named as it is currently
 (ST_SetEffectiveArea) or renamed to include some reference to Visvalingam
 and Whyatt.

 The ST_Simplify version picking ST_SimplifyDP or ST_SimplifyVW
 (Visvalingam and Whyatt) would be in SQL language, thus "inlinable".
 Basically the planner should directly see the body of the function and
 since the algorithm parameter would be a constant, it should evaluate the
 CASE portion of the code and lookup the appropriate lower function just
 once. Speed comparison should be performed on a large table :)

 Would it make sense for ST_SimplifyVW to internally call
 ST_SetEffectiveArea and then the other still missing function that only
 filters out vertices where the M value is below a given value ?

 M vs Z: I didn't know geoJSON would put M value in the Z field, and what
 about a 4d geometry ? Which would would be dropped ?

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