Re: [GRASS-user] [snap pour point for r.water.outlet]

2017-03-31 Thread Ang Sherpa
Thanks, *Best,* *Ang Dawa Sherpa* On Fri, Mar 31, 2017 at 3:34 PM, Helmut Kudrnovsky wrote: > >Actually when I tried to extract only the x and y with following code it > throws an error "KeyError: 'x'" > > > >s = > >gscript.parse_command(gscript.parse_command('v.report',map='snap_test', > opt

Re: [GRASS-user] python reserved word as parameter

2017-03-30 Thread Ang Sherpa
It worked, Thanks. *Best,* *Ang Dawa Sherpa* On Thu, Mar 30, 2017 at 8:26 PM, Micha Silver wrote: > Use: "from_" > > > > On 03/30/2017 05:27 PM, Ang Sherpa wrote: > > Hi users, > > While using "v.distance" in python script. The first parameter i

[GRASS-user] python reserved word as parameter

2017-03-30 Thread Ang Sherpa
Hi users, While using "v.distance" in python script. The first parameter is "from" which is python reserved keyword and throws error: "There's error in your syntax" *v.distance* [-*pa*] *from*=*name* [*from_layer*=*string*] [*from_type*= *string*[,*string*,...]] *to*=*name* [*to_layer*=*string*]

Re: [GRASS-user] [snap pour point for r.water.outlet]

2017-03-30 Thread Ang Sherpa
x27;x'] *Best,* *Ang Dawa Sherpa* On Thu, Mar 30, 2017 at 3:45 PM, Helmut Kudrnovsky wrote: > Ang Sherpa wrote > > Thanks Johannes, > > > > r.stream.snap does not have attribute table attached and throws an error: > > "DB connection for vector map XXX not defi

Re: [GRASS-user] [snap pour point for r.water.outlet]

2017-03-30 Thread Ang Sherpa
user enter another coordinate. *Best,* *Ang Dawa Sherpa* On Thu, Mar 30, 2017 at 12:06 PM, Ang Sherpa wrote: > Thanks Johannes, > > r.stream.snap does not have attribute table attached and throws an error: > "DB connection for vector map XXX not defined." > > With t

Re: [GRASS-user] [snap pour point for r.water.outlet]

2017-03-29 Thread Ang Sherpa
: > Sorry I ment r.stream.snap... > > -------- Original message > From: Ang Sherpa > Date:30/03/2017 07:32 (GMT+01:00) > To: Johannes Radinger > Cc: Helmut Kudrnovsky , GRASS user list > Subject: Re: [GRASS-user] [snap pour point for r.water.outlet] > > Thanks Johannes,

Re: [GRASS-user] [snap pour point for r.water.outlet]

2017-03-29 Thread Ang Sherpa
Thanks Johannes, Installed. No I have not installed r.stream.order, is it mandatory or ease the process? *Best,* *Ang Dawa Sherpa* On Thu, Mar 30, 2017 at 10:23 AM, Johannes Radinger < johannesradin...@gmail.com> wrote: > Dear Ang Sherpa, > > r.stream.snap is an add-on. So yo

Re: [GRASS-user] [snap pour point for r.water.outlet]

2017-03-29 Thread Ang Sherpa
erpa* *GIS technician - Irrigation Master Plan* *WRPPF - DOI, Nepal Government* *Lalitpur* *contact: 984 007 3861* On Thu, Mar 30, 2017 at 1:03 AM, Helmut Kudrnovsky wrote: > Ang Sherpa wrote > > Hi users, > > > > While using "r.water.outlet" to delineate watershed b

Re: [GRASS-user] [snap pour point for r.water.outlet]

2017-03-29 Thread Ang Sherpa
outlet > > Cheers > Daniel > > [1] - https://grass.osgeo.org/grass72/manuals/r.distance.html > > On Wed, Mar 29, 2017 at 12:55 PM Ang Sherpa > wrote: > >> Hi users, >> >> While using "r.water.outlet" to delineate watershed basin, although the >

[GRASS-user] [snap pour point for r.water.outlet]

2017-03-29 Thread Ang Sherpa
Hi users, While using "r.water.outlet" to delineate watershed basin, although the coordinates of the stream was noted from google earth and fed into "r.water.outlet" module, it produces plain raster. Is there any solution to make sure that the coordinates of outlet point automatically snaps to th

Re: [GRASS-user] [ERROR 4:unable to open EPSG support file gcs.csv]

2017-03-25 Thread Ang Sherpa
Thanks, fixed by adding os.environ['GDAL_DATA'] = r'C:\Program Files\GRASS GIS 7.2.0\share\gdal' at the beginning of the script. *Best,* *Ang Dawa Sherpa* On Sat, Mar 25, 2017 at 6:14 PM, Helmut Kudrnovsky wrote: > Ang Sherpa wrote > > Thanks for attention, >

Re: [GRASS-user] [ERROR 4:unable to open EPSG support file gcs.csv]

2017-03-25 Thread Ang Sherpa
Thanks for attention, Tried everything I could. Any solution to incorporate %GDAL_DATA% in the script, other than to manually adding GDAL_DATA path in system variable? *Best,* *Ang Dawa Sherpa* On Sat, Mar 25, 2017 at 4:02 PM, Helmut Kudrnovsky wrote: > Ang Sherpa wrote > >

Re: [GRASS-user] [ERROR 4:unable to open EPSG support file gcs.csv]

2017-03-25 Thread Ang Sherpa
ep + new_path Still this error persist. ERROR 4:Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. ERROR: Unknown EPSG code 32645 *Best,* *Ang Dawa Sherpa* On Tue, Mar 21, 2017 at 3:36 PM, Ang Sherpa wr

[GRASS-user] [Process ended with error code -1073741515]

2017-03-21 Thread Ang Sherpa
Module import into python script is working fine. However, when I tried to print out the g.region with gscript.run_command('g.region',raster='nep_drain',overwrite=True). It throws the following error. Process ended with non-zero return code -1073741515 Any words would be appreciated. *Best,* *Ang

Re: [GRASS-user] [ERROR 4:unable to open EPSG support file gcs.csv]

2017-03-21 Thread Ang Sherpa
Yes, gcs.csv exists in both machine. Well, I reinstalled Grass 7.2 and it worked. Thanks. *Regards,* *Ang Dawa Sherpa* *GIS technician - Irrigation Master Plan* *WRPPF - DOI, Nepal Government* *Lalitpur* *contact: 984 007 3861* On Tue, Mar 21, 2017 at 3:23 PM, Helmut Kudrnovsky wrote: >

Re: [GRASS-user] [ERROR 4:unable to open EPSG support file gcs.csv]

2017-03-20 Thread Ang Sherpa
Thanks Helmut, I am using standalone-winGRASS 7.2.0 In both my PC and laptop when: echo %GDAL_DATA% is executed in winGRASS-console it shows the same location: c:\Program Files\GRASS GIS 7.2.0\Share\gdal ___ grass-user mailing list grass-user@lists.osge

[GRASS-user] [ERROR 4:unable to open EPSG support file gcs.csv]

2017-03-19 Thread Ang Sherpa
Hi users, I am trying to produce basin shape-file and then save in desktop in new directory with python script. Interestingly, it gets welly executed in my PC as expected. However, with the same script following error is thrown in my laptop. r.to.vect complete ERROR 4:Unable to open EPSG support

[GRASS-user] [hole in vector layer import]

2017-03-16 Thread Ang Sherpa
When I import ESRI shapefile into Grass gis with steps [file - import vector - common import format], some of parcels from layer will be missing. Thus the shapefile will have hole in between once imported in Grass GIS. Did I do something wrong? *Best,* *Ang Dawa Sherpa* ___

Re: [GRASS-user] [vector attribute query]

2017-03-16 Thread Ang Sherpa
Thanks, it worked. *Regards,* *Ang Dawa Sherpa* *GIS technician - Irrigation Master Plan* *WRPPF - DOI, Nepal Government* *Lalitpur* *contact: 984 007 3861* On Thu, Mar 16, 2017 at 6:22 PM, Moritz Lennert < mlenn...@club.worldonline.be> wrote: > On 16/03/17 12:36, Ang Sherpa wrote: &

[GRASS-user] [vector attribute query]

2017-03-16 Thread Ang Sherpa
Hello users, Is it possible to query according to coordinates and return the value of desired column from attribute table as result. v.what allows to query the map, however, could not figure out how to choose the column in attribute table. Eg. In a world shape file having "population" as one of

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

2017-03-16 Thread Ang Sherpa
> country layer and click on the point location to show the details. > > > > > Mail sent from maodono...@gmail.com's personnal www.uStart.org page. > -------- > From : Ang Sherpa > Date : 08:23 > Subject : Re: [GRASS-user] [

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

2017-03-15 Thread Ang Sherpa
s personnal www.uStart.org page. > -------- > From : Ang Sherpa > Date : 07:57 > Subject : [GRASS-user] [Getting name of country based on coordinates] > To : GRASS user list > > > Hi all, > > Is there a way to query or get the name of the country from attribute

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

2017-03-15 Thread Ang Sherpa
Hi all, Is there a way to query or get the name of the country from attribute table of country polygons when users enter the coordinates. For an eg. when the user enter the any random coordinates that belongs to China then the grass gis reads the attributes of polygons of countries and gives a Chi

[GRASS-user] zooming raster before rendering image to png

2017-02-10 Thread Ang Sherpa
Hi, all. Is it possible to zoom the watershed before rendering into png format. The one that I got is too small to view and use for analysis. d.mon start='cairo' output=/path/ d.rast map='basin_54' d.mon stop='cairo' Thanks, *Ang Dawa Sherpa* ___ gras

[GRASS-user] [feature request]

2017-01-11 Thread Ang Sherpa
As per the ticket 3252 https://trac.osgeo.org/grass/ticket/3252 executing d.mon through standalone script seems to have a problem. It would be of great help if Grass developers could help fix this issue emphasizing on synchronous/foreground mode for d.mon. *Ang* ___

Re: [GRASS-user] [pid file issue for d.* ]

2017-01-11 Thread Ang Sherpa
* *contact: 984 007 3861* On Wed, Jan 11, 2017 at 5:07 PM, Markus Neteler wrote: > On Wed, Jan 11, 2017 at 5:38 AM, Ang Sherpa > wrote: > > This is what command shell throws: > > > > Cleaning up temporary files... > > Starting GRASS GIS... > > WARNING: Concurren

[GRASS-user] [pid file issue for d.* ]

2017-01-10 Thread Ang Sherpa
This is what command shell throws: Cleaning up temporary files... Starting GRASS GIS... WARNING: Concurrent mapset locking is not supported on Windows Executing ... Execution of finished. Cleaning up temporary files... C:\Users\WRPPF-A>ERROR: Variable 'LOCATION_NAME' not set Traceback (most rec

Re: [GRASS-user] [d.*] command not executing from standalone script

2017-01-09 Thread Ang Sherpa
*Ang Dawa Sherpa* *GIS technician - Irrigation Master Plan* *WRPPF - DOI, Nepal Government* *Lalitpur* *contact: 984 007 3861* On Sun, Jan 8, 2017 at 6:13 PM, Martin Landa wrote: > Hi, > > 2017-01-08 11:06 GMT+01:00 Ang Sherpa : > > However, still no changes, the [d.*] doesnot starts.

Re: [GRASS-user] [d.*] command not executing from standalone script

2017-01-08 Thread Ang Sherpa
- DOI, Nepal Government* *Lalitpur* *contact: 984 007 3861* On Fri, Jan 6, 2017 at 5:11 PM, Martin Landa wrote: > Hi, > > 2017-01-06 6:22 GMT+01:00 Ang Sherpa : > > I tried to launch the script through the link you provided, however, it > > throws and import error stating "

Re: [GRASS-user] [d.*] command not executing from standalone script

2017-01-04 Thread Ang Sherpa
ail. Will be looking forward to hearing from you. *Regards,* *Ang Dawa Sherpa* *GIS technician - Irrigation Master Plan* *WRPPF - DOI, Nepal Government* *Lalitpur* *contact: 984 007 3861* On Tue, Jan 3, 2017 at 5:18 PM, Martin Landa wrote: > Hi, > > 2017-01-03 12:13 GMT+01:00 Ang Sher

[GRASS-user] [d.*] command not executing from standalone script

2017-01-02 Thread Ang Sherpa
I am trying to develop Grass GIS based app for hydrological analysis. Environment setting for GRASS GIS is working fine. Module import is working well. However, following line of code does not open display window. gscript.run_command('d.mon',start='wx1',resolution='1') This code neither throws an

[GRASS-user] [d.rast] not working with standalone script

2017-01-02 Thread Ang Sherpa
I am stuck with d.rast command. Don't know what am I missing here? The script is attached herewith this mail. *Regards,* *Ang Dawa Sherpa* *GIS technician - Irrigation Master Plan* *WRPPF - DOI, Nepal Government* *Lalitpur* *contact: 984 007 3861* import os import sys gisdbase = os.path.join(os.pa