Stephen Sefick | 1 Feb 13:42
Picon
Favicon

Merge vector table with .dbf file [NHDPlus]

All:

I have the national hydrography dataset plus [NHDPlus].  The data came 
with a rather limited table of information by design.  I would like to 
add a table with stream line attributes to the vector table.  There is a 
common ID called COMID.  I just want to merge the two tables together on 
COMID.  How do I do this?  I have thought of just merging the two tables 
together pre-import?  Many thanks for any help.

-- 
Stephen Sefick
**************************************************
Auburn University
Biological Sciences
331 Funchess Hall
Auburn, Alabama
36849
**************************************************
sas0025 <at> auburn.edu
http://www.auburn.edu/~sas0025
**************************************************

Let's not spend our time and resources thinking about things that are so little or so large that all they
really do for us is puff us up and make us feel like gods.  We are mammals, and have not exhausted the annoying
little problems of being mammals.

                                 -K. Mullis

"A big computer, a complex algorithm and a long time does not equal science."

(Continue reading)

Stephen Sefick | 1 Feb 13:52
Picon
Favicon

Re: Merge vector table with .dbf file [NHDPlus]

The data table I would like to merge is in .dbf format.
many thanks,

-- 
Stephen Sefick
**************************************************
Auburn University
Biological Sciences
331 Funchess Hall
Auburn, Alabama
36849
**************************************************
sas0025 <at> auburn.edu
http://www.auburn.edu/~sas0025
**************************************************

Let's not spend our time and resources thinking about things that are so little or so large that all they
really do for us is puff us up and make us feel like gods.  We are mammals, and have not exhausted the annoying
little problems of being mammals.

                                 -K. Mullis

"A big computer, a complex algorithm and a long time does not equal science."

                               -Robert Gentleman

_______________________________________________
grass-user mailing list
grass-user <at> lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user
(Continue reading)

Gabriele N. | 1 Feb 13:57
Picon
Favicon

Re: i.pr --> g.extension and compiling error on ubuntu 11.10 64 bit


hamish-2 wrote
> 
> Gabriele wrote:
>> I installed but I have the same error.
>> With g.extension I can install other add-ons (eg
>> i.landsat.acca) but not i.pr
> 
> but are they actually on the disk somewhere,
> slightly in the wrong place?
> 
> i.e. if you look in $GRASS_ADDON_PATH/ is there
> a bin/ dir in there that has them? if so, just
> move them into the $GRASS_ADDON_PATH dir manually.
> 
> (the automatic move fails as the module names do
> not match the directory name, same trouble with
> gipe, mcda, ...)
> 

Ciao Hamish, I do not understand what you said:) but I did the following:
I copied the folder i.pr  in /usr/local/grass-6.5.svn/bin/ (where there is
also i.landsat.acca that I installed with g.extension).
Then
cd /usr/local/grass-6.5.svn/bin/i.pr/ 
and
make MODULE_TOPDIR=/usr/local/grass-6.5.svn

Now it seems to work ... I start to try it.

(Continue reading)

Margherita Di Leo | 1 Feb 14:38
Picon

Re: Re: i.pr --> g.extension and compiling error on ubuntu 11.10 64 bit

Ciao Gabriele,
 

I installed but I have the same error.
With g.extension I can install other add-ons (eg i.landsat.acca) but not i.pr

Thanks

Gabriele


I can confirm that installation of i.pr by g.extension seems not to work properly. So, I suggest you to install it by hand following these steps:

cd <your path>/grass6_devel/imagery 
cd i.pr/
make
cd ..
cd ..
make libs
make install

This worked for me.

HTH,
madi

_______________________________________________
grass-user mailing list
grass-user <at> lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user
Gabriele N. | 1 Feb 15:36
Picon
Favicon

Re: Re: i.pr --> g.extension and compiling error on ubuntu 11.10 64 bit


margherita wrote
> 
>> I can confirm that installation of i.pr by g.extension seems not to work
> properly. So, I suggest you to install it by hand following these steps:
> 
> cd <your path>/grass6_devel/imagery
> svn co https://svn.osgeo.org/grass/grass-addons/grass6/imagery/i.pr/
> cd i.pr/
> make
> cd ..
> cd ..
> make libs
> make install
> 
> This worked for me.
> 
> HTH,
> madi
> 
Ciao Madi, also seems to function well.
Now I am beginning to test it.

