stud/contours
Motiejus Jakštys 4aa3ce35dd README
2020-12-16 09:00:29 +02:00
..
all.vrt rename back to .xyz 2020-12-16 08:02:45 +02:00
chaikin.sql contours 2020-12-11 10:44:26 +02:00
clip-2009.awk add clip-2009.awk 2020-12-16 00:12:25 +02:00
clip-2017.awk add clip-2009.awk 2020-12-16 00:12:25 +02:00
config.mk README 2020-12-16 09:00:29 +02:00
example.jpg add uzupis 2020-12-11 11:29:52 +02:00
layer2img.py add layer2img.py 2020-12-11 11:10:12 +02:00
Makefile README 2020-12-16 09:00:29 +02:00
Makefile.2008 consolidate to one Makefile 2020-12-16 08:47:36 +02:00
Makefile.2017 consolidate to one Makefile 2020-12-16 08:47:36 +02:00
managedb use docker for postgis 2020-12-15 23:49:25 +02:00
README.md README 2020-12-16 09:00:29 +02:00

Countour line generator from LIDAR data

This accepts two kinds of contour data:

2009 variant: x, y, z, separated by one or more spaces:

 501991.670  6150000.000  57.689

Non-gridded, therefore significantly slower (gdal_grid must be used before making contours, which is slow).

2017: y, x, z, separated by commas:

6062999.75,584000.75,88.07

This is gridded, so quite fast.

Usage:

  1. Download contour lines to zip files in this directory.
  2. Adjust BOUNDS and VARIANT in config.mk.
  3. Run make -j$(nproc) smooth_<X>.gpkg. This will output a geo-package with contour lines every X meters. X can be fractional (e.g. smooth_2.5.gpkg).
  4. Optional: you may generate a raster image with layer2img.py.

Dependencies for a Linux system:

  • docker
  • psql (client only)
  • gdal-bin
  • unzip
  • awk

Example

Užupis

License

Code in this directory is public domain.