From pejo20@sussex.ac.uk Wed Mar 12 14:35:20 2003 From: pejo20@sussex.ac.uk (Johan Olanders) Date: Wed, 12 Mar 2003 14:35:20 +0000 Subject: Pre-processing problems Message-ID: <1047479720.3e6f45a8cdb49@webmail.sussex.ac.uk> Hi everybody! Since it's the first time I use this list I might introduce myself! My name is Johan Olanders and I'm doing my master thesis project regarding oestrogen modelling with GREAT-ER in the River Ouse catchment, Sussex, at University of Sussex, UK. Since this is a new catchment I have to implement it myself and right now I have some troubles in the preprocessing procedure. To the problem! As I have understood it the right place to start the pre-processing is to install Shapelib. I got no error messages executing the make command for Shapelib. Next I tried to install the gen2shp program. First I got loads of errors when executing make. After changing a path to the place where my shapfil.h were located in gen2shp.c (#include ) I get this error message when executing the make command: [johan@ouse gen2shp-0.3.1]$ make cc -o gen2shp -lshp gen2shp.c utils.o /usr/bin/ld: cannot find -lshp collect2: ld returned 1 exit status make: *** [gen2shp] Error 1 [johan@ouse gen2shp-0.3.1]$ (I run RedHat 8.0 on my PC and I am a bit Linux aware but not an expert!) Does anyone have any ideas? / Johan From jan@intevation.de Wed Mar 12 16:06:37 2003 From: jan@intevation.de (Jan-Oliver Wagner) Date: Wed, 12 Mar 2003 17:06:37 +0100 Subject: Pre-processing problems In-Reply-To: <1047479720.3e6f45a8cdb49@webmail.sussex.ac.uk> References: <1047479720.3e6f45a8cdb49@webmail.sussex.ac.uk> Message-ID: <20030312160637.GA850@intevation.de> Hello Johan, Since you are on a RedHat GNU/Linux, you might simply want to use the RPM packages of shapelib and gen2shp: ftp://intevation.de/freegis/gnu-linux-i586/freegis-1.2.2/i386/ The full story on the FreeGIS CD is here: http://freegis.org/cd-contents.en.html Else the following hints might help: On Wed, Mar 12, 2003 at 02:35:20PM +0000, Johan Olanders wrote: > Next I tried to install the gen2shp program. First I got loads of errors > when executing make. After changing a path to the place where my > shapfil.h were located in gen2shp.c (#include > ) You usually specify the include path in the Makefile like this: CFLAGS=-I /home/johan/Greater/Preproc/shapelib-1.2.9 You then do not need to change the actual source code. > I get this error message when executing the make command: > [johan@ouse gen2shp-0.3.1]$ make > cc -o gen2shp -lshp gen2shp.c utils.o > /usr/bin/ld: cannot find -lshp > collect2: ld returned 1 exit status > make: *** [gen2shp] Error 1 Same here: You need to specify where to find the libshp.la and adapt the CFLAGS. Maybe this works four your setup: CFLAGS=-I /home/johan/Greater/Preproc/shapelib-1.2.9 -L /home/johan/Greater/Preproc/shapelib-1.2.9 but this is just a guess - you should find out yourself the correct path. Hope this helps Jan -- Jan-Oliver Wagner http://intevation.de/~jan/ Intevation GmbH http://intevation.de/ FreeGIS http://freegis.org/ From pejo20@sussex.ac.uk Tue Mar 18 17:04:43 2003 From: pejo20@sussex.ac.uk (Johan Olanders) Date: Tue, 18 Mar 2003 17:04:43 -0000 Subject: Pre-processing problems (Ouse) solved! In-Reply-To: <20030312160637.GA850@intevation.de> Message-ID: > Hello Johan, > > Since you are on a RedHat GNU/Linux, you might simply want > to use the RPM packages of shapelib and gen2shp: > > ftp://intevation.de/freegis/gnu-linux-i586/freegis-1.2.2/i386/ > > Yes this solved my problems thank you very much Jan-Oliver! I also had some errors to fix in my data files before it turned up okay in GREAT-ER, but now it works! I have just implemented a small part of the catchment as a test so far and I have made my own solution of assigning flow values to river stretches. I would very much like to hear someone's comments on my solution or a description of how others have solved this task. Please contact me on pejo20@sussex.ac.uk Bye for now! / Johan Olanders From jan@intevation.de Tue Mar 18 17:14:01 2003 From: jan@intevation.de (Jan-Oliver Wagner) Date: Tue, 18 Mar 2003 18:14:01 +0100 Subject: Pre-processing problems (Ouse) solved! In-Reply-To: References: <20030312160637.GA850@intevation.de> Message-ID: <20030318171401.GA20647@intevation.de> On Tue, Mar 18, 2003 at 05:04:43PM -0000, Johan Olanders wrote: > Yes this solved my problems thank you very much Jan-Oliver! > I also had some errors to fix in my data files before it turned up okay in > GREAT-ER, but now it works! Sounds GREAT :-) > I have just implemented a small part of the catchment as a test so far and I > have made my own solution of assigning flow values to river stretches. I > would very much like to hear someone's comments on my solution or a > description of how others have solved this task. Please contact me on > pejo20@sussex.ac.uk If you like, you are welcome to post your solution on this mailing list. In case you write some documentation, we can publish your scripts and docs on the GREAT-ER developer page (provided, you like to release it as Free Software). Best Jan -- Jan-Oliver Wagner http://intevation.de/~jan/ Intevation GmbH http://intevation.de/ FreeGIS http://freegis.org/ From pejo20@sussex.ac.uk Thu Mar 20 16:03:06 2003 From: pejo20@sussex.ac.uk (Johan Olanders) Date: Thu, 20 Mar 2003 16:03:06 -0000 Subject: Pre-processing Ouse In-Reply-To: <20030318171401.GA20647@intevation.de> Message-ID: > > If you like, you are welcome to post your solution on this > mailing list. In case you write some documentation, > we can publish your scripts and docs on the GREAT-ER developer > page (provided, you like to release it as Free Software). > I have not (yet?) made any fancy scripts for my idea's of flow assignment to the river stretches, I have just made it "manually" so far. I might write some scripts later on and in that case I would be more than happy to share them on the GREAT-ER developer page! However it is more the thoughts and assumptions behind it I would like some comments on. I think I'll write a description of what I've done and than possibly get back for some comments! Regards, Johan Olanders From jan@intevation.de Fri Mar 21 23:12:16 2003 From: jan@intevation.de (Jan-Oliver Wagner) Date: Sat, 22 Mar 2003 00:12:16 +0100 Subject: Pre-processing Ouse In-Reply-To: References: <20030318171401.GA20647@intevation.de> Message-ID: <20030321231216.GB31688@intevation.de> On Thu, Mar 20, 2003 at 04:03:06PM -0000, Johan Olanders wrote: > I have not (yet?) made any fancy scripts for my idea's of flow assignment to > the river stretches, I have just made it "manually" so far. I might write > some scripts later on and in that case I would be more than happy to share > them on the GREAT-ER developer page! However it is more the thoughts and > assumptions behind it I would like some comments on. I think I'll write a > description of what I've done and than possibly get back for some comments! I would welcome any such written description and like to publish it on the website (or link to place where you publish it). Best Jan -- Jan-Oliver Wagner http://intevation.de/~jan/ Intevation GmbH http://intevation.de/ FreeGIS http://freegis.org/