Coder Social home page Coder Social logo

Comments (3)

olivierhagolle avatar olivierhagolle commented on June 3, 2024

Hi Nicolas,
the SWBD authors did something bad (in my opinion) : when a tile is only water or only land, it is not provided. DTMCreation handles that. We create a new vector which is fully land or fully water, using an external dataset which tells us which is most probable.
So, even if you do not find the SWBD data, it should work.
Olivier

from maja.

EkicierNico avatar EkicierNico commented on June 3, 2024

Hi Olivier,
Thanks for your answer.

Actually, it does not work, I tested on 19HCC Tile at Chile and we need w070s34 SWBD tile.
Here is the error from MAJA :

missing SWBD watr file :  w070s34
Traceback (most recent call last):
  File "/Start-MAJA/prepare_dtm/DTMCreation.py", line 334, in <module>
    creator.run(args.out, args.tempout)
  File "/Start-MAJA/prepare_dtm/DTMCreation.py", line 294, in run
    water_zipped = self.WaterZipped)
  File "/Start-MAJA/prepare_dtm/../prepare_dtm/tuilage_mnt_eau_S2.py", line 203, in run
    calcul_masque_eau_mnt, working_dir=working_dir)
  File "/Start-MAJA/prepare_dtm/../prepare_dtm/lib_mnt.py", line 531, in fusion_mnt
    land = TestLand(liste_centre_eau[i][0], liste_centre_eau[i][1])
  File "/Start-MAJA/prepare_dtm/../prepare_dtm/lib_mnt.py", line 57, in TestLand
    layer = dataSource.GetLayer()
AttributeError: 'NoneType' object has no attribute 'GetLayer'

Same error on 30QVD tile with w004n17 SWBD tile.

Do you have an idea ?
Thank you
Nicolas

from maja.

olivierhagolle avatar olivierhagolle commented on June 3, 2024

I think I have done something bad, which is assuming you start DTM_creation from the folder that contains the DTMCreation file...
That's why the file which tells if we are over a continent or an ocean is not found. I will correct that ASAP...

from maja.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.