Skip to content

Commit

Permalink
Updated dependencies (Landsat USGS search by ID and TAR archive issue)
Browse files Browse the repository at this point in the history
  • Loading branch information
floeschau committed Oct 2, 2024
1 parent 8e13424 commit 33ca6e2
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/Stars.Data/Terradue.Stars.Data.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
<PackageReference Include="MimeTypes" Version="2.0.2" />
<PackageReference Include="Terradue.OpenSearch.SciHub" Version="1.48.*"/>
<PackageReference Include="Terradue.OpenSearch.Asf" Version="1.4.*" />
<PackageReference Include="Terradue.OpenSearch.Usgs" Version="1.7.*" />
<PackageReference Include="Terradue.OpenSearch.Usgs" Version="1.8.0" />
<PackageReference Include="Terradue.OpenSearch.GeoJson" Version="1.4.5" />
<PackageReference Include="Terradue.GeoJson" Version="1.12.1" />
<PackageReference Include="MaxRev.Gdal.Core" Version="3.3.3.110" />
Expand All @@ -54,9 +54,12 @@
<!--<ItemGroup>
<ProjectReference Include="../../../terradue.opensearch.scihub/Terradue.OpenSearch.SciHub/Terradue.OpenSearch.SciHub.csproj" />
</ItemGroup>-->
<!-- <ItemGroup>
<!--<ItemGroup>
<ProjectReference Include="../../../terradue.opensearch.asf/Terradue.OpenSearch.Asf/Terradue.OpenSearch.Asf.csproj" />
</ItemGroup>-->
<!--<ItemGroup>
<ProjectReference Include="../../../terradue.opensearch.usgs/Terradue.OpenSearch.Usgs/Terradue.OpenSearch.Usgs.csproj" />
</ItemGroup> -->
</ItemGroup>-->
<ItemGroup>
<None Include="..\..\LICENSE" Pack="true" PackagePath="" />
<None Include="..\..\docs\logo\Stars_logo.png" Pack="true" PackagePath="" />
Expand Down
3 changes: 3 additions & 0 deletions src/Stars.Services/Processing/Archive.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ namespace Terradue.Stars.Services.Processing
public abstract class Archive : ILocatable
{
public static readonly Dictionary<string, ArchiveType> ArchiveFileExtensions = new Dictionary<string, ArchiveType>() {
{ ".tar", ArchiveType.Tar },
{ ".tar.gz", ArchiveType.TarGzip },
{ ".tgz", ArchiveType.TarGzip },
{ ".tar.Z", ArchiveType.TarGzip },
Expand Down Expand Up @@ -48,6 +49,8 @@ internal static async Task<Archive> Read(IAsset asset, ILogger logger, IResource
{
case ArchiveType.Zip:
return new ZipArchiveAsset(asset, logger, resourceServiceProvider, fileSystem);
case ArchiveType.Tar:
return new TarArchiveAsset(asset, resourceServiceProvider, logger);
case ArchiveType.TarGzip:
return new TarGzipArchive(asset, resourceServiceProvider, logger);
case ArchiveType.Gzip:
Expand Down
1 change: 1 addition & 0 deletions src/Stars.Services/Processing/ArchiveType.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ public enum ArchiveType
{
None,
Compress,
Tar,
TarGzip,
TarBzip2,
Zip,
Expand Down

0 comments on commit 33ca6e2

Please sign in to comment.