I am trying to compile source code in Mingw environment for r.damflood. But I have a problem that some libary is missing in my environment. Can you please send me the .exe file by remaning as r.damflood.txt. Is it run succesfully in Grass6.5.
No I am not working on grass7. I use grass6.5 windows version. So for unix like flavour we use mingw open source. If possible please give me the dependent library & header where I can get the used function definition. If I get then I can try it for old raster library or merge the new library. I see your code actually some fucnction called here not defined in our library.
I change some portion like-
/module = G_define_module();
G_add_keyword((“raster”));
G_add_keyword((“dambreak”));
G_add_keyword(_(“model”));
module->description = _(“Estimate the area potentially inundated in case of dam
break”);/
module = G_define_module();
module->keywords =(_(“raster,dambreak,model”));
module->description = _(“Estimate the area potentially inundated in case of dam break”);
please see the error for calling-
G_find_raster2
Rast_open_old
Rast_allocate_f_buf
…
etc.
I am C++ developer if get the new then can redesign the old.
I think that the actually code of r.damflood don’t work with grass 6.5 (I’m sure about grass6) because we used the new raster libraries of grass7.
We start the development in Grass 6.4.0 after we encountered a few libraries problem starting from Grass 6.4.1 so we carry on the development in grass7.
Moreover I never compile a C command in Mingw (I use normally linux), hence I am not sure to understand what you ask me.
Have you tried to compile the command in Grass 7?
I am trying to compile source code in Mingw environment for r.damflood. But I have a problem that some libary is missing in my environment. Can you please send me the .exe file by remaning as r.damflood.txt. Is it run succesfully in Grass6.5.
I am trying to compile source code in Mingw environment for r.damflood. But
I have a problem that some libary is missing in my environment. Can you
please send me the .exe file by remaning as r.damflood.txt. Is it run
succesfully in Grass6.5.
all addons are automatically build for winGRASS. You can install them
from the GUI (Settings -> Addons -> Install). The binaries are
available at [1]. I didn't find r.damflood, just r.dam (which failed)
[2].
On Thu, Nov 8, 2012 at 10:47 AM, Martin Landa <landa.martin@gmail.com> wrote:
Hi,
2012/11/8 SWAPAN GHOSH <swap.ghsh@gmail.com>:
I am trying to compile source code in Mingw environment for r.damflood. But
I have a problem that some libary is missing in my environment. Can you
please send me the .exe file by remaning as r.damflood.txt. Is it run
succesfully in Grass6.5.
all addons are automatically build for winGRASS. You can install them
from the GUI (Settings -> Addons -> Install). The binaries are
available at [1]. I didn't find r.damflood,
r.dam is a simple bash script that is useful to create the data for r.damflood.
Unfortunately r.dam is written in the grass 6 style and is needed to convert it to use in grass 7, while r.damflood is written in C using the grass7 libraries [1] so you don’t find itr for grass6.5.
The error [2] depend on the absence of a makefile. I see that Markus add a makefile this morning ( I also try to add it), I think that now you can compile r.dam.
There is no description of r.dam, I will add as soon as possible.
Concerning r.damflood, you can find the codes in grass7/raster/r.damflood/ [1] and I think you can easily compile for Grass7. IYou cannot compile for grass6.5, it is need a correction of libraries. I’m not an expert about it. I did it manually to update r.damflood to grass7, but after we develop some new functionalities and perform the debug on the grass7 version of r.damflood, so I do not want to add the old code developed in for Grass 6.4 because I’m not sure about the correctness of it. We choose in fact to develop it only for grass7 and I think it is reasonable.
I am trying to compile source code in Mingw environment for r.damflood. But
I have a problem that some libary is missing in my environment. Can you
please send me the .exe file by remaning as r.damflood.txt. Is it run
succesfully in Grass6.5.
all addons are automatically build for winGRASS. You can install them
from the GUI (Settings → Addons → Install). The binaries are
available at [1]. I didn’t find r.damflood, just r.dam (which failed)
[2].
No I am not working on grass7. I use grass6.5 windows version. So for unix
like flavour we use mingw open >source. If possible please give me the
dependent library & header where I can get the used function >definition. If
I get then I can try it for old raster library or merge the new library. I
see your code actually >some fucnction called here not defined in our
library.
Thanks to all for helping me. Later I build Grass7 developement environment. At that time I have not much time for research. I can solve my requirement using r.lake and r.hazard.flood command. I have also found another solution using psmap flooding example scripts.
r.dam is a simple bash script that is useful to create the data for r.damflood.
Unfortunately r.dam is written in the grass 6 style and is needed to convert it to use in grass 7, while r.damflood is written in C using the grass7 libraries [1] so you don’t find itr for grass6.5.
The error [2] depend on the absence of a makefile. I see that Markus add a makefile this morning ( I also try to add it), I think that now you can compile r.dam.
There is no description of r.dam, I will add as soon as possible.
Concerning r.damflood, you can find the codes in grass7/raster/r.damflood/ [1] and I think you can easily compile for Grass7. IYou cannot compile for grass6.5, it is need a correction of libraries. I’m not an expert about it. I did it manually to update r.damflood to grass7, but after we develop some new functionalities and perform the debug on the grass7 version of r.damflood, so I do not want to add the old code developed in for Grass 6.4 because I’m not sure about the correctness of it. We choose in fact to develop it only for grass7 and I think it is reasonable.
I am trying to compile source code in Mingw environment for r.damflood. But
I have a problem that some libary is missing in my environment. Can you
please send me the .exe file by remaning as r.damflood.txt. Is it run
succesfully in Grass6.5.
all addons are automatically build for winGRASS. You can install them
from the GUI (Settings → Addons → Install). The binaries are
available at [1]. I didn’t find r.damflood, just r.dam (which failed)
[2].
Thanks to all for helping me. Later I build Grass7 developement environment. At that time I have not much time for research. I can solve my requirement using r.lake and r.hazard.flood command.
I would like to point you out that r.hazard.flood follows a completely different rationale than r.damflood. You can find the details in:
Manfreda, S., M. Di Leo, A. Sole, Detection of Flood Prone Areas using Digital Elevation Models, Journal of Hydrologic Engineering, (10.1061/(ASCE)HE.1943-5584.0000367), 2011. [pdf]
Di Leo, M., S. Manfreda, M. Fiorentino, An automated procedure for the detection of flood prone areas: r.hazard.flood,Geomatics Workbooks n. 10 - “FOSS4G-it: Trento 2011”, 83-89, 2011 [Link].
Anyhow a comparison between the two approaches IMHO would be worthwhile and I would really appreciate your feedback, since r.hazard.flood is based on an experimental procedure we developed.
Thank you and best regards,
madi
–
Margherita DI LEO
Postdoctoral Researcher
European Commission - DG JRC
Forest Resources and Climate
I-21020 Ispra (VA) - Italy - TP 261
Thanks to all for helping me. Later I build Grass7 developement environment. At that time I have not much time for research. I can solve my requirement using r.lake and r.hazard.flood command.
I would like to point you out that r.hazard.flood follows a completely different rationale than r.damflood. You can find the details in:
Manfreda, S., M. Di Leo, A. Sole, Detection of Flood Prone Areas using Digital Elevation Models, Journal of Hydrologic Engineering, (10.1061/(ASCE)HE.1943-5584.0000367), 2011. [pdf]
Di Leo, M., S. Manfreda, M. Fiorentino, An automated procedure for the detection of flood prone areas: r.hazard.flood,Geomatics Workbooks n. 10 - “FOSS4G-it: Trento 2011”, 83-89, 2011 [Link].
Anyhow a comparison between the two approaches IMHO would be worthwhile and I would really appreciate your feedback, since r.hazard.flood is based on an experimental procedure we developed.
Thank you and best regards,
madi
–
Margherita DI LEO
Postdoctoral Researcher
European Commission - DG JRC
Forest Resources and Climate
I-21020 Ispra (VA) - Italy - TP 261