[gdal-dev] Countour polygons instead of lines

Andrew C Aitchison andrew at aitchison.me.uk
Fri Oct 20 11:18:41 PDT 2017


On Fri, 20 Oct 2017, Vincent Mora wrote:

> I'll also try the gdal_polygonize approach, but I don't think it's the
> same thingl: with raster-classif + gdal_polygonize, if you have 3
> classes 1,2,3 polygons from 1 can touch a polygon from 3, with contour
> lines there will always be a polygon of class 2 in between.
>
> Or am I missing something.
>
> If someone believes I'm doing something useless and/or stupid (that also
> happens), please do tell.

Can you polygonize contours across a vertical cliff ?
If so, 2 may be "between" 1 and 3, but at some points they may all touch.

On some maps, contours become discontinuous around cliffs and quarries.

-- 
Andrew C Aitchison



More information about the gdal-dev mailing list