I need an operations in PostGIS to eliminate intermediate vertexes in a polygon to rectify the walls of a building.

I was revising http://trac.osgeo.org/postgis/wiki/UsersWikiExamplesSpikeRemover but it only works to eliminate spikes.




Applying a douglas-peucker filter with a small parameter value (like one meter) should remove these points. See ST_Simplify.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.