Ejemplo n.º 1
0
 internal SarStacExtension(IStacPropertiesContainer stacPropertiesContainer) : base(JsonSchemaUrl, stacPropertiesContainer)
 {
     itemFields = new Dictionary <string, Type>();
     itemFields.Add(InstrumentModeField, typeof(string[]));
     itemFields.Add(FrequencyBandField, typeof(SarCommonFrequencyBandName));
     itemFields.Add(CenterFrequencyField, typeof(double));
     itemFields.Add(PolarizationsField, typeof(string[]));
     itemFields.Add(ProductTypeField, typeof(string));
     itemFields.Add(ResolutionRangeField, typeof(double));
     itemFields.Add(ResolutionAzimuthField, typeof(double));
     itemFields.Add(PixelSpacingRangeField, typeof(double));
     itemFields.Add(PixelSpacingAzimuthField, typeof(double));
     itemFields.Add(LooksRangeField, typeof(double));
     itemFields.Add(LooksAzimuthField, typeof(double));
     itemFields.Add(LooksEquivalentNumberField, typeof(double));
     itemFields.Add(ObservationDirectionField, typeof(string));
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Initialize a new class for a STAC object implementing <see cref="IStacPropertiesContainer" />.
 /// </summary>
 /// <param name="identifier">Identifier of the extension</param>
 /// <param name="stacPropertiesContainer">STAC object</param>
 protected StacPropertiesContainerExtension(string identifier, IStacPropertiesContainer stacPropertiesContainer)
 {
     this.identifier         = identifier;
     StacPropertiesContainer = stacPropertiesContainer;
 }
Ejemplo n.º 3
0
 internal EoStacExtension(IStacPropertiesContainer stacpropertiesContainer) : base(JsonSchemaUrl, stacpropertiesContainer)
 {
     itemFields = new Dictionary <string, Type>();
     itemFields.Add(BandsField, typeof(EoBandObject[]));
     itemFields.Add(CloudCoverField, typeof(double));
 }
Ejemplo n.º 4
0
 public PropertyObservableCollection(IStacPropertiesContainer propertiesContainer, string key) : base()
 {
     PropertiesContainer = propertiesContainer;
     Key = key;
     this.CollectionChanged += ObservableCollectionInPropertiesChanged;
 }
Ejemplo n.º 5
0
 public static void RemoveProperty(this IStacPropertiesContainer propertiesContainer, string key)
 {
     propertiesContainer.Properties.RemoveProperty(key);
 }
Ejemplo n.º 6
0
        public static PropertyObservableCollection <T> GetObservableCollectionProperty <T>(this IStacPropertiesContainer propertiesContainer, string key)
        {
            List <T> array = propertiesContainer.GetProperty <List <T> >(key);
            PropertyObservableCollection <T> observableCollection = new PropertyObservableCollection <T>(propertiesContainer, key);

            if (array != null && array.Count > 0)
            {
                observableCollection.AddRange <T>(array);
            }
            return(observableCollection);
        }
Ejemplo n.º 7
0
 public static T GetProperty <T>(this IStacPropertiesContainer propertiesContainer, string key)
 {
     return(propertiesContainer.Properties.GetProperty <T>(key));
 }
Ejemplo n.º 8
0
 public static object GetProperty(this IStacPropertiesContainer propertiesContainer, string key)
 {
     return(propertiesContainer.Properties.GetProperty(key));
 }
Ejemplo n.º 9
0
 public static void SetProperty(this IStacPropertiesContainer stacPropertiesContainer, string key, object value)
 {
     stacPropertiesContainer.Properties.SetProperty(key, value);
 }