[gdal-dev] fail to pip install gdal

2024-11-21 Thread ni hao via gdal-dev
Hi list, I have python 3.13.0 when I tried to pip install gdal, I got: Collecting gdal Downloading gdal-3.10.tar.gz (848 kB) 848.1/848.1 kB 7.7 MB/s eta 0:00:00 Installing build dependencies ... done Getting requirements to build wheel ... done

[gdal-dev] Sentinel-1 SLC overlapping Tiff images

2024-11-21 Thread ni hao via gdal-dev
Hi list, Sentinel-1 SLC consists of three overlapping Tiff images. Can GDAL handle this format? Or it only ingests the first Tiff? Thank you! ___ gdal-dev mailing list gdal-dev@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/gdal-dev

[gdal-dev] gdal_merge with jython

2024-01-31 Thread ni hao via gdal-dev
Dear list, I am using Java to call gdal_merge(), but having troubles. Are there examples or tips? Thank you! ___ gdal-dev mailing list gdal-dev@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/gdal-dev

Re: [gdal-dev] gdal_merge -of format

2024-01-12 Thread ni hao via gdal-dev
Thank you Andrew! From: Andrew C Aitchison Sent: January 11, 2024 6:00 AM To: ni hao Cc: gdal-dev@lists.osgeo.org Subject: Re: [gdal-dev] gdal_merge -of format On Wed, 10 Jan 2024, ni hao via gdal-dev wrote: > Hi list, > > > > question about:

[gdal-dev] gdal_merge -of format

2024-01-10 Thread ni hao via gdal-dev
Hi list, question about: gdal_merge -of format besides GTiff, what other formats can I specify? May I specify USGS DEM format? Thank you, ___ gdal-dev mailing list gdal-dev@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/gdal-dev

Re: [gdal-dev] Sentinel-3 driver

2023-09-04 Thread ni hao
https://sentinels.copernicus.eu/web/sentinel/user-guides/sentinel-3-altimetry/data-formats Sentinel-SAFE is based on the XML Formatted Data Units (XFDU) From: gdal-dev on behalf of ni hao Sent: September 4, 2023 9:38 PM To: gdal-dev@lists.osgeo.org Subject

[gdal-dev] Sentinel-3 driver

2023-09-04 Thread ni hao
Hi list, Is there a GDAL driver for Sentinel-3's xfdumanifest.xml, not just individual *.nc ? Thank you. ___ gdal-dev mailing list gdal-dev@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/gdal-dev

[gdal-dev] SICD driver

2023-09-04 Thread ni hao
Hi list, Is there a GDAL sensor independent complex data (SICD) driver ? https://help.umbra.space/kb/guide/en/metadata-standard-sensor-independent-complex-data-sicd-0rG1v1c6mZ/Steps/665407 Thank you. [https://stonly.com/resources/facebook-cover.jpg]

[gdal-dev] jp2

2023-01-17 Thread ni hao
Hi list, I'd like to convert NITF to a jpeg2000 (*.jp2) that can be opened by STK (Satellite Tool Kit). I don't have any JP2 decoder. is this command right? gdal_translate -of JPEG2000 input.ntf output.jp2 the progress bar showed 0 to 100%, but the result output.jp2 is empty Thank you

[gdal-dev] NetCDF-4

2022-11-04 Thread ni hao
Hi list, Is Sentinel-3's NetCDF-4 format supported in GDAL? It consists of many *.nc files and 'xfdumanifest.xml' If so, since which version? Thank you! ___ gdal-dev mailing list gdal-dev@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/gdal-dev

[gdal-dev] version 2.4.4

2022-02-26 Thread ni hao
Hi list, I want to keep using GDAL2 because GDAL3 changes a lot and I can't afford the effort to upgrade PROJ and other libs. My question: is version 2.4.4 ok to use? I was told that its NUMPY has 'null pointer' issues. Are there necessary revisions need to be applied? Thank you! _

[gdal-dev] gdal v3.4.1 generate_vcxproj.bat error

