Hello,
Am I mistaking, or is there no equivalent to d.where in the gis.m ? I know I can see the coordinates the mouse is at, but it would be great to be able to collect a series of coordinates in a suitable format and then copy-paste them.
Moritz
Hello,
Am I mistaking, or is there no equivalent to d.where in the gis.m ? I know I can see the coordinates the mouse is at, but it would be great to be able to collect a series of coordinates in a suitable format and then copy-paste them.
Moritz
Moritz,
Click the query button on the toolbar of the map display. The coordinates
and the value (cat, label for raster; cat, attributes for vector) will show
up in the output window.
Repeat.
Copy and paste, or save output
Michael
__________________________________________
Michael Barton, Professor of Anthropology
School of Human Evolution & Social Change
Center for Social Dynamics & Complexity
Arizona State University
phone: 480-965-6213
fax: 480-965-7671
www: http://www.public.asu.edu/~cmbarton
From: Moritz Lennert <mlennert@club.worldonline.be>
Date: Wed, 26 Jul 2006 20:04:27 +0200
To: Grass Developers List <grass-dev@grass.itc.it>
Subject: [GRASS-dev] d.where in gis.m ?Hello,
Am I mistaking, or is there no equivalent to d.where in the gis.m ? I
know I can see the coordinates the mouse is at, but it would be great to
be able to collect a series of coordinates in a suitable format and then
copy-paste them.Moritz
Michael Barton wrote:
Moritz,
Click the query button on the toolbar of the map display. The coordinates
and the value (cat, label for raster; cat, attributes for vector) will show
up in the output window.
Yes, I know about this feature, it is just not very convenient for collecting a series of point coordinates, as it puts out quite a lot of information (especially if there are many attribute columns) and does so line by line, so you have to go back and copy first the X, then the Y...
For me it could just be a key stroke which copies the coordinates of the current mouse position (the ones displayed at the bottom) making it possible to paste them somewhere. But ideally, it should be possible to collect a series of point coordinates before copying them. Maybe just a modifier key to the query tool to make it only output coordinates ?
As an example for what my problem is, here is output from the query button:
East: 150376.834025
North: 172832.39834
Map: UrbAdm_Mu
Mapset: mlennert
Object type: Area
Sq Meters: 7896417.508
Hectares: 789.642
Acres: 1951.200
Sq Miles: 3.0487
Layer: 1
Category: 9
driver: pg
database: urbis
table: UrbAdm_Mu
key column: cat
cat : 9
muid : 8500
polid : 6
reid : 1
munc : 21015
mu3c : 085
mudn : Schaarbeek
mudnin : SC
mufn : Schaerbeek
mufnin : SC
East: 148713.165975
North: 165276.572614
Map: UrbAdm_Mu
Mapset: mlennert
Object type: Area
Sq Meters: 22861322.565
Hectares: 2286.132
Acres: 5649.019
Sq Miles: 8.8266
Layer: 1
Category: 10
driver: pg
database: urbis
table: UrbAdm_Mu
key column: cat
cat : 10
muid : 8600
polid : 2
reid : 1
munc : 21016
mu3c : 086
mudn : Ukkel
mudnin : UK
mufn : Uccle
mufnin : UC
and here d.where output:
> d.where
Buttons:
Left: where am i
Middle: draw to/from here
Right: quit this
EAST: NORTH:
148883.72083333 170687.10416667
147561.1625 171209.16666667
148013.61666667 172427.3125
151111.1875 172914.57083333
151702.85833333 170687.10416667
148744.50416667 169677.78333333
If for example, you just need the coordinates for start point and end point for a path, d.where's output is much easier to use.
Repeat.
Copy and paste, or save output
Michael
__________________________________________
Michael Barton, Professor of Anthropology
School of Human Evolution & Social Change
Center for Social Dynamics & Complexity
Arizona State Universityphone: 480-965-6213
fax: 480-965-7671
www: http://www.public.asu.edu/~cmbartonFrom: Moritz Lennert <mlennert@club.worldonline.be>
Date: Wed, 26 Jul 2006 20:04:27 +0200
To: Grass Developers List <grass-dev@grass.itc.it>
Subject: [GRASS-dev] d.where in gis.m ?Hello,
Am I mistaking, or is there no equivalent to d.where in the gis.m ? I
know I can see the coordinates the mouse is at, but it would be great to
be able to collect a series of coordinates in a suitable format and then
copy-paste them.Moritz
_______________________________________________
grass-dev mailing list
grass-dev@grass.itc.it
http://grass.itc.it/mailman/listinfo/grass-dev
Moritz,
Display your vector, but select a raster layer in the gism layer tree. Then
you'll get a much simpler output (because rasters only have e,n,cat,label)
on a single line. Save the output window to a file and this might do what
you want.
Michael
__________________________________________
Michael Barton, Professor of Anthropology
School of Human Evolution & Social Change
Center for Social Dynamics and Complexity
Arizona State University
phone: 480-965-6213
fax: 480-965-7671
www: http://www.public.asu.edu/~cmbarton
From: Moritz Lennert <mlennert@club.worldonline.be>
Date: Fri, 28 Jul 2006 10:48:18 +0200
To: Michael Barton <michael.barton@asu.edu>
Cc: Grass Developers List <grass-dev@grass.itc.it>
Subject: Re: [GRASS-dev] d.where in gis.m ?Michael Barton wrote:
Moritz,
Click the query button on the toolbar of the map display. The coordinates
and the value (cat, label for raster; cat, attributes for vector) will show
up in the output window.Yes, I know about this feature, it is just not very convenient for
collecting a series of point coordinates, as it puts out quite a lot of
information (especially if there are many attribute columns) and does so
line by line, so you have to go back and copy first the X, then the Y...For me it could just be a key stroke which copies the coordinates of the
current mouse position (the ones displayed at the bottom) making it
possible to paste them somewhere. But ideally, it should be possible to
collect a series of point coordinates before copying them. Maybe just a
modifier key to the query tool to make it only output coordinates ?As an example for what my problem is, here is output from the query button:
East: 150376.834025
North: 172832.39834
Map: UrbAdm_Mu
Mapset: mlennert
Object type: Area
Sq Meters: 7896417.508
Hectares: 789.642
Acres: 1951.200
Sq Miles: 3.0487
Layer: 1
Category: 9
driver: pg
database: urbis
table: UrbAdm_Mu
key column: cat
cat : 9
muid : 8500
polid : 6
reid : 1
munc : 21015
mu3c : 085
mudn : Schaarbeek
mudnin : SC
mufn : Schaerbeek
mufnin : SCEast: 148713.165975
North: 165276.572614
Map: UrbAdm_Mu
Mapset: mlennert
Object type: Area
Sq Meters: 22861322.565
Hectares: 2286.132
Acres: 5649.019
Sq Miles: 8.8266
Layer: 1
Category: 10
driver: pg
database: urbis
table: UrbAdm_Mu
key column: cat
cat : 10
muid : 8600
polid : 2
reid : 1
munc : 21016
mu3c : 086
mudn : Ukkel
mudnin : UK
mufn : Uccle
mufnin : UCand here d.where output:
d.where
Buttons:
Left: where am i
Middle: draw to/from here
Right: quit thisEAST: NORTH:
148883.72083333 170687.10416667
147561.1625 171209.16666667
148013.61666667 172427.3125
151111.1875 172914.57083333
151702.85833333 170687.10416667
148744.50416667 169677.78333333If for example, you just need the coordinates for start point and end
point for a path, d.where's output is much easier to use.Repeat.
Copy and paste, or save output
Michael
__________________________________________
Michael Barton, Professor of Anthropology
School of Human Evolution & Social Change
Center for Social Dynamics & Complexity
Arizona State Universityphone: 480-965-6213
fax: 480-965-7671
www: http://www.public.asu.edu/~cmbartonFrom: Moritz Lennert <mlennert@club.worldonline.be>
Date: Wed, 26 Jul 2006 20:04:27 +0200
To: Grass Developers List <grass-dev@grass.itc.it>
Subject: [GRASS-dev] d.where in gis.m ?Hello,
Am I mistaking, or is there no equivalent to d.where in the gis.m ? I
know I can see the coordinates the mouse is at, but it would be great to
be able to collect a series of coordinates in a suitable format and then
copy-paste them.Moritz
_______________________________________________
grass-dev mailing list
grass-dev@grass.itc.it
http://grass.itc.it/mailman/listinfo/grass-dev
Michael Barton wrote:
Moritz,
Display your vector, but select a raster layer in the gism layer tree. Then
you'll get a much simpler output (because rasters only have e,n,cat,label)
on a single line. Save the output window to a file and this might do what
you want.
This is already a bit better, but besides the fact that it is a bit of a hassle to create a raster just to get nicer coordinate output, there is still quite a lot of clutter with the command lines:
r.what -f input=pop_poten east_north=151323.550767,160949.243195
151323.550767|160949.243195||36458.9120110746|
r.what -f input=pop_poten east_north=151323.550767,160949.243195
151323.550767|160949.243195||36458.9120110746|
I just think that it should'nt be too complicated to copy the information that already exists (as it is displayed on the bottom right of the screen) to the output window in a nice format. d.path does this, for example:
L: from M: to R: quit
Node 392: 147162.820000 168433.076000
Node 6812: 152070.313000 168202.302000
Node 2062: 148133.692000 167472.842000
Node 6864: 150575.348000 169256.368000
Node 1785: 153084.305000 168910.834000
Node 7870: 148412.785000 165596.435000
Node 204: 149007.947000 168352.584000
Node 5011: 153025.424000 166352.285000
Node 4364: 147451.703000 168614.870000
Node 4773: 151505.647000 168907.431000
But d.path needs an X monitor...
I know the best answer would be to do it myself, but I am not a big expert in tcl/tk.
Moritz
I guess you should put this on the wish list, along with saving a region
directly from gism.
Michael
__________________________________________
Michael Barton, Professor of Anthropology
School of Human Evolution & Social Change
Center for Social Dynamics and Complexity
Arizona State University
phone: 480-965-6213
fax: 480-965-7671
www: http://www.public.asu.edu/~cmbarton
From: Moritz Lennert <mlennert@club.worldonline.be>
Date: Mon, 31 Jul 2006 11:40:40 +0200
To: Michael Barton <michael.barton@asu.edu>
Cc: Grass Developers List <grass-dev@grass.itc.it>
Subject: Re: [GRASS-dev] d.where in gis.m ?Michael Barton wrote:
Moritz,
Display your vector, but select a raster layer in the gism layer tree. Then
you'll get a much simpler output (because rasters only have e,n,cat,label)
on a single line. Save the output window to a file and this might do what
you want.This is already a bit better, but besides the fact that it is a bit of a
hassle to create a raster just to get nicer coordinate output, there is
still quite a lot of clutter with the command lines:r.what -f input=pop_poten east_north=151323.550767,160949.243195
151323.550767|160949.243195||36458.9120110746|
r.what -f input=pop_poten east_north=151323.550767,160949.243195
151323.550767|160949.243195||36458.9120110746|
I just think that it should'nt be too complicated to copy the
information that already exists (as it is displayed on the bottom right
of the screen) to the output window in a nice format. d.path does this,
for example:L: from M: to R: quit
Node 392: 147162.820000 168433.076000
Node 6812: 152070.313000 168202.302000
Node 2062: 148133.692000 167472.842000
Node 6864: 150575.348000 169256.368000
Node 1785: 153084.305000 168910.834000
Node 7870: 148412.785000 165596.435000
Node 204: 149007.947000 168352.584000
Node 5011: 153025.424000 166352.285000
Node 4364: 147451.703000 168614.870000
Node 4773: 151505.647000 168907.431000But d.path needs an X monitor...
I know the best answer would be to do it myself, but I am not a big
expert in tcl/tk.Moritz