I tried to install v.profile under GRASS 6.4.4 to see if it would work but it 
failed to compile.

Michael

Here are the errors


____________________
C. Michael Barton
Director, Center for Social Dynamics & Complexity
Professor of Anthropology, School of Human Evolution & Social Change
Head, Graduate Faculty in Complex Adaptive Systems Science
Arizona State University

voice:  480-965-6262 (SHESC), 480-965-8130/727-9746 (CSDC)
fax: 480-965-7671 (SHESC),  480-727-0709 (CSDC)
www: http://www.public.asu.edu/~cmbarton, http://csdc.asu.edu















> On Nov 29, 2014, at 10:29 AM, Michael Barton <[email protected]> wrote:
>
> Hi Markus,
>
> What I'm trying to do is start with a raster stream map from r.drain and 
> convert it to a sequence of vector points, where each point has information 
> as to its position along the stream. I then use the points for sampling a 
> stream profile and related information. Oddly enough, with all of the very 
> useful stream analysis modules, there is nothing I could find to generate the 
> data for a stream profile (distance from outlet or from headwaters vs. 
> elevation).
>
> v.to.points does a nice job of creating a sequence of evenly spaced points 
> with information about their location along a line (the "along" field). BUT, 
> if the line is composed of multiple segments or even if it has an 
> irregularity in it, the "along" values start over again from 0. The only way 
> I can use it is if I have a very clean and continuous vector line with only a 
> single cat.
>
> This has proven surprisingly difficult to obtain reliably from my raster 
> stream map. So far, the only way has been to do a two sequences of v.clean 
> (with thresholds 1.5 X the raster resolution) and v.build.polylines. If you 
> have any better suggestion, I'd love to hear it.
>
> Thanks again for the polylines idea. That was a big help.
>
> Michael
> ____________________
> C. Michael Barton
> Director, Center for Social Dynamics & Complexity
> Professor of Anthropology, School of Human Evolution & Social Change
> Head, Graduate Faculty in Complex Adaptive Systems Science
> Arizona State University
>
> voice:  480-965-6262 (SHESC), 480-965-8130/727-9746 (CSDC)
> fax: 480-965-7671 (SHESC),  480-727-0709 (CSDC)
> www: http://www.public.asu.edu/~cmbarton, http://csdc.asu.edu
>
>
>
>
>> On Nov 29, 2014, at 10:20 AM, Michael Barton <[email protected]> wrote:
>>
>> Thanks. This helped.
>>
>> Michael
>> ____________________
>> C. Michael Barton
>> Director, Center for Social Dynamics & Complexity
>> Professor of Anthropology, School of Human Evolution & Social Change
>> Head, Graduate Faculty in Complex Adaptive Systems Science
>> Arizona State University
>>
>> voice:  480-965-6262 (SHESC), 480-965-8130/727-9746 (CSDC)
>> fax: 480-965-7671 (SHESC),  480-727-0709 (CSDC)
>> www: http://www.public.asu.edu/~cmbarton, http://csdc.asu.edu
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>> On Nov 29, 2014, at 1:23 AM, Markus Neteler <[email protected]> wrote:
>>>
>>> On Sat, Nov 29, 2014 at 6:16 AM, Michael Barton <[email protected]> 
>>> wrote:
>>>> I have a vector line that is divided into 12 cat values. I’d like all of 
>>>> the
>>>> line to have a single cat value. I’ve tried v.category to no avail. If I
>>>> delete all categories and then add new categories, I get 12 cats again. And
>>>> I can find no other way to get a single cat for the entire line. Hopefully
>>>> someone can tell what I’m missing here.
>>>
>>> Please try to use
>>> http://grass.osgeo.org/grass70/manuals/v.build.polylines.html
>>>
>>> Markus
>>
>

GRASS 6.4.5svn (Penaguila):~ > g.extension extension=v.profile operation=add

Fetching <v.profile> from GRASS-Addons SVN (be patient)...
A    v.profile/main.c
A    v.profile/v.profile.html
A    v.profile/Makefile
A    v.profile/README
 U   v.profile
