[prev in list] [next in list] [prev in thread] [next in thread]
List: grass-user
Subject: Re: [GRASS-user] v.to.rast error in version 7.0.6svn
From: alassane toure <atourej () gmail ! com>
Date: 2016-10-19 4:13:53
Message-ID: CAC0_Kaf86KHjajHR5rfo7cgYdrEGvH0iApXufiWak0guTD8Hvw () mail ! gmail ! com
[Download RAW message or body]
[Attachment #2 (multipart/alternative)]
correct. there was no feature in "impervh_clean" !
On Wed, Oct 19, 2016 at 12:01 AM, Anna Petrášová <kratochanna@gmail.com>
wrote:
> On Tue, Oct 18, 2016 at 11:56 PM, alassane toure <atourej@gmail.com>
> wrote:
> > Anna,
> > 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:
> >
> > criteria="(value=255) and (area_sf>"+sys.argv[5]+")"
> > grass.run_command('v.extract', input='imperv',
> > output='impervh_clean',type='area',where=criteria)
> >
> > Here is the command yielding the database connection error...
> >
> > grass.run_command('v.to.rast', input='impervh_clean',
> > output='impervh_clean1',use='attr',attribute_column='value')
> >
> > Any suggestion to establish db connection for vector map "impervh_clean"?
>
> That's hard to say from this, check whether the v.extract gives any
> warning and if it extracts any features.
>
> >
> > Regards,
> >
> > Alassane
> >
> >
> > On Tue, Oct 18, 2016 at 11:29 PM, Anna Petrášová <kratochanna@gmail.com>
> > wrote:
> >>
> >> On Tue, Oct 18, 2016 at 11:21 PM, alassane toure <atourej@gmail.com>
> >> wrote:
> >> > Anna,
> >> > is that the command needed to make the connection? ...
> >>
> >> No, it just shows you the current connection, I was just trying to
> >> analyze the problem.
> >>
> >>
> >> >
> >> > db.connect driver=sqlite
> >> > database='$GISDBASE/$LOCATION_NAME/$MAPSET/sqlite/sqlite.db'
> >> > db.tables -p
> >> > v.db.connect map=vectormap table=table driver=sqlite \
> >> >
> >> > database='$GISDBASE/$LOCATION_NAME/$MAPSET/sqlite/sqlite.db'
> >> > v.db.connect -p map=vectormap
> >> >
> >> >
> >> > Thanks,
> >> >
> >> > Alassane
> >> >
> >> >
> >> > On Tue, Oct 18, 2016 at 9:46 PM, Anna Petrášová <
> kratochanna@gmail.com>
> >> > wrote:
> >> >>
> >> >>
> >> >>
> >> >> On Tue, Oct 18, 2016 at 9:31 PM, alassane toure <atourej@gmail.com>
> >> >> wrote:
> >> >>>
> >> >>> Group,
> >> >>> While executing v.to.rast the following error came up (not present
> in
> >> >>> earlier 7.0 version)
> >> >>> Your suggestion is appreciated.
> >> >>
> >> >>
> >> >> Check your database connection for the input vector, it says:
> >> >> "Database connection not defined for layer <1>"
> >> >>
> >> >> using v.db.connect -p vector_name
> >> >>
> >> >> Anna
> >> >>
> >> >>>
> >> >>> Thanks
> >> >>> Alassane
> >> >>>
> >> >>> _______________________________________________
> >> >>> grass-user mailing list
> >> >>> grass-user@lists.osgeo.org
> >> >>> http://lists.osgeo.org/mailman/listinfo/grass-user
> >> >>
> >> >>
> >> >
> >
> >
>
[Attachment #5 (text/html)]
<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>
[Attachment #6 (text/plain)]
_______________________________________________
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic