New answers tagged


Yes, it is absolutely possible using GDAL/OGR through ogr2ogr by using -simplify option. You should pass a <tolerance> value as it is described on their website. Another way is to use osgeo.ogr.Geometry.Buffer(self, *args, **kwargs) on which supports arguments to control distance and number of segments. If your shapes are polylines you can use shapely-&...


On MacOSX: Conda installation: (Easy mode) From Assuming you have conda installed, conda install -c conda-forge gdal That's it you're done, conda installs the underlying gdal binaries for you. Using brew/pip brew install gdal # This installs the underlying binaries pip install gdal #(inside your venvs or whatever ...


Try AddPointM() instead of AddPoint(): AddPointM(Geometry self, double x, double y, double m)


You need to add a special SQLStatement keyword in the VectorTranslateOptions: gdoptions=gdal.VectorTranslateOptions(options=['-lco','GEOMETRY=AS_WKT', '-preserve_fid',], format=outDriverName, SQLStatement=f'select {inLayerIDColname} as {...


Something like (untested): gdal.VectorTranslate('path/to/output.csv', 'path/to/input.gdb', layers=[input_layer_name], format='CSV', layerCreationOptions=['GEOMETRY=AS_WKT'])

Top 50 recent answers are included