Re: [GRASS-dev] Write array to (point) attribute table

2015-10-01 Thread Michel Wortmann
Hi Paulo, I had the same problem some time ago. I am using pandas for a lot of things and discovered the quickest way to append a column to a vector table is using pandas' .to_sql dataframe method. Here is my full function for it: import pandas as pa dataframe = pa.DataFrame( ... ) def

Re: [GRASS-dev] installing v.kriging addon fails

2015-10-01 Thread Paulo van Breugel
On 29-09-15 15:46, Anna Petrášová wrote: On Tue, Sep 29, 2015 at 8:25 AM, Moritz Lennert > wrote: On 29/09/15 11:09, Paulo van Breugel wrote: Installing v.kriging (on GRASS dev, Linux) addons fails with

Re: [GRASS-dev] installing v.kriging addon fails

2015-10-01 Thread Markus Neteler
On Thu, Oct 1, 2015 at 3:26 PM, Paulo van Breugel wrote: > > > On 01-10-15 14:36, Markus Neteler wrote: >> >> On Thu, Oct 1, 2015 at 12:51 PM, Paulo van Breugel >> wrote: >>> >>> I already had GRASS compiled with both blas and lapack, so that

Re: [GRASS-dev] installing v.mapcalc fails

2015-10-01 Thread Glynn Clements
Moritz Lennert wrote: > > yylex.c:9:27: fatal error: v.mapcalc.tab.h: No such file or directory > > > >#include "v.mapcalc.tab.h" > > > > ^ > > > > compilation terminated. > > > > make: *** [OBJ.x86_64-unknown-linux-gnu/yylex.o] Error 1 > > > > ERROR: Compilation

Re: [GRASS-dev] [GRASS GIS] #2723: error when running v.krige

2015-10-01 Thread GRASS GIS
#2723: error when running v.krige --+- Reporter: pvanbosgeo | Owner: grass-dev@… Type: defect | Status: closed Priority: normal | Milestone: 7.0.1 Component: Default |Version: svn-trunk Resolution:

Re: [GRASS-dev] installing v.kriging addon fails

2015-10-01 Thread Markus Neteler
On Thu, Oct 1, 2015 at 12:51 PM, Paulo van Breugel wrote: > I already had GRASS compiled with both blas and lapack, so that doesn't seem > to help in my case (just tried again, still no luck). You may try to checkout the Addon code from SVN and compile there: cd

Re: [GRASS-dev] installing v.kriging addon fails

2015-10-01 Thread Paulo van Breugel
On 01-10-15 14:36, Markus Neteler wrote: On Thu, Oct 1, 2015 at 12:51 PM, Paulo van Breugel wrote: I already had GRASS compiled with both blas and lapack, so that doesn't seem to help in my case (just tried again, still no luck). You may try to checkout the Addon

Re: [GRASS-dev] How to get data from a location where the user does not own any mapset?

2015-10-01 Thread Glynn Clements
Radim Blazek wrote: > >> Perfect, that is what I need. Why GRASS_SKIP_MAPSET_OWNER_CHECK should > >> not be set by programs for read only access? > > > > If you only need to read a mapset, you shouldn't need to make it the > > current mapset, nor should you try. > > The mapset I need to read

Re: [GRASS-dev] installing v.kriging addon fails

2015-10-01 Thread Paulo van Breugel
On 01-10-15 15:35, Vaclav Petras wrote: On Thu, Oct 1, 2015 at 9:29 AM, Markus Neteler > wrote: > > > In file included from geostat.c:1:0: > > > > local_proto.h:72:3: error: unknown type name ‘mat_struct’ > > > >mat_struct *trend; > > > >

Re: [GRASS-dev] installing v.kriging addon fails

2015-10-01 Thread Vaclav Petras
On Thu, Oct 1, 2015 at 9:29 AM, Markus Neteler wrote: > > > In file included from geostat.c:1:0: > > > > local_proto.h:72:3: error: unknown type name ‘mat_struct’ > > > >mat_struct *trend; > > > >^ > > ok - next check: > > > cd /where/your/grass/is/lib > > ldd

[GRASS-dev] no addons metadata