2022-02-13 Thread ni hao
Hi list, gdal v3.4.1 generate_vcxproj.bat line 277 has an error: echo ^nmake -f makefile.vc MSVC_VER=%_clver_% %_nmake_opt_win64_% clean ^&^& nmake -f makefile.vc MSVC_VER=%_clver_%^ >> %_gdalproj_% it is missing %_nmake_opt_win64_% in the 2nd nmake commnad line. ___

Re: [gdal-dev] Sentinel-1 IW Single Look Complex (SLC)

2022-02-03 Thread ni hao
]], dtype=complex64) as you can see, not only SAFE driver can only ingest 1 TIFF out of 3. Its complex numbers are wrong. From: gdal-dev on behalf of ni hao Sent: February 3, 2022 10:11 AM To: Even Rouault ; gdal-dev@lists.osgeo.org Subject: Re: [gdal-dev] Senti

Re: [gdal-dev] Sentinel-1 IW Single Look Complex (SLC)

2022-02-03 Thread ni hao
A calibration'), ('SENTINEL1_CALIB:UNCALIB:manifest.safe:IW3_HH:COMPLEX', 'Single band with IW3 swath and HH polarization and UNCALIB calibration'), ('SENTINEL1_CALIB:UNCALIB:manifest.safe:IW3_HH:INTENSITY', 'Single band with IW3 swath and HH polarization and UNCALIB calibration')] _

[gdal-dev] Sentinel-1 dataset

2022-02-02 Thread ni hao
Hi list, There are two issues with the latest GDAL 3.4.1 Sentinel-1: 1. ds.GetBandNames() is no longer available. e.g., it should output ['HH', 'HV'] 2. for dual-polarisation, we can have two band combinations: HH/HV and VV/VH. For VV/VH, the band order should be VV/VH, rather than in a

Re: [gdal-dev] Sentinel-1 IW Single Look Complex (SLC)

2022-02-01 Thread ni hao
Thank you Even. From: Even Rouault Sent: February 1, 2022 12:33 PM To: ni hao ; gdal-dev@lists.osgeo.org Subject: Re: [gdal-dev] Sentinel-1 IW Single Look Complex (SLC) Hi, There have been improvements in GDAL 3.4.0 (*) regarding SLC products in the SAFE

[gdal-dev] Sentinel-1 IW Single Look Complex (SLC)

2022-02-01 Thread ni hao
Hi list, GDAL Sentinel-1 driver question: I know that GDAL Sentinel-1 driver works well on GRD (detected). What about SLC? Level-1 IW SLC product contains one image per sub-swath, per polarisation channel, for a total of three or six images (3 tiff for HH, or 6 tiff for HH/HV dual-band) The EW

Re: [gdal-dev] RPCs in GeoTIFF

2022-01-04 Thread ni hao
Hi list, https://gis.stackexchange.com/questions/264644/transfer-rpc-metadata-from-one-geotiff-to-another The above link showed me how to do it. thanks. From: gdal-dev on behalf of ni hao Sent: January 3, 2022 2:03 PM To: gdal-dev@lists.osgeo.org Subject

[gdal-dev] RPCs in GeoTIFF

2022-01-03 Thread ni hao
Hi list, I use gdal-2.4.4. I use gdalwarp to orthorectify RADARSAT-2 images with RPCs (in product.xml). Now I have done some manipulation and save the result in GTiff (e.g., apply Sigma0 LUT). How can I copy the RPC Metadata from product.xml into GTiff, so I can use gdalwarp RPC orthorectificati

[gdal-dev] polygon union

2021-10-14 Thread ni hao
Hi list, I know how to union two polygons using Python's ogr. feat = ogr.Feature(lyr.GetLayerDefn()) feat.SetGeometry(collection1.Union(collection2)) But I need to do this in Java or use a command line exe, and I am not familiar with Java. What is the Java function or a command line exe ? T

Re: [gdal-dev] NITF DES

2021-08-25 Thread ni hao
Thank you Even for your help. From: Even Rouault Sent: August 24, 2021 3:28 PM To: ni hao ; gdal-dev@lists.osgeo.org Subject: Re: [gdal-dev] NITF DES Le 24/08/2021 à 20:07, ni hao a écrit : Hi Even, Thank you for your reply. Is there a simpler example to

