Skip to content

Commit b376ae0

Browse files
Merge branch 'release/0.9.2'
2 parents 787dd5b + c5a1793 commit b376ae0

File tree

5 files changed

+33
-6
lines changed

5 files changed

+33
-6
lines changed

.vscode/launch.json

+26-1
Original file line numberDiff line numberDiff line change
@@ -619,7 +619,32 @@
619619
"moduleLoad": false
620620
}
621621
},
622-
622+
{
623+
"name": "Copy calibrated",
624+
"type": "coreclr",
625+
"request": "launch",
626+
"preLaunchTask": "build",
627+
// If you have changed target frameworks, make sure to update the program path.
628+
"program": "${workspaceFolder}/src/Stars.Console/bin/Debug/netcoreapp3.1/Stars.dll",
629+
"args": [
630+
"copy",
631+
"https://supervisor.charter.uat.esaportal.eu/catalog/calls/call-100/calibratedDatasets/S2A_MSIL1C_20200615T060641_N0209_R134_T45WWS_20200615T080720-calibrated/S2A_MSIL1C_20200615T060641_N0209_R134_T45WWS_20200615T080720-calibrated.json",
632+
"-v",
633+
"-af",
634+
"red",
635+
"-r",
636+
"4",
637+
"--output",
638+
"/tmp/charter"
639+
],
640+
"cwd": "${workspaceFolder}/src",
641+
// For more information about the 'console' field, see https://aka.ms/VSCode-CS-LaunchJson-Console
642+
"console": "internalConsole",
643+
"stopAtEntry": false,
644+
"logging": {
645+
"moduleLoad": false
646+
}
647+
},
623648
{
624649
"name": ".NET Core Attach",
625650
"type": "coreclr",

src/Stars.Console/Operations/CopyOperation.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ private async Task<object> CopyNode(IResource node, IRouter router, object state
243243
throw new AggregateException(deliveryReport.AssetsExceptions.Values);
244244

245245
if (deliveryReport.ImportedAssets.Count() > 0)
246-
stacItemNode.StacItem.MergeAssets(deliveryReport);
246+
stacItemNode.StacItem.MergeAssets(deliveryReport, true);
247247
else continue;
248248
}
249249
break;

src/Stars.Console/Terradue.Stars.Console.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<PropertyGroup>
33
<OutputType>Exe</OutputType>
44
<TargetFrameworks>netcoreapp3.1;net5.0</TargetFrameworks>
5-
<Version>0.9.0</Version>
5+
<Version>0.9.2</Version>
66
<Version Condition=" '$(VersionSuffix)' != '' ">$(Version)-$(VersionSuffix)</Version>
77
<VersionSuffix>$(VersionSuffix)</VersionSuffix>
88
<AssemblyName>Stars</AssemblyName>

src/Stars.Services/StacResourceExtensions.cs

+4-2
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,13 @@ namespace Terradue.Stars.Services
1010
public static class StacResourceExtensions
1111
{
1212

13-
public static void MergeAssets(this StacItem stacItem, IAssetsContainer assetContainer)
13+
public static void MergeAssets(this StacItem stacItem, IAssetsContainer assetContainer, bool removeIfNotInContainer = false)
1414
{
15+
if ( removeIfNotInContainer )
16+
stacItem.Assets.Clear();
1517
foreach (var asset in assetContainer.Assets)
1618
{
17-
if (stacItem.Assets.ContainsKey(asset.Key))
19+
if (stacItem.Assets.ContainsKey(asset.Key) )
1820
{
1921
stacItem.Assets.Remove(asset.Key);
2022
}

src/Stars.Services/Terradue.Stars.Services.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<TargetFramework>netstandard2.1</TargetFramework>
44
<Title>Terradue.Stars</Title>
55
<Description>Stars is a set of services for working with Spatio Temporal Catalog such as STAC but not only</Description>
6-
<Version>0.9.0</Version>
6+
<Version>0.9.2</Version>
77
<!-- <VersionSuffix>beta.1</VersionSuffix> -->
88
<AssemblyName>Terradue.Stars.Services</AssemblyName>
99
<PackageId>Terradue.Stars</PackageId>

0 commit comments

Comments
 (0)