Le mercredi 16 avril 2014 12:46:45, Vincent Mora a écrit :
> Hi,
> 
> I have a vector file with height contours and I need to simplify the
> lines (too many points).
> 
> Isolevel lines must not intersect, so simplifying the vector directly is
> a bit tedious (involves collision detection of lines to constrain
> simplification).
> 
> If I had the DEM, I could reduce the resolution and use
> gdal_countour...but I don't.
> 
> So what about generating the DEM from the height contours? Do you think
> it fits in gdal somewhere ? Has someone the same kind of use-case ?

It already exists in fact:

- gdal_rasterize : will produce a DEM with the contour line stroked, and with 
holes between them
- gdal_fillnodata.py : will fill the holes with interpolated values

> 
> V.
> 
> 
> _______________________________________________
> gdal-dev mailing list
> gdal-dev@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/gdal-dev

-- 
Geospatial professional services
http://even.rouault.free.fr/services.html
_______________________________________________
gdal-dev mailing list
gdal-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/gdal-dev

Reply via email to