2015-10-01 Thread Paulo van Breugel
The same problem as reported earlier is back it seems, no addons metadata available. This was a problem for 7.1 I think? WARNING: Unable to parse 'http://grass.osgeo.org/addons/grass7/modules.xml': no element found: line 105, column 0 WARNING: No addons metadata available.

Re: [GRASS-dev] Write array to (point) attribute table

2015-10-01 Thread Vaclav Petras
On Thu, Oct 1, 2015 at 11:28 AM, Paulo van Breugel wrote: > with VectorTopo('testB', mode='rw') as vectormap: At the and it makes sense. 'w' removes the vectors and starts over. 'rw' keep the file but ones it for writing. Perhaps 'a' would make better sense in this

Re: [GRASS-dev] Write array to (point) attribute table

2015-10-01 Thread Paulo van Breugel
Hi Michel, Thanks! I think I got the suggestions by Anna, Pietro and Moritz working, but this certainly looks like an handy function to have at hand. One possible disadvantage if using this in a script to be shared with others is that it would add an dependency on pandas, wouldn't it?

Re: [GRASS-dev] no addons metadata

2015-10-01 Thread Vaclav Petras
On Thu, Oct 1, 2015 at 10:42 AM, Paulo van Breugel wrote: > The same problem as reported earlier is back it seems, no addons metadata > available. This was a problem for 7.1 I think? > > WARNING: Unable to parse > >

Re: [GRASS-dev] Write array to (point) attribute table

2015-10-01 Thread Pietro
On Thu, Oct 1, 2015 at 10:01 AM, Michel Wortmann wrote: > Hi Paulo, > I had the same problem some time ago. I am using pandas for a lot of things > and discovered the quickest way to append a column to a vector table is > using pandas' .to_sql dataframe method. Here is my

Re: [GRASS-dev] no addons metadata

2015-10-01 Thread Martin Landa
Hi, 2015-10-01 17:51 GMT+02:00 Vaclav Petras : > It seems like problem with generating the file on the server side. If you > visit the URL, you get: > > XML Parsing Error: no element found > Location: https://grass.osgeo.org/addons/grass7/modules.xml > Line Number 105,

Re: [GRASS-dev] Write array to (point) attribute table

2015-10-01 Thread Paulo van Breugel
On 01-10-15 09:15, Moritz Lennert wrote: On 01/10/15 00:05, Paulo van Breugel wrote: On 30-09-15 17:52, Paulo van Breugel wrote: On 30-09-15 17:47, Anna Petrášová wrote: On Wed, Sep 30, 2015 at 11:20 AM, Paulo van Breugel wrote: On 30-09-15 16:18, Anna

Re: [GRASS-dev] r.watershed at poles

2015-10-01 Thread Markus Neteler
On Thu, Oct 1, 2015 at 7:10 AM, Andy Wickert wrote: > Dear GRASS developers, > > Would you know of an easy way to make r.watershed work in latitude/longitude > over the pole of a planet (in my case, over Antarctica) by specifying that > the polar boundary in lat/lon is

Re: [GRASS-dev] r.watershed at poles

2015-10-01 Thread Andy Wickert
On Thu, Oct 1, 2015 at 3:52 PM, Markus Neteler wrote: > On Thu, Oct 1, 2015 at 7:10 AM, Andy Wickert > wrote: > > Dear GRASS developers, > > > > Would you know of an easy way to make r.watershed work in > latitude/longitude > > over the pole of a

Re: [GRASS-dev] Write array to (point) attribute table

2015-10-01 Thread Moritz Lennert
On 01/10/15 00:05, Paulo van Breugel wrote: On 30-09-15 17:52, Paulo van Breugel wrote: On 30-09-15 17:47, Anna Petrášová wrote: On Wed, Sep 30, 2015 at 11:20 AM, Paulo van Breugel wrote: On 30-09-15 16:18, Anna Petrášová wrote: On Wed, Sep 30, 2015

Re: [GRASS-dev] installing v.mapcalc fails

2015-10-01 Thread Paulo van Breugel
On 29-09-15 14:12, Moritz Lennert wrote: On 29/09/15 13:14, Markus Neteler wrote: On Tue, Sep 29, 2015 at 11:11 AM, Paulo van Breugel wrote: On 28-09-15 10:48, Markus Neteler wrote: ... GRASS 7.1.svn (latlon):~ > g.extension v.mapcalc Fetching from GRASS GIS