[GRASS-user] v.report output interpretation

   My reading of the v.report manual page suggests the output of the command
matches the option and units specified for the map being reported. That does
not seem to be the case in this situation:

v.report map=dubois_crk op=area units=kilometers
cat|TNMID|MetaSourceID|SourceDataDesc|SourceOriginator|SourceFeatureID|LoadDate|GNIS_ID|AreaAcres|AreaSqKm|States|HUC12|Name|HUType|HUMod|ToHUC|NonContributingAreaAcres|NonContributingAreaSqKm|Shape_Length|Shape_Area|area
809|{01719BDC-F0AC-4393-AB64-C4C882F68AC3}|||||2013-01-18 07:09:30||12636.33|51.14|OR|170900110603|Dubois Creek-Clackamas River|S|NM|170900110607|||0.436482690532215|0.00586467773592371|51.1268508220905

   Now, I can copy that output to a text file and reformat it so data and
headings match in columns, but is this the expected output when the command
specifies area in kilometers?

Rich

Rich Shepard wrote

My reading of the v.report manual page suggests the output of the command
matches the option and units specified for the map being reported. That
does
not seem to be the case in this situation:

v.report map=dubois_crk op=area units=kilometers
cat|TNMID|MetaSourceID|SourceDataDesc|SourceOriginator|SourceFeatureID|LoadDate|GNIS_ID|AreaAcres|AreaSqKm|States|HUC12|Name|HUType|HUMod|ToHUC|NonContributingAreaAcres|NonContributingAreaSqKm|Shape_Length|Shape_Area|area
809|{01719BDC-F0AC-4393-AB64-C4C882F68AC3}|||||2013-01-18
07:09:30||12636.33|51.14|OR|170900110603|Dubois Creek-Clackamas
River|S|NM|170900110607|||0.436482690532215|0.00586467773592371|51.1268508220905

   Now, I can copy that output to a text file and reformat it so data and
headings match in columns, but is this the expected output when the
command
specifies area in kilometers?

loading the text snippet above into a spreadsheet, columns matches here.

looking at the values in the columns:

AreaSqKm
51,14

vs

area (by v.report)
51,12685082

area in square kilometers looks ok without knowing anything about the vector
data.

-----
best regards
Helmut
--
Sent from: http://osgeo-org.1560.x6.nabble.com/Grass-Users-f3884509.html

On Mon, 20 Aug 2018, Helmut Kudrnovsky wrote:

loading the text snippet above into a spreadsheet, columns matches here.

Helmut,

   I'm sure it does the same here, but that was not my question. I didn't ask
it properly so I'll try again.

   The v.report manual page explains that specifying an option of area,
length, or coordinates is required. The implication is that the user selects
one option which is output in the desired units. The results I obtained
include everything, despite my asking for only one. If that's the default
behavior why require declaration of _an_ option?

   As a side issue, if everything is going to be dumped to the console why
not eliminate the option option and format output as a two row table rather
than requiring the output to be transferred to a spreadsheet?

Regards,

Rich

Rich Shepard wrote

On Mon, 20 Aug 2018, Helmut Kudrnovsky wrote:

loading the text snippet above into a spreadsheet, columns matches here.

Helmut,

   I'm sure it does the same here, but that was not my question. I didn't
ask
it properly so I'll try again.

   The v.report manual page explains that specifying an option of area,
length, or coordinates is required. The implication is that the user
selects
one option which is output in the desired units. The results I obtained
include everything, despite my asking for only one. If that's the default
behavior why require declaration of _an_ option?

   As a side issue, if everything is going to be dumped to the console why
not eliminate the option option and format output as a two row table
rather
than requiring the output to be transferred to a spreadsheet?

Not sure I understand it right, are you refering to

[....]Shape_Length|Shape_Area|area

?

only the area columns comes from v.report

the other columns are already in the original data.

-----
best regards
Helmut
--
Sent from: http://osgeo-org.1560.x6.nabble.com/Grass-Users-f3884509.html

On Tue, 21 Aug 2018, Helmut Kudrnovsky wrote:

[....]Shape_Length|Shape_Area|area

?

only the area columns comes from v.report the other columns are already in
the original data.

Helmut,

   I'm asking why I get all the columns when I've requested only the area on
the v.report command line.

Best regards,

Rich

Rich Shepard wrote

On Tue, 21 Aug 2018, Helmut Kudrnovsky wrote:

[....]Shape_Length|Shape_Area|area

?

only the area columns comes from v.report the other columns are already
in
the original data.

Helmut,

   I'm asking why I get all the columns when I've requested only the area
on
the v.report command line.

Best regards,

Rich
_______________________________________________
grass-user mailing list

grass-user@.osgeo

https://lists.osgeo.org/mailman/listinfo/grass-user

That's the way as v.report is implemented.

If you want just 2 columns, e.g. Site name and area, then use v.to.db to.db
to upload area to the attribute table, then v.db.select

-----
best regards
Helmut
--
Sent from: http://osgeo-org.1560.x6.nabble.com/Grass-Users-f3884509.html

On Tue, 21 Aug 2018, Helmut Kudrnovsky wrote:

If you want just 2 columns, e.g. Site name and area, then use v.to.db
to.db to upload area to the attribute table, then v.db.select

Helmut,

   Okay.

Thanks,

Rich