Checked out revision 63296.
Compiling <v.profile>...
/Applications/GRASS/GRASS-6.4.app/Contents/MacOS/include/Make/Grass.make:423: 
warning: overriding commands for target 
`/Users/cmbarton/Dropbox/GRASS_dropbox/grassdata_dropbox/Penaguila/analysis/.tmp/Michaels-MacBook-Air-3.local/20552.0/dist.x86_64-apple-darwin14/bin'
/Applications/GRASS/GRASS-6.4.app/Contents/MacOS/include/Make/Grass.make:414: 
warning: ignoring old commands for target 
`/Users/cmbarton/Dropbox/GRASS_dropbox/grassdata_dropbox/Penaguila/analysis/.tmp/Michaels-MacBook-Air-3.local/20552.0/dist.x86_64-apple-darwin14/bin'
mkdir -p 
/Users/cmbarton/Dropbox/GRASS_dropbox/grassdata_dropbox/Penaguila/analysis/.tmp/Michaels-MacBook-Air-3.local/20552.0/dist.x86_64-apple-darwin14/bin
mkdir -p 
/Users/cmbarton/Dropbox/GRASS_dropbox/grassdata_dropbox/Penaguila/analysis/.tmp/Michaels-MacBook-Air-3.local/20552.0/dist.x86_64-apple-darwin14/include/grass
mkdir -p 
/Users/cmbarton/Dropbox/GRASS_dropbox/grassdata_dropbox/Penaguila/analysis/.tmp/Michaels-MacBook-Air-3.local/20552.0/dist.x86_64-apple-darwin14/etc
mkdir -p 
/Users/cmbarton/Dropbox/GRASS_dropbox/grassdata_dropbox/Penaguila/analysis/.tmp/Michaels-MacBook-Air-3.local/20552.0/dist.x86_64-apple-darwin14/driver
mkdir -p 
/Users/cmbarton/Dropbox/GRASS_dropbox/grassdata_dropbox/Penaguila/analysis/.tmp/Michaels-MacBook-Air-3.local/20552.0/dist.x86_64-apple-darwin14/driver/db
mkdir -p 
/Users/cmbarton/Dropbox/GRASS_dropbox/grassdata_dropbox/Penaguila/analysis/.tmp/Michaels-MacBook-Air-3.local/20552.0/dist.x86_64-apple-darwin14/fonts
test -d OBJ.x86_64-apple-darwin13.3.0 || mkdir -p OBJ.x86_64-apple-darwin13.3.0
gcc '-I/Applications/GRASS/GRASS-6.4.app/Contents/MacOS/include' 
'-I/Users/cmbarton/Library/GRASS/6.4/Modules/bin/include' 
'-I/Users/cmbarton/Dropbox/GRASS_dropbox/grassdata_dropbox/Penaguila/analysis/.tmp/Michaels-MacBook-Air-3.local/20552.0/dist.x86_64-apple-darwin14/include'
 -I/usr/local/include -g -O2   -arch i386 -arch x86_64  -I/usr/local/include  
-I/Library/Frameworks/GDAL.framework/Versions/1.11/Headers 
-I/Library/Frameworks/GEOS.framework/Versions/3/unix/include   
-DPACKAGE=\""grassmods"\"  
'-I/Applications/GRASS/GRASS-6.4.app/Contents/MacOS/include' 
'-I/Users/cmbarton/Library/GRASS/6.4/Modules/bin/include' 
'-I/Users/cmbarton/Dropbox/GRASS_dropbox/grassdata_dropbox/Penaguila/analysis/.tmp/Michaels-MacBook-Air-3.local/20552.0/dist.x86_64-apple-darwin14/include'
 -o OBJ.x86_64-apple-darwin13.3.0/main.o -c main.c
main.c:368:26: warning: format specifies type 'char *' but the argument has type
      'dbDriver *' (aka 'struct _db_driver *') [-Wformat]
                              Fpro->database, driver);
                                              ^~~~~~
main.c:475:20: warning: format specifies type 'char *' but the argument has type
      'dbDriver *' (aka 'struct _db_driver *') [-Wformat]
                          Fi->database, driver);
                                        ^~~~~~
main.c:539:63: warning: format specifies type 'int' but the argument has type
      'size_t' (aka 'unsigned long') [-Wformat]
    G_debug(1, "There are %d features matching profile line", rescount);
                          ~~                                  ^~~~~~~~
                          %zu
main.c:674:46: warning: format specifies type 'int' but the argument has type
      'size_t' (aka 'unsigned long') [-Wformat]
    G_debug(3, "Distance of point %d is %f", *rescount,
                                  ~~         ^~~~~~~~~
                                  %zu
4 warnings generated.
main.c:368:26: warning: format specifies type 'char *' but the argument has type
      'dbDriver *' (aka 'struct _db_driver *') [-Wformat]
                              Fpro->database, driver);
                                              ^~~~~~
