I have a few multipolygons that have several hundred points in them. I'm looking to create less complex "thumbnails" polygons.
Naturally I'm attempting to use the simplify method, which is supposed to apply the Ramer-Douglas-Peucker algorithm. However, it doesn't seem to be working:
>>> m = Multipolygon.objects.get(id=1)
>>> m.geometry.num_points
1007
>>> m.geometry.simplify(0).num_points
1007
>>> m.geometry.simplify(1).num_points
0
>>> m.geometry.simplify(0.5).num_points
0
>>> m.geometry.simplify(10).num_points
0
I'm clearly missing something. When I simplify, I either get the original polygon back or an empty one, depending on the tolerance value that I use. How is the tolerance parameter supposed to work?