[GRASS-user] Retrieving Vector Point Screen Coordinates
glynn at gclements.plus.com
Fri Aug 22 19:31:30 EDT 2008
Robert Shedd wrote:
> >> I am currently working on a project that it would be helpful to be able
> >> to retrieve the x-y coordinates of a set of vector points. I am
> >> generating the map display in a script so interactive features (such as
> >> available with d.where) will not work.
> >> My current basic script is essentially the following:
> >> export GRASS_TRUECOLOR=TRUE
> >> export GRASS_WIDTH=800
> >> export GRASS_HEIGHT=600
> >> d.mon start=PNG
> >> d.vect map="pointvector" type="point" icon="basic/box" size=10 lcolor="black" fcolor="green"
> >> d.mon stop=PNG
> >> I am looking to find where each of the points in pointvector plots within the 800x600 png file.
> > Something like "v.report YOURMAP option=coor"? Maybe I do not understand
> > the problem exactly.
> That is close to what I need, but v.report YOURMAP option=coor reports
> the coordinates in lat-long coordinates. I am trying to find the x-y
> location where those lat-long coordinates actually plot on the output
> image relative to the top left or bottom left corner of the graphic.
One option is to parse the output from the HTMLMAP driver.
Glynn Clements <glynn at gclements.plus.com>
More information about the grass-user