Re: [gdal-dev] Mosaicing using GDAL Wrap / Translate

2021-11-11 Thread Lars Schylberg
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

Re: [gdal-dev] Mosaicing using GDAL Wrap / Translate

2021-11-11 Thread lars . schylberg
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

Re: [gdal-dev] Modify original ColorTable in VRT & TIFF files

2021-04-23 Thread lars . schylberg
ommand 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 that You then convert with gdal_translate. Have fun / Lars Schylberg

Re: [gdal-dev] Modify original ColorTable in VRT & TIFF files

2021-04-22 Thread lars . schylberg
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 rows. Just read many s

Re: [gdal-dev] mosaicking files with partial overlap and binary mask

2021-02-11 Thread lars . schylberg
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

Re: [gdal-dev] Fw: Building GDAL with ECW support

2021-02-04 Thread Lars Schylberg
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

Re: [gdal-dev] gdal2tiles with GeoTIFF which crosses antimeridian?

2020-11-28 Thread lars . schylberg
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=%22ja

Re: [gdal-dev] gdal2tiles with GeoTIFF which crosses antimeridian?

2020-11-26 Thread lars . schylberg
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

Re: [gdal-dev] Creating DTM Pyramids with max values, and dtm pyramid with min values

2020-10-14 Thread lars . schylberg
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 ,

Re: [gdal-dev] Speeding up gdalwarp process

2020-01-24 Thread lars . schylberg
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

Re: [gdal-dev] Tiff file with CMYK colors that appears much worse with GDAL than in Windows Photo Viewer

2020-01-21 Thread Lars Schylberg
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 arbitrar

Re: [gdal-dev] ogr2ogr -f KML parameters

2020-01-04 Thread lars . schylberg
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

Re: [gdal-dev] How to convert png color to png/tiff black and white

2020-01-02 Thread lars . schylberg
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

Re: [gdal-dev] extract wtwdis and unlocd with distance marks from IENC

2019-12-12 Thread Lars Schylberg
g attriubutes 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

Re: [gdal-dev] extract wtwdis and unlocd with distance marks from IENC

2019-12-12 Thread lars . schylberg
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

Re: [gdal-dev] ogr2ogr

2019-09-04 Thread lars . schylberg
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,

Re: [gdal-dev] ogr2ogr openstreetmap

2019-09-04 Thread lars . schylberg
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

Re: [gdal-dev] Is there an easy way to clip an image to the realdata?

2019-06-27 Thread lars . schylberg
th 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, "Stephen Woodbridge" skrev:

Re: [gdal-dev] Extract information of a polygon from DEM

2019-05-11 Thread Lars Schylberg
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