Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
floeschau committed Jan 5, 2023
2 parents 78286af + 1112a25 commit 18f1bde
Show file tree
Hide file tree
Showing 27 changed files with 70 additions and 69 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
using Terradue.OpenSearch.Model.GeoTime;
using Terradue.OpenSearch.Result;

namespace Terradue.OpenSearch.Model.EarthObservation
{
class CloudCoverMetadataExtractor : IMetadataExtractor
{
namespace Terradue.OpenSearch.Model.EarthObservation {

class CloudCoverMetadataExtractor : IMetadataExtractor {

#region IMetadataExtractor implementation

public string GetMetadata(IOpenSearchResultItem item, string specifier) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
using Terradue.OpenSearch.Model.GeoTime;
using Terradue.OpenSearch.Result;

namespace Terradue.OpenSearch.Model.EarthObservation
{
namespace Terradue.OpenSearch.Model.EarthObservation {

class FrameMetadataExtractor : IMetadataExtractor {

#region IMetadataExtractor implementation
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,17 @@
using Terradue.OpenSearch.Model.GeoTime;
using Terradue.OpenSearch.Result;

namespace Terradue.OpenSearch.Model.EarthObservation
{
namespace Terradue.OpenSearch.Model.EarthObservation {

class OperationalModeMetadataExtractor : IMetadataExtractor {

#region IMetadataExtractor implementation

public string GetMetadata(IOpenSearchResultItem item, string specifier) {

var mode = Terradue.Metadata.EarthObservation.OpenSearch.Extensions.EarthObservationOpenSearchResultExtensions.FindOperationalMode(item);
if (mode == null) return null;

if ( mode.EndsWith("_SP") || mode.EndsWith("_DP") ){
mode = mode.Replace("_SP", "").Replace("_DP", "");
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
using Terradue.OpenSearch.Model.GeoTime;
using Terradue.OpenSearch.Result;

namespace Terradue.OpenSearch.Model.EarthObservation
{
class OrbitDirectionMetadataExtractor : IMetadataExtractor
{
namespace Terradue.OpenSearch.Model.EarthObservation {

class OrbitDirectionMetadataExtractor : IMetadataExtractor {

#region IMetadataExtractor implementation

public string GetMetadata(IOpenSearchResultItem item, string specifier) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@
using Terradue.OpenSearch.Result;

namespace Terradue.OpenSearch.Model.EarthObservation {
class OrbitNumberMetadataExtractor: IMetadataExtractor {

class OrbitNumberMetadataExtractor : IMetadataExtractor {

#region IMetadataExtractor implementation

public string GetMetadata(IOpenSearchResultItem item, string specifier) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
using Terradue.OpenSearch.Model.GeoTime;
using Terradue.OpenSearch.Result;

namespace Terradue.OpenSearch.Model.EarthObservation
{
class ParentIdentifierMetadataExtractor : IMetadataExtractor
{
namespace Terradue.OpenSearch.Model.EarthObservation {

class ParentIdentifierMetadataExtractor : IMetadataExtractor {

#region IMetadataExtractor implementation

public string GetMetadata(IOpenSearchResultItem item, string specifier) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
using Terradue.OpenSearch.Model.GeoTime;
using Terradue.OpenSearch.Result;

namespace Terradue.OpenSearch.Model.EarthObservation
{
class PlatformShortNameMetadataExtractor : IMetadataExtractor
{
namespace Terradue.OpenSearch.Model.EarthObservation {

class PlatformShortNameMetadataExtractor : IMetadataExtractor {

#region IMetadataExtractor implementation

public string GetMetadata(IOpenSearchResultItem item, string specifier) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
using Terradue.OpenSearch.Model.GeoTime;
using Terradue.OpenSearch.Result;

namespace Terradue.OpenSearch.Model.EarthObservation
{
namespace Terradue.OpenSearch.Model.EarthObservation {

class PolarisationChannelsMetadataExtractor : IMetadataExtractor {

#region IMetadataExtractor implementation
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
using Terradue.OpenSearch.Model.GeoTime;
using Terradue.OpenSearch.Result;

namespace Terradue.OpenSearch.Model.EarthObservation
{
namespace Terradue.OpenSearch.Model.EarthObservation {

class ProcessingLevelMetadataExtractor : IMetadataExtractor {

#region IMetadataExtractor implementation
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
using Terradue.OpenSearch.Model.GeoTime;
using Terradue.OpenSearch.Result;

namespace Terradue.OpenSearch.Model.EarthObservation
{
class ProductTypeMetadataExtractor : IMetadataExtractor
{
namespace Terradue.OpenSearch.Model.EarthObservation {

class ProductTypeMetadataExtractor : IMetadataExtractor {

#region IMetadataExtractor implementation

public string GetMetadata(IOpenSearchResultItem item, string specifier) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
using Terradue.OpenSearch.Model.GeoTime;
using Terradue.OpenSearch.Result;

namespace Terradue.OpenSearch.Model.EarthObservation
{
namespace Terradue.OpenSearch.Model.EarthObservation {

class SensorResolutionMetadataExtractor : IMetadataExtractor {

#region IMetadataExtractor implementation
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
namespace Terradue.OpenSearch.Model.EarthObservation {

class SensorTypeMetadataExtractor : IMetadataExtractor {

#region IMetadataExtractor implementation

public string GetMetadata(IOpenSearchResultItem item, string specifier) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
using Terradue.OpenSearch.Model.GeoTime;
using Terradue.OpenSearch.Result;

namespace Terradue.OpenSearch.Model.EarthObservation
{
namespace Terradue.OpenSearch.Model.EarthObservation {

class SwathIdentifierMetadataExtractor : IMetadataExtractor {

#region IMetadataExtractor implementation
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
using Terradue.OpenSearch.Model.GeoTime;
using Terradue.OpenSearch.Result;

namespace Terradue.OpenSearch.Model.EarthObservation
{
namespace Terradue.OpenSearch.Model.EarthObservation {

class TrackMetadataExtractor : IMetadataExtractor {

#region IMetadataExtractor implementation
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
using Terradue.ServiceModel.Ogc;
using Terradue.ServiceModel.Ogc.Eop21;

namespace Terradue.OpenSearch.Model.EarthObservation
{
class VendorSpecificMetadataExtractor : IMetadataExtractor
{
namespace Terradue.OpenSearch.Model.EarthObservation {

class VendorSpecificMetadataExtractor : IMetadataExtractor {

#region IMetadataExtractor implementation

public string GetMetadata(IOpenSearchResultItem item, string specifier)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
using Terradue.OpenSearch.Model.GeoTime;
using Terradue.OpenSearch.Result;

namespace Terradue.OpenSearch.Model.EarthObservation
{
namespace Terradue.OpenSearch.Model.EarthObservation {

class WrsLatitudeGridMetadataExtractor : IMetadataExtractor {

#region IMetadataExtractor implementation
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
using Terradue.OpenSearch.Model.GeoTime;
using Terradue.OpenSearch.Result;

namespace Terradue.OpenSearch.Model.EarthObservation
{
namespace Terradue.OpenSearch.Model.EarthObservation {

class WrsLongitudeGridMetadataExtractor : IMetadataExtractor {

#region IMetadataExtractor implementation
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,9 @@
using log4net;
using Terradue.ServiceModel.Syndication;

namespace Terradue.OpenSearch.Model.GeoTime
{
namespace Terradue.OpenSearch.Model.GeoTime {

class CategoryMetadataExtractor : IMetadataExtractor
{
class CategoryMetadataExtractor : IMetadataExtractor {

private static readonly ILog log = LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,9 @@
using Terradue.ServiceModel.Syndication;
using System.Threading.Tasks;

namespace Terradue.OpenSearch.Model.GeoTime
{
namespace Terradue.OpenSearch.Model.GeoTime {

class EnclosureMetadataExtractor : IMetadataExtractor
{
class EnclosureMetadataExtractor : IMetadataExtractor {

private static readonly ILog log = LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@
namespace Terradue.OpenSearch.Model.GeoTime {

public class EndDateMetadataExtractor : IMetadataExtractor {

#region IMetadataExtractor implementation

public virtual string GetMetadata(Terradue.OpenSearch.Result.IOpenSearchResultItem item, string specifier) {
string date = null;
if (date == null) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@

namespace Terradue.OpenSearch.Model.GeoTime {

class ExtensionMetadataExtractor : IMetadataExtractor
{
class ExtensionMetadataExtractor : IMetadataExtractor {

private static readonly ILog log = LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,9 @@
using System.Collections.Specialized;
using Terradue.ServiceModel.Syndication;

namespace Terradue.OpenSearch.Model.GeoTime
{
namespace Terradue.OpenSearch.Model.GeoTime {

public class IdentifierMetadataExtractor : IMetadataExtractor
{
public class IdentifierMetadataExtractor : IMetadataExtractor {
#region IMetadataExtractor implementation
public virtual string GetMetadata(Terradue.OpenSearch.Result.IOpenSearchResultItem item, string specifier) {
string ident = null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,9 @@
using System.Collections.Specialized;
using Terradue.ServiceModel.Syndication;

namespace Terradue.OpenSearch.Model.GeoTime
{
namespace Terradue.OpenSearch.Model.GeoTime {

public class PublicationDateMetadataExtractor : IMetadataExtractor
{
public class PublicationDateMetadataExtractor : IMetadataExtractor {
#region IMetadataExtractor implementation
public virtual string GetMetadata(Terradue.OpenSearch.Result.IOpenSearchResultItem item, string specifier) {
return item.PublishDate.ToUniversalTime().ToString("O");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@
namespace Terradue.OpenSearch.Model.GeoTime {

public class StartDateMetadataExtractor : IMetadataExtractor {

#region IMetadataExtractor implementation

public virtual string GetMetadata(Terradue.OpenSearch.Result.IOpenSearchResultItem item, string specifier) {
string date = null;
if (date == null) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
using System.Collections.Specialized;
using Terradue.ServiceModel.Syndication;

namespace Terradue.OpenSearch.Model.GeoTime
{
namespace Terradue.OpenSearch.Model.GeoTime {

public class TitleMetadataExtractor : IMetadataExtractor
{
public class TitleMetadataExtractor : IMetadataExtractor {

#region IMetadataExtractor implementation

public virtual string GetMetadata(Terradue.OpenSearch.Result.IOpenSearchResultItem item, string specifier) {
string title = "";
if (item.Title != null)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
using System.Collections.Specialized;
using Terradue.ServiceModel.Syndication;

namespace Terradue.OpenSearch.Model.GeoTime
{
namespace Terradue.OpenSearch.Model.GeoTime {

public class UpdatedMetadataExtractor : IMetadataExtractor
{
public class UpdatedMetadataExtractor : IMetadataExtractor {

#region IMetadataExtractor implementation

public virtual string GetMetadata(Terradue.OpenSearch.Result.IOpenSearchResultItem item, string specifier) {
return item.LastUpdatedTime.ToUniversalTime().ToString("O");
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
namespace Terradue.OpenSearch.Model.GeoTime {

public class WellKnownTextMetadataExtractor : IMetadataExtractor {

#region IMetadataExtractor implementation

public virtual string Description {
Expand Down

0 comments on commit 18f1bde

Please sign in to comment.