Dear Grass developers,
please take a minute to answer my two questions:
1. I am planning to develop a Grass module that can accept (as input files) both vector or raster data. What prefix should I choose for the name? v. or r. or vr. or what?
2. How can I list the (east,north) coordinate together with the attributes of a given vector points file? With v.out.ascii I can see coordinates and category; with db.select I can see category and decimal attributes; but how can I see all the information in a joint way?
On Wed, 2006-09-20 at 20:44 +0200, Damiano Triglione wrote:
please take a minute to answer my two questions:
1. I am planning to develop a Grass module that can accept (as input files)
both vector or raster data. What prefix should I choose for the name? v. or
r. or vr. or what?
What is the output format? That is how I decide.
2. How can I list the (east,north) coordinate together with the attributes
of a given vector points file? With v.out.ascii I can see coordinates and
category; with db.select I can see category and decimal attributes; but how
can I see all the information in a joint way?
Perhaps someone with more day-to-day user experience could help. I
don't know of a way off-hand without writing a script.
--
Brad Douglas <rez touchofmadness com> KB8UYR
Address: 37.493,-121.924 / WGS84 National Map Corps #TNMC-3785
On Wed, 2006-09-20 at 20:44 +0200, Damiano Triglione wrote:
2. How can I list the (east,north) coordinate together with the attributes
of a given vector points file? With v.out.ascii I can see coordinates and
category; with db.select I can see category and decimal attributes; but how
can I see all the information in a joint way?
v.db.addcol to add columns x,y
v.to.db to upload coordinates to x,y colums
db.select to list cat with x,y attributes
----- Original Message ----- From: "Brad Douglas" <rez@touchofmadness.com>
To: "Damiano Triglione" <damiano.triglione@polimi.it>
Cc: <grass-dev@grass.itc.it>
Sent: Thursday, September 21, 2006 6:18 AM
Subject: Re: [GRASS-dev] Two kind questions...
On Wed, 2006-09-20 at 20:44 +0200, Damiano Triglione wrote:
please take a minute to answer my two questions:
1. I am planning to develop a Grass module that can accept (as input files)
both vector or raster data. What prefix should I choose for the name? v. or
r. or vr. or what?
What is the output format? That is how I decide.
--
Brad Douglas <rez touchofmadness com> KB8UYR
Address: 37.493,-121.924 / WGS84 National Map Corps #TNMC-3785
Unfortunately, also the output format can be either raster or vector!
What should I do, then?
Damiano
----- Original Message ----- From: "Maciej Sieczka" <tutey@o2.pl>
To: <rez@touchofmadness.com>
Cc: "Damiano Triglione" <damiano.triglione@polimi.it>; <grass-dev@grass.itc.it>
Sent: Thursday, September 21, 2006 7:12 AM
Subject: Re: [GRASS-dev] Two kind questions...
Brad Douglas wrote:
On Wed, 2006-09-20 at 20:44 +0200, Damiano Triglione wrote:
2. How can I list the (east,north) coordinate together with the attributes
of a given vector points file? With v.out.ascii I can see coordinates and
category; with db.select I can see category and decimal attributes; but how
can I see all the information in a joint way?
v.db.addcol to add columns x,y
v.to.db to upload coordinates to x,y colums
db.select to list cat with x,y attributes
Is there a simpler way?
Maciek
Thank you! Maybe a simpler way could be a grass module that performs the actions above! Or a module that shows all the information without adding the x,y columns (this would have the purpose to not increase the size of the files stored in the hard disk with redundant information).
Damiano
On Wed, 2006-09-20 at 20:44 +0200, Damiano Triglione wrote:
2. How can I list the (east,north) coordinate together with the
attributes
of a given vector points file? With v.out.ascii I can see
coordinates and
category; with db.select I can see category and decimal attributes;
but how
can I see all the information in a joint way?
Maciej Sieczka wrote:
v.db.addcol to add columns x,y
v.to.db to upload coordinates to x,y colums
db.select to list cat with x,y attributes
Is there a simpler way?
Thank you! Maybe a simpler way could be a grass module that performs the
actions above! Or a module that shows all the information without adding
the x,y columns (this would have the purpose to not increase the size of
the files stored in the hard disk with redundant information).
Ha, it shows v.to.db can be used with dummy column names in the 'print
only' mode - no need to alter your data then, eg.:
For single queries, maybe d.what.vect and v.what could be extended to
report points and centroids coordinates? Currently, for lines their
lenght is reported, for areas their area. For point features we often
want to know their coordinates and it would a good feature. Any
programmer interested?
d.what.vect and v.what already report X,Y, but these are the
coordinates of where one clicks, not the real coordinates of a point
feature...
Damiano Triglione wrote:
> 2. How can I list the (east,north) coordinate together with the
> attributes of a given vector points file? With v.out.ascii I can
> see coordinates and category; with db.select I can see category and
> decimal attributes; but how can I see all the information in a
> joint way?
Brad:
Perhaps someone with more day-to-day user experience could help. I
don't know of a way off-hand without writing a script.
1. I am planning to develop a Grass module that can accept (as input
files) both vector or raster data. What prefix should I choose for
the name? v. or r. or vr. or what?
What is the output format? That is how I decide.
Unfortunately, also the output format can be either raster or vector!
What should I do, then?
----- Original Message ----- From: "Hamish" <hamish_nospam@yahoo.com>
To: <rez@touchofmadness.com>
Cc: <damiano.triglione@polimi.it>; <grass-dev@grass.itc.it>; "Maciej Sieczka" <tutey@o2.pl>
Sent: Wednesday, September 27, 2006 2:52 PM
Subject: Re: [GRASS-dev] Two kind questions...
Damiano Triglione wrote:
> 2. How can I list the (east,north) coordinate together with the
> attributes of a given vector points file? With v.out.ascii I can
> see coordinates and category; with db.select I can see category and
> decimal attributes; but how can I see all the information in a
> joint way?
Brad:
Perhaps someone with more day-to-day user experience could help. I
don't know of a way off-hand without writing a script.
1. I am planning to develop a Grass module that can accept (as input
files) both vector or raster data. What prefix should I choose for
the name? v. or r. or vr. or what?
What is the output format? That is how I decide.
Unfortunately, also the output format can be either raster or vector!
What should I do, then?
m.* !
With m standing for "multiple"? Are there already modules with this prefix?
Damiano
>>>> 1. I am planning to develop a Grass module that can accept (as
>input >>> files) both vector or raster data. What prefix should I
>choose for >>> the name? v. or r. or vr. or what?
>>>
>>> What is the output format? That is how I decide.
>>
>> Unfortunately, also the output format can be either raster or
>vector! > What should I do, then?
>
> m.* !
With m standing for "multiple"? Are there already modules with this
prefix?
"miscellaneous". This was used more in GRASS 5, in GRASS 6 we only have
m.cogo and m.proj. Also there is g.* ("general"), but this is used more
for GIS admin tools; m.* is used for misc modules.