[GRASS-user] r.contour fails to close a contour at the region's border

Markus Neteler neteler at osgeo.org
Sat Jan 4 10:11:17 PST 2014


On Fri, Jan 3, 2014 at 12:48 AM, John Ciolek <jciolek at alphatrac.com> wrote:
> This is a re-post.
>
> I have automatically generated raster data from which I create a contour
> using r.contour.  Sometimes the "feature" to be contoured is not completely
> contained within the specified region.  When this happens, r.contour
> generates an open contour - basically the beginning line segment point does
> not equal the ending line segment point.

Could you please send a small screenshot (to me) or put it somewhere?

> Is there a way to get r.contour to close the contour at the region's border?
>
> If not, is there an easy way to close the contour?

Would it be feasible to work with a slightly larger region?
Note that g.region supports syntax like (say, relative coordinates):

g.region w=w-1000 e=e+1000 n=n+2000 s=s-2000

Best
Markus


More information about the grass-user mailing list