Re: [GRASS-user] Error while executing: 'CREATE TEMPORARY TABLE...

2019-03-14 Thread st_kiefer
Hi Jamille, just for couriosity. How many columns holds the vectorset? In fact from a database perspective I would rather choose to keep only geometry-related data or metadata direct with the vectorset. Concerning the column names I would suspect there rather should be a bunch of attribute tabl

Re: [GRASS-user] How to generate a vector graphics file from GRASS CLI?

2019-02-04 Thread st_kiefer
Hi Ken, unfotunately i have not tested that so far, but outside grass I used virtual raster many times for this purpose. You might try to harness r.buildvrt to combine different raster-layer (or have a look for GDAL .vrt-files). So i use this to keep smal raster files but get large combined exte

Re: [GRASS-user] How to generate a vector graphics file from GRASS CLI?

2019-01-29 Thread st_kiefer
Give it a try. ps.map is not that complicated. The manual page even offers an out of the box template for instant results (just scroll to the end). And if you get familiar with that tool you can produce very convincing graphics for publications, with graphically additions of your liking. cheers

Re: [GRASS-user] How to generate a vector graphics file from GRASS CLI?

2019-01-29 Thread st_kiefer
Hi Ken, have you considered using ps.map? https://grass.osgeo.org/grass76/manuals/ps.map.html regards Stefan > Ken Mankoff hat am 29. Januar 2019 um 08:43 geschrieben: > > > Hi, > > I'm trying to generate a vector graphics file (PDF, but EPS or PS is fine) > from the GRASS CLI. I'd like to ha

Re: [GRASS-user] map calculator in python loop

2018-12-13 Thread st_kiefer
Hi Alessandro, it would be great, if you also comunicate the actual solution, i.e. the proper "g.list"-command, or where you made the mistake. The mapcalc-call seems not to bee what caused the troubles. If someone runs into the same trouble as you, he would have the right hint immediately. rega

Re: [GRASS-user] map calculator in python loop

2018-12-12 Thread st_kiefer
Hi Alessandro, actually, I have no experience and no idea of the scripting modul of grass. But I believe you need something like this: script.core.list_strings(type, pattern=None, mapset=None, exclude=None, flag='')[source] List of elements as strings. Returns the output from running

Re: [GRASS-user] Phyton loop for IDW surfaces

2018-11-19 Thread st_kiefer
Hi, if you just copy-pasted you code, then it seems the third Module-call is not indented, i.e. is not executed in the loop. Regards. Stefan > francesco sapienza hat am 20. November > 2018 um 04:21 geschrieben: > > > Hello!! > I'm trying to run a loop to cross validate my IDW surfaces. The

Re: [GRASS-user] SQL query in python scripts using v.to.rast

2018-11-09 Thread st_kiefer
Hi Alessandro, seems you oversaw a typo: gscript.run_command ("v.to.rast" , input = "road_clip" , type = "line" , where ="type"=typ , output = types, use = "attr" , attribute_column = "cat") where ="type"=typ schould rather be where ="type=%s"%typ Regards. Stefan > Alessandro Sebastiani

Re: [GRASS-user] Finding why postgres database cannot be opened

2018-11-08 Thread st_kiefer
Hi Rich, to connect the database tabel to your map you have to specify the postgres connection with v.db.connect as well: v.db.connect map=stations driver=pg database="host=localhost,dbname=willamette-river-hg" table= key= Consider that the have to be different from the name of the mapset, i

Re: [GRASS-user] Finding why postgres database cannot be opened

2018-11-08 Thread st_kiefer
Hi Rich, if you use a postgres database (driver=pg) you have to specify the full connection string to the database. You can see this in the manual for db.connect (look for PostgreSQL): " db.connect driver=pg database="host=myserver.itc.it,dbname=mydb" ..." I.e. if the db is on your local machin

Re: [GRASS-user] v.colors usage [UPDATE]

2018-11-06 Thread st_kiefer
Hi Rich, are there any entries in the table with bin_col is empty, i.e. null? I am not sure in this context, but I know from other cases that database driver failed in recognizing the datatype of a field while checking the first dataset in the table and the field was not set (i.e. null). Regard

Re: [GRASS-user] v.to.db: values not added to table

2018-11-05 Thread st_kiefer
Hi Rich, do you still have trouble filling the columns? You probably should give also the type of the feature for the query, like type=point. v.to.db map=stations op=coor like type=point col=easting,northing units=meters --o If this is not successfull you might have to (re)build topology (v. cl

Re: [GRASS-user] Migrating to new RDBMS

2018-10-31 Thread st_kiefer
The reason I ask is because you have to configure authentication and enable remote access to connect to the database from an application. For me I had to do that to use PG with GRASS. psql connects via trusted connection because user postgres connects to the DB from local machine. Postgres conne

Re: [GRASS-user] Migrating to new RDBMS

2018-10-31 Thread st_kiefer
Hi, is it possible to connect to the DB with PGAdmin? Resp. is remote access enabled? see https://blog.bigbinary.com/2016/01/23/configure-postgresql-to-allow-remote-connection.html https://www.postgresql.org/docs/9.1/static/auth-pg-hba-conf.html Regards. Stefan > Rich Shepard hat am 31. Oktob

Re: [GRASS-user] g.gui.tplot opens plot when exporting csv from cli

2018-10-12 Thread st_kiefer
Hi, you might try to add the following line in before the call of g.gui.tplot in your script: setenv DISPLAY /dev/null This sends the gui to nowhere and is not visible and destroyed imediately hence. regards Stefan > Margherita Di Leo hat am 12. Oktober 2018 um 10:39 > geschrieben: > > >