[GRASS-user] [Getting name of country based on coordinates]

Anna Petrášová kratochanna at gmail.com
Sun Apr 2 15:57:01 PDT 2017


On Sun, Apr 2, 2017 at 5:53 PM, Markus Neteler <neteler at osgeo.org> wrote:
> On Thu, Mar 16, 2017 at 8:29 AM, Ang Sherpa <angsherpa232 at gmail.com> wrote:
>> Thanks,
>>
>> v.what seems to fulfill my objective. However, I am still trying to figure
>> out that how to save its output in variable. Actually, I was developing
>> Grass Gis based app. If I could save the  result in variable then I could
>> use for further anlysis. Any idea?
>
> See the manual: -g
>
> GRASS 7.2.1svn (nc_spm_08_grass7):~ > v.what zipcodes_wake
> coordinates=637502.25,221744.25 -g
> East=637502.25
> North=221744.25
>
> Map=zipcodes_wake
> Mapset=PERMANENT
> Type=Area
> Sq_Meters=130875884.223
> Hectares=13087.588
> Acres=32340.135
> Sq_Miles=50.5315
> Layer=1
> Category=40
>
> This output is easy to parse.
>

or use a Python wrapper around v.what, function vector_what():
https://grass.osgeo.org/grass73/manuals/libpython/script.html#script.vector.vector_what

Anna

> HTH,
> Markus
> _______________________________________________
> grass-user mailing list
> grass-user at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/grass-user


More information about the grass-user mailing list