[gdal-dev] gdal.VectorTranslate bug on Linux

2022-10-06 Thread Lorenzo Di Giacomo
Hello, i noticed a strange behaviour in the gdal.VectorTranslate function. This is my snippet: *from osgeo import gdal, ogrimport sys'''- SRC (FILE)- DST (FILE)- FORMAT (GEOJSON)'''SRC = "/tmp/9f097a2e-d849-4261-9735-f3d45a6d01e7/example.kml"DST = "/tmp/test.json"FORMAT =

[gdal-dev] GDAL_RETILE dataset is illegal

2022-05-25 Thread Lorenzo Di Giacomo
Hi, when i try to do gdal_retile -v -pyramidOnly -r bilinear ... this error occurs: ERROR 1: Attempt to create 2x0 dataset is illegal,sizes must be larger than zero. My Tiff is the following (gdalinfo): Driver: GTiff/GeoTIFF Files:

Re: [gdal-dev] HDF4Image stuck on translate

2022-02-22 Thread Lorenzo Di Giacomo
Ok seems to be just a momentary problem, resolved after other 3-4 tests, can't really say what happened ___ gdal-dev mailing list gdal-dev@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/gdal-dev

[gdal-dev] HDF4Image stuck on translate

2022-02-22 Thread Lorenzo Di Giacomo
Hi, i'm doing some "conversion" test, from one format to another (mainly from TIFF to ALL). I found in HDF4Image driver that on some images, it get stuck. gdal_translate -of HDF4Image source.tiff dest.hdf Input file size is 2861, 3635 0...10...20...30...40...50...60...70...80...90...100 - done.

Re: [gdal-dev] Gdal_translate into HDF4 fails

2022-02-18 Thread Lorenzo Di Giacomo
ity_hdf5.html > Le 18/02/2022 à 15:24, Lorenzo Di Giacomo a écrit : > > Hi guys, i was reading the question and i was wondering if it's possibile > do the same translate operation with HDF5, like: > gdal_translate -of HDF5Image 3band.tif out.h5, i tried but doesn't work > and says &quo

Re: [gdal-dev] Gdal_translate into HDF4 fails

2022-02-18 Thread Lorenzo Di Giacomo
Hi guys, i was reading the question and i was wondering if it's possibile do the same translate operation with HDF5, like: gdal_translate -of HDF5Image 3band.tif out.h5, i tried but doesn't work and says " HDF5 driver has no creation capabilities." Thanks

Re: [gdal-dev] Overcome Tiff limitation 32 KB

2022-02-16 Thread Lorenzo Di Giacomo
Great, thanks! Il giorno mer 16 feb 2022 alle ore 15:29 Even Rouault < even.roua...@spatialys.com> ha scritto: > > Le 16/02/2022 à 15:22, Lorenzo Di Giacomo a écrit : > > Hi devs, with the gdal 3.4.x is there a way to overcome the limitation > > of having more than 32KB

[gdal-dev] Overcome Tiff limitation 32 KB

2022-02-16 Thread Lorenzo Di Giacomo
Hi devs, with the gdal 3.4.x is there a way to overcome the limitation of having more than 32KB of metadata in a GeoTiff file (aka using a different writing method for TIFF)? Thanks all! ___ gdal-dev mailing list gdal-dev@lists.osgeo.org

Re: [gdal-dev] Black borders after reprojection GDAL_WARP

2021-11-19 Thread Lorenzo Di Giacomo
st is sufficiently small and the geometry > change being approximatively an affine transformation, you can try > https://gdal.org/programs/gdalmove.html instead of gdalwarp to only alter > the georeferencing information and not touch pixel values at all. > > Even > Le 18/11/2021

Re: [gdal-dev] Black borders after reprojection GDAL_WARP

2021-11-18 Thread Lorenzo Di Giacomo
transparent in this case. > > I hope that helps, > carl > > > On Wed, Nov 17, 2021 at 8:11 AM Lorenzo Di Giacomo > wrote: > >> Hi all, i have a question, how is it possible to avoid black borders >> after reprojection with "gdal_warp" ? >> Basical

