Changes between Version 4 and Version 5 of SomeSplitting


Ignore:
Timestamp:
Mar 7, 2013, 3:40:11 PM (11 years ago)
Author:
darkblueb
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • SomeSplitting

    v4 v5  
    5454strk:  recipe goes through topology, of course  :-)
    5555
     56dbb: I think this is a practical addition
    5657
     58== Methods ==
     59
     60strk:  with postgis topology you could convert to a TopoGeometry, then take its envelope and add a bisecting edge if the number of vertices in it are above your threshold, then re-do the same on each part of the now-splitted thing until every composing face is below N vertices
     61
     62nhv: that should work
     63
     64strk:  will take forever, but it'd be a robot working... I've been actually doing "vector tiles" like that in the past.(but without support of the PostGIS Topology)
     65
     66dbb:  there is nothing like this in JTS now ? as a function ?
     67
     68strk:  there's both triangulation and topology in postgis, not a single function, you'd have to write that one, on your needs. I think plpgsql could do, it really depends on your need for speed
     69strk:  ST_SplitByGrid()   ST_SplitToMaxN()
     70
     71
     72