Re: [GRASS-user] Uploading NumPy array as a new column to a vector map

2019-02-16 Thread César Augusto Ramírez Franco
On Thu, Feb 14, 2019, 19:25 Daniel Victoria Never tried it but you got me curious. > > It looks simpler to define a new function or the database using python > sqlite3 libs > > > https://docs.python.org/2/library/sqlite3.html#sqlite3.Connection.create_function > > Cheers > Thanks for the

Re: [GRASS-user] Uploading NumPy array as a new column to a vector map

2019-02-16 Thread César Augusto Ramírez Franco
On Fri, Feb 15, 2019, 09:17 Markus Neteler Hi, > > Am Do., 14. Feb. 2019, 15:50 hat César Augusto Ramírez Franco < > caesar...@gmail.com> geschrieben: > >> Greetings, >> >> I have a municipality polygon layer with a poverty index (percent) and a >> population count, I'm multiplying them to

Re: [GRASS-user] Uploading NumPy array as a new column to a vector map

2019-02-16 Thread César Augusto Ramírez Franco
On Fri, Feb 15, 2019, 06:01 Micha Silver > On 2/14/19 4:49 PM, César Augusto Ramírez Franco wrote: > > Greetings, > > I have a municipality polygon layer with a poverty index (percent) and a > population count, I'm multiplying them to visualize the vulnerability for > each municipality, due to

Re: [GRASS-user] Uploading NumPy array as a new column to a vector map

2019-02-15 Thread Markus Neteler
Hi, Am Do., 14. Feb. 2019, 15:50 hat César Augusto Ramírez Franco < caesar...@gmail.com> geschrieben: > Greetings, > > I have a municipality polygon layer with a poverty index (percent) and a > population count, I'm multiplying them to visualize the vulnerability for > each municipality, due to

Re: [GRASS-user] Uploading NumPy array as a new column to a vector map

2019-02-15 Thread Micha Silver
On 2/14/19 4:49 PM, César Augusto Ramírez Franco wrote: Greetings, I have a municipality polygon layer with a poverty index (percent) and a population count, I'm multiplying them to

Re: [GRASS-user] Uploading NumPy array as a new column to a vector map

2019-02-14 Thread Daniel Victoria
Never tried it but you got me curious. It looks simpler to define a new function or the database using python sqlite3 libs https://docs.python.org/2/library/sqlite3.html#sqlite3.Connection.create_function Cheers On Thu, Feb 14, 2019 at 12:50 PM César Augusto Ramírez Franco <

[GRASS-user] Uploading NumPy array as a new column to a vector map

2019-02-14 Thread César Augusto Ramírez Franco
Greetings, I have a municipality polygon layer with a poverty index (percent) and a population count, I'm multiplying them to visualize the vulnerability for each municipality, due to the distribution of that new variable I want to compute the logarithm, which is not possible in sqlite, so I