<div dir="ltr"><div><div><div>Hi Hermant, <br><br></div>Have you tried with the option paper in ps.map? [0] It allows to set a custom paper size and change margins.<br><br></div>hth, <br></div>Vero<br><br>[0] <a href="https://grass.osgeo.org/grass72/manuals/ps.map.html#paper">https://grass.osgeo.org/grass72/manuals/ps.map.html#paper</a><br><div><div><div><br></div></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">2017-09-22 20:22 GMT+02:00 Hemant Bist <span dir="ltr"><<a href="mailto:hemantbist@gmail.com" target="_blank">hemantbist@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>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.</div><div><br></div><div>g.region vector=rawlines@PERMANENT </div><div><br></div><div><br></div><div>--- The script I am using to draw the map.</div><div>vlines rawlines<br></div><div> width 0.25</div><div> end</div><div>border n</div><div><br></div><div><span style="white-space:pre-wrap"> </span>end</div><div><br></div><div><br></div><div><br></div><div><br></div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Sep 22, 2017 at 10:13 AM, jon <span dir="ltr"><<a href="mailto:jeir@hi.is" target="_blank">jeir@hi.is</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Have you tried ps.map?<br>
<br>
Jon<br>
<div><div class="m_-2225068084052162317h5"><br>
<br>
<br>
On 22 Sep 2017, at 16:04, Hemant Bist wrote:<br>
<br>
> Hi,<br>
><br>
> I have some vector data. they are line shapefiles without any projection<br>
> information.<br>
> I want to convert them to images of certain size : (The lines should appear<br>
> black with white background). : This is almost how they are displayed on<br>
> the Display console of grass UI.<br>
><br>
> May be there is some way to programatically control console size and dump<br>
> its contents.<br>
><br>
> I looked at v.to.rast but could not figure out the right parameters/<br>
> alternate commands. Any pointers/examples would be useful to me.<br>
> (I have used various GIS software before, but I have just started scripting<br>
> the Grass GIS)<br>
><br>
><br>
> Thanks,<br>
> HB<br>
</div></div>> ______________________________<wbr>_________________<br>
> grass-user mailing list<br>
> <a href="mailto:grass-user@lists.osgeo.org" target="_blank">grass-user@lists.osgeo.org</a><br>
> <a href="https://lists.osgeo.org/mailman/listinfo/grass-user" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailma<wbr>n/listinfo/grass-user</a><br>
</blockquote></div><br></div>
</div></div><br>______________________________<wbr>_________________<br>
grass-user mailing list<br>
<a href="mailto:grass-user@lists.osgeo.org">grass-user@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/grass-user" rel="noreferrer" target="_blank">https://lists.osgeo.org/<wbr>mailman/listinfo/grass-user</a><br></blockquote></div><br></div>