[gdal-dev] Black borders after reprojection GDAL_WARP

2021-11-17 Thread Lorenzo Di Giacomo
Hi all, i have a question, how is it possible to avoid black borders after reprojection with "gdal_warp" ? Basically i have an image that is little rotated, when i reprojected from 32632 to 4326 the resulting image has black borders more or less tight depending on the rotation. I saw i can change

Re: [gdal-dev] Raster supported raster conversions

2021-11-13 Thread Lorenzo Di Giacomo
Thank you !! > ___ gdal-dev mailing list gdal-dev@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/gdal-dev

[gdal-dev] Raster supported raster conversions

2021-11-12 Thread Lorenzo Di Giacomo
Hi i have a question about format conversion: How is it possibile to know the possible conversions between formats (using gdal_translate)? I found https://gdal.org/drivers/raster/index.html, so i guess is possible to convert from format X to format Y iff the GDAL driver of format Y has the

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

2021-11-11 Thread Lorenzo Di Giacomo
ell like creating a tile index for Mapserver usage > and trimming the tiles from nodata parts. > > Have fun / Lars S. > > > 11 november 2021 kl. 15:46, "Lorenzo Di Giacomo" > > skrev: > > Hi, i can't find a simple way (not to choose the cut coordinates m

[gdal-dev] Mosaicing using GDAL Wrap / Translate

2021-11-11 Thread Lorenzo Di Giacomo
Hi, i can't find a simple way (not to choose the cut coordinates manually) in order to crop an entire raster image into N images given a fixed size of pixel, how can this be achieved? Thanks ___ gdal-dev mailing list gdal-dev@lists.osgeo.org

Re: [gdal-dev] ModuleNotFoundError: No module named 'osgeo._gdal_array'

2021-09-24 Thread Lorenzo Di Giacomo
s were not found! Array support will not be enabled" > > or > > 'WARNING: numpy not available! Array support will not be enabled' > > Even > Le 24/09/2021 à 14:53, Lorenzo Di Giacomo a écrit : > > Hi everyone, basically i build from source GDAL 3.2.2 and install the &g

[gdal-dev] ModuleNotFoundError: No module named 'osgeo._gdal_array'

2021-09-24 Thread Lorenzo Di Giacomo
Hi everyone, basically i build from source GDAL 3.2.2 and install the python bindings via pip3 install gdal==3.2.2 Later i install numpy, i have read online that the numpy must be installed before GDAL python bindings. So i tried to uninstall python gdal and than reinstall it, but the problem

[gdal-dev] GDAL_RETILE levels

2021-09-01 Thread Lorenzo Di Giacomo
Hi, i'd like have 18 levels in my pyramid in order to have a better control of the cache. The problem is that GDAL_RETILE when arrives at about 10th level, gave error: 'NoneType' object has no attribute 'SetGeoTransform' Do you know why is this happening? Is allowed to have all this levels in

[gdal-dev] Java bindings on debian

2021-09-01 Thread Lorenzo Di Giacomo
Hi, i saw that Debian now has GDAL 3.2.2 available. I can install it and also the python3 bindings, but they doesn't have the java bindings. I download GDAL-3.2.2 and do "./configure", then "make" and later i go on "/swig/java" and do "make" but i get: *cannot find the library

[gdal-dev] GDAL translate to NetCDF with aux

2021-07-21 Thread Lorenzo Di Giacomo
Hi, i have a .TIFF file and a .AUX.XML file. I'd like to create a NetCDF from .TIFF and .AUX.XML, is possible merge them in a NetCDF? The .AUX.XML come from the gdaltranslate operation NetCDF -> TIFF (since the metadata are bigger than 32000 bytes). To summarize the flow is: NetCDF > TIFF + aux

[gdal-dev] Metadata exceeding 32000 bytes cannot be written into GeoTIFF....

