[GRASS-user] Using r.buffer on image with geographic coordinates

Markus Metz markus.metz.giswork at googlemail.com
Mon Mar 28 07:44:48 EDT 2011


On Mon, Mar 28, 2011 at 12:39 PM, Ned Horning <horning at amnh.org> wrote:
> Markus,
>
> Thanks for fixing the code. I managed to compile v.buffer and I ran it in
> the grass65 terminal window and these are the errors I got. There were
> several of the "Next edge was visited...." messages but I only cut out the
> last couple. Any idea what the problem might be? I'm running on 64 bit
> Ubuntu.
>
> All the best,
>
> Ned
> --
> WARNING: Next edge was visited but it is not the first one !!! breaking
>         loop
> WARNING: Next edge was visited but it is not the first one !!! breaking
>         loop
> WARNING: Next edge was visited but it is not the first one !!! breaking
>         loop
> WARNING: Next edge was visited but it is not the first one !!! breaking
>         loop

It seems that this is still v.buffer2, not v.buffer (a bit confusing
because the stuff in vector/v.buffer2 is compiled as v.buffer, as is
the stuff in vector/v.buffer). You need to either start grass from the
source tree or run make install again in order to make use of the
vector/v.buffer module.

HTH,

Markus M


> *** glibc detected *** d.vect: free(): invalid next size (normal):
> 0x00000000013a5fc0 ***
> ======= Backtrace: =========
> /lib/libc.so.6(+0x775b6)[0x7fc0f26965b6]
> /lib/libc.so.6(cfree+0x73)[0x7fc0f269ce83]
> /usr/local/grass-6.5.svn/lib/libgrass_vect.6.5.svn.so(Vect_destroy_line_struct+0x28)[0x7fc0f424f638]
> d.vect(plot1+0xb0a)[0x40876a]
> d.vect(main+0x1314)[0x4072d4]
> /lib/libc.so.6(__libc_start_main+0xfd)[0x7fc0f263dc4d]
> d.vect[0x403cd9]
> ======= Memory map: ========
> 00400000-0040c000 r-xp 00000000 08:05 206110
> /usr/local/grass-6.5.svn/bin/d.vect
> 0060b000-0060c000 r--p 0000b000 08:05 206110
> /usr/local/grass-6.5.svn/bin/d.vect
> 0060c000-0060d000 rw-p 0000c000 08:05 206110
> /usr/local/grass-6.5.svn/bin/d.vect
> 01398000-013b9000 rw-p 00000000 00:00 0
>  [heap]
> 7fc0e4000000-7fc0e4021000 rw-p 00000000 00:00 0
> 7fc0e4021000-7fc0e8000000 ---p 00000000 00:00 0
> 7fc0e97cd000-7fc0e97d9000 r-xp 00000000 08:05 531120
> /lib/libnss_files-2.11.1.so
> 7fc0e97d9000-7fc0e99d8000 ---p 0000c000 08:05 531120
> /lib/libnss_files-2.11.1.so
> 7fc0e99d8000-7fc0e99d9000 r--p 0000b000 08:05 531120
> /lib/libnss_files-2.11.1.so
> 7fc0e99d9000-7fc0e99da000 rw-p 0000c000 08:05 531120
> /lib/libnss_files-2.11.1.so
> 7fc0e99da000-7fc0e99e4000 r-xp 00000000 08:05 531542
> /lib/libnss_nis-2.11.1.so
> 7fc0e99e4000-7fc0e9be3000 ---p 0000a000 08:05 531542
> /lib/libnss_nis-2.11.1.so
> 7fc0e9be3000-7fc0e9be4000 r--p 00009000 08:05 531542
> /lib/libnss_nis-2.11.1.so
> 7fc0e9be4000-7fc0e9be5000 rw-p 0000a000 08:05 531542
> /lib/libnss_nis-2.11.1.so
> 7fc0e9be5000-7fc0e9bed000 r-xp 00000000 08:05 527981
> /lib/libnss_compat-2.11.1.so
> 7fc0e9bed000-7fc0e9dec000 ---p 00008000 08:05 527981
> /lib/libnss_compat-2.11.1.so
> 7fc0e9dec000-7fc0e9ded000 r--p 00007000 08:05 527981
> /lib/libnss_compat-2.11.1.so
> 7fc0e9ded000-7fc0e9dee000 rw-p 00008000 08:05 527981
> /lib/libnss_compat-2.11.1.so
> 7fc0e9dee000-7fc0e9df1000 r-xp 00000000 08:05 523508
> /lib/libgpg-error.so.0.4.0
> 7fc0e9df1000-7fc0e9ff0000 ---p 00003000 08:05 523508
> /lib/libgpg-error.so.0.4.0
> 7fc0e9ff0000-7fc0e9ff1000 r--p 00002000 08:05 523508
> /lib/libgpg-error.so.0.4.0
> 7fc0e9ff1000-7fc0e9ff2000 rw-p 00003000 08:05 523508
> /lib/libgpg-error.so.0.4.0
> 7fc0e9ff2000-7fc0ea002000 r-xp 00000000 08:05 134688
> /usr/lib/libtasn1.so.3.1.7
> 7fc0ea002000-7fc0ea201000 ---p 00010000 08:05 134688
> /usr/lib/libtasn1.so.3.1.7
> 7fc0ea201000-7fc0ea202000 r--p 0000f000 08:05 134688
> /usr/lib/libtasn1.so.3.1.7
> 7fc0ea202000-7fc0ea203000 rw-p 00010000 08:05 134688
> /usr/lib/libtasn1.so.3.1.7
> 7fc0ea203000-7fc0ea21c000 r-xp 00000000 08:05 134634
> /usr/lib/libsasl2.so.2.0.23
> 7fc0ea21c000-7fc0ea41b000 ---p 00019000 08:05 134634
> /usr/lib/libsasl2.so.2.0.23
> 7fc0ea41b000-7fc0ea41c000 r--p 00018000 08:05 134634
> /usr/lib/libsasl2.so.2.0.23
> 7fc0ea41c000-7fc0ea41d000 rw-p 00019000 08:05 134634
> /usr/lib/libsasl2.so.2.0.23
> 7fc0ea41d000-7fc0ea433000 r-xp 00000000 08:05 531562
> /lib/libresolv-2.11.1.so
> 7fc0ea433000-7fc0ea632000 ---p 00016000 08:05 531562
> /lib/libresolv-2.11.1.so
> 7fc0ea632000-7fc0ea633000 r--p 00015000 08:05 531562
> /lib/libresolv-2.11.1.so
> 7fc0ea633000-7fc0ea634000 rw-p 00016000 08:05 531562
> /lib/libresolv-2.11.1.so
> 7fc0ea634000-7fc0ea636000 rw-p 00000000 00:00 0
> 7fc0ea636000-7fc0ea638000 r-xp 00000000 08:05 523515
> /lib/libkeyutils-1.2.so
> 7fc0ea638000-7fc0ea837000 ---p 00002000 08:05 523515
> /lib/libkeyutils-1.2.so
> 7fc0ea837000-7fc0ea838000 r--p 00001000 08:05 523515
> /lib/libkeyutils-1.2.so
> 7fc0ea838000-7fc0ea839000 rw-p 00002000 08:05 523515
> /lib/libkeyutils-1.2.so
> 7fc0ea839000-7fc0ea840000 r-xp 00000000 08:05 134268
> /usr/lib/libkrb5support.so.0.1
> 7fc0ea840000-7fc0eaa3f000 ---p 00007000 08:05 134268
> /usr/lib/libkrb5support.so.0.1
> 7fc0eaa3f000-7fc0eaa40000 r--p 00006000 08:05 134268
> /usr/lib/libkrb5support.so.0.1
> 7fc0eaa40000-7fc0eaa41000 rw-p 00007000 08:05 134268
> /usr/lib/libkrb5support.so.0.1
> 7fc0eaa41000-7fc0eaa65000 r-xp 00000000 08:05 132675
> /usr/lib/libk5crypto.so.3.1
> 7fc0eaa65000-7fc0eac65000 ---p 00024000 08:05 132675
> /usr/lib/libk5crypto.so.3.1
> 7fc0eac65000-7fc0eac66000 r--p 00024000 08:05 132675
> /usr/lib/libk5crypto.so.3.1
> 7fc0eac66000-7fc0eac67000 rw-p 00025000 08:05 132675
> /usr/lib/libk5crypto.so.3.1
> 7fc0eac67000-7fc0eac7e000 r-xp 00000000 08:05 527976
> /lib/libnsl-2.11.1.so
> 7fc0eac7e000-7fc0eae7d000 ---p 00017000 08:05 527976
> /lib/libnsl-2.11.1.so
> 7fc0eae7d000-7fc0eae7e000 r--p 00016000 08:05 527976
> /lib/libnsl-2.11.1.so
> 7fc0eae7e000-7fc0eae7f000 rw-p 00017000 08:05 527976
> /lib/libnsl-2.11.1.so
> 7fc0eae7f000-7fc0eae81000 rw-p 00000000 00:00 0
> 7fc0eae81000-7fc0eaef6000 r-xp 00000000 08:05 523504
> /lib/libgcrypt.so.11.5.2
> 7fc0eaef6000-7fc0eb0f5000 ---p 00075000 08:05 523504
> /lib/libgcrypt.so.11.5.2
> 7fc0eb0f5000-7fc0eb0f6000 r--p 00074000 08:05 523504
> /lib/libgcrypt.so.11.5.2
> 7fc0eb0f6000-7fc0eb0f9000 rw-p 00075000 08:05 523504
> /lib/libgcrypt.so.11.5.2
> 7fc0eb0f9000-7fc0eb195000 r-xp 00000000 08:05 134182
> /usr/lib/libgnutls.so.26.14.12
> 7fc0eb195000-7fc0eb394000 ---p 0009c000 08:05 134182
> /usr/lib/libgnutls.so.26.14.12
> 7fc0eb394000-7fc0eb39a000 r--p 0009b000 08:05 134182
> /usr/lib/libgnutls.so.26.14.12
> 7fc0eb39a000-7fc0eb39b000 rw-p 000a1000 08:05 134182
> /usr/lib/libgnutls.so.26.14.12
> 7fc0eb39b000-7fc0eb3a8000 r-xp 00000000 08:05 132150
> /usr/lib/liblber-2.4.so.2.5.4 100%
> Writting buffers...
>  100%
> Building topology for vector map <testBuf2>...
> Registering primitives...
> 1435962 primitives registered
> 115977416 vertices registered
> Number of nodes: 1435838
> Number of primitives: 1435962
> Number of points: 0
> Number of lines: 0
> Number of boundaries: 1435962
> Number of centroids: 0
> Number of areas: -
> Number of isles: -
> Snapping boundaries...
> Killed
> GRASS 6.5.svn (NHD_Test):~ >
>
>
> On 03/27/2011 02:51 PM, Markus Neteler wrote:
>>
>> On Sun, Mar 27, 2011 at 3:57 PM, Ned Horning<horning at amnh.org>  wrote:
>>>
>>> Hi Markus,
>>>
>>> Thanks for your help. I am trying to follow your instruction but ran into
>>> a
>>> problem compiling v.buffer. I used svn to download grass 6.5 into
>>> /usr/local/src and it appears to have compiled just fine and grass65
>>> seems
>>> to be working. To compile v.buffer I tried:
>>> sudo make MODULE_TOPDIR=/usr/local/grass-6.5.svn/
>>>
>>> from the /usr/local/src/grass6_devel/vector/v.buffer directory but that
>>> didn't work. I pasted the error message below.
>>
>> I have fixed to typo style bugs. Now it compiles, please try again.
>>
>> Markus
>>
>
> _______________________________________________
> grass-user mailing list
> grass-user at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/grass-user
>


More information about the grass-user mailing list