Re: [GRASS-user] db.connect/db.in.ogr Questions

2011-03-11 Thread Micha Silver
On 03/11/2011 02:01 AM, Rich Shepard wrote: On Thu, 10 Mar 2011, Hamish wrote: set 'g.gisevn set=DEBUG=5' to find the data line it dies on, if you don't already know that. (empty records was it?) Hamish, Already did that and posted the results. The suggestion was to use the postgres

Re: [GRASS-user] v.in.ascii: DBMI-DBF driver error

2011-03-11 Thread Nick Jachowski
Now it says: GRASS 6.4.0 (latlong):~/Desktop/nick/grassdata/data db.connect -p driver:dbf database:/home/nick/Desktop/nick/grassdata/latlong/PERMANENT/dbf/ schema: group: Previously it said : GRASS 6.4.0 (latlong):~/Desktop/nick/grassdata/data db.connect -p driver:dbf

[GRASS-user] GRASS'c Python core function to use as g.mlist

2011-03-11 Thread Jenny Turner
Greetings I'm doing a GRASS Python Script where I need to list a set of raster maps but I'm not using its exact name but a basic regular expression (r flag in g.mlist function). So I want to find a list of rasters with output on its name: p=grass.mlist_grouped ('rast', pattern='output',

[GRASS-user] Straight-line distance of raster from point

2011-03-11 Thread Joshua Arnott
Hi grass-users, For each cell in a raster I'd like to calculate the straight line distance (from it's centre) to a vector point, with the output stored as the value of a new raster. I've had a look through the manual and the archives, but I can't find any obvious way to do this. TIA, Josh.

Re: [GRASS-user] using try/except with grass.mapcalc in a Python Script

2011-03-11 Thread Jenny Turner
Hello Glynn What I want to do is run grass.mapcalc like this: try: grass.mapcalc() except: grass.fatal(_(An error occurred ...)) I know that this doesn't work. What I want to catch is not syntax erros but errors such as an raster input map that does not exist and is being used in

Re: [GRASS-user] v.in.ascii: DBMI-DBF driver error

2011-03-11 Thread Markus Neteler
On Fri, Mar 11, 2011 at 10:46 AM, Nick Jachowski njachow...@gmail.com wrote: Now it says: GRASS 6.4.0 (latlong):~/Desktop/nick/grassdata/data db.connect -p driver:dbf database:/home/nick/Desktop/nick/grassdata/latlong/PERMANENT/dbf/ schema: group: ... which works. Previously it said :

Re: [GRASS-user] db.connect/db.in.ogr Questions

2011-03-11 Thread Rich Shepard
On Fri, 11 Mar 2011, Micha Silver wrote: Also make sure you're clear on the distinction in GRASS between the geography of vector layers and their attributes. GRASS always stores the vector geography in it's own internal format (enforcing topology, etc) and there's no need from GRASS's point of

Re: [GRASS-user] GRASS'c Python core function to use as g.mlist

2011-03-11 Thread Ricardo Filipe Soares Garcia da
Hi Jenny Long story short: use your command like this (note the asterisk on the 'pattern' variable): # python code p=grass.mlist_grouped ('rast', pattern='output*', mapset='Mapping') I am using the Ipython shell to script grass. It has a cool feature, that if you type the name of a function

[GRASS-user] Not accepted characters for mapset name

2011-03-11 Thread Nikos Dumakis
Greetings I'm trying to set a Location and a Mapset organization. I would like to know if there is a list of unnacepted characters for mapset names. For instance _ is accepted? Do I get any conficts with this? Thanks Best regards, Nikos ___ grass-user

Re: [GRASS-user] GRASS 6.4.1RC1 wxPython problems on Solaris

2011-03-11 Thread Glynn Clements
Ulli Wölfel wrote: Btw. in order to get it to compile, I had to edit include/Make/ Platform.make and set INTLLIB = -lintl Maybe this should be fixed in the configure script. The configure script sets INTLLIB according to the location of the gettext() function. If gettext() is available in

Re: [GRASS-user] using try/except with grass.mapcalc in a Python Script

