[GRASS-user] Missing information in the GRASS 7 NewFeatures/OptionChanges web page

I'm upgrading some scripts to run in GRASS 7.1 (from GRASS 6.4.4) and just wanted to point out some missing information on the Changes page:
https://trac.osgeo.org/grass/wiki/Grass7/NewFeatures#Optionschanges
I may misunderstand what was intended to be listed in this web page, so please forgive me if this is useless...
(note that these are just the modules I use in some scripts, I didn't go through every module nor did I list any add--ons)

For v.db.select the field separator option changed and is not listed:
fs -> separator

For v.to.db the units are spelled out now:
mi -> miles
f -> feet
me -> meters
k -> kilometers
a -> acres
h -> hectares
r -> radians
d -> degrees

If version 7 can still use the abbreviations, then the man page (https://grass.osgeo.org/grass71/manuals/v.to.db.html) should reflect this.

For g.region, the map types are spelled out now:
rast -> raster
vect -> vector
rast3d -> raster_3D
option 3dview has been removed

For r.mask (not listed at all)
-o -> --overwrite
option input has changed to either option raster or option vector
options layer, cats, where, --help, and --ui have been added

For r.resample:
option -q has been removed (redundant)
option --ui has been added

For r.stream.extract:
options memory and --ui added

For r.watershed:
options -b, tci, spi, --help, and --ui have been added
option visual has been removed

For r.patch (not listed at all):
-q option removed (redundant)
options --help and --ui added

For r.to.vect:
option -t added (do not create attribute table)
option -q removed (redundant)
options --help and --ui added
option column added

For r.neighboors:
option -q removed (redundant)
options --help and --ui added
options selection and quantile are added
methods count, quart1, quart3, perc90, and quantile added

For g.rename:
rast -> raster
rast3d -> raster_3d
vect -> vector
labels -> label
options oldvect, asciivect, icon, sites, region3d, and 3dview have been removed

For v.db.connect (not listed at all):
option -l is removed
fs -> separator
options --overwrite, --help and --ui added

For g.mapsets:
fs -> separator
the "measure -> method" is an error and should not be there

For db.connect (not listed at all):
-g and -d options added
default driver has changed from dbf to sqlite

For v.category (not listed at all):
-t option added (do not copy attribute table)
options --help and --ui added
option=transfer added

For r.null (not listed at all):
-z option added

For db.execute:
option sql= added
usage changed: if piping from an echo statement, add "input=- to the end of the command:
echo "{your sql statement};" | db.execute input=-
instead of
echo "{your sql statement};" | db.execute

For v.db.update:
rast -> elevation is an error and should not be there
option sqliteextra added

For v.net:
option -s (snap) is added
options arc_type, turn_layer, and turn_cat_type are added
options --help and --ui added

For v.net.allpairs:
option -a has been removed
technically the statement ncolumn->node_column is incorrect: there was no ncolumn thus option node_column (and option node_layer) is new

Chris Bartolomei P.E.
Engineer/Scientist
ENSCO, Inc.
bartolomei.chris@ensco.com

The information contained in this email message is intended only for the use of the individual(s) to whom it is addressed and may contain information that is privileged and sensitive. If you are not the intended recipient, or otherwise have received this communication in error, please notify the sender immediately by email at the above referenced address and note that any further dissemination, distribution or copying of this communication is strictly prohibited.

The U.S. Export Control Laws regulate the export and re-export of technology originating in the United States. This includes the electronic transmission of information and software to foreign countries and to certain foreign nationals. Recipient agrees to abide by these laws and their regulations -- including the U.S. Department of Commerce Export Administration Regulations and the U.S. Department of State International Traffic in Arms Regulations -- and not to transfer, by electronic transmission or otherwise, any content derived from this email to either a foreign national or a foreign destination in violation of such laws.

Chris,

On Thu, Apr 28, 2016 at 9:35 AM, Bartolomei.Chris
<Bartolomei.Chris@ensco.com> wrote:

I'm upgrading some scripts to run in GRASS 7.1 (from GRASS 6.4.4) and just wanted to point out some missing information on the Changes page:
https://trac.osgeo.org/grass/wiki/Grass7/NewFeatures#Optionschanges
I may misunderstand what was intended to be listed in this web page, so please forgive me if this is useless...
(note that these are just the modules I use in some scripts, I didn't go through every module nor did I list any add--ons)

...

thanks for your detailed list, I have merged in your changes:
https://trac.osgeo.org/grass/wiki/Grass7/NewFeatures?action=diff&version=395

Full page
https://trac.osgeo.org/grass/wiki/Grass7/NewFeatures

Such contributions are very important for us.

Thanks again,
Markus

--
Markus Neteler
http://www.mundialis.de - free data with free software
http://grass.osgeo.org
http://courses.neteler.org/blog

I found another issue ... I'm using 7.0.3 and the change list I was correcting (https://trac.osgeo.org/grass/wiki/Grass7/NewFeatures#Optionschanges) indicated for g.region:
    n -> north
    s -> south
    e -> east
    w -> west
    t -> top
    b -> bottom

This is all incorrect ... the options have not changed per the manual page (https://grass.osgeo.org/grass70/manuals/g.region.html) and I have verified by crashing my script ... lol ...
:slight_smile:
Chris

Chris Bartolomei P.E.
Engineer/Scientist
ENSCO, Inc.
bartolomei.chris@ensco.com
________________________________________
From: neteler.osgeo@gmail.com [neteler.osgeo@gmail.com] On Behalf Of Markus Neteler [neteler@osgeo.org]
Sent: Friday, April 29, 2016 3:36 AM
To: Bartolomei.Chris
Cc: grass-user
Subject: Re: [GRASS-user] Missing information in the GRASS 7 NewFeatures/OptionChanges web page

Chris,

On Thu, Apr 28, 2016 at 9:35 AM, Bartolomei.Chris
<Bartolomei.Chris@ensco.com> wrote:

I'm upgrading some scripts to run in GRASS 7.1 (from GRASS 6.4.4) and just wanted to point out some missing information on the Changes page:
https://urldefense.proofpoint.com/v2/url?u=https-3A__trac.osgeo.org_grass_wiki_Grass7_NewFeatures-23Optionschanges&d=CwIBaQ&c=DsZY2bea7iNIzyp-7sZ0t0F2UfNQZUfZhEPCv_2wBI0&r=O31ltou6ygJL2Y01kQyNJJD2kiILIsbyz2V0Hn4lFUY&m=YAb9WFZIADtRD53hys4hDPAwAlkapJ0sMCAJHBAzfQo&s=WMNBB4pwfSAv-SGonKkMJX7lMqGb0p04ZxPOCsur3JM&e=
I may misunderstand what was intended to be listed in this web page, so please forgive me if this is useless...
(note that these are just the modules I use in some scripts, I didn't go through every module nor did I list any add--ons)

...

thanks for your detailed list, I have merged in your changes:
https://urldefense.proofpoint.com/v2/url?u=https-3A__trac.osgeo.org_grass_wiki_Grass7_NewFeatures-3Faction-3Ddiff-26version-3D395&d=CwIBaQ&c=DsZY2bea7iNIzyp-7sZ0t0F2UfNQZUfZhEPCv_2wBI0&r=O31ltou6ygJL2Y01kQyNJJD2kiILIsbyz2V0Hn4lFUY&m=YAb9WFZIADtRD53hys4hDPAwAlkapJ0sMCAJHBAzfQo&s=HDXuKXFjFaq9m8lanlNdnGXJCX8MpAYLjw0A22J1RkQ&e=

Full page
https://urldefense.proofpoint.com/v2/url?u=https-3A__trac.osgeo.org_grass_wiki_Grass7_NewFeatures&d=CwIBaQ&c=DsZY2bea7iNIzyp-7sZ0t0F2UfNQZUfZhEPCv_2wBI0&r=O31ltou6ygJL2Y01kQyNJJD2kiILIsbyz2V0Hn4lFUY&m=YAb9WFZIADtRD53hys4hDPAwAlkapJ0sMCAJHBAzfQo&s=WWp71T0kWunwnyFfiRSRcs6jF66-wCDbKQ_loi18hpg&e=

Such contributions are very important for us.

Thanks again,
Markus

--
Markus Neteler
https://urldefense.proofpoint.com/v2/url?u=http-3A__www.mundialis.de&d=CwIBaQ&c=DsZY2bea7iNIzyp-7sZ0t0F2UfNQZUfZhEPCv_2wBI0&r=O31ltou6ygJL2Y01kQyNJJD2kiILIsbyz2V0Hn4lFUY&m=YAb9WFZIADtRD53hys4hDPAwAlkapJ0sMCAJHBAzfQo&s=8UQI3xRS-_z2acJBLPLyySLeFTWTL8JjfZMVDSUY1Lo&e= - free data with free software
https://urldefense.proofpoint.com/v2/url?u=http-3A__grass.osgeo.org&d=CwIBaQ&c=DsZY2bea7iNIzyp-7sZ0t0F2UfNQZUfZhEPCv_2wBI0&r=O31ltou6ygJL2Y01kQyNJJD2kiILIsbyz2V0Hn4lFUY&m=YAb9WFZIADtRD53hys4hDPAwAlkapJ0sMCAJHBAzfQo&s=yKhogZPjHrsnL9ZlgVP4aTTM0xu7IA42Y4x3OzhvJJc&e=
https://urldefense.proofpoint.com/v2/url?u=http-3A__courses.neteler.org_blog&d=CwIBaQ&c=DsZY2bea7iNIzyp-7sZ0t0F2UfNQZUfZhEPCv_2wBI0&r=O31ltou6ygJL2Y01kQyNJJD2kiILIsbyz2V0Hn4lFUY&m=YAb9WFZIADtRD53hys4hDPAwAlkapJ0sMCAJHBAzfQo&s=jCBFuxSR0WlaMtMzQBz01Q716m5k4gvQtzur3eRUZZQ&e=

The information contained in this email message is intended only for the use of the individual(s) to whom it is addressed and may contain information that is privileged and sensitive. If you are not the intended recipient, or otherwise have received this communication in error, please notify the sender immediately by email at the above referenced address and note that any further dissemination, distribution or copying of this communication is strictly prohibited.

The U.S. Export Control Laws regulate the export and re-export of technology originating in the United States. This includes the electronic transmission of information and software to foreign countries and to certain foreign nationals. Recipient agrees to abide by these laws and their regulations -- including the U.S. Department of Commerce Export Administration Regulations and the U.S. Department of State International Traffic in Arms Regulations -- and not to transfer, by electronic transmission or otherwise, any content derived from this email to either a foreign national or a foreign destination in violation of such laws.

On Sat, Apr 30, 2016 at 8:29 AM, Bartolomei.Chris
<Bartolomei.Chris@ensco.com> wrote:

I found another issue ... I'm using 7.0.3 and the change list I was correcting (https://trac.osgeo.org/grass/wiki/Grass7/NewFeatures#Optionschanges) indicated for g.region:
    n -> north
    s -> south
    e -> east
    w -> west
    t -> top
    b -> bottom

This is all incorrect ... the options have not changed per the manual page (https://grass.osgeo.org/grass70/manuals/g.region.html) and I have verified by crashing my script ... lol ...
:slight_smile:

Fixed, thanks for the notification.

Markus

Sorry to keep at this but here's a few more (and I'm sure more to follow as I debug my scripts):

For v.to.rast:
option rows= has been removed
option memory= has been added

In the Renamed Modules section:
Add v.db.addcol -> v.db.addcolumn

and why on earth are a bunch of the modules Windows Batch files and not compiled executables???
v.db.addcolumn and r.mask are just two that I now have to run as "python {path to script}/{script}.py" instead of the GRASS module name.
THAT is a pain in the you-know-what.
There are a lot of them... I opened a different thread on that subject.

Chris

Chris Bartolomei P.E.
Engineer/Scientist
ENSCO, Inc.
bartolomei.chris@ensco.com
________________________________________
From: neteler.osgeo@gmail.com [neteler.osgeo@gmail.com] On Behalf Of Markus Neteler [neteler@osgeo.org]
Sent: Saturday, April 30, 2016 12:10 AM
To: Bartolomei.Chris
Cc: grass-user
Subject: Re: [GRASS-user] Missing information in the GRASS 7 NewFeatures/OptionChanges web page

On Sat, Apr 30, 2016 at 8:29 AM, Bartolomei.Chris
<Bartolomei.Chris@ensco.com> wrote:

I found another issue ... I'm using 7.0.3 and the change list I was correcting (https://urldefense.proofpoint.com/v2/url?u=https-3A__trac.osgeo.org_grass_wiki_Grass7_NewFeatures-23Optionschanges&d=CwIBaQ&c=DsZY2bea7iNIzyp-7sZ0t0F2UfNQZUfZhEPCv_2wBI0&r=O31ltou6ygJL2Y01kQyNJJD2kiILIsbyz2V0Hn4lFUY&m=_4unJH37AVJ0Zvb4tHjB3wu-Ar9fiJD0yZoQkqFPJhI&s=vUyY6A6_FcLc6_7pbsTM-jrbmkDRe_3lVKuGbzbLSW0&e= ) indicated for g.region:
    n -> north
    s -> south
    e -> east
    w -> west
    t -> top
    b -> bottom

This is all incorrect ... the options have not changed per the manual page (https://urldefense.proofpoint.com/v2/url?u=https-3A__grass.osgeo.org_grass70_manuals_g.region.html&d=CwIBaQ&c=DsZY2bea7iNIzyp-7sZ0t0F2UfNQZUfZhEPCv_2wBI0&r=O31ltou6ygJL2Y01kQyNJJD2kiILIsbyz2V0Hn4lFUY&m=_4unJH37AVJ0Zvb4tHjB3wu-Ar9fiJD0yZoQkqFPJhI&s=ZjGG8C3xRVrM2jbMKb3Ws81xcUQ9SOl9mWf0RQ7ZYUM&e= ) and I have verified by crashing my script ... lol ...
:slight_smile:

Fixed, thanks for the notification.

Markus

The information contained in this email message is intended only for the use of the individual(s) to whom it is addressed and may contain information that is privileged and sensitive. If you are not the intended recipient, or otherwise have received this communication in error, please notify the sender immediately by email at the above referenced address and note that any further dissemination, distribution or copying of this communication is strictly prohibited.

The U.S. Export Control Laws regulate the export and re-export of technology originating in the United States. This includes the electronic transmission of information and software to foreign countries and to certain foreign nationals. Recipient agrees to abide by these laws and their regulations -- including the U.S. Department of Commerce Export Administration Regulations and the U.S. Department of State International Traffic in Arms Regulations -- and not to transfer, by electronic transmission or otherwise, any content derived from this email to either a foreign national or a foreign destination in violation of such laws.

On Sat, Apr 30, 2016 at 9:59 AM, Bartolomei.Chris
<Bartolomei.Chris@ensco.com> wrote:

Sorry to keep at this but here's a few more (and I'm sure more to follow as I debug my scripts):

These comments are most welcome.
Feel free to just send them to me.

For v.to.rast:
option rows= has been removed
option memory= has been added

In the Renamed Modules section:
Add v.db.addcol -> v.db.addcolumn

Fixed.

and why on earth are a bunch of the modules Windows Batch files and not compiled executables???

There is some good technical reason for that (one year of testing and
discussion behind the scenes)...

v.db.addcolumn and r.mask are just two that I now have to run as "python {path to script}/{script}.py" instead of the GRASS module name.
THAT is a pain in the you-know-what.
There are a lot of them... I opened a different thread on that subject.

... so let's discuss that in the other thread.

Markus