[gdal-dev] [EXT] How to build STAC of local raster files?

Vincent Sarago vincent.sarago at gmail.com
Mon Feb 13 12:31:21 PST 2023


rio-stac will just create a STAC Item (a json file locally), if you want to put it in a database (like pgstac) you’ll have to do it using other tools (like pypgstac) 

> Does it know to check if the record exists already?
Depends on the tool and database you’re using

> Can it create a catalog from scratch, or does that have to exist already?

Check pystac 

Feel free to ask more question about STAC over https://matrix.to/#/#SpatioTemporal-Asset-Catalog_Lobby:gitter.im

Vincent 

> On Feb 13, 2023, at 9:25 PM, Matt.Wilkie <Matt.Wilkie at yukon.ca> wrote:
> 
> Thanks Vincent!
>  
> If I’m reading those right: rio stac is for adding individual entries in a catalog, but the process of locating the items to feed it is a homework exercise. Does it know to check if the record exists already? Can it create a catalog from scratch, or does that have to exist already?
>  
> Matt
>  
> From: Vincent Sarago <vincent.sarago at gmail.com <mailto:vincent.sarago at gmail.com>> 
> Sent: February 13, 2023 1:03 PM
> To: Matt.Wilkie <Matt.Wilkie at yukon.ca <mailto:Matt.Wilkie at yukon.ca>>
> Cc: gdal-dev at lists.osgeo.org <mailto:gdal-dev at lists.osgeo.org>
> Subject: [EXT] Re: [gdal-dev] How to build STAC of local raster files?
>  
> You don't often get email from vincent.sarago at gmail.com <mailto:vincent.sarago at gmail.com>. Learn why this is important <https://aka.ms/LearnAboutSenderIdentification>	
> For creating STAC Items you can look at https://github.com/developmentseed/rio-stac <https://can01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fdevelopmentseed%2Frio-stac&data=05%7C01%7CMatt.Wilkie%40yukon.ca%7Cfbaf365c2fc04e7785e508db0dfd5ea5%7C98f515313973490abb70195aa264a2bc%7C0%7C0%7C638119154534363528%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000%7C%7C%7C&sdata=Fku5b4FdCPo0koQINGqFcsA4rFD4eXVWQMv3gUDiQbo%3D&reserved=0> (disclaimer I’m the author), you can also have a look at https://github.com/stac-utils/pystac <https://can01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fstac-utils%2Fpystac&data=05%7C01%7CMatt.Wilkie%40yukon.ca%7Cfbaf365c2fc04e7785e508db0dfd5ea5%7C98f515313973490abb70195aa264a2bc%7C0%7C0%7C638119154534519723%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000%7C%7C%7C&sdata=FPoHfpVP%2FY9m%2FwL5mu2ubj3xiOIftwQ0Qp%2F605%2FZQmY%3D&reserved=0> for creating items and catalog 
>  
> Here is a quick how to about how to create items and collection and ingesting them to pgstac https://github.com/developmentseed/eoAPI/tree/master/demo/noaa <https://can01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fdevelopmentseed%2FeoAPI%2Ftree%2Fmaster%2Fdemo%2Fnoaa&data=05%7C01%7CMatt.Wilkie%40yukon.ca%7Cfbaf365c2fc04e7785e508db0dfd5ea5%7C98f515313973490abb70195aa264a2bc%7C0%7C0%7C638119154534519723%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000%7C%7C%7C&sdata=9xvFOaO6fHnEHjixnhzrLHBS2akWp78QBaweV5I6veo%3D&reserved=0>
>  
> Vincent 
> 
> 
> On Feb 13, 2023, at 8:57 PM, Matt.Wilkie <Matt.Wilkie at yukon.ca <mailto:Matt.Wilkie at yukon.ca>> wrote:
>  
> Hi,
> 
> I’m looking for tutorial/guide/info on how to build SpatioTemporal Asset Catalog for resources like geotiff on local file systems and Windows server shares. It would later be consumed by something like stac-browser <https://can01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fradiantearth%2Fstac-browser&data=05%7C01%7CMatt.Wilkie%40yukon.ca%7Cfbaf365c2fc04e7785e508db0dfd5ea5%7C98f515313973490abb70195aa264a2bc%7C0%7C0%7C638119154534519723%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000%7C%7C%7C&sdata=DDLTGzK70wkuozHxsv6o2h2CkPWv1ejfrGtzBg2qL4s%3D&reserved=0> (I think, I’m not clear on this part yet).
> 
> Also asked at https://gis.stackexchange.com/questions/451951/how-to-build-stac-of-local-raster-files <https://can01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgis.stackexchange.com%2Fquestions%2F451951%2Fhow-to-build-stac-of-local-raster-files&data=05%7C01%7CMatt.Wilkie%40yukon.ca%7Cfbaf365c2fc04e7785e508db0dfd5ea5%7C98f515313973490abb70195aa264a2bc%7C0%7C0%7C638119154534519723%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000%7C%7C%7C&sdata=hUnYEUHVXhmMzWXT126fGBru9GW0bsgcrQMvU6QyJQg%3D&reserved=0> in order to catch more eyeballs.
> 
> Thanks!
> 
> Matt Wilkie
> Geomatics Developer & Administrator
> Environment | Technology, Innovation and Mapping
> T 867-667-8133 | Yukon.ca <https://can01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fyukon.ca%2F&data=05%7C01%7CMatt.Wilkie%40yukon.ca%7Cfbaf365c2fc04e7785e508db0dfd5ea5%7C98f515313973490abb70195aa264a2bc%7C0%7C0%7C638119154534519723%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000%7C%7C%7C&sdata=CPlnciUt2DDl4%2Bim9RPThOM52dWCulOe1oxSgBiMSEE%3D&reserved=0>
> Hours: 08:30-16:30, Mon-Wed: Office, Thu: Remote, Fri: Away.
>  
> _______________________________________________
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org <mailto:gdal-dev at lists.osgeo.org>
> https://lists.osgeo.org/mailman/listinfo/gdal-dev <https://can01.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.osgeo.org%2Fmailman%2Flistinfo%2Fgdal-dev&data=05%7C01%7CMatt.Wilkie%40yukon.ca%7Cfbaf365c2fc04e7785e508db0dfd5ea5%7C98f515313973490abb70195aa264a2bc%7C0%7C0%7C638119154534519723%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000%7C%7C%7C&sdata=bLBlgnCvxOBPBg%2FGoSAaC1U%2B8mN02W9VpZgvA8jZbx0%3D&reserved=0>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20230213/3d9164a2/attachment.htm>


More information about the gdal-dev mailing list