cybergis / nfie-floodmap

National Inundation Mapping, collaboration among CyberGIS, NFIE, and HydroShare
MIT License
24 stars 9 forks source link

sync find_inlets code after the hacking day modification #1

Closed yanliu-chn closed 8 years ago

yanliu-chn commented 8 years ago

it seems the code you improved after hacking is not in github. could you merge the change?

Also, I still see one outlet as output of the dangle code. I remember Xing suggested using NHDPlus info to decide outlets/inlets. It is especially important for large watersheds. Could you find a way to do that?

artulab commented 8 years ago

I pushed my recent changes. Now the tool is removing all outlet points among dangle points in NHDPlus vector data, using stream order information in the file.

yanliu-chn commented 8 years ago

you used "gdal/ogr_core.h" which caused compile time error. that header file is already to move gdal's top include dir. which GDAL version were you using to compile in your dev env?

Also, don't close this issue yet. I need Xing to look at it. Thanks!

yanliu-chn commented 8 years ago

btw, i fixed the header file issue. now it compiles.

artulab commented 8 years ago

It's using gdal2 functions. So you need to add module of gdal2-stack to compile it on ROGER.

yanliu-chn commented 8 years ago

whether it's gdal2 or gdal1, on linux, all the header files are in $GDAL_HOME/include. There is not subdir gdal in the include dir. So you can't use #include "gdal/ogr_core.h". I fixed it.