[GRASS-user] "Screenshots of vector data"

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,
HB

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,
HB
_______________________________________________
grass-user mailing list
grass-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-user

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,
HB


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

Hi Hermant,

Have you tried with the option paper in ps.map? [0] It allows to set a custom paper size and change margins.

hth,

Vero

[0] https://grass.osgeo.org/grass72/manuals/ps.map.html#paper

···

2017-09-22 20:22 GMT+02:00 Hemant Bist <hemantbist@gmail.com>:

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


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

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,
HB


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