<div dir="ltr">Anna,<div>I run the command you suggested and there is indeed a connection problem. How do i fix it? Here are the commands i run in a grass/python script:<div><br></div><div>criteria="(value=255) and (area_sf>"+sys.argv[5]+")"</div><div>grass.run_command('v.extract', input='imperv', output='impervh_clean',type='area',where=criteria)</div><div><br></div><div>Here is the command yielding the database connection error...</div><div><br></div><div><div>grass.run_command('v.to.rast', input='impervh_clean', output='impervh_clean1',use='attr',attribute_column='value')</div></div><div><br></div><div>Any suggestion to establish db connection for vector map "impervh_clean"?</div><div><br></div><div>Regards,</div><div><br></div><div>Alassane</div><div><br></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Oct 18, 2016 at 11:29 PM, Anna Petrášová <span dir="ltr"><<a href="mailto:kratochanna@gmail.com" target="_blank">kratochanna@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Tue, Oct 18, 2016 at 11:21 PM, alassane toure <<a href="mailto:atourej@gmail.com">atourej@gmail.com</a>> wrote:<br>
> Anna,<br>
> is that the command needed to make the connection? ...<br>
<br>
</span>No, it just shows you the current connection, I was just trying to<br>
analyze the problem.<br>
<div class="HOEnZb"><div class="h5"><br>
<br>
><br>
> db.connect driver=sqlite<br>
> database='$GISDBASE/$LOCATION_<wbr>NAME/$MAPSET/sqlite/sqlite.db'<br>
> db.tables -p<br>
> v.db.connect map=vectormap table=table driver=sqlite \<br>
> database='$GISDBASE/$LOCATION_<wbr>NAME/$MAPSET/sqlite/sqlite.db'<br>
> v.db.connect -p map=vectormap<br>
><br>
><br>
> Thanks,<br>
><br>
> Alassane<br>
><br>
><br>
> On Tue, Oct 18, 2016 at 9:46 PM, Anna Petrášová <<a href="mailto:kratochanna@gmail.com">kratochanna@gmail.com</a>><br>
> wrote:<br>
>><br>
>><br>
>><br>
>> On Tue, Oct 18, 2016 at 9:31 PM, alassane toure <<a href="mailto:atourej@gmail.com">atourej@gmail.com</a>> wrote:<br>
>>><br>
>>> Group,<br>
>>> While executing v.to.rast the following error came up (not present in<br>
>>> earlier 7.0 version)<br>
>>> Your suggestion is appreciated.<br>
>><br>
>><br>
>> Check your database connection for the input vector, it says:<br>
>> "Database connection not defined for layer <1>"<br>
>><br>
>> using v.db.connect -p vector_name<br>
>><br>
>> Anna<br>
>><br>
>>><br>
>>> Thanks<br>
>>> Alassane<br>
>>><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="http://lists.osgeo.org/mailman/listinfo/grass-user" rel="noreferrer" target="_blank">http://lists.osgeo.org/<wbr>mailman/listinfo/grass-user</a><br>
>><br>
>><br>
><br>
</div></div></blockquote></div><br></div>