Re: [gdal-dev] Issue Importing GML Files - HTTP 403

2025-02-09 Thread andy via gdal-dev
Thank you very much Even > -- ___ Andrea Borruso website: https://medium.com/tantotanto 38° 7' 48" N, 13° 21' 9" E, EPSG:4326 ___ "cercare e saper riconoscere chi e cosa, in mezzo all’inferno, non è inferno, e farlo durare, e dargli spazio" Italo Calvino _

[gdal-dev] Issue Importing GML Files - HTTP 403

2025-02-09 Thread andy via gdal-dev
Hi, I'm running the following loop to import GML files: for file in *_ple.gml; do ogr2ogr --debug on -append -update -f gpkg CadastralParcel.gpkg "${file}" CadastralParcel; done This is one of these files: https://github.com/user-attachments/files/18725994/A094_AYAS_ple.gml.gz GDAL gives me th

Re: [gdal-dev] NetCDF: how to read coordinates from "lon" and "lat" variables?

2024-12-03 Thread andy via gdal-dev
Hi Even, thank you. I have this { dimensions: Time = UNLIMITED ; // (25 currently) bottom_top = 1 ; south_north = 229 ; west_east = 174 ; DateStrLen = 19 ; variables: float NO2(Time, bottom_top, south_north, west_east) ; NO2:units =

Re: [gdal-dev] NetCDF: how to read coordinates from "lon" and "lat" variables?

2024-12-03 Thread andy via gdal-dev
Hi Michael, and thank you. On Tue, 3 Dec 2024 at 19:06, Michael Sumner wrote: > You can't use a geotransform unless the data are actually regular. There's > no saying whether the lon lat arrays describe a regular grid redundantly > without inspecting them (it's also very common for formats to de

Re: [gdal-dev] NetCDF: how to read coordinates from "lon" and "lat" variables?

2024-12-03 Thread andy via gdal-dev
ith > gdalwarp sds.in out.tif or by specifying a grid with some of > -tr,-te,-t_srs,-ts. > > If they don't appear they can can be arranged via VRT. > > HTH > > On Tue, 3 Dec 2024, 21:52 andy via gdal-dev, > wrote: > >> Hi, >> I have a NetCDF file th

Re: [gdal-dev] NetCDF: how to read coordinates from "lon" and "lat" variables?

2024-12-03 Thread andy via gdal-dev
Hi Michael and thank you. I do not have lon and lat subdatasets listed under "geolocation" and I wrote here for that reason. I also tried doing a VRT, but I am doing something wrong, because I always see the coordinates in pixels Thank you again EPSG:4326 NETCDF:"out.input.nc"

[gdal-dev] NetCDF: how to read coordinates from "lon" and "lat" variables?

2024-12-03 Thread andy via gdal-dev
Hi, I have a NetCDF file that I cannot share here. Using gdalinfo I have the below output. Is there any way to tell gdal to read coordinates from the “lon” and “lat” variables/subdatasets, and thus have the coordinates of the vertices not in pixels? Thank you very much Driver: netCDF/Network C

[gdal-dev] Is there a GDAL way to use a WPS service?

2024-04-14 Thread andy via gdal-dev
Hi, I would like to test a WPS to run coordinate conversion, And I don't know if there is a way to do it with GDAL. If there is not, is there a cli tool with which to do it? Thank you, Andrea P.S. if there's no cli, I will use owslib via python -- ___ Andrea Borruso website:

[gdal-dev] FEATURE_SERVER_PAGING and GeoServices REST debugging

2024-03-05 Thread andy via gdal-dev
Hi, I'm querying a very slow GeoService REST ogrinfo -al -ro -so --config GDAL_HTTP_UNSAFESSL YES " https://webapps.sit.puglia.it/arcgis/rest/services/Background/Catasto/MapServer/2/query?where=COMUNE%3D%27F915%27&text=&objectIds=&time=&geometry=&geometryType=esriGeometryEnvelope&inSR=&spatialRel

[gdal-dev] gdalinfo and WMT_MS_Capabilities: how to get Dimension and its Extent?

2024-03-02 Thread andy via gdal-dev
Hi, if I run "gdalinfo -json WMSURL -sd 1", I can read a lot of info about it, but I do not see Dimension and its Extent in the json output (below an example from WMS request). 2024-01-01T00:00:00.000Z,2024-01-02T00:00:00.000Z,2024-01-03T00:00:00.000Z,2024-01-04T00:00:00.000Z I would like to hav

Re: [gdal-dev] gdalinfo and WMS: is there a way to pass credentials via CLI?

2024-02-23 Thread andy via gdal-dev
so here GDAL_HTTP_USERPWD > > gdalinfo "WMS:http://wms.geobase.ca/wms-bin/cubeserv.cgi"; --config > GDAL_HTTP_USERPWD user:password > > And probably that just incorporating it in the URL should work: > > gdalinfo "WMS:http://user:passw...@wms.geobase.ca/wms-bin/cubese

[gdal-dev] gdalinfo and WMS: is there a way to pass credentials via CLI?

2024-02-23 Thread andy via gdal-dev
Hi, is there a way to pass UserPwd parameter via a gdalinfo command? Is there a way to pass it, without creating an XML file? Something like this gdalinfo "WMS:http://wms.geobase.ca/wms-bin/cubeserv.cgi"; -UserPwd user:password Thank you -- ___ Andrea Borruso website: https://

Re: [gdal-dev] Compyle gdal >=3.7: lib2to3 error

2024-02-07 Thread andy via gdal-dev
Hi, I have renamed my "/usr/bin/python3.9" and restarted all and I was able to close the thing, because it only took '/usr/bin/python3.11' into account Cheers -- ___ Andrea Borruso website: https://medium.com/tantotanto 38° 7' 48" N, 13° 21' 9" E, EPSG:4326 ___

Re: [gdal-dev] Compyle gdal >=3.7: lib2to3 error

2024-02-06 Thread andy via gdal-dev
Hi Even, On Tue, 6 Feb 2024 at 00:09, Even Rouault wrote: > Cf related https://github.com/OSGeo/gdal/pull/9174 that has been > backported in 3.8 branch (not in release yet) and which will completely > remove the use of lib2to3 in preparation of python 3.13 which will no > longer provide it. > ca

Re: [gdal-dev] Compyle gdal >=3.7: lib2to3 error

2024-02-05 Thread andy via gdal-dev
Thank you Even, Unfortunately, python 3.9 and 3.11 coexist on my system, and gdal is compiled with 3.9. In any case if I launch "python3," it launches Python 3.11.2. And to run the 3.9 I must run "/usr/bin/python3.9". If I can compile on 3.11, do I solve? And if so, is there a way to do it and dis

[gdal-dev] Compyle gdal >=3.7: lib2to3 error

2024-02-05 Thread andy via gdal-dev
Hi, I compile gdal 3.7 in this way: mkdir -p build cd build cmake -D GDAL_USE_GEOS=ON -D OGR_ENABLE_DRIVER_PARQUET:BOOL=OFF -D OGR_ENABLE_DRIVER_ARROW:BOOL=OFF .. cmake --build . sudo cmake --build . --target install When I run "cmake --build ." I have this error: Deprecated command line option:

Re: [gdal-dev] Non able to manage properly vitual file, warping and black edges

2024-01-23 Thread andy via gdal-dev
Hi Even, On Tue, 23 Jan 2024 at 14:59, Even Rouault wrote: > Perhaps due to a difference in the overview resampling method. The COG > driver uses cubic by default. Perhaps try adding -co RESAMPLING=AVERAGE to > compare compareable things. > using -co RESAMPLING=AVERAGE the total time is 30 min

Re: [gdal-dev] Non able to manage properly vitual file, warping and black edges

2024-01-23 Thread andy via gdal-dev
Even, the verbose process lasts 24 minutes, the COG process lasts 36 minutes. There is a 50% difference. Best regards -- ___ Andrea Borruso website: https://medium.com/tantotanto 38° 7' 48" N, 13° 21' 9" E, EPSG:4326 ___ "cercare e saper riconoscere chi e cosa,

Re: [gdal-dev] Non able to manage properly vitual file, warping and black edges

2024-01-23 Thread andy via gdal-dev
Hi Even, because it creates the overviews. You can disable creating them with -co > OVERVIEWS=NO > Sorry, but I didn't write down my whole procedure. After gdal_translate, I run gdaladdo --config GDAL_NUM_THREADS ALL_CPUS --config BIGTIFF_OVERVIEW YES --config INTERLEAVE_OVERVIEW PIXEL -r averag

Re: [gdal-dev] Non able to manage properly vitual file, warping and black edges

2024-01-23 Thread andy via gdal-dev
Hi Even, the COG is a much simpler command, it keeps everything in a little bit, but it is much slower than the more verbose procedure I wrote. So I ruled it out. Thank you very much for the information you gave me, valuable -- ___ Andrea Borruso website: https://medium.com/tant

Re: [gdal-dev] Non able to manage properly vitual file, warping and black edges

2024-01-22 Thread andy via gdal-dev
Hi Even first of all, thank you very much. I was tired yesterday. I realize this, because this morning I created a new script starting from scratch and everything seems to be working. Yesterday I was probably looking at the wrong output folder (I am stupid as well as tired). It this way it works:

Re: [gdal-dev] Non able to manage properly vitual file, warping and black edges

2024-01-22 Thread andy via gdal-dev
Hi Even, and thank you, I have the same result. Do I must remove jpeg compression in gdaladdo? Best regards -- ___ Andrea Borruso website: https://medium.com/tantotanto 38° 7' 48" N, 13° 21' 9" E, EPSG:4326 ___ "cercare e saper riconoscere chi e cosa, in me

[gdal-dev] Non able to manage properly vitual file, warping and black edges

2024-01-22 Thread andy via gdal-dev
Hi, I have four tif input files, these have 3 bands RGB and are JPEG compressed. No null data set. My goal is to mosaic these and then warp the mosaic. I start it with: gdalbuildvrt mosaic.vrt file1.tif file2.tif file3.tif file4.tif Then I warp the mosaic: gdalwarp -dstalpha -of vrt -overwr

Re: [gdal-dev] Export image binary data from GDB dataset

2023-11-15 Thread andy via gdal-dev
Even, On Wed, 15 Nov 2023 at 14:38, Even Rouault wrote: > looking with an hexadecimal editor, one sees the strings "Fotografia di > Photo Editor", "MSPhotoEd.3", so it seems to be Microsoft Photo Editor > format. According to > https://stackoverflow.com/questions/43902205/microsoft-photo-editor-

[gdal-dev] Export image binary data from GDB dataset

2023-11-15 Thread andy via gdal-dev
Hi, I have a Binary field in a GDB data source. I have no other metadata about it. I know only that the field name is "image", then it should contain images. But I do not know the original file format. I have extract one row (and then one field) as string it, using ogr2ogr -f CSV /vsistdout/ -fi