[GRASS-dev] GDAL write support

2008-12-06 Thread Glynn Clements
I have committed preliminary, minimal, experimental, barely-tested support for creating new maps via GDAL (i.e. like r.external, but in the opposite direction). The feature is enabled with r.external.out, which allows you to optionally set the format (default GeoTIFF), extension (default none;

[GRASS-dev] v.category: opt=del was changed

2008-12-06 Thread Maciej Sieczka
Recent commits changed v.category opt=del behaviour. Before: $ v.random out=pts n=3 $ v.category opt=print in=pts 1 2 3 $ v.category opt=del in=pts out=pts_delcat $ v.category opt=print in=pts_delcat No output, i.e. v.category opt=del removed them all. Now: $ v.category opt=print in=pts 1

[GRASS-dev] no cats in map but adding table says 1 is there

2008-12-06 Thread Maciej Sieczka
Take a simple vector map - 3 points, each having an unique category: $ v.info -t rndv nodes=3 points=3 lines=0 boundaries=0 centroids=0 areas=0 islands=0 faces=0 kernels=0 primitives=3 map3d=0 $ v.category opt=print in=rndv (no output, i.e. no categories) Why does v.db.addtable say 1

[GRASS-dev] Re: v.category: opt=del was changed

2008-12-06 Thread Martin Landa
Hi, 2008/12/6 Maciej Sieczka [EMAIL PROTECTED]: $ v.category opt=print in=pts 1 2 3 $ v.category opt=del in=pts out=pts_delcat $ v.category opt=print in=pts_delcat 2 3 I.e. only category 1 is removed. yes, only cat '1' is removed ('1' is default value for 'cat' parameter) to remove

Re: [GRASS-dev] no cats in map but adding table says 1 is there

2008-12-06 Thread Martin Landa
Hi, 2008/12/6 Maciej Sieczka [EMAIL PROTECTED]: Why does v.db.addtable say 1 categories read from map when adding table to it?: it's because v.to.db groups all features without category into cat '-1'. Fixed (not reported) in r34751. Martin -- Martin Landa landa.martin gmail.com *

Re: [GRASS-dev] no cats in map but adding table says 1 is there

2008-12-06 Thread Maciej Sieczka
Martin Landa pisze: Hi, 2008/12/6 Maciej Sieczka [EMAIL PROTECTED]: Why does v.db.addtable say 1 categories read from map when adding table to it?: it's because v.to.db groups all features without category into cat '-1'. Fixed (not reported) in r34751. Thanks for q quick fix. Best, Maciek

[GRASS-dev] Re: v.category: opt=del was changed

2008-12-06 Thread Maciej Sieczka
Martin Landa pisze: 2008/12/6 Maciej Sieczka [EMAIL PROTECTED]: Such a change in user interface is not acceptable for GRASS 6. By well, you are right (reverted r34750). Cool. default all categories should be selected. I don't see a reason to change the default behaviour in GRASS 7

Re: [GRASS-dev] GDAL write support

2008-12-06 Thread Markus Neteler
On Sat, Dec 6, 2008 at 10:27 AM, Glynn Clements [EMAIL PROTECTED] wrote: I have committed preliminary, minimal, experimental, barely-tested support for creating new maps via GDAL (i.e. like r.external, but in the opposite direction). This sounds great! The feature is enabled with

Re: [GRASS-dev] Re: v.category: opt=del was changed

2008-12-06 Thread Hamish
Maciek: default all categories should be selected. I don't see a reason to change the default behaviour in GRASS 7 either. Martin: new behaviour can be useful if you want to remove not all categories, but only selected one (well, you can always use v.edit for that). perhaps we should

[GRASS-dev] G_percent() usage; freeze; backport Fix bug in G_is_c_null_value()?

2008-12-06 Thread Hamish
re r34762, etc. G_percent() should stay at the start of the for loop. If the loop takes a long time to run, 0% should print before the first iteration has begun, and final 99/100% message in loop should not be printed before the last iteration is complete. Otherwise it seems to stall at 99% done,