Re: [gdal-dev] NITF DES

2021-08-24 Thread ni hao
Hi Even, Thank you for your reply. Is there a simpler example to remove DES (say DES ID = 1) from an existing NITF, or replace DES with a null string? From: Even Rouault Sent: August 24, 2021 1:50 PM To: ni hao ; gdal-dev@lists.osgeo.org Subject: Re: [gdal

[gdal-dev] NITF DES

2021-08-24 Thread ni hao
Hi List, Is there a GDAL utility or Python code to delete/alter/write to NITF Data Extension Segments (DES) ? Thanks. ___ gdal-dev mailing list gdal-dev@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/gdal-dev

Re: [gdal-dev] Python create BigTIFF image

2021-04-20 Thread ni hao
Thank you Even and Javier for your help. GDAL list is great!! From: Even Rouault Sent: April 20, 2021 5:03 PM To: ni hao ; gdal-dev@lists.osgeo.org Subject: Re: [gdal-dev] Python create BigTIFF image Ah ok that explains it then. The heuristics in the Create

Re: [gdal-dev] Python create BigTIFF image

2021-04-20 Thread ni hao
in ds.BuildOverviews() ? From: Even Rouault Sent: April 20, 2021 3:56 PM To: ni hao ; gdal-dev@lists.osgeo.org Subject: Re: [gdal-dev] Python create BigTIFF image Le 20/04/2021 à 20:53, ni hao a écrit : Hi list, I use Python to create GeoTiff image, and I get the error because

[gdal-dev] Python create BigTIFF image

2021-04-20 Thread ni hao
Hi list, I use Python to create GeoTiff image, and I get the error because it exceeds 4GB. ds = gdal.GetDriverByName('GTiff').Create(output_magnitude, xsize, ysize, 1, gdal.GDT_Float32) ERROR 1: TIFFReadDirectory:Failed to read directory at offset 4294957836 ERROR 1: TIFFWriteDirectoryTag

Re: [gdal-dev] NITF Int16 image size limit

2021-04-07 Thread ni hao
I took a closer look at the files. It looks like they maxed out the byte size and were truncated. Several NITF images have different rows * columns, but the same byte size. May not be a GDAL issue. From: gdal-dev on behalf of ni hao Sent: April 7, 2021 10:52

Re: [gdal-dev] NITF Int16 image size limit

2021-04-07 Thread ni hao
Hi Even, It was CSA using their own software. They said that it was fine access the last 2000 lines. But I could not confirm. From: Even Rouault Sent: April 7, 2021 10:41 AM To: ni hao ; gdal-dev@lists.osgeo.org Subject: Re: [gdal-dev] NITF Int16 image size

Re: [gdal-dev] NITF Int16 image size limit

2021-04-07 Thread ni hao
NITF_PVTYPE=INT NITF_STYPE=BF01 NITF_TGTID= From: Even Rouault Sent: April 7, 2021 5:23 AM To: ni hao ; gdal-dev@lists.osgeo.org Subject: Re: [gdal-dev] NITF Int16 image size limit Hi, Actually the error message doesn't look like there's a uint32 over

Re: [gdal-dev] NITF Int16 image size limit

2021-04-06 Thread ni hao
olorInterp=Gray Also I am sure it is the UInt16 overflow, as the message is: ERROR 3: Unable to read 4194302 byte block from 4324329780 and 2**32 = 4294967296 From: br...@frogmouth.net Sent: April 6, 2021 8:17 PM To: Even Rouault ; ni hao Cc: gdal-dev@lists.osg

[gdal-dev] NITF Int16 image size limit

2021-04-06 Thread ni hao
Hi list, I encountered problem ingesting a large NITF Int16 image with GDAL: NITF 2-band image in Int16 format, 4.3 GB. It has 19690 lines x 61180 pixels. The upper 90% of the image looks fine. But the last 2000 lines fail to load by GDAL. That coincides with the 32-bit boundary. Note