Git Product home page Git Product logo

Comments (2)

arjannv avatar arjannv commented on May 24, 2024

Ok, I think I found why this happened.
The flattening of water did not happen in that spot because of the polygon used for flattening.
The part with the ridges was not included in the polygon. See the yellow bit below.
image

After playing a bit with the options in the QuadIDW interpolator and the flatten.patch function, I think I found a nice looking solution. As this was the only thing I'm interested in. Creating nice looking, hole-free GeoTIFFs for 3D printing.

As I found the Flattening polygon rather course, I disabled it for better looks. This introduced the ridge problem all over the map though..

I tried to use the QuadIDW interpolator to fill the holes by just using data from ground, water and buildings. The first iteration of the QuadIDW interpolator takes direct data from the x,y point. The next iterations the search radius increases with 3 (m?). For the next iterations I've created an extra LAS array with another PDAL filter. This is with the following classification filter: Classification[2:2],Classification[6:6],Classification[9:17] To use this I increased the iterations to 4.

This didn't solve my problem though. The ridges where formed by the flatten.patch function. This takes the median of some surrounding points to patch the holes. raster[yi, xi] = np.median(vals)
I've replaced this with the lower 10% percentile raster[yi, xi] = np.percentile(vals, 10) to prefer the lowest measurements to make the ridges as small as possible.
This does seem to create some (rare) issues with the interpolation of holes in data from glaced roof tiles (hole is 1,5m high instead of 6-10m):
image
However, this problem was already there with the standard median interpolation. Only less noticeable:
image
When there is more (and better) surrounding data, the problem is less noticeable (the hole is like an inverted dakkapel):
image

The modifications above, however still resulted in some plateaus from the QuadIDW interpolator.
image
To improve this, I ditched the extra LAS array and used only 1 iteration, so it only took data from the exact x,y point.

Altough, the results are now much better, it's still not there entirely:
image
There are still some plateaus noticeable when there are overhanging trees. The plateaus are not that high, less then 1m above water level.

I still have to check how this works out along the coast.

Changes done for this result:

  • Replace src/interpolation/flatten.py line 159 with: raster[yi, xi] = np.percentile(vals, 10)
  • Disable flatten.water in src/interpolation/interpolation.py on line 171 - 180

from geo1101.2020.ahn3.

mdjong1 avatar mdjong1 commented on May 24, 2024

Nice exploration! We're not actively maintaining this project, but I'm happy to think along if you need extra eyes

from geo1101.2020.ahn3.

Related Issues (2)

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.