I have some vector data. they are line shapefiles without any projection information.
I want to convert them to images of certain size : (The lines should appear black with white background). : This is almost how they are displayed on the Display console of grass UI.
May be there is some way to programatically control console size and dump its contents.
I looked at v.to.rast but could not figure out the right parameters/ alternate commands. Any pointers/examples would be useful to me.
(I have used various GIS software before, but I have just started scripting the Grass GIS)
I have some vector data. they are line shapefiles without any projection
information.
I want to convert them to images of certain size : (The lines should appear
black with white background). : This is almost how they are displayed on
the Display console of grass UI.
May be there is some way to programatically control console size and dump
its contents.
I looked at v.to.rast but could not figure out the right parameters/
alternate commands. Any pointers/examples would be useful to me.
(I have used various GIS software before, but I have just started scripting
the Grass GIS)
Thanks, Its almost working for me. I am not able to get rid of the "extra border space " around the image. (rawlines is the lines vector). I tried setting the region to that of the vector by g.region, but it does not seem to have any effect.
g.region vector=rawlines@PERMANENT
— The script I am using to draw the map.
vlines rawlines
width 0.25
end
border n
end
···
On Fri, Sep 22, 2017 at 10:13 AM, jon <jeir@hi.is> wrote:
Have you tried ps.map?
Jon
On 22 Sep 2017, at 16:04, Hemant Bist wrote:
Hi,
I have some vector data. they are line shapefiles without any projection
information.
I want to convert them to images of certain size : (The lines should appear
black with white background). : This is almost how they are displayed on
the Display console of grass UI.
May be there is some way to programatically control console size and dump
its contents.
I looked at v.to.rast but could not figure out the right parameters/
alternate commands. Any pointers/examples would be useful to me.
(I have used various GIS software before, but I have just started scripting
the Grass GIS)
Thanks, Its almost working for me. I am not able to get rid of the "extra border space " around the image. (rawlines is the lines vector). I tried setting the region to that of the vector by g.region, but it does not seem to have any effect.
g.region vector=rawlines@PERMANENT
— The script I am using to draw the map.
vlines rawlines
On Fri, Sep 22, 2017 at 10:13 AM, jon <jeir@hi.is> wrote:
Have you tried ps.map?
Jon
On 22 Sep 2017, at 16:04, Hemant Bist wrote:
Hi,
I have some vector data. they are line shapefiles without any projection
information.
I want to convert them to images of certain size : (The lines should appear
black with white background). : This is almost how they are displayed on
the Display console of grass UI.
May be there is some way to programatically control console size and dump
its contents.
I looked at v.to.rast but could not figure out the right parameters/
alternate commands. Any pointers/examples would be useful to me.
(I have used various GIS software before, but I have just started scripting
the Grass GIS)