[gdal-dev] gdal_contour and nodata values

William Kyngesburye woklist at kyngchaos.com
Wed Dec 21 19:43:51 EST 2011

Is gdal_contour supposed to do this?

I have a DEM projected from a latlong area to a conic with -dstalpha, so there are triangles of nodata around the edges.  When I run gdal_contour with intervals, I get a ring of contours around the edge of the nodata area starting from the first interval above 0 to the minimum elevation of the DEM, plus more segments along the edge for higher levels that extend to the edge:

Shouldn't gdal_contour just create contours that *stop* at nodata edges?  Like if I had created contours from the original latlong rectangle:

William Kyngesburye <kyngchaos*at*kyngchaos*dot*com>

"The beast is actively interested only in now, and, as it is always now and always shall be, there is an eternity of time for the accomplishment of objects."

- the wisdom of Tarzan

-------------- next part --------------
Skipped content of type multipart/related

More information about the gdal-dev mailing list