Terrain, Art, Python and LiDAR

Terrain, Art, Python and LiDAR

A talk I gave at PyCon US 2019

077e9a0cb34fa3eba2699240c9509717?s=128

Andrew Godwin

May 03, 2019
Tweet

Transcript

  1. Terrain, Andrew Godwin @andrewgodwin Art, Python & LiDAR

  2. Hi, I’m Andrew Godwin • Django contributor (Migrations/Channels) • Principle

    Engineer at • I always need more lasers
  3. None
  4. None
  5. None
  6. None
  7. None
  8. 1. Laser-cut profiles

  9. DEM: Digital Elevation Model

  10. None
  11. 10 9 5 3 2 9 7 4 3 2

    8 7 3 2 4 6 8 5 3 5 4 9 7 4 6 3 8 8 6 5 2 5 4 3 3 10 9 5 3 2 9 7 4 3 2 8 7 3 2 4 6 8 5 3 5 4 9 7 4 6 3 8 8 6 5 2 5 4 3 3
  12. None
  13. None
  14. Loads the DEM as a CSV Picks one in N

    rows Draws a contour using svgwrite
  15. None
  16. None
  17. 2. 3D-printed cities

  18. None
  19. None
  20. None
  21. None
  22. (1, 3, 4) (6, 5, 11) (3, 7, -2)

  23. POINT CLOUD → DIGITAL ELEVATION MAP (DEM) python-pcl lastools

  24. None
  25. Top surface Fully sealed 3D model (with the tile base)

  26. None
  27. Loads the DEM Clips height (top and bottom) Smooths rough

    features Writes out an STL file
  28. (1, 3, 4) (6, 5, 11) (3, 7, -2)

  29. How do you write STL? struct.pack( b"<ffffffffffffH", normal[0], normal[1], normal[2],

    x1, y1, z1, x2, y2, z2, x3, y3, z3, 0, )
  30. Should I have used NumPy? Yes. Did I use NumPy?

    Err, no.
  31. github.com/andrewgodwin/lidartile

  32. None
  33. None
  34. 3. CNC-milled National Parks

  35. None
  36. None
  37. Take the US National DEM Get the outline of the

    National Park Use QGIS to cut out a park-only DEM https://viewer.nationalmap.gov https://catalog.data.gov/dataset/national-park-boundariesf0a4c Toolbox > GDAL > Clip By Extent
  38. Irregular shapes!

  39. None
  40. MAP PROJECTIONS

  41. None
  42. Things I Won't Work With Unicode Names Timezones Currencies Networks

    Addresses Dioxygen Difluoride
  43. Things I Won't Work With Unicode Names Timezones Currencies Networks

    Addresses Dioxygen Difluoride Map Projections
  44. None
  45. 4. The Future

  46. More US National Parks I do each one as I

    visit it. There are… 59.
  47. Easier Milling 8 hours per piece. Really.

  48. Better STL optimisation Millions of polygons isn't great.

  49. Personal LiDAR Thanks, autonomous vehicles!

  50. github.com/andrewgodwin/lidartile github.com/andrewgodwin/gis_tools

  51. None
  52. Thanks. Andrew Godwin @andrewgodwin aeracode.org