2021-07-14 Thread Lorenzo Di Giacomo
Hi i'm having a NetCDF (.nc) file, with N bands each of those have N levels. My final goal would be have a single GEOTIFF with all the bands and levels (since Geotiff dont support levels, all the levels will be a BAND) So my workflow would be: extract each band and its levels to 1 single

Re: [gdal-dev] Lost band name during merge

2021-07-14 Thread Lorenzo Di Giacomo
ile] [band #] [out_file] [band #] > > > > > > cheers, > > > > -Matt > > > > *From:* gdal-dev *On Behalf Of *Lorenzo > Di Giacomo > *Sent:* July 9, 2021 7:30 AM > *To:* gdal-dev@lists.osgeo.org > *Subject:* [gdal-dev] Lost band name during merge &

[gdal-dev] Lost band name during merge

2021-07-09 Thread Lorenzo Di Giacomo
Hi, i have N netcdf OR N tiff. I want merge them all in 1 tiff. I do that using: Either gdal_merge.py -separate -o OR gdalbuildvrt AND gdal_translate ... Both approaches works but each band has a name like "band_1", "band_2" ecc. the original band name is lost Is there a way to at least

Re: [gdal-dev] Merge multiple TIFF / NC in single NC

2021-06-17 Thread Lorenzo Di Giacomo
i have explained BAD* Il giorno gio 17 giu 2021 alle ore 10:09 Lorenzo Di Giacomo < loridi...@gmail.com> ha scritto: > I think i have explained what i'd like to have, i attach the image of the > initial .nc file that i would like to have back at the end of the process: > &g

Re: [gdal-dev] Merge multiple TIFF / NC in single NC

2021-06-17 Thread Lorenzo Di Giacomo
I think i have explained what i'd like to have, i attach the image of the initial .nc file that i would like to have back at the end of the process: do you have any suggestions? Thanks a lot ___ gdal-dev mailing list gdal-dev@lists.osgeo.org

Re: [gdal-dev] Merge multiple TIFF / NC in single NC

2021-06-16 Thread Lorenzo Di Giacomo
Or use gdalbuildvrt -separate tmp.vrt in1.tif ... in2.tif + gdal_translate > tmp.vrt out.nc > Le 16/06/2021 à 17:22, Lorenzo Di Giacomo a écrit : > > Hi everybody, initially i have 1 NetCDF and for each band i create 1 > GEOTIFF. > Now, i have X ( where X = #bands) TIFF files and i

[gdal-dev] Merge multiple TIFF / NC in single NC

2021-06-16 Thread Lorenzo Di Giacomo
Hi everybody, initially i have 1 NetCDF and for each band i create 1 GEOTIFF. Now, i have X ( where X = #bands) TIFF files and i want to come back to 1 NetCDF file. How should i do it? P.S. i saw that with gdal_translate i can also transform each GEOTIFF in one NetCDF, but at the end i cant find

[gdal-dev] gdal_retile JAVA bindings

2021-04-21 Thread Lorenzo Di Giacomo
Hi, i can't find the gdal_retile porting on java, is there a class / method? If not, which is the best workaround? ___ gdal-dev mailing list gdal-dev@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/gdal-dev

[gdal-dev] "gdalbuildvrt does not support rotated geo transforms"

2021-04-08 Thread Lorenzo Di Giacomo
Hi, do you know why this happens when i try to merge tiles of a specific tiff? How can check if a tiff had a rotated geo transforms? And how can i fix it before merging it? Here are some QGIS info about the tiff: SR EPSG:4326 - WGS 84 - Geografico Estensione

[gdal-dev] Java bindings on OSX and CentOS

2021-01-19 Thread Lorenzo Di Giacomo
Hi, i installed GDAL on OSX via brew install. Then i tried to add the dependecy on Maven but when i execute a simple command like "gdal.Open()", but i get java.lang.UnsatisfiedLinkError: org.gdal.gdal.gdalJNI.Open__SWIG_1(Ljava/lang/String;)J. I undertood that i need to set the java bindings, but