[GRASS-user] Importing vector points

Markus Metz markus.metz.giswork at gmail.com
Wed Jun 1 23:55:42 PDT 2016


On Thu, Jun 2, 2016 at 2:20 AM, Anna Petrášová <kratochanna at gmail.com> wrote:
> 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|
>
> It might be missing category, because based on this:
> https://trac.osgeo.org/grass/browser/grass/trunk/vector/v.what.rast/main.c#L207
>
> points without category are skipped.

The id values in the input are too large, e.g. 251241080385301, this
causes integer overflow, categories will be negative which is invalid,
thus points appear to have no category.

Markus M

>
> Best,
> Anna
>
>>
>> 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.
>> _______________________________________________
>> grass-user mailing list
>> grass-user at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/grass-user
> _______________________________________________
> 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