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

Markus Neteler neteler at osgeo.org
Sun Apr 2 14:53:17 PDT 2017


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.

HTH,
Markus


More information about the grass-user mailing list