PostGIS

PostGISのST_SimplifyをGeoDjangoから使う

PostGISのST_Simplifyを使うとPOLYGONやLINESTRINGの形状を単純化できる。 GeoDjangoからはGEOSGeometryのsimplifyメソッドを使えばよい。 Django1.3で試した。 >>> line_string.simplify? Type: instancemethod Base Class: <type 'instancemethod'> String Form: <bound method LineString.simplify of <LineString object at 0xa4ed5f0>> Namespace: Int</bound></type>…