2011-03-11 Thread Glynn Clements
Jenny Turner wrote: What I want to do is run grass.mapcalc like this: try: grass.mapcalc() except: grass.fatal(_(An error occurred ...)) grass.mapcalc() already calls grass.fatal() if r.mapcalc exits with a non-zero exit code (which will happen in the case of a syntax error or if

[GRASS-user] Not accepted characters for mapset name

2011-03-11 Thread Helmut Kudrnovsky
I'm trying to set a Location and a Mapset organization. I would like to know if there is a list of unnacepted characters for mapset names. For instance _ is accepted? Do I get any conficts with this? some hints are in http://trac.osgeo.org/grass/browser/grass/trunk/lib/gis/legal_name.c#L33 and

Re: [GRASS-user] Re: winGrass daily builds - available?

2011-03-11 Thread Martin Landa
Hi, 2011/3/10 MORREALE Jean Roc jr.morre...@enoreth.net: nightly builds are ready for wingrass64svn: http://josef.fsv.cvut.cz/wingrass/grass64/ wingrass65: http://josef.fsv.cvut.cz/wingrass/grass65/ wingrass70: http://josef.fsv.cvut.cz/wingrass/grass70/ all also findable in the overview:

[GRASS-user] interlis import

2011-03-11 Thread Patrick S.
Dear List, does someone have experience in importing the topological format INTERLIS to GRASS? It seems to need an .ili file, that will define polygons, lines and points, but I don't see how to integrate this one in the v.in.ogr command. I managed to use ogr2ogr and tested conversion to

[GRASS-user] Not accepted characters for mapset name

2011-03-11 Thread Helmut Kudrnovsky
some hints are in http://trac.osgeo.org/grass/browser/grass/trunk/lib/gis/legal_name.c#L33 and have also a look at http://ascii-table.com/ some additional informations regarding different operating systems: http://msdn.microsoft.com/en-us/library/aa365247%28v=vs.85%29.aspx

Re: [GRASS-user] GRASS 6.4.1RC1 wxPython problems on Solaris

2011-03-11 Thread Ulli Wölfel
Am 11.03.2011 um 18:30 schrieb Glynn Clements: Ulli Wölfel wrote: Btw. in order to get it to compile, I had to edit include/Make/ Platform.make and set INTLLIB = -lintl Maybe this should be fixed in the configure script. The configure script sets INTLLIB according to the location of the

[GRASS-user] db.out.ogr: Syntax Correction

2011-03-11 Thread Rich Shepard
I want to migrate attribute data from the internal dbf to an external postgres table and thought that db.out.ogr was the proper module. However, following the example on the 6.5 manual page does not work for me. Manually breaking lines that were continuous in the terminal, he example shows:

Re: [GRASS-user] interlis import

2011-03-11 Thread Andreas Neumann
Hi Patrick, I wouldn't try to open Interlis files directly in GRASS. You are better off converting them to an intermediate format or database, e.g. spatialite, PostgreSQL, GML, etc. and work from there. If you open the files directly, performance will be bad. btw: Interlis consists of two

[GRASS-user] hydrological modelling in GRASS - Create Watershed by one point

2011-03-11 Thread Marcello Benigno
Hi All, I´m beginner in Grass and need work with hydrological Analysis. Is it possible define a watershed from one point (x,y) like ArcHidro Extension? I didn´t find this tool in Grass. Thanks in advance and sorry for my bad English. -- *Marcello Benigno B. de Barros Filho* Prof. do Curso

Re: [GRASS-user] hydrological modelling in GRASS - Create Watershed by one point

2011-03-11 Thread Markus Neteler
On Sat, Mar 12, 2011 at 12:28 AM, Marcello Benigno benigno.marce...@gmail.com wrote: Hi All, I´m beginner in Grass and need work with hydrological Analysis. Is it possible define a watershed from one point (x,y) like ArcHidro Extension? I didn´t find this tool in Grass. See

[GRASS-user] Error on wxpython GUI startup

2011-03-11 Thread Chuck Killian
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 All, New to GRASS. Installed 6.4.0-2 on Ubuntu Maverick 10.10 from Synaptics. Works fine using tcltk interface. Issue is that when I run the command g.gui wxpython I get the

Re: [GRASS-user] Straight-line distance of raster from point

2011-03-11 Thread Hamish
Joshua wrote: For each cell in a raster I'd like to calculate the straight line distance (from it's centre) to a vector point, with the output stored as the value of a new raster. I've had a look through the manual and the archives, but I can't find any obvious way to do this. just a single