• Stars
    star
    120
  • Rank 295,983 (Top 6 %)
  • Language
    Python
  • Created over 8 years ago
  • Updated almost 7 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Makes 3D printable terrain tiles from LIDAR data

LidarTile

Little program to convert LIDAR scans into 3D-printable .STL tiles. Accepts ESRI ASCII grid formats only, right now.

Run it like this:

python -m lidartile.cli -d 4 -f 0.5 -b 5 -c 2 -z 1.5 -s 3 -m 2 ~/Downloads/LIDAR-DSM-1M-TQ37/tq3979_DSM_1m.asc

You can pass as many .asc files as you like on the commandline and it'll merge them all into one tile. Make sure they're adjacent, though, or it'll fill in the gaps with empty 0-height space and you'll have a huge file!

Options are:

  • -d: Divisor - how many points to combine into one height value for model simplicity (size of the square, so 4 would be 16 input points per output)
  • -f: Feature optimise limit - Combines polygons within this delta into one.
  • -b: Base depth from the zero line
  • -c: Negative clip to prevent holes penetrating the base
  • -z: Z multiplier, for enhancing features
  • -s: Snap value, rounds heights to multiples of this for flatter surfaces
  • -m: Smoothing factor. Higher is more smooth.
  • -l: Scale. Use numbers less than 1 to scale down, e.g. 0.5 is half scale.
  • -ix,iy,iw,ih: Sub-grid, use to cut out a certain piece from the input map. x,y define lower-left corner and w,h the width and height of the cut-out.

Commandline Examples

My London tiles are built somewhat like this, from the Environment Agency 1m DSM set:

python -m lidartile.cli -d 2 -b 5 -c 10 -z 1.5 -m 2 -l 0.075 ~/Downloads/LIDAR-DSM-1M-TQ48/tq4081_DSM_1m.asc

An example of what they look like:

https://pbs.twimg.com/media/CcSWm2jUMAAkoNl.jpg

More Repositories

1

channels-examples

Example projects using Django Channels
Python
1,218
star
2

lastgraph

Archived code for LastGraph
Python
151
star
3

django-hatchway

An unsurprising Django API framework
Python
137
star
4

urlman

Python
115
star
5

weatherboard

Source for my e-paper based weather display.
Python
72
star
6

yamdl

ORM-queryable YAML fixtures for Django
Python
65
star
7

twintubes

The code behind A Series Of Twin Tubes
Python
47
star
8

south2

South 2: Backported django.db.migrations for older Django versions
Python
43
star
9

stations

The source code behind stations.aeracode.org
JavaScript
40
star
10

arduino-examples

Example code for Arduino and other embedded devices that use its IDE
C++
36
star
11

routerdash

A prototype UI for my custom router
CSS
28
star
12

rfid-inventory

An RFID inventory system
Python
26
star
13

asgigram

ASGI/Telegram protocol server
Python
26
star
14

dockerfiles

Docker files used for deploying my server components
Python
21
star
15

uk-usa-dictionary

A UK-USA dictionary of common terms, phrases and things
21
star
16

migrations

An unstable, work-in-progress candidate for django.contrib.migrations
Python
18
star
17

landcarve

GIS scripts and tools
Python
16
star
18

grorg

JavaScript
11
star
19

frequensgi

ASGI APRS-IS protocol server
Python
9
star
20

django-stator

A state machine-based background worker system for Django
Python
7
star
21

arcdiscvist

Archival/Backup media manager and indexer
Python
4
star
22

thiuff

Python
4
star
23

oxstu

Oxford Student
Python
3
star
24

plex-tools

Random Plex tooling to help with organisation
Python
3
star
25

kugelblitz

An experiment to compile a JavaScript subset to Python
Python
3
star
26

airport-mogul

An attempt to build an Airport Tycoon clone. Incredibly basic code so far.
C
3
star
27

datastore-workshop

Example code from "Datastores, Python and You" workshop
Python
2
star
28

vfrmap

Code for my live, LED-based aviation weather map
C++
2
star
29

twoup

SVG-based presentation tools
Python
1
star
30

todoscreens

Python
1
star
31

django-singlefile

Python
1
star