[GRASS-user] Importing vector points

Ken Mankoff mankoff at gmail.com
Wed Jun 1 14:49:53 PDT 2016


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. 

Thanks,

  -k.


More information about the grass-user mailing list