Re: [GRASS-user] Smoothing contours

2012-06-26 Thread Maris Nartiss
Hello, but do original, unsmoothed vector also contains two lines? Where those lines generated in GRASS or some other (not so intelligent) software? If manual splitting and deleting unnecessary parts is not an option, I would suggest to play around with v.clean. Don't forget to make a backup, as

[GRASS-user] r.mapcalc: collection of values

2012-06-26 Thread bei
Hi, I am trying to create a map combining two maps. Each category in the final map will depend on the value in the other two. I will do it using nested if. I have already done this kind of if: aed06_p_3= if(a06_p_2 == 243, if(arb_p = 20, 10, if(arb_p 10, 20, 33)), if(a06_p_2 == 244, if(arb_p

Re: [GRASS-user] access vertices coordinates of a line from Python

2012-06-26 Thread gene
In fact, you can also use OGR python bindings, it is easy from osgeo import ogr # open grass vector ds = ogr.Open('/grassdata/geol/test/vector/linevector/head') layer = ds.GetLayer(0) layer.GetName() 'linevector' feat = layer.GetFeature(0) geom =

Re: [GRASS-user] r.mapcalc: collection of values

2012-06-26 Thread Glynn Clements
bei wrote: I am trying to create a map combining two maps. Each category in the final map will depend on the value in the other two. I will do it using nested if. I have already done this kind of if: aed06_p_3= if(a06_p_2 == 243, if(arb_p = 20, 10, if(arb_p 10, 20, 33)), if(a06_p_2 ==