| 58 | == Methods == |
| 59 | |
| 60 | strk: 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 | |
| 62 | nhv: that should work |
| 63 | |
| 64 | strk: 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 | |
| 66 | dbb: there is nothing like this in JTS now ? as a function ? |
| 67 | |
| 68 | strk: 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 |
| 69 | strk: ST_SplitByGrid() ST_SplitToMaxN() |
| 70 | |
| 71 | |
| 72 | |