Re: [gdal-dev] Convert grid to polygon shapefile

2023-04-11 Thread Paul Meems
Thanks, Brent and Paul for your suggestions. I just tried gdal_polygonize.py and the result looks OK, but the lines are very jagged. I also tried gdal_contour and it has the option to create polygons. And that result is looking better. And gdal_contour is also easier to call from a C# application

Re: [gdal-dev] Convert grid to polygon shapefile

2023-04-10 Thread Brent Wood via gdal-dev
I have done this with QGIS, if you have a grid with categorised values, QGIS can generate a polygon shapefile with the cell boundaries merged by cell value. QGIS uses gdal_polygonize.py under the hood to do this (via a simple GUI interface), so if you work out the command line parameters you nee

Re: [gdal-dev] Convert grid to polygon shapefile

2023-04-10 Thread Paul Harwood
If you have the raster version, what about this https://gdal.org/programs/gdal_polygonize.html ? On Fri, 7 Apr 2023 at 10:34, Paul Meems wrote: > Hello List, > I'm working on a C# application that uses Golden Software Surfer to create > maps, but I also need to export the data to a polygon shape

[gdal-dev] Convert grid to polygon shapefile

2023-04-07 Thread Paul Meems
Hello List, I'm working on a C# application that uses Golden Software Surfer to create maps, but I also need to export the data to a polygon shapefile. Unfortunately, Surfer creates a shapefile with shapes on top of each other instead of inside each other, and Golden Software support couldn't help