Thanks:)

Gabriele

--
View this message in context: http://osgeo-org.1560.n6.nabble.com/i-pr-g-extension-and-compiling-error-on-ubuntu-11-10-64-bit-tp4352067p4356496.html
Sent from the Grass - Users mailing list archive at Nabble.com.
_______________________________________________
grass-user mailing list
grass-user <at> lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user

Moritz Lennert | 1 Feb 15:47
Picon

Re: Merge vector table with .dbf file [NHDPlus]

On 01/02/12 13:42, Stephen Sefick wrote:
> All:
>
> I have the national hydrography dataset plus [NHDPlus]. The data came
> with a rather limited table of information by design. I would like to
> add a table with stream line attributes to the vector table. There is a
> common ID called COMID. I just want to merge the two tables together on
> COMID. How do I do this? I have thought of just merging the two tables
> together pre-import? Many thanks for any help.

Try db.in.ogr + v.db.join in a mapset with an SQL backend, e.g. SQLite 
instead of dbf.

Moritz
_______________________________________________
grass-user mailing list
grass-user <at> lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user

Christine | 1 Feb 16:41
Picon

Re: winGrass, ODBC and MS Access database

Dear GRASS user list,

tried to read a Microsoft Access database with GRASS 6.4.1 (installed with
QGIS 1.7.0) on a Windows XP system. Now I get an error message "odbc.exe"
when I try to use v.external, db.in.ogr or v.in.ogr. A data source name is
created with the MS ODBC administrator. 

What I am wondering about is the error message. Searched for "odbc.exe" on
my system and did not find one. But there is a "odbcad32.exe" instead. 

There seem to be some older attempts with ODBC connections to ORACLE. But as
I also could not find any hint, that anybody succeeded in using ODBC
database via OGR,  I suspect now, that this is not possible. 

Appreciate any comments or hints. 
Thanks + Kind regards,
Christine

--
View this message in context: http://osgeo-org.1560.n6.nabble.com/Re-winGrass-ODBC-and-MS-Access-database-tp4356636p4356636.html
Sent from the Grass - Users mailing list archive at Nabble.com.
_______________________________________________
grass-user mailing list
grass-user <at> lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user

Stephen Sefick | 1 Feb 16:47
Picon
Favicon

Re: Merge vector table with .dbf file [NHDPlus]

Thanks for the help.  What I ended up doing is reading the .dbf files 
into R with the foreign packages read.dbf; merged the data together on 
the COMID; wrote out the data with write.dbf; connected it to the 
vector with v.db.connect; and all is well.  Again many thanks for your 
help.

Stephen

On Wed 01 Feb 2012 08:47:37 AM CST, Moritz Lennert wrote:
> On 01/02/12 13:42, Stephen Sefick wrote:
>> All:
>>
>> I have the national hydrography dataset plus [NHDPlus]. The data came
>> with a rather limited table of information by design. I would like to
>> add a table with stream line attributes to the vector table. There is a
>> common ID called COMID. I just want to merge the two tables together on
>> COMID. How do I do this? I have thought of just merging the two tables
>> together pre-import? Many thanks for any help.
>
>
> Try db.in.ogr + v.db.join in a mapset with an SQL backend, e.g. SQLite 
> instead of dbf.
>
> Moritz
> _______________________________________________
> grass-user mailing list
> grass-user <at> lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/grass-user

-- 
Stephen Sefick
**************************************************
Auburn University                                         
Biological Sciences                                      
331 Funchess Hall                                       
Auburn, Alabama                                        
36849                                                           
**************************************************
sas0025 <at> auburn.edu                                  
http://www.auburn.edu/~sas0025                 
**************************************************

Let's not spend our time and resources thinking about things that are 
so little or so large that all they really do for us is puff us up and 
make us feel like gods.  We are mammals, and have not exhausted the 
annoying little problems of being mammals.

                                -K. Mullis

"A big computer, a complex algorithm and a long time does not equal 
science."

                              -Robert Gentleman

