<div dir="ltr">correct.  there was no feature in "impervh_clean" !</div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Oct 19, 2016 at 12:01 AM, 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:56 PM, alassane toure <<a href="mailto:atourej@gmail.com">atourej@gmail.com</a>> wrote:<br>
> Anna,<br>
</span><span class="">> I run the command you suggested and there is indeed a connection problem.<br>
> How do i fix it?  Here are the commands i run in a grass/python script:<br>
><br>
> criteria="(value=255) and (area_sf>"+sys.argv[5]+")"<br>
> grass.run_command('v.extract', input='imperv',<br>
> output='impervh_clean',type='<wbr>area',where=criteria)<br>
><br>
> Here is the command yielding the database connection error...<br>
><br>
> grass.run_command('v.to.rast', input='impervh_clean',<br>
> output='impervh_clean1',use='<wbr>attr',attribute_column='value'<wbr>)<br>
><br>
> Any suggestion to establish db connection for vector map "impervh_clean"?<br>
<br>
</span>That's hard to say from this, check whether the v.extract gives any<br>
warning and if it extracts any features.<br>
<div class="HOEnZb"><div class="h5"><br>
><br>
> Regards,<br>
><br>
> Alassane<br>
><br>
><br>
> On Tue, Oct 18, 2016 at 11:29 PM, Anna Petrášová <<a href="mailto:kratochanna@gmail.com">kratochanna@gmail.com</a>><br>
> wrote:<br>
>><br>
>> On Tue, Oct 18, 2016 at 11:21 PM, alassane toure <<a href="mailto:atourej@gmail.com">atourej@gmail.com</a>><br>
>> wrote:<br>
>> > Anna,<br>
>> > is that the command needed to make the connection? ...<br>
>><br>
>> No, it just shows you the current connection, I was just trying to<br>
>> analyze the problem.<br>
>><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>
>> ><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>><br>
>> >> 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>
><br>
><br>
</div></div></blockquote></div><br></div>