stac-utils / stac-vrt

MIT License
21 stars 2 forks source link

adding warning when projection or resolution of items are different #14

Open mehran66 opened 11 months ago

mehran66 commented 11 months ago

The stac_vrt.build_vrt function determines the projection and resolution based on the first item in the dataset. This approach can sometimes lead to complications. A notable example is the case of NAIP imagery, which can have varying resolutions - specifically, 0.6m and 1m. When two images sharing the same projection but differing in resolution are processed together, the resultant output may be inaccurate. Implementing a warning system that alerts users whenever such discrepancies occur would be a valuable enhancement to the function. This warning could flag potential resolution mismatches, helping users to preemptively address any issues that might compromise the integrity of their results.

TomAugspurger commented 11 months ago

You might want to use GDAL’s built-in STACIT driver https://gdal.org/drivers/raster/stacit.html instead of stac-vrt.

On Dec 1, 2023, at 3:26 PM, Mehran Ghandehari @.***> wrote:

The stac_vrt.build_vrt function determines the projection and resolution based on the first item in the dataset. This approach can sometimes lead to complications. A notable example is the case of NAIP imagery, which can have varying resolutions - specifically, 0.6m and 1m. When two images sharing the same projection but differing in resolution are processed together, the resultant output may be inaccurate. Implementing a warning system that alerts users whenever such discrepancies occur would be a valuable enhancement to the function. This warning could flag potential resolution mismatches, helping users to preemptively address any issues that might compromise the integrity of their results.

— Reply to this email directly, view it on GitHub https://github.com/stac-utils/stac-vrt/issues/14 or unsubscribe https://github.com/notifications/unsubscribe-auth/AAKAOIQEXI6Z4HNQOOH6FVDYHJDO5BFKMF2HI4TJMJ2XIZLTSOBKK5TBNR2WLJDUOJ2WLJDOMFWWLO3UNBZGKYLEL5YGC4TUNFRWS4DBNZ2F6YLDORUXM2LUPGBKK5TBNR2WLJLJONZXKZNENZQW2ZNLORUHEZLBMRPXI6LQMWBKK5TBNR2WLJDUOJ2WLJDOMFWWLLTXMF2GG2C7MFRXI2LWNF2HTLDTOVRGUZLDORPXI6LQMWSUS43TOVS2M5DPOBUWG44SQKSHI6LQMWVHEZLQN5ZWS5DPOJ42K5TBNR2WLKJTGQZTKNJTGQ4TNAVEOR4XAZNFNFZXG5LFUV3GC3DVMWVDEMBSGE3DANBRG4Z2O5DSNFTWOZLSUZRXEZLBORSQ. You are receiving this email because you are subscribed to this thread.

Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.