_______________________________________________
grass-user mailing list
grass-user <at> lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user

Martin Wegmann | 1 Feb 17:06

bug in r.pi.nlm add-on module

Hello,

I encountered a bug in an add-on module, r.pi.nlm (on several Ubuntu 11.10. 
systems) and Markus could replicate the bug and also found the part where the 
error occurs. 

I tested it with regions 10x10 pixel up to 1000x1000 px - the error messages 
are the same but time until they occured increased.

If somebody would have an idea how to fix it, I would be very grateful.

regards, Martin

P.S.: r.pi.nlm is generating a random fractal landscape either based on an 
input map or by defining the percentage cover (0-100%) and 
sharpness/agglomeration (0-1) factor.

r.pi.nlm input=landuse96_28m keyval=4 output=nlm1

======= Backtrace: =========
/lib/x86_64-linux-gnu/libc.so.6(__fortify_fail+0x37)[0x7f4b826e87f7]
/lib/x86_64-linux-gnu/libc.so.6(+0xf7710)[0x7f4b826e7710]
r.pi.nlm(CutValues+0x76)[0x402286]
r.pi.nlm(main+0x58e)[0x401aee]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xed)[0x7f4b8261130d]
r.pi.nlm[0x401e15]
======= Memory map: ========
00400000-00404000 r-xp 00000000 08:01 656696                             
/usr/local/grass-6.4.2svn/bin/r.pi.nlm
00603000-00604000 r--p 00003000 08:01 656696                             
/usr/local/grass-6.4.2svn/bin/r.pi.nlm
00604000-00605000 rw-p 00004000 08:01 656696                             
/usr/local/grass-6.4.2svn/bin/r.pi.nlm
01669000-0168a000 rw-p 00000000 00:00 0                                  
[heap]
[...]
(can send the whole error message if asked for)

Markus error log with gdb:

(gdb) r.pi.nlm input=landclass96 keyval=5 output=test --o
Starting program: /home/neteler/grass64/dist.x86_64-unknown-linux-
gnu/bin/r.pi.nlm input=landclass96 keyval=5 output=test --o

Program received signal SIGSEGV, Segmentation fault.
0x0000000000401ac3 in CutValues (map=0x7ffff7fd8010, 
mapcover=0.49554953560371517, size=16641)
    at func.c:128
128             values[index]++;
Missing debug package(s), you should install: glibc-
debug-2.11.1-8.3mnb2.x86_64 zlib-debug-1.2.3-15mdv2010.1.x86_64
(gdb) bt full
#0  0x0000000000401ac3 in CutValues (map=0x7ffff7fd8010, 
mapcover=0.49554953560371517, size=16641)
    at func.c:128
        values = {0 <repeats 9999 times>}
        min = 1000000
        max = 1000000
        span = 0
        c = inf
        pixels = 8246
        i = 0
        j = -11408
        index = -2147483648
                ^^^^^^^^^^^^ --!

in func.c:
double CutValues(double *map, double mapcover, int size)
{
    int values[RESOLUTION - 1];
    double min, max, span, c;
    int pixels;
    int i, j, index;
    int bottom, top;
    int topdif, bottomdif;

    // get parameters
    MinMax(map, &min, &max, size);
    span = max - min;
    c = min / span;
    pixels = Round(size * mapcover);

    // classify heights
    memset(values, 0, RESOLUTION * sizeof(int));
    for (i = 0; i < size; i++) {
        index = floor(RESOLUTION * (map[i] - min) / span);
        ^^^^^^--- negative

    Then the subsequent values[index] crashes.
_______________________________________________
grass-user mailing list
grass-user <at> lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user

Marcello Benigno | 1 Feb 20:01
Picon
Gravatar

How to put a grid layer in the Cartographic Composer

Hi All,


Is it possible make a map with a grid or a grid layer in the Cartographic Composer?

Thanks in advance,
--
Marcello Benigno B. de Barros Filho
Prof. do Curso Superior de Tecnologia em Geoprocessamento - IFPB
Mestre em Ciências Geodésicas e Tecnologias da Geoinformação - UFPE
http://profmarcello.blogspot.com
_______________________________________________
grass-user mailing list
grass-user <at> lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user

Gmane