Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Terrain, Art, Python and LiDAR
Search
Andrew Godwin
May 03, 2019
Programming
1
340
Terrain, Art, Python and LiDAR
A talk I gave at PyCon US 2019
Andrew Godwin
May 03, 2019
Tweet
Share
More Decks by Andrew Godwin
See All by Andrew Godwin
Reconciling Everything
andrewgodwin
1
190
Django Through The Years
andrewgodwin
0
76
Writing Maintainable Software At Scale
andrewgodwin
0
310
A Newcomer's Guide To Airflow's Architecture
andrewgodwin
0
240
Async, Python, and the Future
andrewgodwin
2
530
How To Break Django: With Async
andrewgodwin
1
550
Taking Django's ORM Async
andrewgodwin
0
570
The Long Road To Asynchrony
andrewgodwin
0
490
The Scientist & The Engineer
andrewgodwin
1
550
Other Decks in Programming
See All in Programming
CSRF対策のやり方、そろそろアップデートしませんか / Update your knowledge of CSRF protection
hiro_y
22
12k
Не учите алгоритмы
hellsquirrel
1
700
PHPerKaigi 2024〜10年以上動いているレガシーなバッチシステムを Kubernetes(Amazon EKS) に移行する取り組み〜
tshinowpub
1
170
document.write再考
brn
5
2k
使えるマークダウンライブラリを探した結果 RailsアプリケーションからRustを使うことになった話
fursich
0
150
導入から5年が経って見えた Datadog APM 運用の課題
bgpat
1
480
「Hono遍歴」と「HonoXでブログ作成」
yasu551
0
170
TokyoR#111_ANOVA
kilometer
1
710
ADRを一年運用してみた/our_story_about_adr
hanhan1978
3
1.1k
TypeScript x GraphQLで2年開発してみて
yutank34
8
4.7k
オレオレkaggle開発環境に Formatter/Linter入れてみた
stgkrt
0
350
htmx is fun!
codehex
2
170
Featured
See All Featured
Helping Users Find Their Own Way: Creating Modern Search Experiences
danielanewman
18
1.8k
Rails Girls Zürich Keynote
gr2m
91
13k
Visualization
eitanlees
135
14k
What's new in Ruby 2.0
geeforr
335
31k
Unsuck your backbone
ammeep
660
56k
Building Effective Engineering Teams - LeadDev
addyosmani
25
1.6k
Designing Dashboards & Data Visualisations in Web Apps
destraynor
225
51k
RailsConf & Balkan Ruby 2019: The Past, Present, and Future of Rails at GitHub
eileencodes
124
32k
The Success of Rails: Ensuring Growth for the Next 100 Years
eileencodes
28
5.9k
Distributed Sagas: A Protocol for Coordinating Microservices
caitiem20
319
20k
Building a Modern Day E-commerce SEO Strategy
aleyda
15
6.3k
GraphQLの誤解/rethinking-graphql
sonatard
48
9.1k
Transcript
Terrain, Andrew Godwin @andrewgodwin Art, Python & LiDAR
Hi, I’m Andrew Godwin • Django contributor (Migrations/Channels) • Principle
Engineer at • I always need more lasers
None
None
None
None
None
1. Laser-cut profiles
DEM: Digital Elevation Model
None
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
None
None
Loads the DEM as a CSV Picks one in N
rows Draws a contour using svgwrite
None
None
2. 3D-printed cities
None
None
None
None
(1, 3, 4) (6, 5, 11) (3, 7, -2)
POINT CLOUD → DIGITAL ELEVATION MAP (DEM) python-pcl lastools
None
Top surface Fully sealed 3D model (with the tile base)
None
Loads the DEM Clips height (top and bottom) Smooths rough
features Writes out an STL file
(1, 3, 4) (6, 5, 11) (3, 7, -2)
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, )
Should I have used NumPy? Yes. Did I use NumPy?
Err, no.
github.com/andrewgodwin/lidartile
None
None
3. CNC-milled National Parks
None
None
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
Irregular shapes!
None
MAP PROJECTIONS
None
Things I Won't Work With Unicode Names Timezones Currencies Networks
Addresses Dioxygen Difluoride
Things I Won't Work With Unicode Names Timezones Currencies Networks
Addresses Dioxygen Difluoride Map Projections
None
4. The Future
More US National Parks I do each one as I
visit it. There are… 59.
Easier Milling 8 hours per piece. Really.
Better STL optimisation Millions of polygons isn't great.
Personal LiDAR Thanks, autonomous vehicles!
github.com/andrewgodwin/lidartile github.com/andrewgodwin/gis_tools
None
Thanks. Andrew Godwin @andrewgodwin aeracode.org