some modern updates

This commit is contained in:
2025-06-06 22:03:38 +03:00
parent e46813ef90
commit ddc06c89de
5 changed files with 12 additions and 8 deletions

View File

@@ -26,7 +26,7 @@ db/contour_%: contour_%.gpkg db/.ready
touch $@ touch $@
contour_%.gpkg: all.tif contour_%.gpkg: all.tif
gdal_contour -a z -nln $(basename $@) -i $(subst _,.,$*) -a z $^ $@ gdal_contour -nln $(basename $@) -i $(subst _,.,$*) -a z $^ $@
ifeq ($(VARIANT),2009) ifeq ($(VARIANT),2009)
all.tif: all.vrt all.xyz all.tif: all.vrt all.xyz
@@ -51,7 +51,7 @@ all.xyz: $(XYZ)
.INTERMEDIATE: $(XYZ) .INTERMEDIATE: $(XYZ)
%.xyz: %.zip %.xyz: %.zip
unzip -qq -c $< $@ | \ 7z x -so $< $@ | \
./clip-$(VARIANT).awk $(addprefix -v ,$(BOUNDS)) | \ ./clip-$(VARIANT).awk $(addprefix -v ,$(BOUNDS)) | \
$(SORT) > $@ $(SORT) > $@

View File

@@ -1,5 +1,5 @@
#!/usr/bin/awk -f #!/usr/bin/env -S awk -f
#
# this file works with SEZP from circa 2009, where x coordinate (the 6-digit one) # this file works with SEZP from circa 2009, where x coordinate (the 6-digit one)
# is first, and the field separator is ' ' or more spaces. # is first, and the field separator is ' ' or more spaces.
$1 > xmin && $1 < xmax && $2 > ymin && $2 < ymax { $1 > xmin && $1 < xmax && $2 > ymin && $2 < ymax {

View File

@@ -1,4 +1,4 @@
#!/usr/bin/awk -f #!/usr/bin/env -S awk -f
# #
# this file works with SEZP circa ~2017 where y coordinate (the 7-digit one) is # this file works with SEZP circa ~2017 where y coordinate (the 7-digit one) is
# first, and the field separator is ',' # first, and the field separator is ','

View File

@@ -9,5 +9,9 @@
#VARIANT = 2017 #VARIANT = 2017
#vienuolio #vienuolio
BOUNDS = xmin=582874 ymin=6060212 xmax=583246 ymax=6060547 #BOUNDS = xmin=582874 ymin=6060212 xmax=583246 ymax=6060547
VARIANT = 2017 #VARIANT = 2017
#paparciai
BOUNDS = xmin=545754 ymin=6086394 xmax=550000 ymax=6089022
VARIANT = 2009

View File

@@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
_psql() { _psql() {
env \ env \