Route Art Problems With Lidar In Qgis

Discussion in 'PC Editor Discussion' started by Fahrgast, Mar 12, 2024.

  1. Fahrgast

    Fahrgast Active Member

    Joined:
    Jul 28, 2023
    Messages:
    127
    Likes Received:
    230
    Hello.
    For the route I want to build, I need lidar from 3 different federal states. But when I put all the data into QGIS, one area is somewhere different than the other. What am I doing wrong?

    Thanks in advance,
    Fahrgast.
     

    Attached Files:

  2. RobertSchulz

    RobertSchulz Well-Known Member

    Joined:
    Oct 10, 2023
    Messages:
    1,863
    Likes Received:
    2,607
    2 things to say here.

    1. First by the image:
    A. Did you have all of your needed Lidar data downloaded and put into QGIS? I wonder why there is such a big gap between then.

    B. Did all of the Lidar tiles have their correct source EPSG code assigned?

    2. Second:
    My route also covered 3 different states of Germany and I had a lot of problems glueing the Lidar of them together. This thread testifies it.

    But an important tip I can share you is that you don't necessarily need to merge all of them together (as suggested by all of the tutorials) if they don't fit well. You can do the Lidar QGIS process for the Lidar state of every state on its own and then import it into the Editor. You might end up having to do some adjustments after that at the borders of the mergers, but at least it works in this way.
     
    • Like Like x 1
  3. Fahrgast

    Fahrgast Active Member

    Joined:
    Jul 28, 2023
    Messages:
    127
    Likes Received:
    230
    It was the wrong ESPG Code, thanks Robert.
    Sachsen has a different ESPG than Thüringen and Anhalt, i choosed only one for all.
    Now, with two different Codes, the data is in the right place.

    But when i try to merge it, I get an error code.
    I tried to convert the xyz files to xyz files and I tried to merge the states seperately but it still doesn´t work.


    Screenshot 2024-03-13 142644.png
     
  4. RobertSchulz

    RobertSchulz Well-Known Member

    Joined:
    Oct 10, 2023
    Messages:
    1,863
    Likes Received:
    2,607
    The error log isn't helpful for me to find a clue on the problem, unfortunately.

    But maybe you convert someting in the wrong format? You said "I tried to convert xyz to xyz files". Hmm, As I remember you should not need to convert xyz back to xyz files. I think if you had your Lidar provided in the format of las/laz then you would need a conversion first, but not if it's already in xyz format. The xyz files should be ready to go for the process as they are.

    What exactly are you trying to do at this step? Maybe this helps to find the solution.
     
    Last edited: Mar 14, 2024
  5. Fahrgast

    Fahrgast Active Member

    Joined:
    Jul 28, 2023
    Messages:
    127
    Likes Received:
    230
    I read somewhere in your linked thread that QGIS has lroblems with XYZ files and a conversation back to XYZ files can help.
    But when I paste the converted files in to QGIS, the programm crashes.
     
  6. RobertSchulz

    RobertSchulz Well-Known Member

    Joined:
    Oct 10, 2023
    Messages:
    1,863
    Likes Received:
    2,607
    Ah! No, this was a very specific case as the Lidar data I got from Rheinland-Pfalz had an unusual coding with the alpha channel in it and fixing this thanks to Lulon was one way to see if it could work to merge the Lidar of all states (NRW, RLP and Hessen) then.

    You should not do this with your Lidar data unless the alpha channel coding is equally strange like the one for RLP, which I doubt.

    Also just a side note: Unfortuanetly, that didn't help in the end as well.
     
    Last edited: Mar 14, 2024
  7. Fahrgast

    Fahrgast Active Member

    Joined:
    Jul 28, 2023
    Messages:
    127
    Likes Received:
    230
    Ah, okay. Then I misunderstood that.
     
  8. RobertSchulz

    RobertSchulz Well-Known Member

    Joined:
    Oct 10, 2023
    Messages:
    1,863
    Likes Received:
    2,607
    Try it with the xyz files as they are and merge the Lidar of all states.

    If that doesn't work merge the Lidar for all of the three states separately. Delete all tif tiles which are black for more than 10 to 20% of it (one of the steps ahead of you, but I just mention it already). Inside of the Editor, you might get some big squary chunks/mountains (these are spots which are black in the tif files) somewhere at the borders but you can flatten them by the Landscape Sculpt tools.
     
    Last edited: Mar 14, 2024
  9. Fahrgast

    Fahrgast Active Member

    Joined:
    Jul 28, 2023
    Messages:
    127
    Likes Received:
    230
    I already tried to merge it and i also tried to merge the Staates separately but everytime I get this Error. Thats the reason, why I tried to convert the files.
     
  10. RobertSchulz

    RobertSchulz Well-Known Member

    Joined:
    Oct 10, 2023
    Messages:
    1,863
    Likes Received:
    2,607
    Does it happen for if you merge the Lidar of all of the states together or also when you merge just the Lidar tiles for one of them?
     
  11. Fahrgast

    Fahrgast Active Member

    Joined:
    Jul 28, 2023
    Messages:
    127
    Likes Received:
    230
    It's also when I merge only one of them, at least with saxony.
     
  12. RobertSchulz

    RobertSchulz Well-Known Member

    Joined:
    Oct 10, 2023
    Messages:
    1,863
    Likes Received:
    2,607
    Could you show the steps how you merge the files exactly (maybe with some screenshots)? - not just the error.
     
    Last edited: Mar 14, 2024
  13. Fahrgast

    Fahrgast Active Member

    Joined:
    Jul 28, 2023
    Messages:
    127
    Likes Received:
    230
    I can try but with Thüringen and Sachsen-Anhalt it´s working, only Sachsen causes trouble.
     
    • Like Like x 1
  14. RobertSchulz

    RobertSchulz Well-Known Member

    Joined:
    Oct 10, 2023
    Messages:
    1,863
    Likes Received:
    2,607
    Ah, but then we at least know that you did the merge process correctly and where the problems lies. Strange. The Lidar data can't be faulty because we have 2 official DLCs within Sachsen/Saxony already in the game (Dresden Nahverkehr and Tharandter Rampe).

    I can tag you another creator who did a project in Saxony and used the Lidar data already successfully.

    protonmw can you help here? Did you had such issues with the Lidar in Saxony?
     
    Last edited: Mar 14, 2024
    • Like Like x 1
  15. protonmw

    protonmw Active Member

    Joined:
    Mar 18, 2022
    Messages:
    179
    Likes Received:
    144
    I quote myself from a private chat:

    Hi, ich habe mich an den DTG Livestream von Lukas gehalten.
    Zuvor muss man allerdings die LIDAR Daten im QGIS vorbereiten.
    Dazu am besten den Batch Download als GeoTiff der einzelnen Landkreise herunterladen, alle benötigten Landkreise (großräumig um die Strecke herum!) in einen Ordner kopieren (und die doppelten Dateien gleich überspringen) und dann dem beschriebenen Konvertierungsprozess folgen. Also alles importieren, mergen, Projektion nach Mercator machen, dann alles als VRT exportieren und zum Schluss alle Dateien als Batch Prozess in *.asc wandeln.
     
    • Helpful Helpful x 1
  16. Fahrgast

    Fahrgast Active Member

    Joined:
    Jul 28, 2023
    Messages:
    127
    Likes Received:
    230
    Thanks for your help, protonmw and RobertSchulz .
    I still don´t now what´s wrong with the xml files but with the Tiff files it´s working now.
     
    • Like Like x 2

Share This Page