[GRASS-user] Importing vector points

Anna Petrášová kratochanna at gmail.com
Wed Jun 1 14:51:44 PDT 2016


On Wed, Jun 1, 2016 at 5:49 PM, Ken Mankoff <mankoff at gmail.com> wrote:
> Hi GRASS list,
>
> I'm trying to import some vectors and use them to look up values on a raster using v.what.rast. I'm using GRASS 7.0.3. I'm getting the error,
>
>> No features of type (point) found in vector map <wells>
>
> Which is un-googleable, but implies that my vector db doesn't have points. I'm creating the vector like this:
>
> v.in.ascii --o format=point input=lon_lat_x_y_depth_id.csv output=wells separator=, x=3 y=4 z=0 cat=6 skip=1 columns="lon double precision, lat double precision, x double precision, y double precision, z double precision, id"
>
> db.select table=wells | head
>> lon|lat|x|y|z|id|L1
>> -80.648|25.21|1754704.77|-1225843.51|12.77|251241080385301|
>> -80.566|25.321|1760685.92|-1211916.08|59|251922080340701|
>> -80.566|25.338|1760275.96|-1210078.02|38|252007080335701|
>
> v.db.addcolumn map=wells column="L1 double precision"
> v.what.rast map=wells raster=L130 column=L1
>
>
> It seems like wells should be imported as point from v.in.ascii. I've tried "forcing" it with "format=point". I've tried converting after import with v.to.point. Nothing has worked yet.

what does v.info say?

Anna

>
> Thanks,
>
>   -k.
> _______________________________________________
> grass-user mailing list
> grass-user at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/grass-user


More information about the grass-user mailing list