main.c:475:20: warning: format specifies type 'char *' but the argument has type
      'dbDriver *' (aka 'struct _db_driver *') [-Wformat]
                          Fi->database, driver);
                                        ^~~~~~
main.c:539:63: warning: format specifies type 'int' but the argument has type
      'size_t' (aka 'unsigned long') [-Wformat]
    G_debug(1, "There are %d features matching profile line", rescount);
                          ~~                                  ^~~~~~~~
                          %zu
main.c:674:46: warning: format specifies type 'int' but the argument has type
      'size_t' (aka 'unsigned long') [-Wformat]
    G_debug(3, "Distance of point %d is %f", *rescount,
                                  ~~         ^~~~~~~~~
                                  %zu
4 warnings generated.
gcc '-L/Applications/GRASS/GRASS-6.4.app/Contents/MacOS/lib' 
'-L/Users/cmbarton/Library/GRASS/6.4/Modules/bin/lib' 
'-L/Users/cmbarton/Dropbox/GRASS_dropbox/grassdata_dropbox/Penaguila/analysis/.tmp/Michaels-MacBook-Air-3.local/20552.0/dist.x86_64-apple-darwin14/lib'
 -arch i386 -arch x86_64   -L/usr/local/lib     -o 
/Users/cmbarton/Dropbox/GRASS_dropbox/grassdata_dropbox/Penaguila/analysis/.tmp/Michaels-MacBook-Air-3.local/20552.0/dist.x86_64-apple-darwin14/bin/v.profile
 OBJ.x86_64-apple-darwin13.3.0/main.o  -lgrass_vect.6.4.5svn 
-lgrass_dbmibase.6.4.5svn -lgrass_gis.6.4.5svn -lgrass_datetime.6.4.5svn -lz   
-lintl   -lgrass_dbmiclient.6.4.5svn -lgrass_dbmibase.6.4.5svn 
-lgrass_gis.6.4.5svn -lgrass_datetime.6.4.5svn -lz   -lintl   
-lgrass_gis.6.4.5svn -lgrass_datetime.6.4.5svn -lz   -lintl   
-lgrass_dgl.6.4.5svn -lgrass_dig2.6.4.5svn -lgrass_gis.6.4.5svn 
-lgrass_datetime.6.4.5svn -lz   -lintl  -lgrass_rtree.6.4.5svn  
-lgrass_gis.6.4.5svn -lgrass_datetime.6.4.5svn -lz   -lintl  
-lgrass_linkm.6.4.5svn -lgrass_rtree.6.4.5svn  -lgrass_dig2.6.4.5svn 
-lgrass_gis.6.4.5svn -lgrass_datetime.6.4.5svn -lz   -lintl  
-lgrass_rtree.6.4.5svn  -lgrass_dgl.6.4.5svn -lgrass_rtree.6.4.5svn 
-lgrass_linkm.6.4.5svn -lgrass_dbmiclient.6.4.5svn -lgrass_dbmibase.6.4.5svn 
-lgrass_gis.6.4.5svn -lgrass_datetime.6.4.5svn -lz   -lintl   
-lgrass_gis.6.4.5svn -lgrass_datetime.6.4.5svn -lz   -lintl   
-lgrass_dbmibase.6.4.5svn -lgrass_gis.6.4.5svn -lgrass_datetime.6.4.5svn -lz   
-lintl    -framework GDAL 
-L/Library/Frameworks/GEOS.framework/Versions/3/unix/lib -lgeos -lgeos_c  
-lgrass_gis.6.4.5svn -lgrass_datetime.6.4.5svn -lz   -lintl   -lz 
ld: warning: directory not found for option 
'-L/Users/cmbarton/Library/GRASS/6.4/Modules/bin/lib'
ld: warning: directory not found for option 
'-L/Users/cmbarton/Dropbox/GRASS_dropbox/grassdata_dropbox/Penaguila/analysis/.tmp/Michaels-MacBook-Air-3.local/20552.0/dist.x86_64-apple-darwin14/lib'
ld: framework not found GDAL
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** 
[/Users/cmbarton/Dropbox/GRASS_dropbox/grassdata_dropbox/Penaguila/analysis/.tmp/Michaels-MacBook-Air-3.local/20552.0/dist.x86_64-apple-darwin14/bin/v.profile]
 Error 1
ERROR: Compilation failed, sorry. Please check above error messages
_______________________________________________
grass-user mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/grass-user

Reply via email to