Hi,
Sorry, but I am a linux person and it usually takes me 3 times longer to
write python.
There is the python program gdal_retile.py, but if I remember, it didn't
handle my use case the way I wanted it.
/Lars S.
Den 2021-11-11 kl. 17:54, skrev Lorenzo Di Giacomo:
I guess it'll do the tric
Hi
I talked about this at the foss4g 2 years ago and shared a bash script where I
do exactly what you are asking for. I don't know if you consider it to be easy,
but
the example is this script:
https://gist.github.com/LarsSchy/9ecb31eb964dd83820c139b2f2769a7c
(https://gist.github.com/LarsSchy/
/...//' > color.txt
You could add an extra print command if you want to write it in other format:
| awk -F, '{printf "%d,%d,%d,255\n", $1, $2, $3}'
To assemble a vrt and a tif I have used gdalbuildvrt command with the argument
"-separate".
You get a new vrt
rtable_vrt.txt:
sed -i -e '/VRTRasterBand dataType="Byte" band="1"/r orig_colortable_vrt.txt'
image_6.vrt
Remove a certain line that contains "NoDataValue"
sed -i -e '/NoDataValue/d' image_6.vrt
There a also a sed commands to delete certain ro
Maybe this could help a little.
I had a problem a while ago when I wanted to filter just the mask and then
assemble it again. It took some reading to get it right.
So I took the image apart with gdal_translate -b mask. Then ran gdal_sieve.py
where I got a 8 bit mask.
The tricky part was then the
To reduce size this guide is still good:
http://blog.cleverelephant.ca/2015/02/geotiff-compression-for-dummies.html
/Lars S.
Den 2021-02-04 kl. 21:00, skrev Pteroglossus via gdal-dev:
Richard, thanks you for your support, I would not have done it without you!
I tried to convert one of my file
your experiment. It seems like the command that produces
"alaska_warped_sliced_at_180.vrt" is missing in your script.
I guess that step could be vital to understand what is going on.
Best regards
/Lars Schylberg
26 november 2020 kl. 03:42, "James Russo" mailto:j...@halo3.net?to=
Hi,
I tried to reproduce your experiment. It seems like the command that produces
"alaska_warped_sliced_at_180.vrt" is missing in your script.
I guess that step could be vital to understand what is going on.
Best regards
/Lars Schylberg
26 november 2020 kl. 03:42, "James
Hi,
gdalwarp has an option -r that allows min and max and -tr for output
resolution. But the problem remains how to assemble the results in a pyramid
the way gdaladdo does.
/Lars S.
14 oktober 2020 kl. 11:03, "pt test" mailto:pttes...@gmail.com?to=%22pt%20test%22%20)> skrev:
Hi
I have a DEM ,
I have used gnu parallel with good results. A description can be found here:
https://gis.stackexchange.com/questions/217814/full-utilization-of-cpu-cores-with-gdalwarp
(https://gis.stackexchange.com/questions/217814/full-utilization-of-cpu-cores-with-gdalwarp)
/Lars Schylberg
24 januari 2020
s will help You in the right direction
/Lars Schylberg, Saab
Den 2020-01-21 kl. 15:28, skrev Mikael Rittri:
Hello, list. I need some advice.
We have a customer with some Tiff files with CMYK colors. It is a rasterized
vector
map, not an orthophoto, so the assigned colors are somewhat arbitrary
I would use ogr sql syntax to select whatever you would like to keep.
Experiment first with ogrinfo. Then do it with ogr2ogr. /Lars S.
4 januari 2020 kl. 12:50, "LE LAMER Romain" mailto:rlela...@hotmail.fr?to=%22LE%20LAMER%20Romain%22%20)>
skrev:
Hi,
During a kml export, from a shp, I have many t
github.com/LarsSchy/c1be96fa03f7dc11df4247be033e2705)
I hope this helps You.
Have fun / Lars Schylberg
29 december 2019 kl. 16:47, "LE LAMER Romain" mailto:rlela...@hotmail.fr?to=%22LE%20LAMER%20Romain%22%20)>
skrev:
Hi,
I need to convert 524 288 color png tiles to black and white pn
ttriubutes in the
57attributes.csv for aml.
The procedure is to compare the specification and the content of the csv
file.
But I remember that I played with some IW files from Germany as well and
those displayed just fine.
Good luck /Lars Schylberg
Den 2019-12-12 kl. 20:25, skrev W
Have tried the inland water profile? This is how i did it in the past.
This is a config for ogrinfo or ogr2ogr.
--config S57_PROFILE iw
This refers how the attributes are defined differently between normal S57 ENC
and the inland water profile in
the csv files
Good luck
/Lars Schylberg
12
Hi Paul,
if You do: gdalinfo --formats | grep AERONAVFAA
does your format show up?
I could be that You have to make your own build to have AERONAVFAA included.
It doesn't show up in my debian build.
/Lars
4 september 2019 kl. 14:46, paul.m...@lfv.se (mailto:paul.m...@lfv.se) skrev:
Hi,
use: osm2pgsqql or imposm instead
/Lars
4 september 2019 kl. 15:00, paul.m...@lfv.se (mailto:paul.m...@lfv.se) skrev:
Hi,
When I try to convert an open street map directory to a postgis data
base I only get one layer(other_relations) with some lines and some points, far
from ev
nd then reaplied afterwards with gdal_edit again.
This might hopefully give some inspiration for you how to tackle your
use case.
The full script can be found here:
https://gist.github.com/LarsSchy/9ecb31eb964dd83820c139b2f2769a7c
Have fun
Lars Schylberg
20 juni 2019 kl. 22:06, "Ste
Have a look at:
https://www.gdal.org/gdallocationinfo.html
This page gives examples how to script it for a polygon:
https://gis.stackexchange.com/questions/317213/gdal-gdallocationinfo-of-cgiar-mosaic-elevation-data
Have fun
/Lars Schylberg
19 matches
Mail list logo