This forum is shutting down! Please post new discussions at

coastal vulnerability model error

baebae Member

I am carrying out a coastal vulnerability analysis model.
There are many errors that are causing difficulties.
Attach the following log files :
Let me know what the problem is.
I beg you.


  • DaveDave Member, Administrator, NatCap Staff

    The error is related to the coordinate system of your "re_busan.shp" shapefile. If you look at that file in GIS, can you confirm that it has a coordinate system defined? If it does, you might try transforming it to a different coordinate system, such as a UTM system, for example.

    Please let us know if that works for you.
  • baebae Member

    Thank you, Dave.

    I also unified the coordinate system(GCS_WGS_1984), expecting it to be a coordinate system problem.
    Then another error occurred.
    Is this also a coordinate system problem?

  • DaveDave Member, Administrator, NatCap Staff
    This error suggests that your AOI polygon does not actually include any coastline within it. In other words, the AOI polygon and the Land Polygon do not overlap. Can you confirm whether that is true in GIS? An incorrectly defined coordinate system could be the problem, but not necessarily.

    If those layers do appear to be overlapping and they have the same coordinate system, and you still have a problem, you may send me those two shapefiles and I can take a look at them.
  • DaveDave Member, Administrator, NatCap Staff
    It turns out the problem is that the AOI shapefile has a geographic coordinate system
    (with units of degrees) when it needs to have a projected coordinate
    system (with units of meters). This needs to be more clear in our
    documentation. The "cell_size" parameter is described to have units of
    meters, but in reality it has units that match the units of the AOI
    shapefile coordinate system. So in your example, that means a cell size
    of 100 with a decimal degree coordinate system will instruct the model
    to create a raster with cells 100 degrees wide! That resulted in a
    raster with 0 cells, and eventually raised the error you saw.

    solution is to project the AOI shapefile to a coordinate system that
    uses meters for units (such as a UTM system). Then specify the cell_size
    in meters, as you have done. You should not need to re-project all of
    your other data sources, the model will do that for you by transforming
    all the other input data to match the AOI coordinate system.
  • baebae Member
    edited July 2018
    Hi Dave, 

    I am inquiring about a new error.
    The following error occurs : "The following files do not exist on the filesystem"
    I used data provided as a sample. I don't know the reason for this error. 
    Please reply.
    Post edited by bae on
  • swolnyswolny Member, NatCap Staff
    Hi @bae -

    Thanks for posting your logfile. At the top, it lists the path to your input files, and the path looks like this:
    "H:/inVEST/ccoastal_vulnerability/Input_3/0. 원데이터/1. AOI/AOI_busan_wgs1984.shp"

    It looks like it is having a problem with some of the characters in your file path, which I have highlighted above. Can you try putting the files in a different folder, something like
    and see if that helps?

    ~ Stacie
  • baebae Member
    Thank you, Stacie

    I've tried changing the  folder name.
    So the error is gone. However, another error occurred.
    The error is : 'NoneType' object has no attribute 'GetRasterBand'

    I've read other people's questions and answers. 
    So I unified my data into CGS_WGS_1984.
    But why do these errors occur? What's the problem?
  • DaveDave Member, Administrator, NatCap Staff
    Hi Bae, your AOI will need to have a "projected coordinate system", whereas WGS 84 is a "geographic coordinate system". Your cell size of 50 will have the same units as your AOI coordinate system. Right now that is "degrees", but with a projected system, you could choose a system that uses "meters", for example.

    And thanks for jumping in Stacie!

  • baebae Member

    I didn't understand properly what you said last time.
    I have got it right now. I have made a coordinate transformation and am modeling again.
    Thank you, Dave! 
  • baebae Member
    A new error has occurred.

    "IndexError: boolean index did not match indexed array along dimension 0; dimension is 1286 but corresponding boolean dimension is 1635"

    What is this error? Please help me. 
Sign In or Register to comment.