From 3d5831e4ea6ca945e9b0c3a6bd3e4c90f6690497 Mon Sep 17 00:00:00 2001 From: Michael Mattig Date: Fri, 27 Mar 2026 18:07:49 +0000 Subject: [PATCH 1/2] fix openapi enum variant names --- .generation/input/openapi.json | 916 +++++++++++++++++- python/.openapi-generator/FILES | 171 +++- python/README.md | 57 +- python/geoengine_openapi_client/__init__.py | 114 ++- .../models/__init__.py | 57 +- .../models/aggregation.py | 222 +++++ .../models/band_filter.py | 109 +++ .../models/band_filter_parameters.py | 92 ++ .../models/bands_by_name_or_index.py | 145 +++ .../models/count_aggregation.py | 97 ++ .../{histogram_bounds_one_of.py => data1.py} | 8 +- .../models/data_path.py | 48 +- .../models/derive_out_raster_specs_source.py | 38 + .../models/first_aggregation.py | 97 ++ .../models/fraction.py | 99 ++ .../models/histogram_bounds.py | 48 +- .../models/histogram_buckets.py | 48 +- .../models/interpolation.py | 109 +++ .../models/interpolation_method.py | 38 + .../models/interpolation_parameters.py | 106 ++ .../models/interpolation_resolution.py | 138 +++ ...time_dimension_one_of1.py => irregular.py} | 8 +- .../models/last_aggregation.py | 97 ++ .../models/max_aggregation.py | 97 ++ .../models/mean_aggregation.py | 97 ++ .../models/min_aggregation.py | 97 ++ .../models/multi_band_gdal_source.py | 101 ++ ...metry_one_of2.py => multi_line_string1.py} | 8 +- ...ed_geometry_one_of1.py => multi_point1.py} | 8 +- ..._geometry_one_of3.py => multi_polygon1.py} | 8 +- .../models/multiple_raster_sources.py | 98 ++ ...ped_geometry_one_of.py => no_geometry1.py} | 8 +- ...{histogram_buckets_one_of.py => number.py} | 8 +- .../models/percentile_estimate_aggregation.py | 99 ++ .../models/raster_operator.py | 153 ++- .../models/raster_stacker.py | 109 +++ .../models/raster_stacker_parameters.py | 92 ++ .../models/raster_type_conversion.py | 109 +++ .../raster_type_conversion_parameters.py | 89 ++ .../{time_dimension_one_of.py => regular.py} | 8 +- .../geoengine_openapi_client/models/rename.py | 97 ++ .../models/rename_bands.py | 152 +++ .../models/reprojection.py | 109 +++ .../models/reprojection_parameters.py | 91 ++ .../models/resolution.py | 99 ++ .../single_raster_or_vector_operator.py | 11 +- .../models/single_raster_or_vector_source.py | 4 +- .../single_vector_multiple_raster_sources.py | 2 +- ..._one_of1.py => square_root_choice_rule.py} | 8 +- .../models/sum_aggregation.py | 97 ++ .../models/temporal_raster_aggregation.py | 109 +++ .../temporal_raster_aggregation_parameters.py | 113 +++ .../models/time_dimension.py | 48 +- .../models/typed_geometry.py | 80 +- .../{data_path_one_of1.py => upload.py} | 8 +- ...{histogram_bounds_one_of1.py => values.py} | 14 +- ...nds_one_of1_values.py => values_values.py} | 8 +- .../models/vector_operator.py | 35 +- .../{data_path_one_of.py => volume1.py} | 8 +- python/test/test_aggregation.py | 57 ++ python/test/test_band_filter.py | 61 ++ python/test/test_band_filter_parameters.py | 53 + python/test/test_bands_by_name_or_index.py | 51 + python/test/test_count_aggregation.py | 55 ++ ...typed_geometry_one_of.py => test_data1.py} | 22 +- .../test_derive_out_raster_specs_source.py | 34 + python/test/test_first_aggregation.py | 55 ++ python/test/test_fraction.py | 57 ++ python/test/test_histogram_bounds.py | 4 +- python/test/test_histogram_bounds_one_of1.py | 57 -- python/test/test_interpolation.py | 65 ++ python/test/test_interpolation_method.py | 34 + python/test/test_interpolation_parameters.py | 58 ++ python/test/test_interpolation_resolution.py | 57 ++ ...dimension_one_of1.py => test_irregular.py} | 22 +- python/test/test_last_aggregation.py | 55 ++ python/test/test_max_aggregation.py | 55 ++ python/test/test_mean_aggregation.py | 55 ++ python/test/test_min_aggregation.py | 55 ++ python/test/test_multi_band_gdal_source.py | 59 ++ ..._one_of2.py => test_multi_line_string1.py} | 22 +- ...ometry_one_of1.py => test_multi_point1.py} | 22 +- ...etry_one_of3.py => test_multi_polygon1.py} | 22 +- python/test/test_multiple_raster_sources.py | 57 ++ ..._bounds_one_of.py => test_no_geometry1.py} | 22 +- ...ogram_buckets_one_of.py => test_number.py} | 22 +- .../test_percentile_estimate_aggregation.py | 57 ++ python/test/test_raster_operator.py | 20 +- python/test/test_raster_stacker.py | 65 ++ python/test/test_raster_stacker_parameters.py | 53 + python/test/test_raster_type_conversion.py | 61 ++ .../test_raster_type_conversion_parameters.py | 53 + ...me_dimension_one_of.py => test_regular.py} | 22 +- python/test/test_rename.py | 59 ++ python/test/test_rename_bands.py | 59 ++ python/test/test_reprojection.py | 63 ++ python/test/test_reprojection_parameters.py | 54 ++ python/test/test_resolution.py | 57 ++ .../test_single_raster_or_vector_operator.py | 36 +- ...of1.py => test_square_root_choice_rule.py} | 22 +- python/test/test_sum_aggregation.py | 55 ++ .../test/test_temporal_raster_aggregation.py | 67 ++ ..._temporal_raster_aggregation_parameters.py | 61 ++ ...st_data_path_one_of1.py => test_upload.py} | 22 +- python/test/test_values.py | 57 ++ ...ne_of1_values.py => test_values_values.py} | 22 +- python/test/test_vector_operator.py | 32 +- ...st_data_path_one_of.py => test_volume1.py} | 22 +- rust/.openapi-generator/FILES | 114 ++- rust/README.md | 57 +- .../rust/src/models/raster_operator.rs.diff | 4 +- rust/docs/Aggregation.md | 18 + rust/docs/BandFilter.md | 13 + rust/docs/BandFilterParameters.md | 11 + rust/docs/BandsByNameOrIndex.md | 12 + rust/docs/CountAggregation.md | 12 + rust/docs/Data1.md | 11 + rust/docs/DataPath.md | 4 +- rust/docs/DeriveOutRasterSpecsSource.md | 13 + rust/docs/FirstAggregation.md | 12 + rust/docs/Fraction.md | 13 + rust/docs/HistogramBounds.md | 4 +- rust/docs/HistogramBuckets.md | 4 +- rust/docs/Interpolation.md | 13 + rust/docs/InterpolationMethod.md | 13 + rust/docs/InterpolationParameters.md | 13 + rust/docs/InterpolationResolution.md | 12 + rust/docs/Irregular.md | 11 + rust/docs/LastAggregation.md | 12 + rust/docs/MaxAggregation.md | 12 + rust/docs/MeanAggregation.md | 12 + rust/docs/MinAggregation.md | 12 + rust/docs/MultiBandGdalSource.md | 12 + rust/docs/MultiLineString1.md | 11 + rust/docs/MultiPoint1.md | 11 + rust/docs/MultiPolygon1.md | 11 + rust/docs/MultipleRasterSources.md | 11 + rust/docs/NoGeometry1.md | 11 + rust/docs/Number.md | 12 + rust/docs/PercentileEstimateAggregation.md | 13 + rust/docs/RasterStacker.md | 13 + rust/docs/RasterStackerParameters.md | 11 + rust/docs/RasterTypeConversion.md | 13 + rust/docs/RasterTypeConversionParameters.md | 11 + rust/docs/Regular.md | 13 + rust/docs/Rename.md | 12 + rust/docs/RenameBands.md | 13 + rust/docs/Reprojection.md | 13 + rust/docs/ReprojectionParameters.md | 12 + rust/docs/Resolution.md | 13 + rust/docs/SquareRootChoiceRule.md | 12 + rust/docs/SumAggregation.md | 12 + rust/docs/TemporalRasterAggregation.md | 13 + .../TemporalRasterAggregationParameters.md | 14 + rust/docs/TimeDimension.md | 4 +- rust/docs/TypedGeometry.md | 8 +- rust/docs/Upload.md | 11 + rust/docs/Values.md | 11 + rust/docs/ValuesValues.md | 12 + rust/docs/Volume1.md | 11 + rust/src/models/aggregation.rs | 60 ++ rust/src/models/band_filter.rs | 47 + rust/src/models/band_filter_parameters.rs | 30 + rust/src/models/bands_by_name_or_index.rs | 28 + rust/src/models/count_aggregation.rs | 42 + rust/src/models/data_1.rs | 27 + rust/src/models/data_path.rs | 6 +- .../models/derive_out_raster_specs_source.rs | 38 + rust/src/models/first_aggregation.rs | 42 + rust/src/models/fraction.rs | 47 + rust/src/models/histogram_bounds.rs | 6 +- rust/src/models/histogram_buckets.rs | 6 +- rust/src/models/interpolation.rs | 47 + rust/src/models/interpolation_method.rs | 38 + rust/src/models/interpolation_parameters.rs | 38 + rust/src/models/interpolation_resolution.rs | 40 + rust/src/models/irregular.rs | 39 + rust/src/models/last_aggregation.rs | 42 + rust/src/models/max_aggregation.rs | 42 + rust/src/models/mean_aggregation.rs | 42 + rust/src/models/min_aggregation.rs | 42 + rust/src/models/mod.rs | 114 ++- rust/src/models/multi_band_gdal_source.rs | 44 + rust/src/models/multi_line_string_1.rs | 27 + rust/src/models/multi_point_1.rs | 27 + rust/src/models/multi_polygon_1.rs | 27 + ...ltiple_raster_or_single_vector_operator.rs | 6 +- rust/src/models/multiple_raster_sources.rs | 29 + rust/src/models/no_geometry_1.rs | 27 + rust/src/models/number.rs | 42 + .../models/percentile_estimate_aggregation.rs | 45 + rust/src/models/raster_operator.rs | 16 +- rust/src/models/raster_stacker.rs | 47 + rust/src/models/raster_stacker_parameters.rs | 30 + rust/src/models/raster_type_conversion.rs | 47 + .../raster_type_conversion_parameters.rs | 30 + rust/src/models/regular.rs | 45 + rust/src/models/rename.rs | 42 + rust/src/models/rename_bands.rs | 43 + rust/src/models/reprojection.rs | 47 + rust/src/models/reprojection_parameters.rs | 34 + rust/src/models/resolution.rs | 47 + .../single_raster_or_vector_operator.rs | 10 +- rust/src/models/square_root_choice_rule.rs | 42 + rust/src/models/sum_aggregation.rs | 42 + .../src/models/temporal_raster_aggregation.rs | 47 + .../temporal_raster_aggregation_parameters.rs | 42 + rust/src/models/time_dimension.rs | 6 +- rust/src/models/typed_geometry.rs | 10 +- rust/src/models/upload.rs | 27 + rust/src/models/values.rs | 27 + rust/src/models/values_values.rs | 30 + rust/src/models/vector_operator.rs | 2 + rust/src/models/volume_1.rs | 27 + typescript/README.md | 57 +- .../src/models/RasterOperator.ts.diff | 2 +- .../src/models/VectorOperator.ts.diff | 2 +- typescript/dist/esm/models/Aggregation.d.ts | 32 + typescript/dist/esm/models/Aggregation.js | 93 ++ typescript/dist/esm/models/BandFilter.d.ts | 64 ++ typescript/dist/esm/models/BandFilter.js | 59 ++ .../dist/esm/models/BandFilterParameters.d.ts | 33 + .../dist/esm/models/BandFilterParameters.js | 44 + .../dist/esm/models/BandsByNameOrIndex.d.ts | 21 + .../dist/esm/models/BandsByNameOrIndex.js | 51 + .../dist/esm/models/CountAggregation.d.ts | 45 + .../dist/esm/models/CountAggregation.js | 53 + typescript/dist/esm/models/Data1.d.ts | 32 + .../{HistogramBoundsOneOf.js => Data1.js} | 16 +- typescript/dist/esm/models/DataPath.d.ts | 6 +- typescript/dist/esm/models/DataPath.js | 20 +- typescript/dist/esm/models/DataPathOneOf.d.ts | 32 - .../dist/esm/models/DataPathOneOf1.d.ts | 32 - .../models/DeriveOutRasterSpecsSource.d.ts | 25 + .../esm/models/DeriveOutRasterSpecsSource.js | 43 + .../dist/esm/models/FirstAggregation.d.ts | 45 + .../dist/esm/models/FirstAggregation.js | 53 + typescript/dist/esm/models/Fraction.d.ts | 51 + typescript/dist/esm/models/Fraction.js | 57 ++ .../dist/esm/models/HistogramBounds.d.ts | 6 +- typescript/dist/esm/models/HistogramBounds.js | 20 +- .../dist/esm/models/HistogramBoundsOneOf.d.ts | 32 - .../esm/models/HistogramBoundsOneOf1.d.ts | 33 - .../dist/esm/models/HistogramBoundsOneOf1.js | 44 - .../models/HistogramBoundsOneOf1Values.d.ts | 38 - .../dist/esm/models/HistogramBuckets.d.ts | 6 +- .../dist/esm/models/HistogramBuckets.js | 20 +- .../esm/models/HistogramBucketsOneOf.d.ts | 45 - .../esm/models/HistogramBucketsOneOf1.d.ts | 45 - typescript/dist/esm/models/Interpolation.d.ts | 60 ++ typescript/dist/esm/models/Interpolation.js | 59 ++ .../dist/esm/models/InterpolationMethod.d.ts | 25 + .../dist/esm/models/InterpolationMethod.js | 43 + .../esm/models/InterpolationParameters.d.ts | 47 + .../esm/models/InterpolationParameters.js | 52 + .../esm/models/InterpolationResolution.d.ts | 23 + .../esm/models/InterpolationResolution.js | 51 + typescript/dist/esm/models/Irregular.d.ts | 39 + .../{TimeDimensionOneOf1.js => Irregular.js} | 18 +- .../dist/esm/models/LastAggregation.d.ts | 45 + typescript/dist/esm/models/LastAggregation.js | 53 + .../dist/esm/models/MaxAggregation.d.ts | 45 + typescript/dist/esm/models/MaxAggregation.js | 53 + .../dist/esm/models/MeanAggregation.d.ts | 45 + typescript/dist/esm/models/MeanAggregation.js | 53 + .../dist/esm/models/MinAggregation.d.ts | 45 + typescript/dist/esm/models/MinAggregation.js | 53 + .../dist/esm/models/MultiBandGdalSource.d.ts | 46 + .../dist/esm/models/MultiBandGdalSource.js | 54 ++ .../dist/esm/models/MultiLineString1.d.ts | 33 + ...dGeometryOneOf2.js => MultiLineString1.js} | 16 +- typescript/dist/esm/models/MultiPoint1.d.ts | 33 + ...{TypedGeometryOneOf1.js => MultiPoint1.js} | 16 +- typescript/dist/esm/models/MultiPolygon1.d.ts | 33 + ...ypedGeometryOneOf3.js => MultiPolygon1.js} | 16 +- .../esm/models/MultipleRasterSources.d.ts | 33 + .../dist/esm/models/MultipleRasterSources.js | 44 + typescript/dist/esm/models/NoGeometry1.d.ts | 32 + .../{TypedGeometryOneOf.js => NoGeometry1.js} | 16 +- typescript/dist/esm/models/Number.d.ts | 45 + .../{HistogramBucketsOneOf.js => Number.js} | 18 +- .../models/PercentileEstimateAggregation.d.ts | 51 + .../models/PercentileEstimateAggregation.js | 57 ++ .../dist/esm/models/RasterOperator.d.ts | 23 +- typescript/dist/esm/models/RasterOperator.js | 35 + typescript/dist/esm/models/RasterStacker.d.ts | 63 ++ typescript/dist/esm/models/RasterStacker.js | 59 ++ .../esm/models/RasterStackerParameters.d.ts | 37 + .../esm/models/RasterStackerParameters.js | 44 + .../dist/esm/models/RasterTypeConversion.d.ts | 64 ++ .../dist/esm/models/RasterTypeConversion.js | 59 ++ .../RasterTypeConversionParameters.d.ts | 33 + .../models/RasterTypeConversionParameters.js | 44 + typescript/dist/esm/models/Regular.d.ts | 40 + .../{TimeDimensionOneOf.js => Regular.js} | 18 +- typescript/dist/esm/models/Rename.d.ts | 45 + typescript/dist/esm/models/Rename.js | 53 + typescript/dist/esm/models/RenameBands.d.ts | 24 + typescript/dist/esm/models/RenameBands.js | 58 ++ typescript/dist/esm/models/Reprojection.d.ts | 79 ++ typescript/dist/esm/models/Reprojection.js | 59 ++ .../esm/models/ReprojectionParameters.d.ts | 42 + .../dist/esm/models/ReprojectionParameters.js | 46 + typescript/dist/esm/models/Resolution.d.ts | 51 + typescript/dist/esm/models/Resolution.js | 57 ++ .../dist/esm/models/SquareRootChoiceRule.d.ts | 45 + ...cketsOneOf1.js => SquareRootChoiceRule.js} | 18 +- .../dist/esm/models/SumAggregation.d.ts | 45 + typescript/dist/esm/models/SumAggregation.js | 53 + .../esm/models/TemporalRasterAggregation.d.ts | 66 ++ .../esm/models/TemporalRasterAggregation.js | 59 ++ .../TemporalRasterAggregationParameters.d.ts | 58 ++ .../TemporalRasterAggregationParameters.js | 54 ++ typescript/dist/esm/models/TimeDimension.d.ts | 6 +- typescript/dist/esm/models/TimeDimension.js | 20 +- .../dist/esm/models/TimeDimensionOneOf.d.ts | 40 - .../dist/esm/models/TimeDimensionOneOf1.d.ts | 39 - typescript/dist/esm/models/TypedGeometry.d.ts | 10 +- typescript/dist/esm/models/TypedGeometry.js | 40 +- .../dist/esm/models/TypedGeometryOneOf.d.ts | 32 - .../dist/esm/models/TypedGeometryOneOf1.d.ts | 33 - .../dist/esm/models/TypedGeometryOneOf2.d.ts | 33 - .../dist/esm/models/TypedGeometryOneOf3.d.ts | 33 - typescript/dist/esm/models/Upload.d.ts | 32 + .../models/{DataPathOneOf1.js => Upload.js} | 16 +- typescript/dist/esm/models/Values.d.ts | 33 + typescript/dist/esm/models/Values.js | 44 + typescript/dist/esm/models/ValuesValues.d.ts | 38 + ...mBoundsOneOf1Values.js => ValuesValues.js} | 16 +- .../dist/esm/models/VectorOperator.d.ts | 5 +- typescript/dist/esm/models/VectorOperator.js | 5 + typescript/dist/esm/models/Volume1.d.ts | 32 + .../models/{DataPathOneOf.js => Volume1.js} | 16 +- typescript/dist/esm/models/index.d.ts | 57 +- typescript/dist/esm/models/index.js | 57 +- typescript/dist/models/Aggregation.d.ts | 32 + typescript/dist/models/Aggregation.js | 99 ++ typescript/dist/models/BandFilter.d.ts | 64 ++ typescript/dist/models/BandFilter.js | 67 ++ .../dist/models/BandFilterParameters.d.ts | 33 + .../dist/models/BandFilterParameters.js | 51 + .../dist/models/BandsByNameOrIndex.d.ts | 21 + typescript/dist/models/BandsByNameOrIndex.js | 57 ++ typescript/dist/models/CountAggregation.d.ts | 45 + typescript/dist/models/CountAggregation.js | 61 ++ typescript/dist/models/Data1.d.ts | 32 + typescript/dist/models/Data1.js | 50 + typescript/dist/models/DataPath.d.ts | 6 +- typescript/dist/models/DataPath.js | 20 +- typescript/dist/models/DataPathOneOf.d.ts | 32 - typescript/dist/models/DataPathOneOf1.d.ts | 32 - .../models/DeriveOutRasterSpecsSource.d.ts | 25 + .../dist/models/DeriveOutRasterSpecsSource.js | 51 + typescript/dist/models/FirstAggregation.d.ts | 45 + typescript/dist/models/FirstAggregation.js | 61 ++ typescript/dist/models/Fraction.d.ts | 51 + typescript/dist/models/Fraction.js | 65 ++ typescript/dist/models/HistogramBounds.d.ts | 6 +- typescript/dist/models/HistogramBounds.js | 20 +- .../dist/models/HistogramBoundsOneOf.d.ts | 32 - .../dist/models/HistogramBoundsOneOf.js | 50 - .../dist/models/HistogramBoundsOneOf1.d.ts | 33 - .../dist/models/HistogramBoundsOneOf1.js | 51 - .../models/HistogramBoundsOneOf1Values.d.ts | 38 - .../models/HistogramBoundsOneOf1Values.js | 54 -- typescript/dist/models/HistogramBuckets.d.ts | 6 +- typescript/dist/models/HistogramBuckets.js | 20 +- .../dist/models/HistogramBucketsOneOf.d.ts | 45 - .../dist/models/HistogramBucketsOneOf1.d.ts | 45 - typescript/dist/models/Interpolation.d.ts | 60 ++ typescript/dist/models/Interpolation.js | 67 ++ .../dist/models/InterpolationMethod.d.ts | 25 + typescript/dist/models/InterpolationMethod.js | 51 + .../dist/models/InterpolationParameters.d.ts | 47 + .../dist/models/InterpolationParameters.js | 59 ++ .../dist/models/InterpolationResolution.d.ts | 23 + .../dist/models/InterpolationResolution.js | 57 ++ typescript/dist/models/Irregular.d.ts | 39 + typescript/dist/models/Irregular.js | 57 ++ typescript/dist/models/LastAggregation.d.ts | 45 + typescript/dist/models/LastAggregation.js | 61 ++ typescript/dist/models/MaxAggregation.d.ts | 45 + typescript/dist/models/MaxAggregation.js | 61 ++ typescript/dist/models/MeanAggregation.d.ts | 45 + typescript/dist/models/MeanAggregation.js | 61 ++ typescript/dist/models/MinAggregation.d.ts | 45 + typescript/dist/models/MinAggregation.js | 61 ++ .../dist/models/MultiBandGdalSource.d.ts | 46 + typescript/dist/models/MultiBandGdalSource.js | 62 ++ typescript/dist/models/MultiLineString1.d.ts | 33 + ...dGeometryOneOf2.js => MultiLineString1.js} | 26 +- typescript/dist/models/MultiPoint1.d.ts | 33 + ...{TypedGeometryOneOf1.js => MultiPoint1.js} | 26 +- typescript/dist/models/MultiPolygon1.d.ts | 33 + ...ypedGeometryOneOf3.js => MultiPolygon1.js} | 26 +- .../dist/models/MultipleRasterSources.d.ts | 33 + .../dist/models/MultipleRasterSources.js | 51 + typescript/dist/models/NoGeometry1.d.ts | 32 + .../{TypedGeometryOneOf.js => NoGeometry1.js} | 26 +- typescript/dist/models/Number.d.ts | 45 + .../{HistogramBucketsOneOf.js => Number.js} | 30 +- .../models/PercentileEstimateAggregation.d.ts | 51 + .../models/PercentileEstimateAggregation.js | 65 ++ typescript/dist/models/RasterOperator.d.ts | 23 +- typescript/dist/models/RasterOperator.js | 35 + typescript/dist/models/RasterStacker.d.ts | 63 ++ typescript/dist/models/RasterStacker.js | 67 ++ .../dist/models/RasterStackerParameters.d.ts | 37 + .../dist/models/RasterStackerParameters.js | 51 + .../dist/models/RasterTypeConversion.d.ts | 64 ++ .../dist/models/RasterTypeConversion.js | 67 ++ .../RasterTypeConversionParameters.d.ts | 33 + .../models/RasterTypeConversionParameters.js | 51 + typescript/dist/models/Regular.d.ts | 40 + .../{TimeDimensionOneOf.js => Regular.js} | 30 +- typescript/dist/models/Rename.d.ts | 45 + typescript/dist/models/Rename.js | 61 ++ typescript/dist/models/RenameBands.d.ts | 24 + typescript/dist/models/RenameBands.js | 64 ++ typescript/dist/models/Reprojection.d.ts | 79 ++ typescript/dist/models/Reprojection.js | 67 ++ .../dist/models/ReprojectionParameters.d.ts | 42 + .../dist/models/ReprojectionParameters.js | 53 + typescript/dist/models/Resolution.d.ts | 51 + typescript/dist/models/Resolution.js | 65 ++ .../dist/models/SquareRootChoiceRule.d.ts | 45 + ...cketsOneOf1.js => SquareRootChoiceRule.js} | 30 +- typescript/dist/models/SumAggregation.d.ts | 45 + typescript/dist/models/SumAggregation.js | 61 ++ .../models/TemporalRasterAggregation.d.ts | 66 ++ .../dist/models/TemporalRasterAggregation.js | 67 ++ .../TemporalRasterAggregationParameters.d.ts | 58 ++ .../TemporalRasterAggregationParameters.js | 61 ++ typescript/dist/models/TimeDimension.d.ts | 6 +- typescript/dist/models/TimeDimension.js | 20 +- .../dist/models/TimeDimensionOneOf.d.ts | 40 - .../dist/models/TimeDimensionOneOf1.d.ts | 39 - typescript/dist/models/TimeDimensionOneOf1.js | 57 -- typescript/dist/models/TypedGeometry.d.ts | 10 +- typescript/dist/models/TypedGeometry.js | 40 +- .../dist/models/TypedGeometryOneOf.d.ts | 32 - .../dist/models/TypedGeometryOneOf1.d.ts | 33 - .../dist/models/TypedGeometryOneOf2.d.ts | 33 - .../dist/models/TypedGeometryOneOf3.d.ts | 33 - typescript/dist/models/Upload.d.ts | 32 + .../models/{DataPathOneOf1.js => Upload.js} | 26 +- typescript/dist/models/Values.d.ts | 33 + typescript/dist/models/Values.js | 51 + typescript/dist/models/ValuesValues.d.ts | 38 + typescript/dist/models/ValuesValues.js | 54 ++ typescript/dist/models/VectorOperator.d.ts | 5 +- typescript/dist/models/VectorOperator.js | 5 + typescript/dist/models/Volume1.d.ts | 32 + .../models/{DataPathOneOf.js => Volume1.js} | 26 +- typescript/dist/models/index.d.ts | 57 +- typescript/dist/models/index.js | 57 +- typescript/docs/Aggregation.md | 39 + typescript/docs/BandFilter.md | 39 + typescript/docs/BandFilterParameters.md | 35 + typescript/docs/BandsByNameOrIndex.md | 32 + typescript/docs/CountAggregation.md | 36 + typescript/docs/Data1.md | 34 + typescript/docs/DeriveOutRasterSpecsSource.md | 32 + typescript/docs/FirstAggregation.md | 36 + typescript/docs/Fraction.md | 39 + typescript/docs/HistogramBounds.md | 2 +- typescript/docs/Interpolation.md | 39 + typescript/docs/InterpolationMethod.md | 32 + typescript/docs/InterpolationParameters.md | 39 + typescript/docs/InterpolationResolution.md | 38 + typescript/docs/Irregular.md | 34 + typescript/docs/LastAggregation.md | 36 + typescript/docs/MaxAggregation.md | 36 + typescript/docs/MeanAggregation.md | 36 + typescript/docs/MinAggregation.md | 36 + typescript/docs/MultiBandGdalSource.md | 37 + typescript/docs/MultiLineString1.md | 34 + typescript/docs/MultiPoint1.md | 34 + typescript/docs/MultiPolygon1.md | 34 + typescript/docs/MultipleRasterSources.md | 35 + typescript/docs/NoGeometry1.md | 34 + typescript/docs/Number.md | 36 + .../docs/PercentileEstimateAggregation.md | 38 + typescript/docs/RasterOperator.md | 2 +- typescript/docs/RasterStacker.md | 39 + typescript/docs/RasterStackerParameters.md | 35 + typescript/docs/RasterTypeConversion.md | 39 + .../docs/RasterTypeConversionParameters.md | 35 + typescript/docs/Regular.md | 34 + typescript/docs/Rename.md | 36 + typescript/docs/RenameBands.md | 36 + typescript/docs/Reprojection.md | 39 + typescript/docs/ReprojectionParameters.md | 37 + typescript/docs/Resolution.md | 39 + .../docs/SingleRasterOrVectorOperator.md | 4 +- typescript/docs/SquareRootChoiceRule.md | 36 + typescript/docs/SumAggregation.md | 36 + typescript/docs/TemporalRasterAggregation.md | 39 + .../TemporalRasterAggregationParameters.md | 41 + typescript/docs/Upload.md | 34 + typescript/docs/Values.md | 34 + typescript/docs/ValuesValues.md | 36 + typescript/docs/VectorOperator.md | 4 +- typescript/docs/Volume1.md | 34 + typescript/src/models/Aggregation.ts | 157 +++ typescript/src/models/BandFilter.ts | 120 +++ typescript/src/models/BandFilterParameters.ts | 74 ++ typescript/src/models/BandsByNameOrIndex.ts | 63 ++ typescript/src/models/CountAggregation.ts | 85 ++ .../{HistogramBoundsOneOf.ts => Data1.ts} | 22 +- typescript/src/models/DataPath.ts | 42 +- .../src/models/DeriveOutRasterSpecsSource.ts | 53 + typescript/src/models/FirstAggregation.ts | 85 ++ typescript/src/models/Fraction.ts | 94 ++ typescript/src/models/HistogramBounds.ts | 42 +- .../src/models/HistogramBoundsOneOf1.ts | 74 -- typescript/src/models/HistogramBuckets.ts | 42 +- .../src/models/HistogramBucketsOneOf.ts | 85 -- typescript/src/models/Interpolation.ts | 116 +++ typescript/src/models/InterpolationMethod.ts | 53 + .../src/models/InterpolationParameters.ts | 107 ++ .../src/models/InterpolationResolution.ts | 76 ++ typescript/src/models/Irregular.ts | 76 ++ typescript/src/models/LastAggregation.ts | 85 ++ typescript/src/models/MaxAggregation.ts | 85 ++ typescript/src/models/MeanAggregation.ts | 85 ++ typescript/src/models/MinAggregation.ts | 85 ++ typescript/src/models/MultiBandGdalSource.ts | 93 ++ ...dGeometryOneOf2.ts => MultiLineString1.ts} | 22 +- ...{TypedGeometryOneOf1.ts => MultiPoint1.ts} | 22 +- ...ypedGeometryOneOf3.ts => MultiPolygon1.ts} | 22 +- .../src/models/MultipleRasterSources.ts | 74 ++ .../{TypedGeometryOneOf.ts => NoGeometry1.ts} | 22 +- typescript/src/models/Number.ts | 85 ++ .../models/PercentileEstimateAggregation.ts | 94 ++ typescript/src/models/RasterOperator.ts | 79 +- typescript/src/models/RasterStacker.ts | 119 +++ .../src/models/RasterStackerParameters.ts | 78 ++ typescript/src/models/RasterTypeConversion.ts | 120 +++ .../models/RasterTypeConversionParameters.ts | 76 ++ .../{TimeDimensionOneOf.ts => Regular.ts} | 30 +- typescript/src/models/Rename.ts | 85 ++ typescript/src/models/RenameBands.ts | 89 ++ typescript/src/models/Reprojection.ts | 135 +++ .../src/models/ReprojectionParameters.ts | 87 ++ typescript/src/models/Resolution.ts | 94 ++ ...cketsOneOf1.ts => SquareRootChoiceRule.ts} | 32 +- typescript/src/models/SumAggregation.ts | 85 ++ .../src/models/TemporalRasterAggregation.ts | 122 +++ .../TemporalRasterAggregationParameters.ts | 120 +++ typescript/src/models/TimeDimension.ts | 42 +- typescript/src/models/TimeDimensionOneOf1.ts | 76 -- typescript/src/models/TypedGeometry.ts | 82 +- .../models/{DataPathOneOf1.ts => Upload.ts} | 22 +- typescript/src/models/Values.ts | 74 ++ ...mBoundsOneOf1Values.ts => ValuesValues.ts} | 24 +- typescript/src/models/VectorOperator.ts | 13 +- .../models/{DataPathOneOf.ts => Volume1.ts} | 22 +- typescript/src/models/index.ts | 57 +- 559 files changed, 22635 insertions(+), 2841 deletions(-) create mode 100644 python/geoengine_openapi_client/models/aggregation.py create mode 100644 python/geoengine_openapi_client/models/band_filter.py create mode 100644 python/geoengine_openapi_client/models/band_filter_parameters.py create mode 100644 python/geoengine_openapi_client/models/bands_by_name_or_index.py create mode 100644 python/geoengine_openapi_client/models/count_aggregation.py rename python/geoengine_openapi_client/models/{histogram_bounds_one_of.py => data1.py} (92%) create mode 100644 python/geoengine_openapi_client/models/derive_out_raster_specs_source.py create mode 100644 python/geoengine_openapi_client/models/first_aggregation.py create mode 100644 python/geoengine_openapi_client/models/fraction.py create mode 100644 python/geoengine_openapi_client/models/interpolation.py create mode 100644 python/geoengine_openapi_client/models/interpolation_method.py create mode 100644 python/geoengine_openapi_client/models/interpolation_parameters.py create mode 100644 python/geoengine_openapi_client/models/interpolation_resolution.py rename python/geoengine_openapi_client/models/{time_dimension_one_of1.py => irregular.py} (92%) create mode 100644 python/geoengine_openapi_client/models/last_aggregation.py create mode 100644 python/geoengine_openapi_client/models/max_aggregation.py create mode 100644 python/geoengine_openapi_client/models/mean_aggregation.py create mode 100644 python/geoengine_openapi_client/models/min_aggregation.py create mode 100644 python/geoengine_openapi_client/models/multi_band_gdal_source.py rename python/geoengine_openapi_client/models/{typed_geometry_one_of2.py => multi_line_string1.py} (93%) rename python/geoengine_openapi_client/models/{typed_geometry_one_of1.py => multi_point1.py} (92%) rename python/geoengine_openapi_client/models/{typed_geometry_one_of3.py => multi_polygon1.py} (92%) create mode 100644 python/geoengine_openapi_client/models/multiple_raster_sources.py rename python/geoengine_openapi_client/models/{typed_geometry_one_of.py => no_geometry1.py} (92%) rename python/geoengine_openapi_client/models/{histogram_buckets_one_of.py => number.py} (92%) create mode 100644 python/geoengine_openapi_client/models/percentile_estimate_aggregation.py create mode 100644 python/geoengine_openapi_client/models/raster_stacker.py create mode 100644 python/geoengine_openapi_client/models/raster_stacker_parameters.py create mode 100644 python/geoengine_openapi_client/models/raster_type_conversion.py create mode 100644 python/geoengine_openapi_client/models/raster_type_conversion_parameters.py rename python/geoengine_openapi_client/models/{time_dimension_one_of.py => regular.py} (93%) create mode 100644 python/geoengine_openapi_client/models/rename.py create mode 100644 python/geoengine_openapi_client/models/rename_bands.py create mode 100644 python/geoengine_openapi_client/models/reprojection.py create mode 100644 python/geoengine_openapi_client/models/reprojection_parameters.py create mode 100644 python/geoengine_openapi_client/models/resolution.py rename python/geoengine_openapi_client/models/{histogram_buckets_one_of1.py => square_root_choice_rule.py} (92%) create mode 100644 python/geoengine_openapi_client/models/sum_aggregation.py create mode 100644 python/geoengine_openapi_client/models/temporal_raster_aggregation.py create mode 100644 python/geoengine_openapi_client/models/temporal_raster_aggregation_parameters.py rename python/geoengine_openapi_client/models/{data_path_one_of1.py => upload.py} (92%) rename python/geoengine_openapi_client/models/{histogram_bounds_one_of1.py => values.py} (83%) rename python/geoengine_openapi_client/models/{histogram_bounds_one_of1_values.py => values_values.py} (91%) rename python/geoengine_openapi_client/models/{data_path_one_of.py => volume1.py} (92%) create mode 100644 python/test/test_aggregation.py create mode 100644 python/test/test_band_filter.py create mode 100644 python/test/test_band_filter_parameters.py create mode 100644 python/test/test_bands_by_name_or_index.py create mode 100644 python/test/test_count_aggregation.py rename python/test/{test_typed_geometry_one_of.py => test_data1.py} (63%) create mode 100644 python/test/test_derive_out_raster_specs_source.py create mode 100644 python/test/test_first_aggregation.py create mode 100644 python/test/test_fraction.py delete mode 100644 python/test/test_histogram_bounds_one_of1.py create mode 100644 python/test/test_interpolation.py create mode 100644 python/test/test_interpolation_method.py create mode 100644 python/test/test_interpolation_parameters.py create mode 100644 python/test/test_interpolation_resolution.py rename python/test/{test_time_dimension_one_of1.py => test_irregular.py} (63%) create mode 100644 python/test/test_last_aggregation.py create mode 100644 python/test/test_max_aggregation.py create mode 100644 python/test/test_mean_aggregation.py create mode 100644 python/test/test_min_aggregation.py create mode 100644 python/test/test_multi_band_gdal_source.py rename python/test/{test_typed_geometry_one_of2.py => test_multi_line_string1.py} (75%) rename python/test/{test_typed_geometry_one_of1.py => test_multi_point1.py} (73%) rename python/test/{test_typed_geometry_one_of3.py => test_multi_polygon1.py} (76%) create mode 100644 python/test/test_multiple_raster_sources.py rename python/test/{test_histogram_bounds_one_of.py => test_no_geometry1.py} (62%) rename python/test/{test_histogram_buckets_one_of.py => test_number.py} (63%) create mode 100644 python/test/test_percentile_estimate_aggregation.py create mode 100644 python/test/test_raster_stacker.py create mode 100644 python/test/test_raster_stacker_parameters.py create mode 100644 python/test/test_raster_type_conversion.py create mode 100644 python/test/test_raster_type_conversion_parameters.py rename python/test/{test_time_dimension_one_of.py => test_regular.py} (64%) create mode 100644 python/test/test_rename.py create mode 100644 python/test/test_rename_bands.py create mode 100644 python/test/test_reprojection.py create mode 100644 python/test/test_reprojection_parameters.py create mode 100644 python/test/test_resolution.py rename python/test/{test_histogram_buckets_one_of1.py => test_square_root_choice_rule.py} (63%) create mode 100644 python/test/test_sum_aggregation.py create mode 100644 python/test/test_temporal_raster_aggregation.py create mode 100644 python/test/test_temporal_raster_aggregation_parameters.py rename python/test/{test_data_path_one_of1.py => test_upload.py} (65%) create mode 100644 python/test/test_values.py rename python/test/{test_histogram_bounds_one_of1_values.py => test_values_values.py} (60%) rename python/test/{test_data_path_one_of.py => test_volume1.py} (66%) create mode 100644 rust/docs/Aggregation.md create mode 100644 rust/docs/BandFilter.md create mode 100644 rust/docs/BandFilterParameters.md create mode 100644 rust/docs/BandsByNameOrIndex.md create mode 100644 rust/docs/CountAggregation.md create mode 100644 rust/docs/Data1.md create mode 100644 rust/docs/DeriveOutRasterSpecsSource.md create mode 100644 rust/docs/FirstAggregation.md create mode 100644 rust/docs/Fraction.md create mode 100644 rust/docs/Interpolation.md create mode 100644 rust/docs/InterpolationMethod.md create mode 100644 rust/docs/InterpolationParameters.md create mode 100644 rust/docs/InterpolationResolution.md create mode 100644 rust/docs/Irregular.md create mode 100644 rust/docs/LastAggregation.md create mode 100644 rust/docs/MaxAggregation.md create mode 100644 rust/docs/MeanAggregation.md create mode 100644 rust/docs/MinAggregation.md create mode 100644 rust/docs/MultiBandGdalSource.md create mode 100644 rust/docs/MultiLineString1.md create mode 100644 rust/docs/MultiPoint1.md create mode 100644 rust/docs/MultiPolygon1.md create mode 100644 rust/docs/MultipleRasterSources.md create mode 100644 rust/docs/NoGeometry1.md create mode 100644 rust/docs/Number.md create mode 100644 rust/docs/PercentileEstimateAggregation.md create mode 100644 rust/docs/RasterStacker.md create mode 100644 rust/docs/RasterStackerParameters.md create mode 100644 rust/docs/RasterTypeConversion.md create mode 100644 rust/docs/RasterTypeConversionParameters.md create mode 100644 rust/docs/Regular.md create mode 100644 rust/docs/Rename.md create mode 100644 rust/docs/RenameBands.md create mode 100644 rust/docs/Reprojection.md create mode 100644 rust/docs/ReprojectionParameters.md create mode 100644 rust/docs/Resolution.md create mode 100644 rust/docs/SquareRootChoiceRule.md create mode 100644 rust/docs/SumAggregation.md create mode 100644 rust/docs/TemporalRasterAggregation.md create mode 100644 rust/docs/TemporalRasterAggregationParameters.md create mode 100644 rust/docs/Upload.md create mode 100644 rust/docs/Values.md create mode 100644 rust/docs/ValuesValues.md create mode 100644 rust/docs/Volume1.md create mode 100644 rust/src/models/aggregation.rs create mode 100644 rust/src/models/band_filter.rs create mode 100644 rust/src/models/band_filter_parameters.rs create mode 100644 rust/src/models/bands_by_name_or_index.rs create mode 100644 rust/src/models/count_aggregation.rs create mode 100644 rust/src/models/data_1.rs create mode 100644 rust/src/models/derive_out_raster_specs_source.rs create mode 100644 rust/src/models/first_aggregation.rs create mode 100644 rust/src/models/fraction.rs create mode 100644 rust/src/models/interpolation.rs create mode 100644 rust/src/models/interpolation_method.rs create mode 100644 rust/src/models/interpolation_parameters.rs create mode 100644 rust/src/models/interpolation_resolution.rs create mode 100644 rust/src/models/irregular.rs create mode 100644 rust/src/models/last_aggregation.rs create mode 100644 rust/src/models/max_aggregation.rs create mode 100644 rust/src/models/mean_aggregation.rs create mode 100644 rust/src/models/min_aggregation.rs create mode 100644 rust/src/models/multi_band_gdal_source.rs create mode 100644 rust/src/models/multi_line_string_1.rs create mode 100644 rust/src/models/multi_point_1.rs create mode 100644 rust/src/models/multi_polygon_1.rs create mode 100644 rust/src/models/multiple_raster_sources.rs create mode 100644 rust/src/models/no_geometry_1.rs create mode 100644 rust/src/models/number.rs create mode 100644 rust/src/models/percentile_estimate_aggregation.rs create mode 100644 rust/src/models/raster_stacker.rs create mode 100644 rust/src/models/raster_stacker_parameters.rs create mode 100644 rust/src/models/raster_type_conversion.rs create mode 100644 rust/src/models/raster_type_conversion_parameters.rs create mode 100644 rust/src/models/regular.rs create mode 100644 rust/src/models/rename.rs create mode 100644 rust/src/models/rename_bands.rs create mode 100644 rust/src/models/reprojection.rs create mode 100644 rust/src/models/reprojection_parameters.rs create mode 100644 rust/src/models/resolution.rs create mode 100644 rust/src/models/square_root_choice_rule.rs create mode 100644 rust/src/models/sum_aggregation.rs create mode 100644 rust/src/models/temporal_raster_aggregation.rs create mode 100644 rust/src/models/temporal_raster_aggregation_parameters.rs create mode 100644 rust/src/models/upload.rs create mode 100644 rust/src/models/values.rs create mode 100644 rust/src/models/values_values.rs create mode 100644 rust/src/models/volume_1.rs create mode 100644 typescript/dist/esm/models/Aggregation.d.ts create mode 100644 typescript/dist/esm/models/Aggregation.js create mode 100644 typescript/dist/esm/models/BandFilter.d.ts create mode 100644 typescript/dist/esm/models/BandFilter.js create mode 100644 typescript/dist/esm/models/BandFilterParameters.d.ts create mode 100644 typescript/dist/esm/models/BandFilterParameters.js create mode 100644 typescript/dist/esm/models/BandsByNameOrIndex.d.ts create mode 100644 typescript/dist/esm/models/BandsByNameOrIndex.js create mode 100644 typescript/dist/esm/models/CountAggregation.d.ts create mode 100644 typescript/dist/esm/models/CountAggregation.js create mode 100644 typescript/dist/esm/models/Data1.d.ts rename typescript/dist/esm/models/{HistogramBoundsOneOf.js => Data1.js} (59%) delete mode 100644 typescript/dist/esm/models/DataPathOneOf.d.ts delete mode 100644 typescript/dist/esm/models/DataPathOneOf1.d.ts create mode 100644 typescript/dist/esm/models/DeriveOutRasterSpecsSource.d.ts create mode 100644 typescript/dist/esm/models/DeriveOutRasterSpecsSource.js create mode 100644 typescript/dist/esm/models/FirstAggregation.d.ts create mode 100644 typescript/dist/esm/models/FirstAggregation.js create mode 100644 typescript/dist/esm/models/Fraction.d.ts create mode 100644 typescript/dist/esm/models/Fraction.js delete mode 100644 typescript/dist/esm/models/HistogramBoundsOneOf.d.ts delete mode 100644 typescript/dist/esm/models/HistogramBoundsOneOf1.d.ts delete mode 100644 typescript/dist/esm/models/HistogramBoundsOneOf1.js delete mode 100644 typescript/dist/esm/models/HistogramBoundsOneOf1Values.d.ts delete mode 100644 typescript/dist/esm/models/HistogramBucketsOneOf.d.ts delete mode 100644 typescript/dist/esm/models/HistogramBucketsOneOf1.d.ts create mode 100644 typescript/dist/esm/models/Interpolation.d.ts create mode 100644 typescript/dist/esm/models/Interpolation.js create mode 100644 typescript/dist/esm/models/InterpolationMethod.d.ts create mode 100644 typescript/dist/esm/models/InterpolationMethod.js create mode 100644 typescript/dist/esm/models/InterpolationParameters.d.ts create mode 100644 typescript/dist/esm/models/InterpolationParameters.js create mode 100644 typescript/dist/esm/models/InterpolationResolution.d.ts create mode 100644 typescript/dist/esm/models/InterpolationResolution.js create mode 100644 typescript/dist/esm/models/Irregular.d.ts rename typescript/dist/esm/models/{TimeDimensionOneOf1.js => Irregular.js} (58%) create mode 100644 typescript/dist/esm/models/LastAggregation.d.ts create mode 100644 typescript/dist/esm/models/LastAggregation.js create mode 100644 typescript/dist/esm/models/MaxAggregation.d.ts create mode 100644 typescript/dist/esm/models/MaxAggregation.js create mode 100644 typescript/dist/esm/models/MeanAggregation.d.ts create mode 100644 typescript/dist/esm/models/MeanAggregation.js create mode 100644 typescript/dist/esm/models/MinAggregation.d.ts create mode 100644 typescript/dist/esm/models/MinAggregation.js create mode 100644 typescript/dist/esm/models/MultiBandGdalSource.d.ts create mode 100644 typescript/dist/esm/models/MultiBandGdalSource.js create mode 100644 typescript/dist/esm/models/MultiLineString1.d.ts rename typescript/dist/esm/models/{TypedGeometryOneOf2.js => MultiLineString1.js} (64%) create mode 100644 typescript/dist/esm/models/MultiPoint1.d.ts rename typescript/dist/esm/models/{TypedGeometryOneOf1.js => MultiPoint1.js} (63%) create mode 100644 typescript/dist/esm/models/MultiPolygon1.d.ts rename typescript/dist/esm/models/{TypedGeometryOneOf3.js => MultiPolygon1.js} (64%) create mode 100644 typescript/dist/esm/models/MultipleRasterSources.d.ts create mode 100644 typescript/dist/esm/models/MultipleRasterSources.js create mode 100644 typescript/dist/esm/models/NoGeometry1.d.ts rename typescript/dist/esm/models/{TypedGeometryOneOf.js => NoGeometry1.js} (59%) create mode 100644 typescript/dist/esm/models/Number.d.ts rename typescript/dist/esm/models/{HistogramBucketsOneOf.js => Number.js} (62%) create mode 100644 typescript/dist/esm/models/PercentileEstimateAggregation.d.ts create mode 100644 typescript/dist/esm/models/PercentileEstimateAggregation.js create mode 100644 typescript/dist/esm/models/RasterStacker.d.ts create mode 100644 typescript/dist/esm/models/RasterStacker.js create mode 100644 typescript/dist/esm/models/RasterStackerParameters.d.ts create mode 100644 typescript/dist/esm/models/RasterStackerParameters.js create mode 100644 typescript/dist/esm/models/RasterTypeConversion.d.ts create mode 100644 typescript/dist/esm/models/RasterTypeConversion.js create mode 100644 typescript/dist/esm/models/RasterTypeConversionParameters.d.ts create mode 100644 typescript/dist/esm/models/RasterTypeConversionParameters.js create mode 100644 typescript/dist/esm/models/Regular.d.ts rename typescript/dist/esm/models/{TimeDimensionOneOf.js => Regular.js} (65%) create mode 100644 typescript/dist/esm/models/Rename.d.ts create mode 100644 typescript/dist/esm/models/Rename.js create mode 100644 typescript/dist/esm/models/RenameBands.d.ts create mode 100644 typescript/dist/esm/models/RenameBands.js create mode 100644 typescript/dist/esm/models/Reprojection.d.ts create mode 100644 typescript/dist/esm/models/Reprojection.js create mode 100644 typescript/dist/esm/models/ReprojectionParameters.d.ts create mode 100644 typescript/dist/esm/models/ReprojectionParameters.js create mode 100644 typescript/dist/esm/models/Resolution.d.ts create mode 100644 typescript/dist/esm/models/Resolution.js create mode 100644 typescript/dist/esm/models/SquareRootChoiceRule.d.ts rename typescript/dist/esm/models/{HistogramBucketsOneOf1.js => SquareRootChoiceRule.js} (62%) create mode 100644 typescript/dist/esm/models/SumAggregation.d.ts create mode 100644 typescript/dist/esm/models/SumAggregation.js create mode 100644 typescript/dist/esm/models/TemporalRasterAggregation.d.ts create mode 100644 typescript/dist/esm/models/TemporalRasterAggregation.js create mode 100644 typescript/dist/esm/models/TemporalRasterAggregationParameters.d.ts create mode 100644 typescript/dist/esm/models/TemporalRasterAggregationParameters.js delete mode 100644 typescript/dist/esm/models/TimeDimensionOneOf.d.ts delete mode 100644 typescript/dist/esm/models/TimeDimensionOneOf1.d.ts delete mode 100644 typescript/dist/esm/models/TypedGeometryOneOf.d.ts delete mode 100644 typescript/dist/esm/models/TypedGeometryOneOf1.d.ts delete mode 100644 typescript/dist/esm/models/TypedGeometryOneOf2.d.ts delete mode 100644 typescript/dist/esm/models/TypedGeometryOneOf3.d.ts create mode 100644 typescript/dist/esm/models/Upload.d.ts rename typescript/dist/esm/models/{DataPathOneOf1.js => Upload.js} (61%) create mode 100644 typescript/dist/esm/models/Values.d.ts create mode 100644 typescript/dist/esm/models/Values.js create mode 100644 typescript/dist/esm/models/ValuesValues.d.ts rename typescript/dist/esm/models/{HistogramBoundsOneOf1Values.js => ValuesValues.js} (60%) create mode 100644 typescript/dist/esm/models/Volume1.d.ts rename typescript/dist/esm/models/{DataPathOneOf.js => Volume1.js} (62%) create mode 100644 typescript/dist/models/Aggregation.d.ts create mode 100644 typescript/dist/models/Aggregation.js create mode 100644 typescript/dist/models/BandFilter.d.ts create mode 100644 typescript/dist/models/BandFilter.js create mode 100644 typescript/dist/models/BandFilterParameters.d.ts create mode 100644 typescript/dist/models/BandFilterParameters.js create mode 100644 typescript/dist/models/BandsByNameOrIndex.d.ts create mode 100644 typescript/dist/models/BandsByNameOrIndex.js create mode 100644 typescript/dist/models/CountAggregation.d.ts create mode 100644 typescript/dist/models/CountAggregation.js create mode 100644 typescript/dist/models/Data1.d.ts create mode 100644 typescript/dist/models/Data1.js delete mode 100644 typescript/dist/models/DataPathOneOf.d.ts delete mode 100644 typescript/dist/models/DataPathOneOf1.d.ts create mode 100644 typescript/dist/models/DeriveOutRasterSpecsSource.d.ts create mode 100644 typescript/dist/models/DeriveOutRasterSpecsSource.js create mode 100644 typescript/dist/models/FirstAggregation.d.ts create mode 100644 typescript/dist/models/FirstAggregation.js create mode 100644 typescript/dist/models/Fraction.d.ts create mode 100644 typescript/dist/models/Fraction.js delete mode 100644 typescript/dist/models/HistogramBoundsOneOf.d.ts delete mode 100644 typescript/dist/models/HistogramBoundsOneOf.js delete mode 100644 typescript/dist/models/HistogramBoundsOneOf1.d.ts delete mode 100644 typescript/dist/models/HistogramBoundsOneOf1.js delete mode 100644 typescript/dist/models/HistogramBoundsOneOf1Values.d.ts delete mode 100644 typescript/dist/models/HistogramBoundsOneOf1Values.js delete mode 100644 typescript/dist/models/HistogramBucketsOneOf.d.ts delete mode 100644 typescript/dist/models/HistogramBucketsOneOf1.d.ts create mode 100644 typescript/dist/models/Interpolation.d.ts create mode 100644 typescript/dist/models/Interpolation.js create mode 100644 typescript/dist/models/InterpolationMethod.d.ts create mode 100644 typescript/dist/models/InterpolationMethod.js create mode 100644 typescript/dist/models/InterpolationParameters.d.ts create mode 100644 typescript/dist/models/InterpolationParameters.js create mode 100644 typescript/dist/models/InterpolationResolution.d.ts create mode 100644 typescript/dist/models/InterpolationResolution.js create mode 100644 typescript/dist/models/Irregular.d.ts create mode 100644 typescript/dist/models/Irregular.js create mode 100644 typescript/dist/models/LastAggregation.d.ts create mode 100644 typescript/dist/models/LastAggregation.js create mode 100644 typescript/dist/models/MaxAggregation.d.ts create mode 100644 typescript/dist/models/MaxAggregation.js create mode 100644 typescript/dist/models/MeanAggregation.d.ts create mode 100644 typescript/dist/models/MeanAggregation.js create mode 100644 typescript/dist/models/MinAggregation.d.ts create mode 100644 typescript/dist/models/MinAggregation.js create mode 100644 typescript/dist/models/MultiBandGdalSource.d.ts create mode 100644 typescript/dist/models/MultiBandGdalSource.js create mode 100644 typescript/dist/models/MultiLineString1.d.ts rename typescript/dist/models/{TypedGeometryOneOf2.js => MultiLineString1.js} (55%) create mode 100644 typescript/dist/models/MultiPoint1.d.ts rename typescript/dist/models/{TypedGeometryOneOf1.js => MultiPoint1.js} (54%) create mode 100644 typescript/dist/models/MultiPolygon1.d.ts rename typescript/dist/models/{TypedGeometryOneOf3.js => MultiPolygon1.js} (54%) create mode 100644 typescript/dist/models/MultipleRasterSources.d.ts create mode 100644 typescript/dist/models/MultipleRasterSources.js create mode 100644 typescript/dist/models/NoGeometry1.d.ts rename typescript/dist/models/{TypedGeometryOneOf.js => NoGeometry1.js} (50%) create mode 100644 typescript/dist/models/Number.d.ts rename typescript/dist/models/{HistogramBucketsOneOf.js => Number.js} (51%) create mode 100644 typescript/dist/models/PercentileEstimateAggregation.d.ts create mode 100644 typescript/dist/models/PercentileEstimateAggregation.js create mode 100644 typescript/dist/models/RasterStacker.d.ts create mode 100644 typescript/dist/models/RasterStacker.js create mode 100644 typescript/dist/models/RasterStackerParameters.d.ts create mode 100644 typescript/dist/models/RasterStackerParameters.js create mode 100644 typescript/dist/models/RasterTypeConversion.d.ts create mode 100644 typescript/dist/models/RasterTypeConversion.js create mode 100644 typescript/dist/models/RasterTypeConversionParameters.d.ts create mode 100644 typescript/dist/models/RasterTypeConversionParameters.js create mode 100644 typescript/dist/models/Regular.d.ts rename typescript/dist/models/{TimeDimensionOneOf.js => Regular.js} (55%) create mode 100644 typescript/dist/models/Rename.d.ts create mode 100644 typescript/dist/models/Rename.js create mode 100644 typescript/dist/models/RenameBands.d.ts create mode 100644 typescript/dist/models/RenameBands.js create mode 100644 typescript/dist/models/Reprojection.d.ts create mode 100644 typescript/dist/models/Reprojection.js create mode 100644 typescript/dist/models/ReprojectionParameters.d.ts create mode 100644 typescript/dist/models/ReprojectionParameters.js create mode 100644 typescript/dist/models/Resolution.d.ts create mode 100644 typescript/dist/models/Resolution.js create mode 100644 typescript/dist/models/SquareRootChoiceRule.d.ts rename typescript/dist/models/{HistogramBucketsOneOf1.js => SquareRootChoiceRule.js} (52%) create mode 100644 typescript/dist/models/SumAggregation.d.ts create mode 100644 typescript/dist/models/SumAggregation.js create mode 100644 typescript/dist/models/TemporalRasterAggregation.d.ts create mode 100644 typescript/dist/models/TemporalRasterAggregation.js create mode 100644 typescript/dist/models/TemporalRasterAggregationParameters.d.ts create mode 100644 typescript/dist/models/TemporalRasterAggregationParameters.js delete mode 100644 typescript/dist/models/TimeDimensionOneOf.d.ts delete mode 100644 typescript/dist/models/TimeDimensionOneOf1.d.ts delete mode 100644 typescript/dist/models/TimeDimensionOneOf1.js delete mode 100644 typescript/dist/models/TypedGeometryOneOf.d.ts delete mode 100644 typescript/dist/models/TypedGeometryOneOf1.d.ts delete mode 100644 typescript/dist/models/TypedGeometryOneOf2.d.ts delete mode 100644 typescript/dist/models/TypedGeometryOneOf3.d.ts create mode 100644 typescript/dist/models/Upload.d.ts rename typescript/dist/models/{DataPathOneOf1.js => Upload.js} (53%) create mode 100644 typescript/dist/models/Values.d.ts create mode 100644 typescript/dist/models/Values.js create mode 100644 typescript/dist/models/ValuesValues.d.ts create mode 100644 typescript/dist/models/ValuesValues.js create mode 100644 typescript/dist/models/Volume1.d.ts rename typescript/dist/models/{DataPathOneOf.js => Volume1.js} (53%) create mode 100644 typescript/docs/Aggregation.md create mode 100644 typescript/docs/BandFilter.md create mode 100644 typescript/docs/BandFilterParameters.md create mode 100644 typescript/docs/BandsByNameOrIndex.md create mode 100644 typescript/docs/CountAggregation.md create mode 100644 typescript/docs/Data1.md create mode 100644 typescript/docs/DeriveOutRasterSpecsSource.md create mode 100644 typescript/docs/FirstAggregation.md create mode 100644 typescript/docs/Fraction.md create mode 100644 typescript/docs/Interpolation.md create mode 100644 typescript/docs/InterpolationMethod.md create mode 100644 typescript/docs/InterpolationParameters.md create mode 100644 typescript/docs/InterpolationResolution.md create mode 100644 typescript/docs/Irregular.md create mode 100644 typescript/docs/LastAggregation.md create mode 100644 typescript/docs/MaxAggregation.md create mode 100644 typescript/docs/MeanAggregation.md create mode 100644 typescript/docs/MinAggregation.md create mode 100644 typescript/docs/MultiBandGdalSource.md create mode 100644 typescript/docs/MultiLineString1.md create mode 100644 typescript/docs/MultiPoint1.md create mode 100644 typescript/docs/MultiPolygon1.md create mode 100644 typescript/docs/MultipleRasterSources.md create mode 100644 typescript/docs/NoGeometry1.md create mode 100644 typescript/docs/Number.md create mode 100644 typescript/docs/PercentileEstimateAggregation.md create mode 100644 typescript/docs/RasterStacker.md create mode 100644 typescript/docs/RasterStackerParameters.md create mode 100644 typescript/docs/RasterTypeConversion.md create mode 100644 typescript/docs/RasterTypeConversionParameters.md create mode 100644 typescript/docs/Regular.md create mode 100644 typescript/docs/Rename.md create mode 100644 typescript/docs/RenameBands.md create mode 100644 typescript/docs/Reprojection.md create mode 100644 typescript/docs/ReprojectionParameters.md create mode 100644 typescript/docs/Resolution.md create mode 100644 typescript/docs/SquareRootChoiceRule.md create mode 100644 typescript/docs/SumAggregation.md create mode 100644 typescript/docs/TemporalRasterAggregation.md create mode 100644 typescript/docs/TemporalRasterAggregationParameters.md create mode 100644 typescript/docs/Upload.md create mode 100644 typescript/docs/Values.md create mode 100644 typescript/docs/ValuesValues.md create mode 100644 typescript/docs/Volume1.md create mode 100644 typescript/src/models/Aggregation.ts create mode 100644 typescript/src/models/BandFilter.ts create mode 100644 typescript/src/models/BandFilterParameters.ts create mode 100644 typescript/src/models/BandsByNameOrIndex.ts create mode 100644 typescript/src/models/CountAggregation.ts rename typescript/src/models/{HistogramBoundsOneOf.ts => Data1.ts} (52%) create mode 100644 typescript/src/models/DeriveOutRasterSpecsSource.ts create mode 100644 typescript/src/models/FirstAggregation.ts create mode 100644 typescript/src/models/Fraction.ts delete mode 100644 typescript/src/models/HistogramBoundsOneOf1.ts delete mode 100644 typescript/src/models/HistogramBucketsOneOf.ts create mode 100644 typescript/src/models/Interpolation.ts create mode 100644 typescript/src/models/InterpolationMethod.ts create mode 100644 typescript/src/models/InterpolationParameters.ts create mode 100644 typescript/src/models/InterpolationResolution.ts create mode 100644 typescript/src/models/Irregular.ts create mode 100644 typescript/src/models/LastAggregation.ts create mode 100644 typescript/src/models/MaxAggregation.ts create mode 100644 typescript/src/models/MeanAggregation.ts create mode 100644 typescript/src/models/MinAggregation.ts create mode 100644 typescript/src/models/MultiBandGdalSource.ts rename typescript/src/models/{TypedGeometryOneOf2.ts => MultiLineString1.ts} (61%) rename typescript/src/models/{TypedGeometryOneOf1.ts => MultiPoint1.ts} (59%) rename typescript/src/models/{TypedGeometryOneOf3.ts => MultiPolygon1.ts} (60%) create mode 100644 typescript/src/models/MultipleRasterSources.ts rename typescript/src/models/{TypedGeometryOneOf.ts => NoGeometry1.ts} (53%) create mode 100644 typescript/src/models/Number.ts create mode 100644 typescript/src/models/PercentileEstimateAggregation.ts create mode 100644 typescript/src/models/RasterStacker.ts create mode 100644 typescript/src/models/RasterStackerParameters.ts create mode 100644 typescript/src/models/RasterTypeConversion.ts create mode 100644 typescript/src/models/RasterTypeConversionParameters.ts rename typescript/src/models/{TimeDimensionOneOf.ts => Regular.ts} (57%) create mode 100644 typescript/src/models/Rename.ts create mode 100644 typescript/src/models/RenameBands.ts create mode 100644 typescript/src/models/Reprojection.ts create mode 100644 typescript/src/models/ReprojectionParameters.ts create mode 100644 typescript/src/models/Resolution.ts rename typescript/src/models/{HistogramBucketsOneOf1.ts => SquareRootChoiceRule.ts} (50%) create mode 100644 typescript/src/models/SumAggregation.ts create mode 100644 typescript/src/models/TemporalRasterAggregation.ts create mode 100644 typescript/src/models/TemporalRasterAggregationParameters.ts delete mode 100644 typescript/src/models/TimeDimensionOneOf1.ts rename typescript/src/models/{DataPathOneOf1.ts => Upload.ts} (56%) create mode 100644 typescript/src/models/Values.ts rename typescript/src/models/{HistogramBoundsOneOf1Values.ts => ValuesValues.ts} (52%) rename typescript/src/models/{DataPathOneOf.ts => Volume1.ts} (56%) diff --git a/.generation/input/openapi.json b/.generation/input/openapi.json index 152bb735..d4e3507f 100644 --- a/.generation/input/openapi.json +++ b/.generation/input/openapi.json @@ -5338,6 +5338,168 @@ } } }, + "Aggregation": { + "oneOf": [ + { + "type": "object", + "title": "MinAggregation", + "required": [ + "ignoreNoData", + "type" + ], + "properties": { + "ignoreNoData": { + "type": "boolean" + }, + "type": { + "type": "string", + "enum": [ + "min" + ] + } + } + }, + { + "type": "object", + "title": "MaxAggregation", + "required": [ + "ignoreNoData", + "type" + ], + "properties": { + "ignoreNoData": { + "type": "boolean" + }, + "type": { + "type": "string", + "enum": [ + "max" + ] + } + } + }, + { + "type": "object", + "title": "FirstAggregation", + "required": [ + "ignoreNoData", + "type" + ], + "properties": { + "ignoreNoData": { + "type": "boolean" + }, + "type": { + "type": "string", + "enum": [ + "first" + ] + } + } + }, + { + "type": "object", + "title": "LastAggregation", + "required": [ + "ignoreNoData", + "type" + ], + "properties": { + "ignoreNoData": { + "type": "boolean" + }, + "type": { + "type": "string", + "enum": [ + "last" + ] + } + } + }, + { + "type": "object", + "title": "MeanAggregation", + "required": [ + "ignoreNoData", + "type" + ], + "properties": { + "ignoreNoData": { + "type": "boolean" + }, + "type": { + "type": "string", + "enum": [ + "mean" + ] + } + } + }, + { + "type": "object", + "title": "SumAggregation", + "required": [ + "ignoreNoData", + "type" + ], + "properties": { + "ignoreNoData": { + "type": "boolean" + }, + "type": { + "type": "string", + "enum": [ + "sum" + ] + } + } + }, + { + "type": "object", + "title": "CountAggregation", + "required": [ + "ignoreNoData", + "type" + ], + "properties": { + "ignoreNoData": { + "type": "boolean" + }, + "type": { + "type": "string", + "enum": [ + "count" + ] + } + } + }, + { + "type": "object", + "title": "PercentileEstimateAggregation", + "required": [ + "ignoreNoData", + "percentile", + "type" + ], + "properties": { + "ignoreNoData": { + "type": "boolean" + }, + "percentile": { + "type": "number", + "format": "double" + }, + "type": { + "type": "string", + "enum": [ + "percentileEstimate" + ] + } + } + } + ], + "description": "Aggregation methods for `TemporalRasterAggregation`.\n\nAvailable variants are `min`, `max`, `first`, `last`, `mean`, `sum`, `count`, and `percentileEstimate`.\nEncountering NO DATA makes the aggregation result NO DATA unless `ignoreNoData` is `true`." + }, "ArunaDataProviderDefinition": { "type": "object", "required": [ @@ -5475,6 +5637,81 @@ "eastNorth" ] }, + "BandFilter": { + "type": "object", + "title": "Band Filter", + "description": "The `BandFilter` operator selects bands from a raster source by band names or band indices.\n\nIt removes all non-selected bands while preserving the original order of remaining bands.\n\n## Inputs\n\nThe `BandFilter` operator expects exactly one _raster_ input.\n\n## Errors\n\nThe operator returns an error if no bands are selected or if selected band names/indices\ncannot be mapped to existing input bands.", + "required": [ + "type", + "params", + "sources" + ], + "properties": { + "params": { + "$ref": "#/components/schemas/BandFilterParameters" + }, + "sources": { + "$ref": "#/components/schemas/SingleRasterSource" + }, + "type": { + "type": "string", + "enum": [ + "BandFilter" + ] + } + }, + "examples": [ + { + "type": "BandFilter", + "params": { + "bands": [ + "nir", + "red" + ] + }, + "sources": { + "raster": { + "type": "MultiBandGdalSource", + "params": { + "data": "sentinel-2-l2a_EPSG32632_U16_10" + } + } + } + } + ] + }, + "BandFilterParameters": { + "type": "object", + "description": "Parameters for the `BandFilter` operator.", + "required": [ + "bands" + ], + "properties": { + "bands": { + "$ref": "#/components/schemas/BandsByNameOrIndex", + "description": "Selected bands either by names (e.g. `[\"nir\", \"red\"]`) or indices (e.g. `[0, 2]`)." + } + } + }, + "BandsByNameOrIndex": { + "oneOf": [ + { + "type": "array", + "items": { + "type": "string" + }, + "description": "Select bands by their names." + }, + { + "type": "array", + "items": { + "type": "integer", + "minimum": 0 + }, + "description": "Select bands by zero-based band indices." + } + ] + }, "BoundingBox2D": { "type": "object", "description": "A bounding box that includes all border points.\nNote: may degenerate to a point!", @@ -5893,6 +6130,7 @@ "oneOf": [ { "type": "object", + "title": "Volume", "required": [ "volume" ], @@ -5904,6 +6142,7 @@ }, { "type": "object", + "title": "Upload", "required": [ "upload" ], @@ -6261,6 +6500,13 @@ "DateTimeParseFormat": { "type": "string" }, + "DeriveOutRasterSpecsSource": { + "type": "string", + "enum": [ + "dataBounds", + "projectionBounds" + ] + }, "DerivedColor": { "type": "object", "required": [ @@ -7233,6 +7479,7 @@ "oneOf": [ { "type": "object", + "title": "Data", "required": [ "data" ], @@ -7244,6 +7491,7 @@ }, { "type": "object", + "title": "Values", "required": [ "values" ], @@ -7273,6 +7521,7 @@ "oneOf": [ { "type": "object", + "title": "Number", "required": [ "value", "type" @@ -7293,6 +7542,7 @@ }, { "type": "object", + "title": "SquareRootChoiceRule", "required": [ "type" ], @@ -7363,71 +7613,208 @@ } } }, - "Layer": { + "Interpolation": { "type": "object", + "title": "Interpolation", + "description": "The `Interpolation` operator increases raster resolution by interpolating values of an input raster.\n\nIf queried with a resolution that is coarser than the input resolution,\ninterpolation is not applicable and an error is returned.\n\n## Inputs\n\nThe `Interpolation` operator expects exactly one _raster_ input.", "required": [ - "id", - "name", - "description", - "workflow" + "type", + "params", + "sources" ], "properties": { - "description": { - "type": "string" + "params": { + "$ref": "#/components/schemas/InterpolationParameters" }, - "id": { - "$ref": "#/components/schemas/ProviderLayerId" + "sources": { + "$ref": "#/components/schemas/SingleRasterSource" }, - "metadata": { - "type": "object", - "description": "metadata used for loading the data", - "additionalProperties": { - "type": "string" + "type": { + "type": "string", + "enum": [ + "Interpolation" + ] + } + }, + "examples": [ + { + "type": "Interpolation", + "params": { + "interpolation": "nearestNeighbor", + "outputResolution": { + "type": "fraction", + "x": 2.0, + "y": 2.0 + } }, - "propertyNames": { - "type": "string" + "sources": { + "raster": { + "type": "MultiBandGdalSource", + "params": { + "data": "sentinel-2-l2a_EPSG32632_U8_20" + } + } } + } + ] + }, + "InterpolationMethod": { + "type": "string", + "enum": [ + "nearestNeighbor", + "biLinear" + ] + }, + "InterpolationParameters": { + "type": "object", + "description": "Parameters for the `Interpolation` operator.", + "required": [ + "interpolation", + "outputResolution" + ], + "properties": { + "interpolation": { + "$ref": "#/components/schemas/InterpolationMethod", + "description": "Interpolation method." }, - "name": { - "type": "string" - }, - "properties": { - "type": "array", - "items": { - "$ref": "#/components/schemas/Property" - }, - "description": "properties, for instance, to be rendered in the UI" - }, - "symbology": { + "outputOriginReference": { "oneOf": [ { "type": "null" }, { - "$ref": "#/components/schemas/Symbology" + "$ref": "#/components/schemas/Coordinate2D", + "description": "Optional reference point used to align the output grid origin." } ] }, - "workflow": { - "$ref": "#/components/schemas/Workflow" + "outputResolution": { + "$ref": "#/components/schemas/InterpolationResolution", + "description": "Target output resolution." } } }, - "LayerCollection": { - "type": "object", - "required": [ - "id", - "name", - "description", - "items", - "properties" - ], - "properties": { - "description": { - "type": "string" - }, - "entryLabel": { - "type": [ + "InterpolationResolution": { + "oneOf": [ + { + "type": "object", + "title": "Resolution", + "description": "Explicit output resolution (`x`, `y`) in target coordinates.", + "required": [ + "x", + "y", + "type" + ], + "properties": { + "type": { + "type": "string", + "enum": [ + "resolution" + ] + }, + "x": { + "type": "number", + "format": "double" + }, + "y": { + "type": "number", + "format": "double" + } + } + }, + { + "type": "object", + "title": "Fraction", + "description": "Upscale factor relative to input resolution (`x >= 1`, `y >= 1`).", + "required": [ + "x", + "y", + "type" + ], + "properties": { + "type": { + "type": "string", + "enum": [ + "fraction" + ] + }, + "x": { + "type": "number", + "format": "double" + }, + "y": { + "type": "number", + "format": "double" + } + } + } + ] + }, + "Layer": { + "type": "object", + "required": [ + "id", + "name", + "description", + "workflow" + ], + "properties": { + "description": { + "type": "string" + }, + "id": { + "$ref": "#/components/schemas/ProviderLayerId" + }, + "metadata": { + "type": "object", + "description": "metadata used for loading the data", + "additionalProperties": { + "type": "string" + }, + "propertyNames": { + "type": "string" + } + }, + "name": { + "type": "string" + }, + "properties": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Property" + }, + "description": "properties, for instance, to be rendered in the UI" + }, + "symbology": { + "oneOf": [ + { + "type": "null" + }, + { + "$ref": "#/components/schemas/Symbology" + } + ] + }, + "workflow": { + "$ref": "#/components/schemas/Workflow" + } + } + }, + "LayerCollection": { + "type": "object", + "required": [ + "id", + "name", + "description", + "items", + "properties" + ], + "properties": { + "description": { + "type": "string" + }, + "entryLabel": { + "type": [ "string", "null" ], @@ -8089,6 +8476,35 @@ } } }, + "MultiBandGdalSource": { + "type": "object", + "title": "Multi Band GDAL Source", + "description": "The [`MultiBandGdalSource`] is a source operator that reads multi-band raster data using GDAL.", + "required": [ + "type", + "params" + ], + "properties": { + "params": { + "$ref": "#/components/schemas/GdalSourceParameters" + }, + "type": { + "type": "string", + "enum": [ + "MultiBandGdalSource" + ] + } + }, + "examples": [ + { + "type": "MultiBandGdalSource", + "params": { + "data": "sentinel-2-l2a_EPSG32632_U16_10", + "overviewLevel": null + } + } + ] + }, "MultiBandRasterColorizer": { "type": "object", "required": [ @@ -8256,6 +8672,21 @@ } } }, + "MultipleRasterSources": { + "type": "object", + "description": "One or more raster operators as sources for this operator.", + "required": [ + "rasters" + ], + "properties": { + "rasters": { + "type": "array", + "items": { + "$ref": "#/components/schemas/RasterOperator" + } + } + } + }, "NetCdfCfDataProviderDefinition": { "type": "object", "required": [ @@ -9437,19 +9868,47 @@ }, "RasterOperator": { "oneOf": [ + { + "$ref": "#/components/schemas/BandFilter" + }, { "$ref": "#/components/schemas/Expression" }, { "$ref": "#/components/schemas/GdalSource" + }, + { + "$ref": "#/components/schemas/Interpolation" + }, + { + "$ref": "#/components/schemas/MultiBandGdalSource" + }, + { + "$ref": "#/components/schemas/RasterStacker" + }, + { + "$ref": "#/components/schemas/RasterTypeConversion" + }, + { + "$ref": "#/components/schemas/Reprojection" + }, + { + "$ref": "#/components/schemas/TemporalRasterAggregation" } ], "description": "An operator that produces raster data.", "discriminator": { "propertyName": "type", "mapping": { + "BandFilter": "#/components/schemas/BandFilter", "Expression": "#/components/schemas/Expression", - "GdalSource": "#/components/schemas/GdalSource" + "GdalSource": "#/components/schemas/GdalSource", + "Interpolation": "#/components/schemas/Interpolation", + "MultiBandGdalSource": "#/components/schemas/MultiBandGdalSource", + "RasterStacker": "#/components/schemas/RasterStacker", + "RasterTypeConversion": "#/components/schemas/RasterTypeConversion", + "Reprojection": "#/components/schemas/Reprojection", + "TemporalRasterAggregation": "#/components/schemas/TemporalRasterAggregation" } } }, @@ -9505,6 +9964,69 @@ } } }, + "RasterStacker": { + "type": "object", + "title": "Raster Stacker", + "description": "The `RasterStacker` stacks all of its inputs into a single raster time series.\nIt queries all inputs and combines them by band, space, and then time.\n\nThe output raster has as many bands as the sum of all input bands.\nTiles are automatically temporally aligned.\n\nAll inputs must have the same data type and spatial reference.\n\n## Inputs\n\nThe `RasterStacker` operator expects multiple raster inputs.", + "required": [ + "type", + "params", + "sources" + ], + "properties": { + "params": { + "$ref": "#/components/schemas/RasterStackerParameters" + }, + "sources": { + "$ref": "#/components/schemas/MultipleRasterSources" + }, + "type": { + "type": "string", + "enum": [ + "RasterStacker" + ] + } + }, + "examples": [ + { + "type": "RasterStacker", + "params": { + "renameBands": { + "type": "default" + } + }, + "sources": { + "rasters": [ + { + "type": "GdalSource", + "params": { + "data": "example-a" + } + }, + { + "type": "GdalSource", + "params": { + "data": "example-b" + } + } + ] + } + } + ] + }, + "RasterStackerParameters": { + "type": "object", + "description": "Parameters for the `RasterStacker` operator.", + "required": [ + "renameBands" + ], + "properties": { + "renameBands": { + "$ref": "#/components/schemas/RenameBands", + "description": "Strategy for deriving output band names.\n\n- `default`: appends ` (n)` with the smallest `n` that avoids a conflict.\n- `suffix`: appends one suffix per input.\n- `rename`: explicitly provides names for all resulting bands." + } + } + }, "RasterStreamWebsocketResultType": { "type": "string", "description": "The stream result type for `raster_stream_websocket`.", @@ -9551,6 +10073,59 @@ } } }, + "RasterTypeConversion": { + "type": "object", + "title": "Raster Type Conversion", + "description": "The `RasterTypeConversion` operator changes the data type of raster pixels.\n\nApplying this conversion may cause precision loss.\nFor example, converting `F32` value `3.1` to `U8` results in `3`.\n\nIf a value is outside of the range of the target data type,\nit is clipped to the valid range of that type.\nFor example, converting `F32` value `300.0` to `U8` results in `255`.\n\n## Inputs\n\nThe `RasterTypeConversion` operator expects exactly one _raster_ input.", + "required": [ + "type", + "params", + "sources" + ], + "properties": { + "params": { + "$ref": "#/components/schemas/RasterTypeConversionParameters" + }, + "sources": { + "$ref": "#/components/schemas/SingleRasterSource" + }, + "type": { + "type": "string", + "enum": [ + "RasterTypeConversion" + ] + } + }, + "examples": [ + { + "type": "RasterTypeConversion", + "params": { + "outputDataType": "U16" + }, + "sources": { + "raster": { + "type": "GdalSource", + "params": { + "data": "example" + } + } + } + } + ] + }, + "RasterTypeConversionParameters": { + "type": "object", + "description": "Parameters for the `RasterTypeConversion` operator.", + "required": [ + "outputDataType" + ], + "properties": { + "outputDataType": { + "$ref": "#/components/schemas/RasterDataType", + "description": "Output raster data type." + } + } + }, "RasterVectorJoin": { "type": "object", "title": "Raster Vector Join", @@ -9655,6 +10230,138 @@ } } }, + "RenameBands": { + "oneOf": [ + { + "type": "object", + "title": "Default", + "required": [ + "type" + ], + "properties": { + "type": { + "type": "string", + "enum": [ + "default" + ] + } + } + }, + { + "type": "object", + "title": "Suffix", + "required": [ + "values", + "type" + ], + "properties": { + "type": { + "type": "string", + "enum": [ + "suffix" + ] + }, + "values": { + "type": "array", + "items": { + "type": "string" + } + } + } + }, + { + "type": "object", + "title": "Rename", + "required": [ + "values", + "type" + ], + "properties": { + "type": { + "type": "string", + "enum": [ + "rename" + ] + }, + "values": { + "type": "array", + "items": { + "type": "string" + } + } + } + } + ] + }, + "Reprojection": { + "type": "object", + "title": "Reprojection", + "description": "The `Reprojection` operator reprojects data from one spatial reference system to another.\nIt accepts exactly one input which can either be a raster or a vector data stream.\nThe operator produces all data that, after reprojection, is contained in the query rectangle.\n\n## Data Type Specifics\n\nThe concrete behavior depends on the data type.\n\n### Vector Data\n\nThe operator reprojects all coordinates of the features individually.\nThe result contains all features that, after reprojection, are intersected by the query rectangle.\n\n### Raster Data\n\nTo create tiles in the target projection, the operator loads corresponding tiles in the source projection.\nFor each output pixel, the value of the nearest input pixel is used.\n\nIf parts of a tile are outside of the source extent after projection, the operator produces NO DATA values.\n\n## Inputs\n\nThe `Reprojection` operator expects exactly one _raster_ or _vector_ input.\n\n## Errors\n\nThe operator returns an error if the target projection is unknown or if input data cannot be reprojected.", + "required": [ + "type", + "params", + "sources" + ], + "properties": { + "params": { + "$ref": "#/components/schemas/ReprojectionParameters" + }, + "sources": { + "$ref": "#/components/schemas/SingleRasterOrVectorSource" + }, + "type": { + "type": "string", + "enum": [ + "Reprojection" + ] + } + }, + "examples": [ + { + "type": "Reprojection", + "params": { + "deriveOutSpec": "projectionBounds", + "targetSpatialReference": "EPSG:32632" + }, + "sources": { + "source": { + "type": "MockPointSource", + "params": { + "points": [ + { + "x": 8.77069, + "y": 50.80904 + } + ], + "spatialBounds": { + "type": "none" + } + } + } + } + } + ] + }, + "ReprojectionParameters": { + "type": "object", + "description": "Parameters for the `Reprojection` operator.", + "required": [ + "targetSpatialReference" + ], + "properties": { + "deriveOutSpec": { + "$ref": "#/components/schemas/DeriveOutRasterSpecsSource", + "description": "Controls how raster output bounds are derived.\n\nThe default `projectionBounds` usually keeps a projection-aligned target grid,\nwhile `dataBounds` derives it directly from source data bounds." + }, + "targetSpatialReference": { + "type": "string", + "description": "Target spatial reference system.", + "examples": [ + "EPSG:32632" + ] + } + } + }, "Resource": { "oneOf": [ { @@ -10521,6 +11228,109 @@ "mean" ] }, + "TemporalRasterAggregation": { + "type": "object", + "title": "Temporal Raster Aggregation", + "description": "The `TemporalRasterAggregation` operator aggregates a raster time series into uniform time windows.\nThe output starts with the first window that contains the query start and contains all windows\nthat overlap the query interval.\n\nPixel values are computed by aggregating all input rasters that contribute to the current window.\n\n## Inputs\n\nThe `TemporalRasterAggregation` operator expects exactly one _raster_ input.\n\n## Errors\n\nIf the aggregation method is `first`, `last`, or `mean` and the input raster has no NO DATA value,\nan error is returned.", + "required": [ + "type", + "params", + "sources" + ], + "properties": { + "params": { + "$ref": "#/components/schemas/TemporalRasterAggregationParameters" + }, + "sources": { + "$ref": "#/components/schemas/SingleRasterSource" + }, + "type": { + "type": "string", + "enum": [ + "TemporalRasterAggregation" + ] + } + }, + "examples": [ + { + "type": "TemporalRasterAggregation", + "params": { + "aggregation": { + "type": "mean", + "ignoreNoData": true + }, + "window": { + "granularity": "months", + "step": 1 + } + }, + "sources": { + "raster": { + "type": "Expression", + "params": { + "expression": "(A - B) / (A + B)", + "outputType": "F32", + "outputBand": { + "name": "NDVI", + "measurement": { + "type": "unitless" + } + }, + "mapNoData": false + }, + "sources": { + "raster": { + "type": "GdalSource", + "params": { + "data": "ndvi" + } + } + } + } + } + } + ] + }, + "TemporalRasterAggregationParameters": { + "type": "object", + "description": "Parameters for the `TemporalRasterAggregation` operator.", + "required": [ + "aggregation", + "window" + ], + "properties": { + "aggregation": { + "$ref": "#/components/schemas/Aggregation", + "description": "Aggregation method for values within each time window.\n\nEncountering NO DATA makes the aggregation result NO DATA unless\n`ignoreNoData` is `true` for the selected aggregation variant." + }, + "outputType": { + "oneOf": [ + { + "type": "null" + }, + { + "$ref": "#/components/schemas/RasterDataType", + "description": "Optional output raster data type." + } + ] + }, + "window": { + "$ref": "#/components/schemas/TimeStep", + "description": "Window size and granularity for the output time series." + }, + "windowReference": { + "oneOf": [ + { + "type": "null" + }, + { + "$ref": "#/components/schemas/TimeInstance", + "description": "Optional reference timestamp used as the anchor for window boundaries.\n\nIf omitted, windows are anchored at `1970-01-01T00:00:00Z`." + } + ] + } + } + }, "TextSymbology": { "type": "object", "required": [ @@ -10582,10 +11392,12 @@ } } } - ] + ], + "title": "Regular" }, { "type": "object", + "title": "Irregular", "required": [ "type" ], @@ -10721,6 +11533,7 @@ "oneOf": [ { "type": "object", + "title": "NoGeometry", "required": [ "Data" ], @@ -10732,6 +11545,7 @@ }, { "type": "object", + "title": "MultiPoint", "required": [ "MultiPoint" ], @@ -10743,6 +11557,7 @@ }, { "type": "object", + "title": "MultiLineString", "required": [ "MultiLineString" ], @@ -10754,6 +11569,7 @@ }, { "type": "object", + "title": "MultiPolygon", "required": [ "MultiPolygon" ], @@ -11367,6 +12183,9 @@ }, { "$ref": "#/components/schemas/RasterVectorJoin" + }, + { + "$ref": "#/components/schemas/Reprojection" } ], "description": "An operator that produces vector data.", @@ -11374,7 +12193,8 @@ "propertyName": "type", "mapping": { "MockPointSource": "#/components/schemas/MockPointSource", - "RasterVectorJoin": "#/components/schemas/RasterVectorJoin" + "RasterVectorJoin": "#/components/schemas/RasterVectorJoin", + "Reprojection": "#/components/schemas/Reprojection" } } }, diff --git a/python/.openapi-generator/FILES b/python/.openapi-generator/FILES index 2d4f9775..ed1af5f7 100644 --- a/python/.openapi-generator/FILES +++ b/python/.openapi-generator/FILES @@ -7,11 +7,15 @@ docs/AddDataset.md docs/AddLayer.md docs/AddLayerCollection.md docs/AddRole.md +docs/Aggregation.md docs/ArunaDataProviderDefinition.md docs/AuthCodeRequestURL.md docs/AuthCodeResponse.md docs/AutoCreateDataset.md docs/AxisOrder.md +docs/BandFilter.md +docs/BandFilterParameters.md +docs/BandsByNameOrIndex.md docs/BoundingBox2D.md docs/Breakpoint.md docs/ClassificationMeasurement.md @@ -24,13 +28,13 @@ docs/ComputationQuota.md docs/ContinuousMeasurement.md docs/Coordinate2D.md docs/CopernicusDataspaceDataProviderDefinition.md +docs/CountAggregation.md docs/CreateDataset.md docs/CreateProject.md docs/CsvHeader.md +docs/Data1.md docs/DataId.md docs/DataPath.md -docs/DataPathOneOf.md -docs/DataPathOneOf1.md docs/DataProviderResource.md docs/DataUsage.md docs/DataUsageSummary.md @@ -44,6 +48,7 @@ docs/DatasetNameResponse.md docs/DatasetResource.md docs/DatasetsApi.md docs/Default.md +docs/DeriveOutRasterSpecsSource.md docs/DerivedColor.md docs/DerivedNumber.md docs/EbvPortalDataProviderDefinition.md @@ -56,8 +61,10 @@ docs/ExternalDataId.md docs/FeatureAggregationMethod.md docs/FeatureDataType.md docs/FileNotFoundHandling.md +docs/FirstAggregation.md docs/FormatSpecifics.md docs/FormatSpecificsCsv.md +docs/Fraction.md docs/GbifDataProviderDefinition.md docs/GdalDatasetParameters.md docs/GdalLoadingInfoTemporalSlice.md @@ -81,15 +88,16 @@ docs/GridBoundingBox2D.md docs/GridIdx2D.md docs/Histogram.md docs/HistogramBounds.md -docs/HistogramBoundsOneOf.md -docs/HistogramBoundsOneOf1.md -docs/HistogramBoundsOneOf1Values.md docs/HistogramBuckets.md -docs/HistogramBucketsOneOf.md -docs/HistogramBucketsOneOf1.md docs/HistogramParameters.md docs/IdResponse.md docs/InternalDataId.md +docs/Interpolation.md +docs/InterpolationMethod.md +docs/InterpolationParameters.md +docs/InterpolationResolution.md +docs/Irregular.md +docs/LastAggregation.md docs/Layer.md docs/LayerCollection.md docs/LayerCollectionListing.md @@ -105,9 +113,12 @@ docs/LineSymbology.md docs/LinearGradient.md docs/LogarithmicGradient.md docs/MLApi.md +docs/MaxAggregation.md +docs/MeanAggregation.md docs/Measurement.md docs/MetaDataDefinition.md docs/MetaDataSuggestion.md +docs/MinAggregation.md docs/MlModel.md docs/MlModelInputNoDataHandling.md docs/MlModelInputNoDataHandlingVariant.md @@ -121,14 +132,21 @@ docs/MockDatasetDataSourceLoadingInfo.md docs/MockMetaData.md docs/MockPointSource.md docs/MockPointSourceParameters.md +docs/MultiBandGdalSource.md docs/MultiBandRasterColorizer.md docs/MultiLineString.md +docs/MultiLineString1.md docs/MultiPoint.md +docs/MultiPoint1.md docs/MultiPolygon.md +docs/MultiPolygon1.md docs/MultipleRasterOrSingleVectorOperator.md docs/MultipleRasterOrSingleVectorSource.md +docs/MultipleRasterSources.md docs/Names.md docs/NetCdfCfDataProviderDefinition.md +docs/NoGeometry1.md +docs/Number.md docs/NumberParam.md docs/OGCWCSApi.md docs/OGCWFSApi.md @@ -154,6 +172,7 @@ docs/OperatorQuota.md docs/OrderBy.md docs/PaletteColorizer.md docs/PangaeaDataProviderDefinition.md +docs/PercentileEstimateAggregation.md docs/Permission.md docs/PermissionListing.md docs/PermissionRequest.md @@ -187,12 +206,22 @@ docs/RasterOperator.md docs/RasterPropertiesEntryType.md docs/RasterPropertiesKey.md docs/RasterResultDescriptor.md +docs/RasterStacker.md +docs/RasterStackerParameters.md docs/RasterStreamWebsocketResultType.md docs/RasterSymbology.md docs/RasterToDatasetQueryRectangle.md +docs/RasterTypeConversion.md +docs/RasterTypeConversionParameters.md docs/RasterVectorJoin.md docs/RasterVectorJoinParameters.md +docs/Regular.md docs/RegularTimeDimension.md +docs/Rename.md +docs/RenameBands.md +docs/Reprojection.md +docs/ReprojectionParameters.md +docs/Resolution.md docs/Resource.md docs/Role.md docs/RoleDescription.md @@ -218,6 +247,7 @@ docs/SpatialGridDescriptorState.md docs/SpatialPartition2D.md docs/SpatialReferenceSpecification.md docs/SpatialReferencesApi.md +docs/SquareRootChoiceRule.md docs/StacApiRetries.md docs/StacQueryBuffer.md docs/StaticColor.md @@ -227,6 +257,7 @@ docs/StatisticsParameters.md docs/StrokeParam.md docs/Suffix.md docs/SuggestMetaData.md +docs/SumAggregation.md docs/Symbology.md docs/TaskFilter.md docs/TaskResponse.md @@ -238,21 +269,17 @@ docs/TaskStatusRunning.md docs/TaskStatusWithId.md docs/TasksApi.md docs/TemporalAggregationMethod.md +docs/TemporalRasterAggregation.md +docs/TemporalRasterAggregationParameters.md docs/TextSymbology.md docs/TimeDescriptor.md docs/TimeDimension.md -docs/TimeDimensionOneOf.md -docs/TimeDimensionOneOf1.md docs/TimeGranularity.md docs/TimeInterval.md docs/TimeReference.md docs/TimeStep.md docs/TypedDataProviderDefinition.md docs/TypedGeometry.md -docs/TypedGeometryOneOf.md -docs/TypedGeometryOneOf1.md -docs/TypedGeometryOneOf2.md -docs/TypedGeometryOneOf3.md docs/TypedOperator.md docs/TypedPlotOperator.md docs/TypedPlotResultDescriptor.md @@ -268,6 +295,7 @@ docs/UpdateLayer.md docs/UpdateLayerCollection.md docs/UpdateProject.md docs/UpdateQuota.md +docs/Upload.md docs/UploadFileLayersResponse.md docs/UploadFilesResponse.md docs/UploadsApi.md @@ -277,12 +305,15 @@ docs/UserCredentials.md docs/UserInfo.md docs/UserRegistration.md docs/UserSession.md +docs/Values.md +docs/ValuesValues.md docs/VecUpdate.md docs/VectorColumnInfo.md docs/VectorDataType.md docs/VectorOperator.md docs/VectorResultDescriptor.md docs/Volume.md +docs/Volume1.md docs/VolumeFileLayersResponse.md docs/WcsRequest.md docs/WcsService.md @@ -325,11 +356,15 @@ geoengine_openapi_client/models/add_dataset.py geoengine_openapi_client/models/add_layer.py geoengine_openapi_client/models/add_layer_collection.py geoengine_openapi_client/models/add_role.py +geoengine_openapi_client/models/aggregation.py geoengine_openapi_client/models/aruna_data_provider_definition.py geoengine_openapi_client/models/auth_code_request_url.py geoengine_openapi_client/models/auth_code_response.py geoengine_openapi_client/models/auto_create_dataset.py geoengine_openapi_client/models/axis_order.py +geoengine_openapi_client/models/band_filter.py +geoengine_openapi_client/models/band_filter_parameters.py +geoengine_openapi_client/models/bands_by_name_or_index.py geoengine_openapi_client/models/bounding_box2_d.py geoengine_openapi_client/models/breakpoint.py geoengine_openapi_client/models/classification_measurement.py @@ -342,13 +377,13 @@ geoengine_openapi_client/models/computation_quota.py geoengine_openapi_client/models/continuous_measurement.py geoengine_openapi_client/models/coordinate2_d.py geoengine_openapi_client/models/copernicus_dataspace_data_provider_definition.py +geoengine_openapi_client/models/count_aggregation.py geoengine_openapi_client/models/create_dataset.py geoengine_openapi_client/models/create_project.py geoengine_openapi_client/models/csv_header.py +geoengine_openapi_client/models/data1.py geoengine_openapi_client/models/data_id.py geoengine_openapi_client/models/data_path.py -geoengine_openapi_client/models/data_path_one_of.py -geoengine_openapi_client/models/data_path_one_of1.py geoengine_openapi_client/models/data_provider_resource.py geoengine_openapi_client/models/data_usage.py geoengine_openapi_client/models/data_usage_summary.py @@ -361,6 +396,7 @@ geoengine_openapi_client/models/dataset_listing.py geoengine_openapi_client/models/dataset_name_response.py geoengine_openapi_client/models/dataset_resource.py geoengine_openapi_client/models/default.py +geoengine_openapi_client/models/derive_out_raster_specs_source.py geoengine_openapi_client/models/derived_color.py geoengine_openapi_client/models/derived_number.py geoengine_openapi_client/models/ebv_portal_data_provider_definition.py @@ -373,8 +409,10 @@ geoengine_openapi_client/models/external_data_id.py geoengine_openapi_client/models/feature_aggregation_method.py geoengine_openapi_client/models/feature_data_type.py geoengine_openapi_client/models/file_not_found_handling.py +geoengine_openapi_client/models/first_aggregation.py geoengine_openapi_client/models/format_specifics.py geoengine_openapi_client/models/format_specifics_csv.py +geoengine_openapi_client/models/fraction.py geoengine_openapi_client/models/gbif_data_provider_definition.py geoengine_openapi_client/models/gdal_dataset_parameters.py geoengine_openapi_client/models/gdal_loading_info_temporal_slice.py @@ -397,15 +435,16 @@ geoengine_openapi_client/models/grid_bounding_box2_d.py geoengine_openapi_client/models/grid_idx2_d.py geoengine_openapi_client/models/histogram.py geoengine_openapi_client/models/histogram_bounds.py -geoengine_openapi_client/models/histogram_bounds_one_of.py -geoengine_openapi_client/models/histogram_bounds_one_of1.py -geoengine_openapi_client/models/histogram_bounds_one_of1_values.py geoengine_openapi_client/models/histogram_buckets.py -geoengine_openapi_client/models/histogram_buckets_one_of.py -geoengine_openapi_client/models/histogram_buckets_one_of1.py geoengine_openapi_client/models/histogram_parameters.py geoengine_openapi_client/models/id_response.py geoengine_openapi_client/models/internal_data_id.py +geoengine_openapi_client/models/interpolation.py +geoengine_openapi_client/models/interpolation_method.py +geoengine_openapi_client/models/interpolation_parameters.py +geoengine_openapi_client/models/interpolation_resolution.py +geoengine_openapi_client/models/irregular.py +geoengine_openapi_client/models/last_aggregation.py geoengine_openapi_client/models/layer.py geoengine_openapi_client/models/layer_collection.py geoengine_openapi_client/models/layer_collection_listing.py @@ -419,9 +458,12 @@ geoengine_openapi_client/models/legacy_typed_operator_operator.py geoengine_openapi_client/models/line_symbology.py geoengine_openapi_client/models/linear_gradient.py geoengine_openapi_client/models/logarithmic_gradient.py +geoengine_openapi_client/models/max_aggregation.py +geoengine_openapi_client/models/mean_aggregation.py geoengine_openapi_client/models/measurement.py geoengine_openapi_client/models/meta_data_definition.py geoengine_openapi_client/models/meta_data_suggestion.py +geoengine_openapi_client/models/min_aggregation.py geoengine_openapi_client/models/ml_model.py geoengine_openapi_client/models/ml_model_input_no_data_handling.py geoengine_openapi_client/models/ml_model_input_no_data_handling_variant.py @@ -435,14 +477,21 @@ geoengine_openapi_client/models/mock_dataset_data_source_loading_info.py geoengine_openapi_client/models/mock_meta_data.py geoengine_openapi_client/models/mock_point_source.py geoengine_openapi_client/models/mock_point_source_parameters.py +geoengine_openapi_client/models/multi_band_gdal_source.py geoengine_openapi_client/models/multi_band_raster_colorizer.py geoengine_openapi_client/models/multi_line_string.py +geoengine_openapi_client/models/multi_line_string1.py geoengine_openapi_client/models/multi_point.py +geoengine_openapi_client/models/multi_point1.py geoengine_openapi_client/models/multi_polygon.py +geoengine_openapi_client/models/multi_polygon1.py geoengine_openapi_client/models/multiple_raster_or_single_vector_operator.py geoengine_openapi_client/models/multiple_raster_or_single_vector_source.py +geoengine_openapi_client/models/multiple_raster_sources.py geoengine_openapi_client/models/names.py geoengine_openapi_client/models/net_cdf_cf_data_provider_definition.py +geoengine_openapi_client/models/no_geometry1.py +geoengine_openapi_client/models/number.py geoengine_openapi_client/models/number_param.py geoengine_openapi_client/models/ogr_meta_data.py geoengine_openapi_client/models/ogr_source_column_spec.py @@ -465,6 +514,7 @@ geoengine_openapi_client/models/operator_quota.py geoengine_openapi_client/models/order_by.py geoengine_openapi_client/models/palette_colorizer.py geoengine_openapi_client/models/pangaea_data_provider_definition.py +geoengine_openapi_client/models/percentile_estimate_aggregation.py geoengine_openapi_client/models/permission.py geoengine_openapi_client/models/permission_listing.py geoengine_openapi_client/models/permission_request.py @@ -495,12 +545,22 @@ geoengine_openapi_client/models/raster_operator.py geoengine_openapi_client/models/raster_properties_entry_type.py geoengine_openapi_client/models/raster_properties_key.py geoengine_openapi_client/models/raster_result_descriptor.py +geoengine_openapi_client/models/raster_stacker.py +geoengine_openapi_client/models/raster_stacker_parameters.py geoengine_openapi_client/models/raster_stream_websocket_result_type.py geoengine_openapi_client/models/raster_symbology.py geoengine_openapi_client/models/raster_to_dataset_query_rectangle.py +geoengine_openapi_client/models/raster_type_conversion.py +geoengine_openapi_client/models/raster_type_conversion_parameters.py geoengine_openapi_client/models/raster_vector_join.py geoengine_openapi_client/models/raster_vector_join_parameters.py +geoengine_openapi_client/models/regular.py geoengine_openapi_client/models/regular_time_dimension.py +geoengine_openapi_client/models/rename.py +geoengine_openapi_client/models/rename_bands.py +geoengine_openapi_client/models/reprojection.py +geoengine_openapi_client/models/reprojection_parameters.py +geoengine_openapi_client/models/resolution.py geoengine_openapi_client/models/resource.py geoengine_openapi_client/models/role.py geoengine_openapi_client/models/role_description.py @@ -523,6 +583,7 @@ geoengine_openapi_client/models/spatial_grid_descriptor.py geoengine_openapi_client/models/spatial_grid_descriptor_state.py geoengine_openapi_client/models/spatial_partition2_d.py geoengine_openapi_client/models/spatial_reference_specification.py +geoengine_openapi_client/models/square_root_choice_rule.py geoengine_openapi_client/models/st_rectangle.py geoengine_openapi_client/models/stac_api_retries.py geoengine_openapi_client/models/stac_query_buffer.py @@ -533,6 +594,7 @@ geoengine_openapi_client/models/statistics_parameters.py geoengine_openapi_client/models/stroke_param.py geoengine_openapi_client/models/suffix.py geoengine_openapi_client/models/suggest_meta_data.py +geoengine_openapi_client/models/sum_aggregation.py geoengine_openapi_client/models/symbology.py geoengine_openapi_client/models/task_filter.py geoengine_openapi_client/models/task_response.py @@ -543,21 +605,17 @@ geoengine_openapi_client/models/task_status_failed.py geoengine_openapi_client/models/task_status_running.py geoengine_openapi_client/models/task_status_with_id.py geoengine_openapi_client/models/temporal_aggregation_method.py +geoengine_openapi_client/models/temporal_raster_aggregation.py +geoengine_openapi_client/models/temporal_raster_aggregation_parameters.py geoengine_openapi_client/models/text_symbology.py geoengine_openapi_client/models/time_descriptor.py geoengine_openapi_client/models/time_dimension.py -geoengine_openapi_client/models/time_dimension_one_of.py -geoengine_openapi_client/models/time_dimension_one_of1.py geoengine_openapi_client/models/time_granularity.py geoengine_openapi_client/models/time_interval.py geoengine_openapi_client/models/time_reference.py geoengine_openapi_client/models/time_step.py geoengine_openapi_client/models/typed_data_provider_definition.py geoengine_openapi_client/models/typed_geometry.py -geoengine_openapi_client/models/typed_geometry_one_of.py -geoengine_openapi_client/models/typed_geometry_one_of1.py -geoengine_openapi_client/models/typed_geometry_one_of2.py -geoengine_openapi_client/models/typed_geometry_one_of3.py geoengine_openapi_client/models/typed_operator.py geoengine_openapi_client/models/typed_plot_operator.py geoengine_openapi_client/models/typed_plot_result_descriptor.py @@ -573,6 +631,7 @@ geoengine_openapi_client/models/update_layer.py geoengine_openapi_client/models/update_layer_collection.py geoengine_openapi_client/models/update_project.py geoengine_openapi_client/models/update_quota.py +geoengine_openapi_client/models/upload.py geoengine_openapi_client/models/upload_file_layers_response.py geoengine_openapi_client/models/upload_files_response.py geoengine_openapi_client/models/usage_summary_granularity.py @@ -580,12 +639,15 @@ geoengine_openapi_client/models/user_credentials.py geoengine_openapi_client/models/user_info.py geoengine_openapi_client/models/user_registration.py geoengine_openapi_client/models/user_session.py +geoengine_openapi_client/models/values.py +geoengine_openapi_client/models/values_values.py geoengine_openapi_client/models/vec_update.py geoengine_openapi_client/models/vector_column_info.py geoengine_openapi_client/models/vector_data_type.py geoengine_openapi_client/models/vector_operator.py geoengine_openapi_client/models/vector_result_descriptor.py geoengine_openapi_client/models/volume.py +geoengine_openapi_client/models/volume1.py geoengine_openapi_client/models/volume_file_layers_response.py geoengine_openapi_client/models/wcs_request.py geoengine_openapi_client/models/wcs_service.py @@ -613,11 +675,15 @@ test/test_add_dataset.py test/test_add_layer.py test/test_add_layer_collection.py test/test_add_role.py +test/test_aggregation.py test/test_aruna_data_provider_definition.py test/test_auth_code_request_url.py test/test_auth_code_response.py test/test_auto_create_dataset.py test/test_axis_order.py +test/test_band_filter.py +test/test_band_filter_parameters.py +test/test_bands_by_name_or_index.py test/test_bounding_box2_d.py test/test_breakpoint.py test/test_classification_measurement.py @@ -630,13 +696,13 @@ test/test_computation_quota.py test/test_continuous_measurement.py test/test_coordinate2_d.py test/test_copernicus_dataspace_data_provider_definition.py +test/test_count_aggregation.py test/test_create_dataset.py test/test_create_project.py test/test_csv_header.py +test/test_data1.py test/test_data_id.py test/test_data_path.py -test/test_data_path_one_of.py -test/test_data_path_one_of1.py test/test_data_provider_resource.py test/test_data_usage.py test/test_data_usage_summary.py @@ -650,6 +716,7 @@ test/test_dataset_name_response.py test/test_dataset_resource.py test/test_datasets_api.py test/test_default.py +test/test_derive_out_raster_specs_source.py test/test_derived_color.py test/test_derived_number.py test/test_ebv_portal_data_provider_definition.py @@ -662,8 +729,10 @@ test/test_external_data_id.py test/test_feature_aggregation_method.py test/test_feature_data_type.py test/test_file_not_found_handling.py +test/test_first_aggregation.py test/test_format_specifics.py test/test_format_specifics_csv.py +test/test_fraction.py test/test_gbif_data_provider_definition.py test/test_gdal_dataset_parameters.py test/test_gdal_loading_info_temporal_slice.py @@ -687,15 +756,16 @@ test/test_grid_bounding_box2_d.py test/test_grid_idx2_d.py test/test_histogram.py test/test_histogram_bounds.py -test/test_histogram_bounds_one_of.py -test/test_histogram_bounds_one_of1.py -test/test_histogram_bounds_one_of1_values.py test/test_histogram_buckets.py -test/test_histogram_buckets_one_of.py -test/test_histogram_buckets_one_of1.py test/test_histogram_parameters.py test/test_id_response.py test/test_internal_data_id.py +test/test_interpolation.py +test/test_interpolation_method.py +test/test_interpolation_parameters.py +test/test_interpolation_resolution.py +test/test_irregular.py +test/test_last_aggregation.py test/test_layer.py test/test_layer_collection.py test/test_layer_collection_listing.py @@ -710,9 +780,12 @@ test/test_legacy_typed_operator_operator.py test/test_line_symbology.py test/test_linear_gradient.py test/test_logarithmic_gradient.py +test/test_max_aggregation.py +test/test_mean_aggregation.py test/test_measurement.py test/test_meta_data_definition.py test/test_meta_data_suggestion.py +test/test_min_aggregation.py test/test_ml_api.py test/test_ml_model.py test/test_ml_model_input_no_data_handling.py @@ -727,14 +800,21 @@ test/test_mock_dataset_data_source_loading_info.py test/test_mock_meta_data.py test/test_mock_point_source.py test/test_mock_point_source_parameters.py +test/test_multi_band_gdal_source.py test/test_multi_band_raster_colorizer.py test/test_multi_line_string.py +test/test_multi_line_string1.py test/test_multi_point.py +test/test_multi_point1.py test/test_multi_polygon.py +test/test_multi_polygon1.py test/test_multiple_raster_or_single_vector_operator.py test/test_multiple_raster_or_single_vector_source.py +test/test_multiple_raster_sources.py test/test_names.py test/test_net_cdf_cf_data_provider_definition.py +test/test_no_geometry1.py +test/test_number.py test/test_number_param.py test/test_ogcwcs_api.py test/test_ogcwfs_api.py @@ -760,6 +840,7 @@ test/test_operator_quota.py test/test_order_by.py test/test_palette_colorizer.py test/test_pangaea_data_provider_definition.py +test/test_percentile_estimate_aggregation.py test/test_permission.py test/test_permission_listing.py test/test_permission_request.py @@ -793,12 +874,22 @@ test/test_raster_operator.py test/test_raster_properties_entry_type.py test/test_raster_properties_key.py test/test_raster_result_descriptor.py +test/test_raster_stacker.py +test/test_raster_stacker_parameters.py test/test_raster_stream_websocket_result_type.py test/test_raster_symbology.py test/test_raster_to_dataset_query_rectangle.py +test/test_raster_type_conversion.py +test/test_raster_type_conversion_parameters.py test/test_raster_vector_join.py test/test_raster_vector_join_parameters.py +test/test_regular.py test/test_regular_time_dimension.py +test/test_rename.py +test/test_rename_bands.py +test/test_reprojection.py +test/test_reprojection_parameters.py +test/test_resolution.py test/test_resource.py test/test_role.py test/test_role_description.py @@ -823,6 +914,7 @@ test/test_spatial_grid_descriptor_state.py test/test_spatial_partition2_d.py test/test_spatial_reference_specification.py test/test_spatial_references_api.py +test/test_square_root_choice_rule.py test/test_st_rectangle.py test/test_stac_api_retries.py test/test_stac_query_buffer.py @@ -833,6 +925,7 @@ test/test_statistics_parameters.py test/test_stroke_param.py test/test_suffix.py test/test_suggest_meta_data.py +test/test_sum_aggregation.py test/test_symbology.py test/test_task_filter.py test/test_task_response.py @@ -844,21 +937,17 @@ test/test_task_status_running.py test/test_task_status_with_id.py test/test_tasks_api.py test/test_temporal_aggregation_method.py +test/test_temporal_raster_aggregation.py +test/test_temporal_raster_aggregation_parameters.py test/test_text_symbology.py test/test_time_descriptor.py test/test_time_dimension.py -test/test_time_dimension_one_of.py -test/test_time_dimension_one_of1.py test/test_time_granularity.py test/test_time_interval.py test/test_time_reference.py test/test_time_step.py test/test_typed_data_provider_definition.py test/test_typed_geometry.py -test/test_typed_geometry_one_of.py -test/test_typed_geometry_one_of1.py -test/test_typed_geometry_one_of2.py -test/test_typed_geometry_one_of3.py test/test_typed_operator.py test/test_typed_plot_operator.py test/test_typed_plot_result_descriptor.py @@ -874,6 +963,7 @@ test/test_update_layer.py test/test_update_layer_collection.py test/test_update_project.py test/test_update_quota.py +test/test_upload.py test/test_upload_file_layers_response.py test/test_upload_files_response.py test/test_uploads_api.py @@ -883,12 +973,15 @@ test/test_user_credentials.py test/test_user_info.py test/test_user_registration.py test/test_user_session.py +test/test_values.py +test/test_values_values.py test/test_vec_update.py test/test_vector_column_info.py test/test_vector_data_type.py test/test_vector_operator.py test/test_vector_result_descriptor.py test/test_volume.py +test/test_volume1.py test/test_volume_file_layers_response.py test/test_wcs_request.py test/test_wcs_service.py diff --git a/python/README.md b/python/README.md index 411acfaf..c795fe13 100644 --- a/python/README.md +++ b/python/README.md @@ -193,11 +193,15 @@ Class | Method | HTTP request | Description - [AddLayer](docs/AddLayer.md) - [AddLayerCollection](docs/AddLayerCollection.md) - [AddRole](docs/AddRole.md) + - [Aggregation](docs/Aggregation.md) - [ArunaDataProviderDefinition](docs/ArunaDataProviderDefinition.md) - [AuthCodeRequestURL](docs/AuthCodeRequestURL.md) - [AuthCodeResponse](docs/AuthCodeResponse.md) - [AutoCreateDataset](docs/AutoCreateDataset.md) - [AxisOrder](docs/AxisOrder.md) + - [BandFilter](docs/BandFilter.md) + - [BandFilterParameters](docs/BandFilterParameters.md) + - [BandsByNameOrIndex](docs/BandsByNameOrIndex.md) - [BoundingBox2D](docs/BoundingBox2D.md) - [Breakpoint](docs/Breakpoint.md) - [ClassificationMeasurement](docs/ClassificationMeasurement.md) @@ -210,13 +214,13 @@ Class | Method | HTTP request | Description - [ContinuousMeasurement](docs/ContinuousMeasurement.md) - [Coordinate2D](docs/Coordinate2D.md) - [CopernicusDataspaceDataProviderDefinition](docs/CopernicusDataspaceDataProviderDefinition.md) + - [CountAggregation](docs/CountAggregation.md) - [CreateDataset](docs/CreateDataset.md) - [CreateProject](docs/CreateProject.md) - [CsvHeader](docs/CsvHeader.md) + - [Data1](docs/Data1.md) - [DataId](docs/DataId.md) - [DataPath](docs/DataPath.md) - - [DataPathOneOf](docs/DataPathOneOf.md) - - [DataPathOneOf1](docs/DataPathOneOf1.md) - [DataProviderResource](docs/DataProviderResource.md) - [DataUsage](docs/DataUsage.md) - [DataUsageSummary](docs/DataUsageSummary.md) @@ -229,6 +233,7 @@ Class | Method | HTTP request | Description - [DatasetNameResponse](docs/DatasetNameResponse.md) - [DatasetResource](docs/DatasetResource.md) - [Default](docs/Default.md) + - [DeriveOutRasterSpecsSource](docs/DeriveOutRasterSpecsSource.md) - [DerivedColor](docs/DerivedColor.md) - [DerivedNumber](docs/DerivedNumber.md) - [EbvPortalDataProviderDefinition](docs/EbvPortalDataProviderDefinition.md) @@ -241,8 +246,10 @@ Class | Method | HTTP request | Description - [FeatureAggregationMethod](docs/FeatureAggregationMethod.md) - [FeatureDataType](docs/FeatureDataType.md) - [FileNotFoundHandling](docs/FileNotFoundHandling.md) + - [FirstAggregation](docs/FirstAggregation.md) - [FormatSpecifics](docs/FormatSpecifics.md) - [FormatSpecificsCsv](docs/FormatSpecificsCsv.md) + - [Fraction](docs/Fraction.md) - [GbifDataProviderDefinition](docs/GbifDataProviderDefinition.md) - [GdalDatasetParameters](docs/GdalDatasetParameters.md) - [GdalLoadingInfoTemporalSlice](docs/GdalLoadingInfoTemporalSlice.md) @@ -265,15 +272,16 @@ Class | Method | HTTP request | Description - [GridIdx2D](docs/GridIdx2D.md) - [Histogram](docs/Histogram.md) - [HistogramBounds](docs/HistogramBounds.md) - - [HistogramBoundsOneOf](docs/HistogramBoundsOneOf.md) - - [HistogramBoundsOneOf1](docs/HistogramBoundsOneOf1.md) - - [HistogramBoundsOneOf1Values](docs/HistogramBoundsOneOf1Values.md) - [HistogramBuckets](docs/HistogramBuckets.md) - - [HistogramBucketsOneOf](docs/HistogramBucketsOneOf.md) - - [HistogramBucketsOneOf1](docs/HistogramBucketsOneOf1.md) - [HistogramParameters](docs/HistogramParameters.md) - [IdResponse](docs/IdResponse.md) - [InternalDataId](docs/InternalDataId.md) + - [Interpolation](docs/Interpolation.md) + - [InterpolationMethod](docs/InterpolationMethod.md) + - [InterpolationParameters](docs/InterpolationParameters.md) + - [InterpolationResolution](docs/InterpolationResolution.md) + - [Irregular](docs/Irregular.md) + - [LastAggregation](docs/LastAggregation.md) - [Layer](docs/Layer.md) - [LayerCollection](docs/LayerCollection.md) - [LayerCollectionListing](docs/LayerCollectionListing.md) @@ -287,9 +295,12 @@ Class | Method | HTTP request | Description - [LineSymbology](docs/LineSymbology.md) - [LinearGradient](docs/LinearGradient.md) - [LogarithmicGradient](docs/LogarithmicGradient.md) + - [MaxAggregation](docs/MaxAggregation.md) + - [MeanAggregation](docs/MeanAggregation.md) - [Measurement](docs/Measurement.md) - [MetaDataDefinition](docs/MetaDataDefinition.md) - [MetaDataSuggestion](docs/MetaDataSuggestion.md) + - [MinAggregation](docs/MinAggregation.md) - [MlModel](docs/MlModel.md) - [MlModelInputNoDataHandling](docs/MlModelInputNoDataHandling.md) - [MlModelInputNoDataHandlingVariant](docs/MlModelInputNoDataHandlingVariant.md) @@ -303,14 +314,21 @@ Class | Method | HTTP request | Description - [MockMetaData](docs/MockMetaData.md) - [MockPointSource](docs/MockPointSource.md) - [MockPointSourceParameters](docs/MockPointSourceParameters.md) + - [MultiBandGdalSource](docs/MultiBandGdalSource.md) - [MultiBandRasterColorizer](docs/MultiBandRasterColorizer.md) - [MultiLineString](docs/MultiLineString.md) + - [MultiLineString1](docs/MultiLineString1.md) - [MultiPoint](docs/MultiPoint.md) + - [MultiPoint1](docs/MultiPoint1.md) - [MultiPolygon](docs/MultiPolygon.md) + - [MultiPolygon1](docs/MultiPolygon1.md) - [MultipleRasterOrSingleVectorOperator](docs/MultipleRasterOrSingleVectorOperator.md) - [MultipleRasterOrSingleVectorSource](docs/MultipleRasterOrSingleVectorSource.md) + - [MultipleRasterSources](docs/MultipleRasterSources.md) - [Names](docs/Names.md) - [NetCdfCfDataProviderDefinition](docs/NetCdfCfDataProviderDefinition.md) + - [NoGeometry1](docs/NoGeometry1.md) + - [Number](docs/Number.md) - [NumberParam](docs/NumberParam.md) - [OgrMetaData](docs/OgrMetaData.md) - [OgrSourceColumnSpec](docs/OgrSourceColumnSpec.md) @@ -333,6 +351,7 @@ Class | Method | HTTP request | Description - [OrderBy](docs/OrderBy.md) - [PaletteColorizer](docs/PaletteColorizer.md) - [PangaeaDataProviderDefinition](docs/PangaeaDataProviderDefinition.md) + - [PercentileEstimateAggregation](docs/PercentileEstimateAggregation.md) - [Permission](docs/Permission.md) - [PermissionListing](docs/PermissionListing.md) - [PermissionRequest](docs/PermissionRequest.md) @@ -363,12 +382,22 @@ Class | Method | HTTP request | Description - [RasterPropertiesEntryType](docs/RasterPropertiesEntryType.md) - [RasterPropertiesKey](docs/RasterPropertiesKey.md) - [RasterResultDescriptor](docs/RasterResultDescriptor.md) + - [RasterStacker](docs/RasterStacker.md) + - [RasterStackerParameters](docs/RasterStackerParameters.md) - [RasterStreamWebsocketResultType](docs/RasterStreamWebsocketResultType.md) - [RasterSymbology](docs/RasterSymbology.md) - [RasterToDatasetQueryRectangle](docs/RasterToDatasetQueryRectangle.md) + - [RasterTypeConversion](docs/RasterTypeConversion.md) + - [RasterTypeConversionParameters](docs/RasterTypeConversionParameters.md) - [RasterVectorJoin](docs/RasterVectorJoin.md) - [RasterVectorJoinParameters](docs/RasterVectorJoinParameters.md) + - [Regular](docs/Regular.md) - [RegularTimeDimension](docs/RegularTimeDimension.md) + - [Rename](docs/Rename.md) + - [RenameBands](docs/RenameBands.md) + - [Reprojection](docs/Reprojection.md) + - [ReprojectionParameters](docs/ReprojectionParameters.md) + - [Resolution](docs/Resolution.md) - [Resource](docs/Resource.md) - [Role](docs/Role.md) - [RoleDescription](docs/RoleDescription.md) @@ -392,6 +421,7 @@ Class | Method | HTTP request | Description - [SpatialGridDescriptorState](docs/SpatialGridDescriptorState.md) - [SpatialPartition2D](docs/SpatialPartition2D.md) - [SpatialReferenceSpecification](docs/SpatialReferenceSpecification.md) + - [SquareRootChoiceRule](docs/SquareRootChoiceRule.md) - [StacApiRetries](docs/StacApiRetries.md) - [StacQueryBuffer](docs/StacQueryBuffer.md) - [StaticColor](docs/StaticColor.md) @@ -401,6 +431,7 @@ Class | Method | HTTP request | Description - [StrokeParam](docs/StrokeParam.md) - [Suffix](docs/Suffix.md) - [SuggestMetaData](docs/SuggestMetaData.md) + - [SumAggregation](docs/SumAggregation.md) - [Symbology](docs/Symbology.md) - [TaskFilter](docs/TaskFilter.md) - [TaskResponse](docs/TaskResponse.md) @@ -411,21 +442,17 @@ Class | Method | HTTP request | Description - [TaskStatusRunning](docs/TaskStatusRunning.md) - [TaskStatusWithId](docs/TaskStatusWithId.md) - [TemporalAggregationMethod](docs/TemporalAggregationMethod.md) + - [TemporalRasterAggregation](docs/TemporalRasterAggregation.md) + - [TemporalRasterAggregationParameters](docs/TemporalRasterAggregationParameters.md) - [TextSymbology](docs/TextSymbology.md) - [TimeDescriptor](docs/TimeDescriptor.md) - [TimeDimension](docs/TimeDimension.md) - - [TimeDimensionOneOf](docs/TimeDimensionOneOf.md) - - [TimeDimensionOneOf1](docs/TimeDimensionOneOf1.md) - [TimeGranularity](docs/TimeGranularity.md) - [TimeInterval](docs/TimeInterval.md) - [TimeReference](docs/TimeReference.md) - [TimeStep](docs/TimeStep.md) - [TypedDataProviderDefinition](docs/TypedDataProviderDefinition.md) - [TypedGeometry](docs/TypedGeometry.md) - - [TypedGeometryOneOf](docs/TypedGeometryOneOf.md) - - [TypedGeometryOneOf1](docs/TypedGeometryOneOf1.md) - - [TypedGeometryOneOf2](docs/TypedGeometryOneOf2.md) - - [TypedGeometryOneOf3](docs/TypedGeometryOneOf3.md) - [TypedOperator](docs/TypedOperator.md) - [TypedPlotOperator](docs/TypedPlotOperator.md) - [TypedPlotResultDescriptor](docs/TypedPlotResultDescriptor.md) @@ -441,6 +468,7 @@ Class | Method | HTTP request | Description - [UpdateLayerCollection](docs/UpdateLayerCollection.md) - [UpdateProject](docs/UpdateProject.md) - [UpdateQuota](docs/UpdateQuota.md) + - [Upload](docs/Upload.md) - [UploadFileLayersResponse](docs/UploadFileLayersResponse.md) - [UploadFilesResponse](docs/UploadFilesResponse.md) - [UsageSummaryGranularity](docs/UsageSummaryGranularity.md) @@ -448,12 +476,15 @@ Class | Method | HTTP request | Description - [UserInfo](docs/UserInfo.md) - [UserRegistration](docs/UserRegistration.md) - [UserSession](docs/UserSession.md) + - [Values](docs/Values.md) + - [ValuesValues](docs/ValuesValues.md) - [VecUpdate](docs/VecUpdate.md) - [VectorColumnInfo](docs/VectorColumnInfo.md) - [VectorDataType](docs/VectorDataType.md) - [VectorOperator](docs/VectorOperator.md) - [VectorResultDescriptor](docs/VectorResultDescriptor.md) - [Volume](docs/Volume.md) + - [Volume1](docs/Volume1.md) - [VolumeFileLayersResponse](docs/VolumeFileLayersResponse.md) - [WcsRequest](docs/WcsRequest.md) - [WcsService](docs/WcsService.md) diff --git a/python/geoengine_openapi_client/__init__.py b/python/geoengine_openapi_client/__init__.py index 9f4437c4..7d8e1ebd 100644 --- a/python/geoengine_openapi_client/__init__.py +++ b/python/geoengine_openapi_client/__init__.py @@ -48,11 +48,15 @@ "AddLayer", "AddLayerCollection", "AddRole", + "Aggregation", "ArunaDataProviderDefinition", "AuthCodeRequestURL", "AuthCodeResponse", "AutoCreateDataset", "AxisOrder", + "BandFilter", + "BandFilterParameters", + "BandsByNameOrIndex", "BoundingBox2D", "Breakpoint", "ClassificationMeasurement", @@ -65,13 +69,13 @@ "ContinuousMeasurement", "Coordinate2D", "CopernicusDataspaceDataProviderDefinition", + "CountAggregation", "CreateDataset", "CreateProject", "CsvHeader", + "Data1", "DataId", "DataPath", - "DataPathOneOf", - "DataPathOneOf1", "DataProviderResource", "DataUsage", "DataUsageSummary", @@ -84,6 +88,7 @@ "DatasetNameResponse", "DatasetResource", "Default", + "DeriveOutRasterSpecsSource", "DerivedColor", "DerivedNumber", "EbvPortalDataProviderDefinition", @@ -96,8 +101,10 @@ "FeatureAggregationMethod", "FeatureDataType", "FileNotFoundHandling", + "FirstAggregation", "FormatSpecifics", "FormatSpecificsCsv", + "Fraction", "GbifDataProviderDefinition", "GdalDatasetParameters", "GdalLoadingInfoTemporalSlice", @@ -120,15 +127,16 @@ "GridIdx2D", "Histogram", "HistogramBounds", - "HistogramBoundsOneOf", - "HistogramBoundsOneOf1", - "HistogramBoundsOneOf1Values", "HistogramBuckets", - "HistogramBucketsOneOf", - "HistogramBucketsOneOf1", "HistogramParameters", "IdResponse", "InternalDataId", + "Interpolation", + "InterpolationMethod", + "InterpolationParameters", + "InterpolationResolution", + "Irregular", + "LastAggregation", "Layer", "LayerCollection", "LayerCollectionListing", @@ -142,9 +150,12 @@ "LineSymbology", "LinearGradient", "LogarithmicGradient", + "MaxAggregation", + "MeanAggregation", "Measurement", "MetaDataDefinition", "MetaDataSuggestion", + "MinAggregation", "MlModel", "MlModelInputNoDataHandling", "MlModelInputNoDataHandlingVariant", @@ -158,14 +169,21 @@ "MockMetaData", "MockPointSource", "MockPointSourceParameters", + "MultiBandGdalSource", "MultiBandRasterColorizer", "MultiLineString", + "MultiLineString1", "MultiPoint", + "MultiPoint1", "MultiPolygon", + "MultiPolygon1", "MultipleRasterOrSingleVectorOperator", "MultipleRasterOrSingleVectorSource", + "MultipleRasterSources", "Names", "NetCdfCfDataProviderDefinition", + "NoGeometry1", + "Number", "NumberParam", "OgrMetaData", "OgrSourceColumnSpec", @@ -188,6 +206,7 @@ "OrderBy", "PaletteColorizer", "PangaeaDataProviderDefinition", + "PercentileEstimateAggregation", "Permission", "PermissionListing", "PermissionRequest", @@ -218,12 +237,22 @@ "RasterPropertiesEntryType", "RasterPropertiesKey", "RasterResultDescriptor", + "RasterStacker", + "RasterStackerParameters", "RasterStreamWebsocketResultType", "RasterSymbology", "RasterToDatasetQueryRectangle", + "RasterTypeConversion", + "RasterTypeConversionParameters", "RasterVectorJoin", "RasterVectorJoinParameters", + "Regular", "RegularTimeDimension", + "Rename", + "RenameBands", + "Reprojection", + "ReprojectionParameters", + "Resolution", "Resource", "Role", "RoleDescription", @@ -247,6 +276,7 @@ "SpatialGridDescriptorState", "SpatialPartition2D", "SpatialReferenceSpecification", + "SquareRootChoiceRule", "StacApiRetries", "StacQueryBuffer", "StaticColor", @@ -256,6 +286,7 @@ "StrokeParam", "Suffix", "SuggestMetaData", + "SumAggregation", "Symbology", "TaskFilter", "TaskResponse", @@ -266,21 +297,17 @@ "TaskStatusRunning", "TaskStatusWithId", "TemporalAggregationMethod", + "TemporalRasterAggregation", + "TemporalRasterAggregationParameters", "TextSymbology", "TimeDescriptor", "TimeDimension", - "TimeDimensionOneOf", - "TimeDimensionOneOf1", "TimeGranularity", "TimeInterval", "TimeReference", "TimeStep", "TypedDataProviderDefinition", "TypedGeometry", - "TypedGeometryOneOf", - "TypedGeometryOneOf1", - "TypedGeometryOneOf2", - "TypedGeometryOneOf3", "TypedOperator", "TypedPlotOperator", "TypedPlotResultDescriptor", @@ -296,6 +323,7 @@ "UpdateLayerCollection", "UpdateProject", "UpdateQuota", + "Upload", "UploadFileLayersResponse", "UploadFilesResponse", "UsageSummaryGranularity", @@ -303,12 +331,15 @@ "UserInfo", "UserRegistration", "UserSession", + "Values", + "ValuesValues", "VecUpdate", "VectorColumnInfo", "VectorDataType", "VectorOperator", "VectorResultDescriptor", "Volume", + "Volume1", "VolumeFileLayersResponse", "WcsRequest", "WcsService", @@ -359,11 +390,15 @@ from geoengine_openapi_client.models.add_layer import AddLayer as AddLayer from geoengine_openapi_client.models.add_layer_collection import AddLayerCollection as AddLayerCollection from geoengine_openapi_client.models.add_role import AddRole as AddRole +from geoengine_openapi_client.models.aggregation import Aggregation as Aggregation from geoengine_openapi_client.models.aruna_data_provider_definition import ArunaDataProviderDefinition as ArunaDataProviderDefinition from geoengine_openapi_client.models.auth_code_request_url import AuthCodeRequestURL as AuthCodeRequestURL from geoengine_openapi_client.models.auth_code_response import AuthCodeResponse as AuthCodeResponse from geoengine_openapi_client.models.auto_create_dataset import AutoCreateDataset as AutoCreateDataset from geoengine_openapi_client.models.axis_order import AxisOrder as AxisOrder +from geoengine_openapi_client.models.band_filter import BandFilter as BandFilter +from geoengine_openapi_client.models.band_filter_parameters import BandFilterParameters as BandFilterParameters +from geoengine_openapi_client.models.bands_by_name_or_index import BandsByNameOrIndex as BandsByNameOrIndex from geoengine_openapi_client.models.bounding_box2_d import BoundingBox2D as BoundingBox2D from geoengine_openapi_client.models.breakpoint import Breakpoint as Breakpoint from geoengine_openapi_client.models.classification_measurement import ClassificationMeasurement as ClassificationMeasurement @@ -376,13 +411,13 @@ from geoengine_openapi_client.models.continuous_measurement import ContinuousMeasurement as ContinuousMeasurement from geoengine_openapi_client.models.coordinate2_d import Coordinate2D as Coordinate2D from geoengine_openapi_client.models.copernicus_dataspace_data_provider_definition import CopernicusDataspaceDataProviderDefinition as CopernicusDataspaceDataProviderDefinition +from geoengine_openapi_client.models.count_aggregation import CountAggregation as CountAggregation from geoengine_openapi_client.models.create_dataset import CreateDataset as CreateDataset from geoengine_openapi_client.models.create_project import CreateProject as CreateProject from geoengine_openapi_client.models.csv_header import CsvHeader as CsvHeader +from geoengine_openapi_client.models.data1 import Data1 as Data1 from geoengine_openapi_client.models.data_id import DataId as DataId from geoengine_openapi_client.models.data_path import DataPath as DataPath -from geoengine_openapi_client.models.data_path_one_of import DataPathOneOf as DataPathOneOf -from geoengine_openapi_client.models.data_path_one_of1 import DataPathOneOf1 as DataPathOneOf1 from geoengine_openapi_client.models.data_provider_resource import DataProviderResource as DataProviderResource from geoengine_openapi_client.models.data_usage import DataUsage as DataUsage from geoengine_openapi_client.models.data_usage_summary import DataUsageSummary as DataUsageSummary @@ -395,6 +430,7 @@ from geoengine_openapi_client.models.dataset_name_response import DatasetNameResponse as DatasetNameResponse from geoengine_openapi_client.models.dataset_resource import DatasetResource as DatasetResource from geoengine_openapi_client.models.default import Default as Default +from geoengine_openapi_client.models.derive_out_raster_specs_source import DeriveOutRasterSpecsSource as DeriveOutRasterSpecsSource from geoengine_openapi_client.models.derived_color import DerivedColor as DerivedColor from geoengine_openapi_client.models.derived_number import DerivedNumber as DerivedNumber from geoengine_openapi_client.models.ebv_portal_data_provider_definition import EbvPortalDataProviderDefinition as EbvPortalDataProviderDefinition @@ -407,8 +443,10 @@ from geoengine_openapi_client.models.feature_aggregation_method import FeatureAggregationMethod as FeatureAggregationMethod from geoengine_openapi_client.models.feature_data_type import FeatureDataType as FeatureDataType from geoengine_openapi_client.models.file_not_found_handling import FileNotFoundHandling as FileNotFoundHandling +from geoengine_openapi_client.models.first_aggregation import FirstAggregation as FirstAggregation from geoengine_openapi_client.models.format_specifics import FormatSpecifics as FormatSpecifics from geoengine_openapi_client.models.format_specifics_csv import FormatSpecificsCsv as FormatSpecificsCsv +from geoengine_openapi_client.models.fraction import Fraction as Fraction from geoengine_openapi_client.models.gbif_data_provider_definition import GbifDataProviderDefinition as GbifDataProviderDefinition from geoengine_openapi_client.models.gdal_dataset_parameters import GdalDatasetParameters as GdalDatasetParameters from geoengine_openapi_client.models.gdal_loading_info_temporal_slice import GdalLoadingInfoTemporalSlice as GdalLoadingInfoTemporalSlice @@ -431,15 +469,16 @@ from geoengine_openapi_client.models.grid_idx2_d import GridIdx2D as GridIdx2D from geoengine_openapi_client.models.histogram import Histogram as Histogram from geoengine_openapi_client.models.histogram_bounds import HistogramBounds as HistogramBounds -from geoengine_openapi_client.models.histogram_bounds_one_of import HistogramBoundsOneOf as HistogramBoundsOneOf -from geoengine_openapi_client.models.histogram_bounds_one_of1 import HistogramBoundsOneOf1 as HistogramBoundsOneOf1 -from geoengine_openapi_client.models.histogram_bounds_one_of1_values import HistogramBoundsOneOf1Values as HistogramBoundsOneOf1Values from geoengine_openapi_client.models.histogram_buckets import HistogramBuckets as HistogramBuckets -from geoengine_openapi_client.models.histogram_buckets_one_of import HistogramBucketsOneOf as HistogramBucketsOneOf -from geoengine_openapi_client.models.histogram_buckets_one_of1 import HistogramBucketsOneOf1 as HistogramBucketsOneOf1 from geoengine_openapi_client.models.histogram_parameters import HistogramParameters as HistogramParameters from geoengine_openapi_client.models.id_response import IdResponse as IdResponse from geoengine_openapi_client.models.internal_data_id import InternalDataId as InternalDataId +from geoengine_openapi_client.models.interpolation import Interpolation as Interpolation +from geoengine_openapi_client.models.interpolation_method import InterpolationMethod as InterpolationMethod +from geoengine_openapi_client.models.interpolation_parameters import InterpolationParameters as InterpolationParameters +from geoengine_openapi_client.models.interpolation_resolution import InterpolationResolution as InterpolationResolution +from geoengine_openapi_client.models.irregular import Irregular as Irregular +from geoengine_openapi_client.models.last_aggregation import LastAggregation as LastAggregation from geoengine_openapi_client.models.layer import Layer as Layer from geoengine_openapi_client.models.layer_collection import LayerCollection as LayerCollection from geoengine_openapi_client.models.layer_collection_listing import LayerCollectionListing as LayerCollectionListing @@ -453,9 +492,12 @@ from geoengine_openapi_client.models.line_symbology import LineSymbology as LineSymbology from geoengine_openapi_client.models.linear_gradient import LinearGradient as LinearGradient from geoengine_openapi_client.models.logarithmic_gradient import LogarithmicGradient as LogarithmicGradient +from geoengine_openapi_client.models.max_aggregation import MaxAggregation as MaxAggregation +from geoengine_openapi_client.models.mean_aggregation import MeanAggregation as MeanAggregation from geoengine_openapi_client.models.measurement import Measurement as Measurement from geoengine_openapi_client.models.meta_data_definition import MetaDataDefinition as MetaDataDefinition from geoengine_openapi_client.models.meta_data_suggestion import MetaDataSuggestion as MetaDataSuggestion +from geoengine_openapi_client.models.min_aggregation import MinAggregation as MinAggregation from geoengine_openapi_client.models.ml_model import MlModel as MlModel from geoengine_openapi_client.models.ml_model_input_no_data_handling import MlModelInputNoDataHandling as MlModelInputNoDataHandling from geoengine_openapi_client.models.ml_model_input_no_data_handling_variant import MlModelInputNoDataHandlingVariant as MlModelInputNoDataHandlingVariant @@ -469,14 +511,21 @@ from geoengine_openapi_client.models.mock_meta_data import MockMetaData as MockMetaData from geoengine_openapi_client.models.mock_point_source import MockPointSource as MockPointSource from geoengine_openapi_client.models.mock_point_source_parameters import MockPointSourceParameters as MockPointSourceParameters +from geoengine_openapi_client.models.multi_band_gdal_source import MultiBandGdalSource as MultiBandGdalSource from geoengine_openapi_client.models.multi_band_raster_colorizer import MultiBandRasterColorizer as MultiBandRasterColorizer from geoengine_openapi_client.models.multi_line_string import MultiLineString as MultiLineString +from geoengine_openapi_client.models.multi_line_string1 import MultiLineString1 as MultiLineString1 from geoengine_openapi_client.models.multi_point import MultiPoint as MultiPoint +from geoengine_openapi_client.models.multi_point1 import MultiPoint1 as MultiPoint1 from geoengine_openapi_client.models.multi_polygon import MultiPolygon as MultiPolygon +from geoengine_openapi_client.models.multi_polygon1 import MultiPolygon1 as MultiPolygon1 from geoengine_openapi_client.models.multiple_raster_or_single_vector_operator import MultipleRasterOrSingleVectorOperator as MultipleRasterOrSingleVectorOperator from geoengine_openapi_client.models.multiple_raster_or_single_vector_source import MultipleRasterOrSingleVectorSource as MultipleRasterOrSingleVectorSource +from geoengine_openapi_client.models.multiple_raster_sources import MultipleRasterSources as MultipleRasterSources from geoengine_openapi_client.models.names import Names as Names from geoengine_openapi_client.models.net_cdf_cf_data_provider_definition import NetCdfCfDataProviderDefinition as NetCdfCfDataProviderDefinition +from geoengine_openapi_client.models.no_geometry1 import NoGeometry1 as NoGeometry1 +from geoengine_openapi_client.models.number import Number as Number from geoengine_openapi_client.models.number_param import NumberParam as NumberParam from geoengine_openapi_client.models.ogr_meta_data import OgrMetaData as OgrMetaData from geoengine_openapi_client.models.ogr_source_column_spec import OgrSourceColumnSpec as OgrSourceColumnSpec @@ -499,6 +548,7 @@ from geoengine_openapi_client.models.order_by import OrderBy as OrderBy from geoengine_openapi_client.models.palette_colorizer import PaletteColorizer as PaletteColorizer from geoengine_openapi_client.models.pangaea_data_provider_definition import PangaeaDataProviderDefinition as PangaeaDataProviderDefinition +from geoengine_openapi_client.models.percentile_estimate_aggregation import PercentileEstimateAggregation as PercentileEstimateAggregation from geoengine_openapi_client.models.permission import Permission as Permission from geoengine_openapi_client.models.permission_listing import PermissionListing as PermissionListing from geoengine_openapi_client.models.permission_request import PermissionRequest as PermissionRequest @@ -529,12 +579,22 @@ from geoengine_openapi_client.models.raster_properties_entry_type import RasterPropertiesEntryType as RasterPropertiesEntryType from geoengine_openapi_client.models.raster_properties_key import RasterPropertiesKey as RasterPropertiesKey from geoengine_openapi_client.models.raster_result_descriptor import RasterResultDescriptor as RasterResultDescriptor +from geoengine_openapi_client.models.raster_stacker import RasterStacker as RasterStacker +from geoengine_openapi_client.models.raster_stacker_parameters import RasterStackerParameters as RasterStackerParameters from geoengine_openapi_client.models.raster_stream_websocket_result_type import RasterStreamWebsocketResultType as RasterStreamWebsocketResultType from geoengine_openapi_client.models.raster_symbology import RasterSymbology as RasterSymbology from geoengine_openapi_client.models.raster_to_dataset_query_rectangle import RasterToDatasetQueryRectangle as RasterToDatasetQueryRectangle +from geoengine_openapi_client.models.raster_type_conversion import RasterTypeConversion as RasterTypeConversion +from geoengine_openapi_client.models.raster_type_conversion_parameters import RasterTypeConversionParameters as RasterTypeConversionParameters from geoengine_openapi_client.models.raster_vector_join import RasterVectorJoin as RasterVectorJoin from geoengine_openapi_client.models.raster_vector_join_parameters import RasterVectorJoinParameters as RasterVectorJoinParameters +from geoengine_openapi_client.models.regular import Regular as Regular from geoengine_openapi_client.models.regular_time_dimension import RegularTimeDimension as RegularTimeDimension +from geoengine_openapi_client.models.rename import Rename as Rename +from geoengine_openapi_client.models.rename_bands import RenameBands as RenameBands +from geoengine_openapi_client.models.reprojection import Reprojection as Reprojection +from geoengine_openapi_client.models.reprojection_parameters import ReprojectionParameters as ReprojectionParameters +from geoengine_openapi_client.models.resolution import Resolution as Resolution from geoengine_openapi_client.models.resource import Resource as Resource from geoengine_openapi_client.models.role import Role as Role from geoengine_openapi_client.models.role_description import RoleDescription as RoleDescription @@ -558,6 +618,7 @@ from geoengine_openapi_client.models.spatial_grid_descriptor_state import SpatialGridDescriptorState as SpatialGridDescriptorState from geoengine_openapi_client.models.spatial_partition2_d import SpatialPartition2D as SpatialPartition2D from geoengine_openapi_client.models.spatial_reference_specification import SpatialReferenceSpecification as SpatialReferenceSpecification +from geoengine_openapi_client.models.square_root_choice_rule import SquareRootChoiceRule as SquareRootChoiceRule from geoengine_openapi_client.models.stac_api_retries import StacApiRetries as StacApiRetries from geoengine_openapi_client.models.stac_query_buffer import StacQueryBuffer as StacQueryBuffer from geoengine_openapi_client.models.static_color import StaticColor as StaticColor @@ -567,6 +628,7 @@ from geoengine_openapi_client.models.stroke_param import StrokeParam as StrokeParam from geoengine_openapi_client.models.suffix import Suffix as Suffix from geoengine_openapi_client.models.suggest_meta_data import SuggestMetaData as SuggestMetaData +from geoengine_openapi_client.models.sum_aggregation import SumAggregation as SumAggregation from geoengine_openapi_client.models.symbology import Symbology as Symbology from geoengine_openapi_client.models.task_filter import TaskFilter as TaskFilter from geoengine_openapi_client.models.task_response import TaskResponse as TaskResponse @@ -577,21 +639,17 @@ from geoengine_openapi_client.models.task_status_running import TaskStatusRunning as TaskStatusRunning from geoengine_openapi_client.models.task_status_with_id import TaskStatusWithId as TaskStatusWithId from geoengine_openapi_client.models.temporal_aggregation_method import TemporalAggregationMethod as TemporalAggregationMethod +from geoengine_openapi_client.models.temporal_raster_aggregation import TemporalRasterAggregation as TemporalRasterAggregation +from geoengine_openapi_client.models.temporal_raster_aggregation_parameters import TemporalRasterAggregationParameters as TemporalRasterAggregationParameters from geoengine_openapi_client.models.text_symbology import TextSymbology as TextSymbology from geoengine_openapi_client.models.time_descriptor import TimeDescriptor as TimeDescriptor from geoengine_openapi_client.models.time_dimension import TimeDimension as TimeDimension -from geoengine_openapi_client.models.time_dimension_one_of import TimeDimensionOneOf as TimeDimensionOneOf -from geoengine_openapi_client.models.time_dimension_one_of1 import TimeDimensionOneOf1 as TimeDimensionOneOf1 from geoengine_openapi_client.models.time_granularity import TimeGranularity as TimeGranularity from geoengine_openapi_client.models.time_interval import TimeInterval as TimeInterval from geoengine_openapi_client.models.time_reference import TimeReference as TimeReference from geoengine_openapi_client.models.time_step import TimeStep as TimeStep from geoengine_openapi_client.models.typed_data_provider_definition import TypedDataProviderDefinition as TypedDataProviderDefinition from geoengine_openapi_client.models.typed_geometry import TypedGeometry as TypedGeometry -from geoengine_openapi_client.models.typed_geometry_one_of import TypedGeometryOneOf as TypedGeometryOneOf -from geoengine_openapi_client.models.typed_geometry_one_of1 import TypedGeometryOneOf1 as TypedGeometryOneOf1 -from geoengine_openapi_client.models.typed_geometry_one_of2 import TypedGeometryOneOf2 as TypedGeometryOneOf2 -from geoengine_openapi_client.models.typed_geometry_one_of3 import TypedGeometryOneOf3 as TypedGeometryOneOf3 from geoengine_openapi_client.models.typed_operator import TypedOperator as TypedOperator from geoengine_openapi_client.models.typed_plot_operator import TypedPlotOperator as TypedPlotOperator from geoengine_openapi_client.models.typed_plot_result_descriptor import TypedPlotResultDescriptor as TypedPlotResultDescriptor @@ -607,6 +665,7 @@ from geoengine_openapi_client.models.update_layer_collection import UpdateLayerCollection as UpdateLayerCollection from geoengine_openapi_client.models.update_project import UpdateProject as UpdateProject from geoengine_openapi_client.models.update_quota import UpdateQuota as UpdateQuota +from geoengine_openapi_client.models.upload import Upload as Upload from geoengine_openapi_client.models.upload_file_layers_response import UploadFileLayersResponse as UploadFileLayersResponse from geoengine_openapi_client.models.upload_files_response import UploadFilesResponse as UploadFilesResponse from geoengine_openapi_client.models.usage_summary_granularity import UsageSummaryGranularity as UsageSummaryGranularity @@ -614,12 +673,15 @@ from geoengine_openapi_client.models.user_info import UserInfo as UserInfo from geoengine_openapi_client.models.user_registration import UserRegistration as UserRegistration from geoengine_openapi_client.models.user_session import UserSession as UserSession +from geoengine_openapi_client.models.values import Values as Values +from geoengine_openapi_client.models.values_values import ValuesValues as ValuesValues from geoengine_openapi_client.models.vec_update import VecUpdate as VecUpdate from geoengine_openapi_client.models.vector_column_info import VectorColumnInfo as VectorColumnInfo from geoengine_openapi_client.models.vector_data_type import VectorDataType as VectorDataType from geoengine_openapi_client.models.vector_operator import VectorOperator as VectorOperator from geoengine_openapi_client.models.vector_result_descriptor import VectorResultDescriptor as VectorResultDescriptor from geoengine_openapi_client.models.volume import Volume as Volume +from geoengine_openapi_client.models.volume1 import Volume1 as Volume1 from geoengine_openapi_client.models.volume_file_layers_response import VolumeFileLayersResponse as VolumeFileLayersResponse from geoengine_openapi_client.models.wcs_request import WcsRequest as WcsRequest from geoengine_openapi_client.models.wcs_service import WcsService as WcsService diff --git a/python/geoengine_openapi_client/models/__init__.py b/python/geoengine_openapi_client/models/__init__.py index f2a9ff60..d0f71d78 100644 --- a/python/geoengine_openapi_client/models/__init__.py +++ b/python/geoengine_openapi_client/models/__init__.py @@ -18,11 +18,15 @@ from geoengine_openapi_client.models.add_layer import AddLayer from geoengine_openapi_client.models.add_layer_collection import AddLayerCollection from geoengine_openapi_client.models.add_role import AddRole +from geoengine_openapi_client.models.aggregation import Aggregation from geoengine_openapi_client.models.aruna_data_provider_definition import ArunaDataProviderDefinition from geoengine_openapi_client.models.auth_code_request_url import AuthCodeRequestURL from geoengine_openapi_client.models.auth_code_response import AuthCodeResponse from geoengine_openapi_client.models.auto_create_dataset import AutoCreateDataset from geoengine_openapi_client.models.axis_order import AxisOrder +from geoengine_openapi_client.models.band_filter import BandFilter +from geoengine_openapi_client.models.band_filter_parameters import BandFilterParameters +from geoengine_openapi_client.models.bands_by_name_or_index import BandsByNameOrIndex from geoengine_openapi_client.models.bounding_box2_d import BoundingBox2D from geoengine_openapi_client.models.breakpoint import Breakpoint from geoengine_openapi_client.models.classification_measurement import ClassificationMeasurement @@ -35,13 +39,13 @@ from geoengine_openapi_client.models.continuous_measurement import ContinuousMeasurement from geoengine_openapi_client.models.coordinate2_d import Coordinate2D from geoengine_openapi_client.models.copernicus_dataspace_data_provider_definition import CopernicusDataspaceDataProviderDefinition +from geoengine_openapi_client.models.count_aggregation import CountAggregation from geoengine_openapi_client.models.create_dataset import CreateDataset from geoengine_openapi_client.models.create_project import CreateProject from geoengine_openapi_client.models.csv_header import CsvHeader +from geoengine_openapi_client.models.data1 import Data1 from geoengine_openapi_client.models.data_id import DataId from geoengine_openapi_client.models.data_path import DataPath -from geoengine_openapi_client.models.data_path_one_of import DataPathOneOf -from geoengine_openapi_client.models.data_path_one_of1 import DataPathOneOf1 from geoengine_openapi_client.models.data_provider_resource import DataProviderResource from geoengine_openapi_client.models.data_usage import DataUsage from geoengine_openapi_client.models.data_usage_summary import DataUsageSummary @@ -54,6 +58,7 @@ from geoengine_openapi_client.models.dataset_name_response import DatasetNameResponse from geoengine_openapi_client.models.dataset_resource import DatasetResource from geoengine_openapi_client.models.default import Default +from geoengine_openapi_client.models.derive_out_raster_specs_source import DeriveOutRasterSpecsSource from geoengine_openapi_client.models.derived_color import DerivedColor from geoengine_openapi_client.models.derived_number import DerivedNumber from geoengine_openapi_client.models.ebv_portal_data_provider_definition import EbvPortalDataProviderDefinition @@ -66,8 +71,10 @@ from geoengine_openapi_client.models.feature_aggregation_method import FeatureAggregationMethod from geoengine_openapi_client.models.feature_data_type import FeatureDataType from geoengine_openapi_client.models.file_not_found_handling import FileNotFoundHandling +from geoengine_openapi_client.models.first_aggregation import FirstAggregation from geoengine_openapi_client.models.format_specifics import FormatSpecifics from geoengine_openapi_client.models.format_specifics_csv import FormatSpecificsCsv +from geoengine_openapi_client.models.fraction import Fraction from geoengine_openapi_client.models.gbif_data_provider_definition import GbifDataProviderDefinition from geoengine_openapi_client.models.gdal_dataset_parameters import GdalDatasetParameters from geoengine_openapi_client.models.gdal_loading_info_temporal_slice import GdalLoadingInfoTemporalSlice @@ -90,15 +97,16 @@ from geoengine_openapi_client.models.grid_idx2_d import GridIdx2D from geoengine_openapi_client.models.histogram import Histogram from geoengine_openapi_client.models.histogram_bounds import HistogramBounds -from geoengine_openapi_client.models.histogram_bounds_one_of import HistogramBoundsOneOf -from geoengine_openapi_client.models.histogram_bounds_one_of1 import HistogramBoundsOneOf1 -from geoengine_openapi_client.models.histogram_bounds_one_of1_values import HistogramBoundsOneOf1Values from geoengine_openapi_client.models.histogram_buckets import HistogramBuckets -from geoengine_openapi_client.models.histogram_buckets_one_of import HistogramBucketsOneOf -from geoengine_openapi_client.models.histogram_buckets_one_of1 import HistogramBucketsOneOf1 from geoengine_openapi_client.models.histogram_parameters import HistogramParameters from geoengine_openapi_client.models.id_response import IdResponse from geoengine_openapi_client.models.internal_data_id import InternalDataId +from geoengine_openapi_client.models.interpolation import Interpolation +from geoengine_openapi_client.models.interpolation_method import InterpolationMethod +from geoengine_openapi_client.models.interpolation_parameters import InterpolationParameters +from geoengine_openapi_client.models.interpolation_resolution import InterpolationResolution +from geoengine_openapi_client.models.irregular import Irregular +from geoengine_openapi_client.models.last_aggregation import LastAggregation from geoengine_openapi_client.models.layer import Layer from geoengine_openapi_client.models.layer_collection import LayerCollection from geoengine_openapi_client.models.layer_collection_listing import LayerCollectionListing @@ -112,9 +120,12 @@ from geoengine_openapi_client.models.line_symbology import LineSymbology from geoengine_openapi_client.models.linear_gradient import LinearGradient from geoengine_openapi_client.models.logarithmic_gradient import LogarithmicGradient +from geoengine_openapi_client.models.max_aggregation import MaxAggregation +from geoengine_openapi_client.models.mean_aggregation import MeanAggregation from geoengine_openapi_client.models.measurement import Measurement from geoengine_openapi_client.models.meta_data_definition import MetaDataDefinition from geoengine_openapi_client.models.meta_data_suggestion import MetaDataSuggestion +from geoengine_openapi_client.models.min_aggregation import MinAggregation from geoengine_openapi_client.models.ml_model import MlModel from geoengine_openapi_client.models.ml_model_input_no_data_handling import MlModelInputNoDataHandling from geoengine_openapi_client.models.ml_model_input_no_data_handling_variant import MlModelInputNoDataHandlingVariant @@ -128,14 +139,21 @@ from geoengine_openapi_client.models.mock_meta_data import MockMetaData from geoengine_openapi_client.models.mock_point_source import MockPointSource from geoengine_openapi_client.models.mock_point_source_parameters import MockPointSourceParameters +from geoengine_openapi_client.models.multi_band_gdal_source import MultiBandGdalSource from geoengine_openapi_client.models.multi_band_raster_colorizer import MultiBandRasterColorizer from geoengine_openapi_client.models.multi_line_string import MultiLineString +from geoengine_openapi_client.models.multi_line_string1 import MultiLineString1 from geoengine_openapi_client.models.multi_point import MultiPoint +from geoengine_openapi_client.models.multi_point1 import MultiPoint1 from geoengine_openapi_client.models.multi_polygon import MultiPolygon +from geoengine_openapi_client.models.multi_polygon1 import MultiPolygon1 from geoengine_openapi_client.models.multiple_raster_or_single_vector_operator import MultipleRasterOrSingleVectorOperator from geoengine_openapi_client.models.multiple_raster_or_single_vector_source import MultipleRasterOrSingleVectorSource +from geoengine_openapi_client.models.multiple_raster_sources import MultipleRasterSources from geoengine_openapi_client.models.names import Names from geoengine_openapi_client.models.net_cdf_cf_data_provider_definition import NetCdfCfDataProviderDefinition +from geoengine_openapi_client.models.no_geometry1 import NoGeometry1 +from geoengine_openapi_client.models.number import Number from geoengine_openapi_client.models.number_param import NumberParam from geoengine_openapi_client.models.ogr_meta_data import OgrMetaData from geoengine_openapi_client.models.ogr_source_column_spec import OgrSourceColumnSpec @@ -158,6 +176,7 @@ from geoengine_openapi_client.models.order_by import OrderBy from geoengine_openapi_client.models.palette_colorizer import PaletteColorizer from geoengine_openapi_client.models.pangaea_data_provider_definition import PangaeaDataProviderDefinition +from geoengine_openapi_client.models.percentile_estimate_aggregation import PercentileEstimateAggregation from geoengine_openapi_client.models.permission import Permission from geoengine_openapi_client.models.permission_listing import PermissionListing from geoengine_openapi_client.models.permission_request import PermissionRequest @@ -188,12 +207,22 @@ from geoengine_openapi_client.models.raster_properties_entry_type import RasterPropertiesEntryType from geoengine_openapi_client.models.raster_properties_key import RasterPropertiesKey from geoengine_openapi_client.models.raster_result_descriptor import RasterResultDescriptor +from geoengine_openapi_client.models.raster_stacker import RasterStacker +from geoengine_openapi_client.models.raster_stacker_parameters import RasterStackerParameters from geoengine_openapi_client.models.raster_stream_websocket_result_type import RasterStreamWebsocketResultType from geoengine_openapi_client.models.raster_symbology import RasterSymbology from geoengine_openapi_client.models.raster_to_dataset_query_rectangle import RasterToDatasetQueryRectangle +from geoengine_openapi_client.models.raster_type_conversion import RasterTypeConversion +from geoengine_openapi_client.models.raster_type_conversion_parameters import RasterTypeConversionParameters from geoengine_openapi_client.models.raster_vector_join import RasterVectorJoin from geoengine_openapi_client.models.raster_vector_join_parameters import RasterVectorJoinParameters +from geoengine_openapi_client.models.regular import Regular from geoengine_openapi_client.models.regular_time_dimension import RegularTimeDimension +from geoengine_openapi_client.models.rename import Rename +from geoengine_openapi_client.models.rename_bands import RenameBands +from geoengine_openapi_client.models.reprojection import Reprojection +from geoengine_openapi_client.models.reprojection_parameters import ReprojectionParameters +from geoengine_openapi_client.models.resolution import Resolution from geoengine_openapi_client.models.resource import Resource from geoengine_openapi_client.models.role import Role from geoengine_openapi_client.models.role_description import RoleDescription @@ -217,6 +246,7 @@ from geoengine_openapi_client.models.spatial_grid_descriptor_state import SpatialGridDescriptorState from geoengine_openapi_client.models.spatial_partition2_d import SpatialPartition2D from geoengine_openapi_client.models.spatial_reference_specification import SpatialReferenceSpecification +from geoengine_openapi_client.models.square_root_choice_rule import SquareRootChoiceRule from geoengine_openapi_client.models.stac_api_retries import StacApiRetries from geoengine_openapi_client.models.stac_query_buffer import StacQueryBuffer from geoengine_openapi_client.models.static_color import StaticColor @@ -226,6 +256,7 @@ from geoengine_openapi_client.models.stroke_param import StrokeParam from geoengine_openapi_client.models.suffix import Suffix from geoengine_openapi_client.models.suggest_meta_data import SuggestMetaData +from geoengine_openapi_client.models.sum_aggregation import SumAggregation from geoengine_openapi_client.models.symbology import Symbology from geoengine_openapi_client.models.task_filter import TaskFilter from geoengine_openapi_client.models.task_response import TaskResponse @@ -236,21 +267,17 @@ from geoengine_openapi_client.models.task_status_running import TaskStatusRunning from geoengine_openapi_client.models.task_status_with_id import TaskStatusWithId from geoengine_openapi_client.models.temporal_aggregation_method import TemporalAggregationMethod +from geoengine_openapi_client.models.temporal_raster_aggregation import TemporalRasterAggregation +from geoengine_openapi_client.models.temporal_raster_aggregation_parameters import TemporalRasterAggregationParameters from geoengine_openapi_client.models.text_symbology import TextSymbology from geoengine_openapi_client.models.time_descriptor import TimeDescriptor from geoengine_openapi_client.models.time_dimension import TimeDimension -from geoengine_openapi_client.models.time_dimension_one_of import TimeDimensionOneOf -from geoengine_openapi_client.models.time_dimension_one_of1 import TimeDimensionOneOf1 from geoengine_openapi_client.models.time_granularity import TimeGranularity from geoengine_openapi_client.models.time_interval import TimeInterval from geoengine_openapi_client.models.time_reference import TimeReference from geoengine_openapi_client.models.time_step import TimeStep from geoengine_openapi_client.models.typed_data_provider_definition import TypedDataProviderDefinition from geoengine_openapi_client.models.typed_geometry import TypedGeometry -from geoengine_openapi_client.models.typed_geometry_one_of import TypedGeometryOneOf -from geoengine_openapi_client.models.typed_geometry_one_of1 import TypedGeometryOneOf1 -from geoengine_openapi_client.models.typed_geometry_one_of2 import TypedGeometryOneOf2 -from geoengine_openapi_client.models.typed_geometry_one_of3 import TypedGeometryOneOf3 from geoengine_openapi_client.models.typed_operator import TypedOperator from geoengine_openapi_client.models.typed_plot_operator import TypedPlotOperator from geoengine_openapi_client.models.typed_plot_result_descriptor import TypedPlotResultDescriptor @@ -266,6 +293,7 @@ from geoengine_openapi_client.models.update_layer_collection import UpdateLayerCollection from geoengine_openapi_client.models.update_project import UpdateProject from geoengine_openapi_client.models.update_quota import UpdateQuota +from geoengine_openapi_client.models.upload import Upload from geoengine_openapi_client.models.upload_file_layers_response import UploadFileLayersResponse from geoengine_openapi_client.models.upload_files_response import UploadFilesResponse from geoengine_openapi_client.models.usage_summary_granularity import UsageSummaryGranularity @@ -273,12 +301,15 @@ from geoengine_openapi_client.models.user_info import UserInfo from geoengine_openapi_client.models.user_registration import UserRegistration from geoengine_openapi_client.models.user_session import UserSession +from geoengine_openapi_client.models.values import Values +from geoengine_openapi_client.models.values_values import ValuesValues from geoengine_openapi_client.models.vec_update import VecUpdate from geoengine_openapi_client.models.vector_column_info import VectorColumnInfo from geoengine_openapi_client.models.vector_data_type import VectorDataType from geoengine_openapi_client.models.vector_operator import VectorOperator from geoengine_openapi_client.models.vector_result_descriptor import VectorResultDescriptor from geoengine_openapi_client.models.volume import Volume +from geoengine_openapi_client.models.volume1 import Volume1 from geoengine_openapi_client.models.volume_file_layers_response import VolumeFileLayersResponse from geoengine_openapi_client.models.wcs_request import WcsRequest from geoengine_openapi_client.models.wcs_service import WcsService diff --git a/python/geoengine_openapi_client/models/aggregation.py b/python/geoengine_openapi_client/models/aggregation.py new file mode 100644 index 00000000..ccbdbbb0 --- /dev/null +++ b/python/geoengine_openapi_client/models/aggregation.py @@ -0,0 +1,222 @@ +# coding: utf-8 + +""" + Geo Engine API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.9.0 + Contact: dev@geoengine.de + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import json +import pprint +from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator +from typing import Any, List, Optional +from geoengine_openapi_client.models.count_aggregation import CountAggregation +from geoengine_openapi_client.models.first_aggregation import FirstAggregation +from geoengine_openapi_client.models.last_aggregation import LastAggregation +from geoengine_openapi_client.models.max_aggregation import MaxAggregation +from geoengine_openapi_client.models.mean_aggregation import MeanAggregation +from geoengine_openapi_client.models.min_aggregation import MinAggregation +from geoengine_openapi_client.models.percentile_estimate_aggregation import PercentileEstimateAggregation +from geoengine_openapi_client.models.sum_aggregation import SumAggregation +from pydantic import StrictStr, Field +from typing import Union, List, Set, Optional, Dict +from typing_extensions import Literal, Self + +AGGREGATION_ONE_OF_SCHEMAS = ["CountAggregation", "FirstAggregation", "LastAggregation", "MaxAggregation", "MeanAggregation", "MinAggregation", "PercentileEstimateAggregation", "SumAggregation"] + +class Aggregation(BaseModel): + """ + Aggregation methods for `TemporalRasterAggregation`. Available variants are `min`, `max`, `first`, `last`, `mean`, `sum`, `count`, and `percentileEstimate`. Encountering NO DATA makes the aggregation result NO DATA unless `ignoreNoData` is `true`. + """ + # data type: MinAggregation + oneof_schema_1_validator: Optional[MinAggregation] = None + # data type: MaxAggregation + oneof_schema_2_validator: Optional[MaxAggregation] = None + # data type: FirstAggregation + oneof_schema_3_validator: Optional[FirstAggregation] = None + # data type: LastAggregation + oneof_schema_4_validator: Optional[LastAggregation] = None + # data type: MeanAggregation + oneof_schema_5_validator: Optional[MeanAggregation] = None + # data type: SumAggregation + oneof_schema_6_validator: Optional[SumAggregation] = None + # data type: CountAggregation + oneof_schema_7_validator: Optional[CountAggregation] = None + # data type: PercentileEstimateAggregation + oneof_schema_8_validator: Optional[PercentileEstimateAggregation] = None + actual_instance: Optional[Union[CountAggregation, FirstAggregation, LastAggregation, MaxAggregation, MeanAggregation, MinAggregation, PercentileEstimateAggregation, SumAggregation]] = None + one_of_schemas: Set[str] = { "CountAggregation", "FirstAggregation", "LastAggregation", "MaxAggregation", "MeanAggregation", "MinAggregation", "PercentileEstimateAggregation", "SumAggregation" } + + model_config = ConfigDict( + validate_assignment=True, + protected_namespaces=(), + ) + + + def __init__(self, *args, **kwargs) -> None: + if args: + if len(args) > 1: + raise ValueError("If a position argument is used, only 1 is allowed to set `actual_instance`") + if kwargs: + raise ValueError("If a position argument is used, keyword arguments cannot be used.") + super().__init__(actual_instance=args[0]) + else: + super().__init__(**kwargs) + + @field_validator('actual_instance') + def actual_instance_must_validate_oneof(cls, v): + instance = Aggregation.model_construct() + error_messages = [] + match = 0 + # validate data type: MinAggregation + if not isinstance(v, MinAggregation): + error_messages.append(f"Error! Input type `{type(v)}` is not `MinAggregation`") + else: + match += 1 + # validate data type: MaxAggregation + if not isinstance(v, MaxAggregation): + error_messages.append(f"Error! Input type `{type(v)}` is not `MaxAggregation`") + else: + match += 1 + # validate data type: FirstAggregation + if not isinstance(v, FirstAggregation): + error_messages.append(f"Error! Input type `{type(v)}` is not `FirstAggregation`") + else: + match += 1 + # validate data type: LastAggregation + if not isinstance(v, LastAggregation): + error_messages.append(f"Error! Input type `{type(v)}` is not `LastAggregation`") + else: + match += 1 + # validate data type: MeanAggregation + if not isinstance(v, MeanAggregation): + error_messages.append(f"Error! Input type `{type(v)}` is not `MeanAggregation`") + else: + match += 1 + # validate data type: SumAggregation + if not isinstance(v, SumAggregation): + error_messages.append(f"Error! Input type `{type(v)}` is not `SumAggregation`") + else: + match += 1 + # validate data type: CountAggregation + if not isinstance(v, CountAggregation): + error_messages.append(f"Error! Input type `{type(v)}` is not `CountAggregation`") + else: + match += 1 + # validate data type: PercentileEstimateAggregation + if not isinstance(v, PercentileEstimateAggregation): + error_messages.append(f"Error! Input type `{type(v)}` is not `PercentileEstimateAggregation`") + else: + match += 1 + if match > 1: + # more than 1 match + raise ValueError("Multiple matches found when setting `actual_instance` in Aggregation with oneOf schemas: CountAggregation, FirstAggregation, LastAggregation, MaxAggregation, MeanAggregation, MinAggregation, PercentileEstimateAggregation, SumAggregation. Details: " + ", ".join(error_messages)) + elif match == 0: + # no match + raise ValueError("No match found when setting `actual_instance` in Aggregation with oneOf schemas: CountAggregation, FirstAggregation, LastAggregation, MaxAggregation, MeanAggregation, MinAggregation, PercentileEstimateAggregation, SumAggregation. Details: " + ", ".join(error_messages)) + else: + return v + + @classmethod + def from_dict(cls, obj: Union[str, Dict[str, Any]]) -> Self: + return cls.from_json(json.dumps(obj)) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Returns the object represented by the json string""" + instance = cls.model_construct() + error_messages = [] + match = 0 + + # deserialize data into MinAggregation + try: + instance.actual_instance = MinAggregation.from_json(json_str) + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into MaxAggregation + try: + instance.actual_instance = MaxAggregation.from_json(json_str) + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into FirstAggregation + try: + instance.actual_instance = FirstAggregation.from_json(json_str) + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into LastAggregation + try: + instance.actual_instance = LastAggregation.from_json(json_str) + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into MeanAggregation + try: + instance.actual_instance = MeanAggregation.from_json(json_str) + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into SumAggregation + try: + instance.actual_instance = SumAggregation.from_json(json_str) + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into CountAggregation + try: + instance.actual_instance = CountAggregation.from_json(json_str) + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into PercentileEstimateAggregation + try: + instance.actual_instance = PercentileEstimateAggregation.from_json(json_str) + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + + if match > 1: + # more than 1 match + raise ValueError("Multiple matches found when deserializing the JSON string into Aggregation with oneOf schemas: CountAggregation, FirstAggregation, LastAggregation, MaxAggregation, MeanAggregation, MinAggregation, PercentileEstimateAggregation, SumAggregation. Details: " + ", ".join(error_messages)) + elif match == 0: + # no match + raise ValueError("No match found when deserializing the JSON string into Aggregation with oneOf schemas: CountAggregation, FirstAggregation, LastAggregation, MaxAggregation, MeanAggregation, MinAggregation, PercentileEstimateAggregation, SumAggregation. Details: " + ", ".join(error_messages)) + else: + return instance + + def to_json(self) -> str: + """Returns the JSON representation of the actual instance""" + if self.actual_instance is None: + return "null" + + if hasattr(self.actual_instance, "to_json") and callable(self.actual_instance.to_json): + return self.actual_instance.to_json() + else: + return json.dumps(self.actual_instance) + + def to_dict(self) -> Optional[Union[Dict[str, Any], CountAggregation, FirstAggregation, LastAggregation, MaxAggregation, MeanAggregation, MinAggregation, PercentileEstimateAggregation, SumAggregation]]: + """Returns the dict representation of the actual instance""" + if self.actual_instance is None: + return None + + if hasattr(self.actual_instance, "to_dict") and callable(self.actual_instance.to_dict): + return self.actual_instance.to_dict() + else: + # primitive type + return self.actual_instance + + def to_str(self) -> str: + """Returns the string representation of the actual instance""" + return pprint.pformat(self.model_dump()) + + diff --git a/python/geoengine_openapi_client/models/band_filter.py b/python/geoengine_openapi_client/models/band_filter.py new file mode 100644 index 00000000..6bdb89c2 --- /dev/null +++ b/python/geoengine_openapi_client/models/band_filter.py @@ -0,0 +1,109 @@ +# coding: utf-8 + +""" + Geo Engine API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.9.0 + Contact: dev@geoengine.de + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List +from geoengine_openapi_client.models.band_filter_parameters import BandFilterParameters +from typing import Optional, Set +from typing_extensions import Self + +class BandFilter(BaseModel): + """ + The `BandFilter` operator selects bands from a raster source by band names or band indices. It removes all non-selected bands while preserving the original order of remaining bands. ## Inputs The `BandFilter` operator expects exactly one _raster_ input. ## Errors The operator returns an error if no bands are selected or if selected band names/indices cannot be mapped to existing input bands. + """ # noqa: E501 + params: BandFilterParameters + sources: SingleRasterSource + type: StrictStr + __properties: ClassVar[List[str]] = ["params", "sources", "type"] + + @field_validator('type') + def type_validate_enum(cls, value): + """Validates the enum""" + if value not in set(['BandFilter']): + raise ValueError("must be one of enum values ('BandFilter')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of BandFilter from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of params + if self.params: + _dict['params'] = self.params.to_dict() + # override the default output from pydantic by calling `to_dict()` of sources + if self.sources: + _dict['sources'] = self.sources.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of BandFilter from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "params": BandFilterParameters.from_dict(obj["params"]) if obj.get("params") is not None else None, + "sources": SingleRasterSource.from_dict(obj["sources"]) if obj.get("sources") is not None else None, + "type": obj.get("type") + }) + return _obj + +from geoengine_openapi_client.models.single_raster_source import SingleRasterSource +# TODO: Rewrite to not use raise_errors +BandFilter.model_rebuild(raise_errors=False) + diff --git a/python/geoengine_openapi_client/models/band_filter_parameters.py b/python/geoengine_openapi_client/models/band_filter_parameters.py new file mode 100644 index 00000000..e856e7d2 --- /dev/null +++ b/python/geoengine_openapi_client/models/band_filter_parameters.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Geo Engine API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.9.0 + Contact: dev@geoengine.de + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field +from typing import Any, ClassVar, Dict, List +from geoengine_openapi_client.models.bands_by_name_or_index import BandsByNameOrIndex +from typing import Optional, Set +from typing_extensions import Self + +class BandFilterParameters(BaseModel): + """ + Parameters for the `BandFilter` operator. + """ # noqa: E501 + bands: BandsByNameOrIndex = Field(description="Selected bands either by names (e.g. `[\"nir\", \"red\"]`) or indices (e.g. `[0, 2]`).") + __properties: ClassVar[List[str]] = ["bands"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of BandFilterParameters from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of bands + if self.bands: + _dict['bands'] = self.bands.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of BandFilterParameters from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "bands": BandsByNameOrIndex.from_dict(obj["bands"]) if obj.get("bands") is not None else None + }) + return _obj + + diff --git a/python/geoengine_openapi_client/models/bands_by_name_or_index.py b/python/geoengine_openapi_client/models/bands_by_name_or_index.py new file mode 100644 index 00000000..a1ea11f0 --- /dev/null +++ b/python/geoengine_openapi_client/models/bands_by_name_or_index.py @@ -0,0 +1,145 @@ +# coding: utf-8 + +""" + Geo Engine API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.9.0 + Contact: dev@geoengine.de + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import json +import pprint +from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator +from typing import Any, List, Optional +from typing_extensions import Annotated +from pydantic import StrictStr, Field +from typing import Union, List, Set, Optional, Dict +from typing_extensions import Literal, Self + +BANDSBYNAMEORINDEX_ONE_OF_SCHEMAS = ["List[int]", "List[str]"] + +class BandsByNameOrIndex(BaseModel): + """ + BandsByNameOrIndex + """ + # data type: List[str] + oneof_schema_1_validator: Optional[List[StrictStr]] = Field(default=None, description="Select bands by their names.") + # data type: List[int] + oneof_schema_2_validator: Optional[List[Annotated[int, Field(strict=True, ge=0)]]] = Field(default=None, description="Select bands by zero-based band indices.") + actual_instance: Optional[Union[List[int], List[str]]] = None + one_of_schemas: Set[str] = { "List[int]", "List[str]" } + + model_config = ConfigDict( + validate_assignment=True, + protected_namespaces=(), + ) + + + def __init__(self, *args, **kwargs) -> None: + if args: + if len(args) > 1: + raise ValueError("If a position argument is used, only 1 is allowed to set `actual_instance`") + if kwargs: + raise ValueError("If a position argument is used, keyword arguments cannot be used.") + super().__init__(actual_instance=args[0]) + else: + super().__init__(**kwargs) + + @field_validator('actual_instance') + def actual_instance_must_validate_oneof(cls, v): + instance = BandsByNameOrIndex.model_construct() + error_messages = [] + match = 0 + # validate data type: List[str] + try: + instance.oneof_schema_1_validator = v + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # validate data type: List[int] + try: + instance.oneof_schema_2_validator = v + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + if match > 1: + # more than 1 match + raise ValueError("Multiple matches found when setting `actual_instance` in BandsByNameOrIndex with oneOf schemas: List[int], List[str]. Details: " + ", ".join(error_messages)) + elif match == 0: + # no match + raise ValueError("No match found when setting `actual_instance` in BandsByNameOrIndex with oneOf schemas: List[int], List[str]. Details: " + ", ".join(error_messages)) + else: + return v + + @classmethod + def from_dict(cls, obj: Union[str, Dict[str, Any]]) -> Self: + return cls.from_json(json.dumps(obj)) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Returns the object represented by the json string""" + instance = cls.model_construct() + error_messages = [] + match = 0 + + # deserialize data into List[str] + try: + # validation + instance.oneof_schema_1_validator = json.loads(json_str) + # assign value to actual_instance + instance.actual_instance = instance.oneof_schema_1_validator + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into List[int] + try: + # validation + instance.oneof_schema_2_validator = json.loads(json_str) + # assign value to actual_instance + instance.actual_instance = instance.oneof_schema_2_validator + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + + if match > 1: + # more than 1 match + raise ValueError("Multiple matches found when deserializing the JSON string into BandsByNameOrIndex with oneOf schemas: List[int], List[str]. Details: " + ", ".join(error_messages)) + elif match == 0: + # no match + raise ValueError("No match found when deserializing the JSON string into BandsByNameOrIndex with oneOf schemas: List[int], List[str]. Details: " + ", ".join(error_messages)) + else: + return instance + + def to_json(self) -> str: + """Returns the JSON representation of the actual instance""" + if self.actual_instance is None: + return "null" + + if hasattr(self.actual_instance, "to_json") and callable(self.actual_instance.to_json): + return self.actual_instance.to_json() + else: + return json.dumps(self.actual_instance) + + def to_dict(self) -> Optional[Union[Dict[str, Any], List[int], List[str]]]: + """Returns the dict representation of the actual instance""" + if self.actual_instance is None: + return None + + if hasattr(self.actual_instance, "to_dict") and callable(self.actual_instance.to_dict): + return self.actual_instance.to_dict() + else: + # primitive type + return self.actual_instance + + def to_str(self) -> str: + """Returns the string representation of the actual instance""" + return pprint.pformat(self.model_dump()) + + diff --git a/python/geoengine_openapi_client/models/count_aggregation.py b/python/geoengine_openapi_client/models/count_aggregation.py new file mode 100644 index 00000000..1a0583ff --- /dev/null +++ b/python/geoengine_openapi_client/models/count_aggregation.py @@ -0,0 +1,97 @@ +# coding: utf-8 + +""" + Geo Engine API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.9.0 + Contact: dev@geoengine.de + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List +from typing import Optional, Set +from typing_extensions import Self + +class CountAggregation(BaseModel): + """ + CountAggregation + """ # noqa: E501 + ignore_no_data: StrictBool = Field(alias="ignoreNoData") + type: StrictStr + __properties: ClassVar[List[str]] = ["ignoreNoData", "type"] + + @field_validator('type') + def type_validate_enum(cls, value): + """Validates the enum""" + if value not in set(['count']): + raise ValueError("must be one of enum values ('count')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of CountAggregation from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of CountAggregation from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "ignoreNoData": obj.get("ignoreNoData"), + "type": obj.get("type") + }) + return _obj + + diff --git a/python/geoengine_openapi_client/models/histogram_bounds_one_of.py b/python/geoengine_openapi_client/models/data1.py similarity index 92% rename from python/geoengine_openapi_client/models/histogram_bounds_one_of.py rename to python/geoengine_openapi_client/models/data1.py index 1db3a940..e474d6a5 100644 --- a/python/geoengine_openapi_client/models/histogram_bounds_one_of.py +++ b/python/geoengine_openapi_client/models/data1.py @@ -23,9 +23,9 @@ from typing import Optional, Set from typing_extensions import Self -class HistogramBoundsOneOf(BaseModel): +class Data1(BaseModel): """ - HistogramBoundsOneOf + Data1 """ # noqa: E501 data: Optional[Any] __properties: ClassVar[List[str]] = ["data"] @@ -48,7 +48,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of HistogramBoundsOneOf from a JSON string""" + """Create an instance of Data1 from a JSON string""" return cls.from_dict(json.loads(json_str)) def to_dict(self) -> Dict[str, Any]: @@ -78,7 +78,7 @@ def to_dict(self) -> Dict[str, Any]: @classmethod def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of HistogramBoundsOneOf from a dict""" + """Create an instance of Data1 from a dict""" if obj is None: return None diff --git a/python/geoengine_openapi_client/models/data_path.py b/python/geoengine_openapi_client/models/data_path.py index af94e136..1821797e 100644 --- a/python/geoengine_openapi_client/models/data_path.py +++ b/python/geoengine_openapi_client/models/data_path.py @@ -18,24 +18,24 @@ import pprint from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator from typing import Any, List, Optional -from geoengine_openapi_client.models.data_path_one_of import DataPathOneOf -from geoengine_openapi_client.models.data_path_one_of1 import DataPathOneOf1 +from geoengine_openapi_client.models.upload import Upload +from geoengine_openapi_client.models.volume1 import Volume1 from pydantic import StrictStr, Field from typing import Union, List, Set, Optional, Dict from typing_extensions import Literal, Self -DATAPATH_ONE_OF_SCHEMAS = ["DataPathOneOf", "DataPathOneOf1"] +DATAPATH_ONE_OF_SCHEMAS = ["Upload", "Volume1"] class DataPath(BaseModel): """ DataPath """ - # data type: DataPathOneOf - oneof_schema_1_validator: Optional[DataPathOneOf] = None - # data type: DataPathOneOf1 - oneof_schema_2_validator: Optional[DataPathOneOf1] = None - actual_instance: Optional[Union[DataPathOneOf, DataPathOneOf1]] = None - one_of_schemas: Set[str] = { "DataPathOneOf", "DataPathOneOf1" } + # data type: Volume1 + oneof_schema_1_validator: Optional[Volume1] = None + # data type: Upload + oneof_schema_2_validator: Optional[Upload] = None + actual_instance: Optional[Union[Upload, Volume1]] = None + one_of_schemas: Set[str] = { "Upload", "Volume1" } model_config = ConfigDict( validate_assignment=True, @@ -58,22 +58,22 @@ def actual_instance_must_validate_oneof(cls, v): instance = DataPath.model_construct() error_messages = [] match = 0 - # validate data type: DataPathOneOf - if not isinstance(v, DataPathOneOf): - error_messages.append(f"Error! Input type `{type(v)}` is not `DataPathOneOf`") + # validate data type: Volume1 + if not isinstance(v, Volume1): + error_messages.append(f"Error! Input type `{type(v)}` is not `Volume1`") else: match += 1 - # validate data type: DataPathOneOf1 - if not isinstance(v, DataPathOneOf1): - error_messages.append(f"Error! Input type `{type(v)}` is not `DataPathOneOf1`") + # validate data type: Upload + if not isinstance(v, Upload): + error_messages.append(f"Error! Input type `{type(v)}` is not `Upload`") else: match += 1 if match > 1: # more than 1 match - raise ValueError("Multiple matches found when setting `actual_instance` in DataPath with oneOf schemas: DataPathOneOf, DataPathOneOf1. Details: " + ", ".join(error_messages)) + raise ValueError("Multiple matches found when setting `actual_instance` in DataPath with oneOf schemas: Upload, Volume1. Details: " + ", ".join(error_messages)) elif match == 0: # no match - raise ValueError("No match found when setting `actual_instance` in DataPath with oneOf schemas: DataPathOneOf, DataPathOneOf1. Details: " + ", ".join(error_messages)) + raise ValueError("No match found when setting `actual_instance` in DataPath with oneOf schemas: Upload, Volume1. Details: " + ", ".join(error_messages)) else: return v @@ -88,25 +88,25 @@ def from_json(cls, json_str: str) -> Self: error_messages = [] match = 0 - # deserialize data into DataPathOneOf + # deserialize data into Volume1 try: - instance.actual_instance = DataPathOneOf.from_json(json_str) + instance.actual_instance = Volume1.from_json(json_str) match += 1 except (ValidationError, ValueError) as e: error_messages.append(str(e)) - # deserialize data into DataPathOneOf1 + # deserialize data into Upload try: - instance.actual_instance = DataPathOneOf1.from_json(json_str) + instance.actual_instance = Upload.from_json(json_str) match += 1 except (ValidationError, ValueError) as e: error_messages.append(str(e)) if match > 1: # more than 1 match - raise ValueError("Multiple matches found when deserializing the JSON string into DataPath with oneOf schemas: DataPathOneOf, DataPathOneOf1. Details: " + ", ".join(error_messages)) + raise ValueError("Multiple matches found when deserializing the JSON string into DataPath with oneOf schemas: Upload, Volume1. Details: " + ", ".join(error_messages)) elif match == 0: # no match - raise ValueError("No match found when deserializing the JSON string into DataPath with oneOf schemas: DataPathOneOf, DataPathOneOf1. Details: " + ", ".join(error_messages)) + raise ValueError("No match found when deserializing the JSON string into DataPath with oneOf schemas: Upload, Volume1. Details: " + ", ".join(error_messages)) else: return instance @@ -120,7 +120,7 @@ def to_json(self) -> str: else: return json.dumps(self.actual_instance) - def to_dict(self) -> Optional[Union[Dict[str, Any], DataPathOneOf, DataPathOneOf1]]: + def to_dict(self) -> Optional[Union[Dict[str, Any], Upload, Volume1]]: """Returns the dict representation of the actual instance""" if self.actual_instance is None: return None diff --git a/python/geoengine_openapi_client/models/derive_out_raster_specs_source.py b/python/geoengine_openapi_client/models/derive_out_raster_specs_source.py new file mode 100644 index 00000000..17ea50df --- /dev/null +++ b/python/geoengine_openapi_client/models/derive_out_raster_specs_source.py @@ -0,0 +1,38 @@ +# coding: utf-8 + +""" + Geo Engine API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.9.0 + Contact: dev@geoengine.de + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import json +from enum import Enum +from typing_extensions import Self + + +class DeriveOutRasterSpecsSource(str, Enum): + """ + DeriveOutRasterSpecsSource + """ + + """ + allowed enum values + """ + DATABOUNDS = 'dataBounds' + PROJECTIONBOUNDS = 'projectionBounds' + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of DeriveOutRasterSpecsSource from a JSON string""" + return cls(json.loads(json_str)) + + diff --git a/python/geoengine_openapi_client/models/first_aggregation.py b/python/geoengine_openapi_client/models/first_aggregation.py new file mode 100644 index 00000000..06c75fc4 --- /dev/null +++ b/python/geoengine_openapi_client/models/first_aggregation.py @@ -0,0 +1,97 @@ +# coding: utf-8 + +""" + Geo Engine API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.9.0 + Contact: dev@geoengine.de + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List +from typing import Optional, Set +from typing_extensions import Self + +class FirstAggregation(BaseModel): + """ + FirstAggregation + """ # noqa: E501 + ignore_no_data: StrictBool = Field(alias="ignoreNoData") + type: StrictStr + __properties: ClassVar[List[str]] = ["ignoreNoData", "type"] + + @field_validator('type') + def type_validate_enum(cls, value): + """Validates the enum""" + if value not in set(['first']): + raise ValueError("must be one of enum values ('first')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of FirstAggregation from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of FirstAggregation from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "ignoreNoData": obj.get("ignoreNoData"), + "type": obj.get("type") + }) + return _obj + + diff --git a/python/geoengine_openapi_client/models/fraction.py b/python/geoengine_openapi_client/models/fraction.py new file mode 100644 index 00000000..10f2422c --- /dev/null +++ b/python/geoengine_openapi_client/models/fraction.py @@ -0,0 +1,99 @@ +# coding: utf-8 + +""" + Geo Engine API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.9.0 + Contact: dev@geoengine.de + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, StrictFloat, StrictInt, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Union +from typing import Optional, Set +from typing_extensions import Self + +class Fraction(BaseModel): + """ + Upscale factor relative to input resolution (`x >= 1`, `y >= 1`). + """ # noqa: E501 + type: StrictStr + x: Union[StrictFloat, StrictInt] + y: Union[StrictFloat, StrictInt] + __properties: ClassVar[List[str]] = ["type", "x", "y"] + + @field_validator('type') + def type_validate_enum(cls, value): + """Validates the enum""" + if value not in set(['fraction']): + raise ValueError("must be one of enum values ('fraction')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of Fraction from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of Fraction from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "type": obj.get("type"), + "x": obj.get("x"), + "y": obj.get("y") + }) + return _obj + + diff --git a/python/geoengine_openapi_client/models/histogram_bounds.py b/python/geoengine_openapi_client/models/histogram_bounds.py index 3e3be9e5..554ecdff 100644 --- a/python/geoengine_openapi_client/models/histogram_bounds.py +++ b/python/geoengine_openapi_client/models/histogram_bounds.py @@ -18,24 +18,24 @@ import pprint from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator from typing import Any, List, Optional -from geoengine_openapi_client.models.histogram_bounds_one_of import HistogramBoundsOneOf -from geoengine_openapi_client.models.histogram_bounds_one_of1 import HistogramBoundsOneOf1 +from geoengine_openapi_client.models.data1 import Data1 +from geoengine_openapi_client.models.values import Values from pydantic import StrictStr, Field from typing import Union, List, Set, Optional, Dict from typing_extensions import Literal, Self -HISTOGRAMBOUNDS_ONE_OF_SCHEMAS = ["HistogramBoundsOneOf", "HistogramBoundsOneOf1"] +HISTOGRAMBOUNDS_ONE_OF_SCHEMAS = ["Data1", "Values"] class HistogramBounds(BaseModel): """ HistogramBounds """ - # data type: HistogramBoundsOneOf - oneof_schema_1_validator: Optional[HistogramBoundsOneOf] = None - # data type: HistogramBoundsOneOf1 - oneof_schema_2_validator: Optional[HistogramBoundsOneOf1] = None - actual_instance: Optional[Union[HistogramBoundsOneOf, HistogramBoundsOneOf1]] = None - one_of_schemas: Set[str] = { "HistogramBoundsOneOf", "HistogramBoundsOneOf1" } + # data type: Data1 + oneof_schema_1_validator: Optional[Data1] = None + # data type: Values + oneof_schema_2_validator: Optional[Values] = None + actual_instance: Optional[Union[Data1, Values]] = None + one_of_schemas: Set[str] = { "Data1", "Values" } model_config = ConfigDict( validate_assignment=True, @@ -58,22 +58,22 @@ def actual_instance_must_validate_oneof(cls, v): instance = HistogramBounds.model_construct() error_messages = [] match = 0 - # validate data type: HistogramBoundsOneOf - if not isinstance(v, HistogramBoundsOneOf): - error_messages.append(f"Error! Input type `{type(v)}` is not `HistogramBoundsOneOf`") + # validate data type: Data1 + if not isinstance(v, Data1): + error_messages.append(f"Error! Input type `{type(v)}` is not `Data1`") else: match += 1 - # validate data type: HistogramBoundsOneOf1 - if not isinstance(v, HistogramBoundsOneOf1): - error_messages.append(f"Error! Input type `{type(v)}` is not `HistogramBoundsOneOf1`") + # validate data type: Values + if not isinstance(v, Values): + error_messages.append(f"Error! Input type `{type(v)}` is not `Values`") else: match += 1 if match > 1: # more than 1 match - raise ValueError("Multiple matches found when setting `actual_instance` in HistogramBounds with oneOf schemas: HistogramBoundsOneOf, HistogramBoundsOneOf1. Details: " + ", ".join(error_messages)) + raise ValueError("Multiple matches found when setting `actual_instance` in HistogramBounds with oneOf schemas: Data1, Values. Details: " + ", ".join(error_messages)) elif match == 0: # no match - raise ValueError("No match found when setting `actual_instance` in HistogramBounds with oneOf schemas: HistogramBoundsOneOf, HistogramBoundsOneOf1. Details: " + ", ".join(error_messages)) + raise ValueError("No match found when setting `actual_instance` in HistogramBounds with oneOf schemas: Data1, Values. Details: " + ", ".join(error_messages)) else: return v @@ -88,25 +88,25 @@ def from_json(cls, json_str: str) -> Self: error_messages = [] match = 0 - # deserialize data into HistogramBoundsOneOf + # deserialize data into Data1 try: - instance.actual_instance = HistogramBoundsOneOf.from_json(json_str) + instance.actual_instance = Data1.from_json(json_str) match += 1 except (ValidationError, ValueError) as e: error_messages.append(str(e)) - # deserialize data into HistogramBoundsOneOf1 + # deserialize data into Values try: - instance.actual_instance = HistogramBoundsOneOf1.from_json(json_str) + instance.actual_instance = Values.from_json(json_str) match += 1 except (ValidationError, ValueError) as e: error_messages.append(str(e)) if match > 1: # more than 1 match - raise ValueError("Multiple matches found when deserializing the JSON string into HistogramBounds with oneOf schemas: HistogramBoundsOneOf, HistogramBoundsOneOf1. Details: " + ", ".join(error_messages)) + raise ValueError("Multiple matches found when deserializing the JSON string into HistogramBounds with oneOf schemas: Data1, Values. Details: " + ", ".join(error_messages)) elif match == 0: # no match - raise ValueError("No match found when deserializing the JSON string into HistogramBounds with oneOf schemas: HistogramBoundsOneOf, HistogramBoundsOneOf1. Details: " + ", ".join(error_messages)) + raise ValueError("No match found when deserializing the JSON string into HistogramBounds with oneOf schemas: Data1, Values. Details: " + ", ".join(error_messages)) else: return instance @@ -120,7 +120,7 @@ def to_json(self) -> str: else: return json.dumps(self.actual_instance) - def to_dict(self) -> Optional[Union[Dict[str, Any], HistogramBoundsOneOf, HistogramBoundsOneOf1]]: + def to_dict(self) -> Optional[Union[Dict[str, Any], Data1, Values]]: """Returns the dict representation of the actual instance""" if self.actual_instance is None: return None diff --git a/python/geoengine_openapi_client/models/histogram_buckets.py b/python/geoengine_openapi_client/models/histogram_buckets.py index 4ac21a42..1aad10b8 100644 --- a/python/geoengine_openapi_client/models/histogram_buckets.py +++ b/python/geoengine_openapi_client/models/histogram_buckets.py @@ -18,24 +18,24 @@ import pprint from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator from typing import Any, List, Optional -from geoengine_openapi_client.models.histogram_buckets_one_of import HistogramBucketsOneOf -from geoengine_openapi_client.models.histogram_buckets_one_of1 import HistogramBucketsOneOf1 +from geoengine_openapi_client.models.number import Number +from geoengine_openapi_client.models.square_root_choice_rule import SquareRootChoiceRule from pydantic import StrictStr, Field from typing import Union, List, Set, Optional, Dict from typing_extensions import Literal, Self -HISTOGRAMBUCKETS_ONE_OF_SCHEMAS = ["HistogramBucketsOneOf", "HistogramBucketsOneOf1"] +HISTOGRAMBUCKETS_ONE_OF_SCHEMAS = ["Number", "SquareRootChoiceRule"] class HistogramBuckets(BaseModel): """ HistogramBuckets """ - # data type: HistogramBucketsOneOf - oneof_schema_1_validator: Optional[HistogramBucketsOneOf] = None - # data type: HistogramBucketsOneOf1 - oneof_schema_2_validator: Optional[HistogramBucketsOneOf1] = None - actual_instance: Optional[Union[HistogramBucketsOneOf, HistogramBucketsOneOf1]] = None - one_of_schemas: Set[str] = { "HistogramBucketsOneOf", "HistogramBucketsOneOf1" } + # data type: Number + oneof_schema_1_validator: Optional[Number] = None + # data type: SquareRootChoiceRule + oneof_schema_2_validator: Optional[SquareRootChoiceRule] = None + actual_instance: Optional[Union[Number, SquareRootChoiceRule]] = None + one_of_schemas: Set[str] = { "Number", "SquareRootChoiceRule" } model_config = ConfigDict( validate_assignment=True, @@ -58,22 +58,22 @@ def actual_instance_must_validate_oneof(cls, v): instance = HistogramBuckets.model_construct() error_messages = [] match = 0 - # validate data type: HistogramBucketsOneOf - if not isinstance(v, HistogramBucketsOneOf): - error_messages.append(f"Error! Input type `{type(v)}` is not `HistogramBucketsOneOf`") + # validate data type: Number + if not isinstance(v, Number): + error_messages.append(f"Error! Input type `{type(v)}` is not `Number`") else: match += 1 - # validate data type: HistogramBucketsOneOf1 - if not isinstance(v, HistogramBucketsOneOf1): - error_messages.append(f"Error! Input type `{type(v)}` is not `HistogramBucketsOneOf1`") + # validate data type: SquareRootChoiceRule + if not isinstance(v, SquareRootChoiceRule): + error_messages.append(f"Error! Input type `{type(v)}` is not `SquareRootChoiceRule`") else: match += 1 if match > 1: # more than 1 match - raise ValueError("Multiple matches found when setting `actual_instance` in HistogramBuckets with oneOf schemas: HistogramBucketsOneOf, HistogramBucketsOneOf1. Details: " + ", ".join(error_messages)) + raise ValueError("Multiple matches found when setting `actual_instance` in HistogramBuckets with oneOf schemas: Number, SquareRootChoiceRule. Details: " + ", ".join(error_messages)) elif match == 0: # no match - raise ValueError("No match found when setting `actual_instance` in HistogramBuckets with oneOf schemas: HistogramBucketsOneOf, HistogramBucketsOneOf1. Details: " + ", ".join(error_messages)) + raise ValueError("No match found when setting `actual_instance` in HistogramBuckets with oneOf schemas: Number, SquareRootChoiceRule. Details: " + ", ".join(error_messages)) else: return v @@ -88,25 +88,25 @@ def from_json(cls, json_str: str) -> Self: error_messages = [] match = 0 - # deserialize data into HistogramBucketsOneOf + # deserialize data into Number try: - instance.actual_instance = HistogramBucketsOneOf.from_json(json_str) + instance.actual_instance = Number.from_json(json_str) match += 1 except (ValidationError, ValueError) as e: error_messages.append(str(e)) - # deserialize data into HistogramBucketsOneOf1 + # deserialize data into SquareRootChoiceRule try: - instance.actual_instance = HistogramBucketsOneOf1.from_json(json_str) + instance.actual_instance = SquareRootChoiceRule.from_json(json_str) match += 1 except (ValidationError, ValueError) as e: error_messages.append(str(e)) if match > 1: # more than 1 match - raise ValueError("Multiple matches found when deserializing the JSON string into HistogramBuckets with oneOf schemas: HistogramBucketsOneOf, HistogramBucketsOneOf1. Details: " + ", ".join(error_messages)) + raise ValueError("Multiple matches found when deserializing the JSON string into HistogramBuckets with oneOf schemas: Number, SquareRootChoiceRule. Details: " + ", ".join(error_messages)) elif match == 0: # no match - raise ValueError("No match found when deserializing the JSON string into HistogramBuckets with oneOf schemas: HistogramBucketsOneOf, HistogramBucketsOneOf1. Details: " + ", ".join(error_messages)) + raise ValueError("No match found when deserializing the JSON string into HistogramBuckets with oneOf schemas: Number, SquareRootChoiceRule. Details: " + ", ".join(error_messages)) else: return instance @@ -120,7 +120,7 @@ def to_json(self) -> str: else: return json.dumps(self.actual_instance) - def to_dict(self) -> Optional[Union[Dict[str, Any], HistogramBucketsOneOf, HistogramBucketsOneOf1]]: + def to_dict(self) -> Optional[Union[Dict[str, Any], Number, SquareRootChoiceRule]]: """Returns the dict representation of the actual instance""" if self.actual_instance is None: return None diff --git a/python/geoengine_openapi_client/models/interpolation.py b/python/geoengine_openapi_client/models/interpolation.py new file mode 100644 index 00000000..5afcc103 --- /dev/null +++ b/python/geoengine_openapi_client/models/interpolation.py @@ -0,0 +1,109 @@ +# coding: utf-8 + +""" + Geo Engine API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.9.0 + Contact: dev@geoengine.de + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List +from geoengine_openapi_client.models.interpolation_parameters import InterpolationParameters +from typing import Optional, Set +from typing_extensions import Self + +class Interpolation(BaseModel): + """ + The `Interpolation` operator increases raster resolution by interpolating values of an input raster. If queried with a resolution that is coarser than the input resolution, interpolation is not applicable and an error is returned. ## Inputs The `Interpolation` operator expects exactly one _raster_ input. + """ # noqa: E501 + params: InterpolationParameters + sources: SingleRasterSource + type: StrictStr + __properties: ClassVar[List[str]] = ["params", "sources", "type"] + + @field_validator('type') + def type_validate_enum(cls, value): + """Validates the enum""" + if value not in set(['Interpolation']): + raise ValueError("must be one of enum values ('Interpolation')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of Interpolation from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of params + if self.params: + _dict['params'] = self.params.to_dict() + # override the default output from pydantic by calling `to_dict()` of sources + if self.sources: + _dict['sources'] = self.sources.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of Interpolation from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "params": InterpolationParameters.from_dict(obj["params"]) if obj.get("params") is not None else None, + "sources": SingleRasterSource.from_dict(obj["sources"]) if obj.get("sources") is not None else None, + "type": obj.get("type") + }) + return _obj + +from geoengine_openapi_client.models.single_raster_source import SingleRasterSource +# TODO: Rewrite to not use raise_errors +Interpolation.model_rebuild(raise_errors=False) + diff --git a/python/geoengine_openapi_client/models/interpolation_method.py b/python/geoengine_openapi_client/models/interpolation_method.py new file mode 100644 index 00000000..2ca239b0 --- /dev/null +++ b/python/geoengine_openapi_client/models/interpolation_method.py @@ -0,0 +1,38 @@ +# coding: utf-8 + +""" + Geo Engine API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.9.0 + Contact: dev@geoengine.de + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import json +from enum import Enum +from typing_extensions import Self + + +class InterpolationMethod(str, Enum): + """ + InterpolationMethod + """ + + """ + allowed enum values + """ + NEARESTNEIGHBOR = 'nearestNeighbor' + BILINEAR = 'biLinear' + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of InterpolationMethod from a JSON string""" + return cls(json.loads(json_str)) + + diff --git a/python/geoengine_openapi_client/models/interpolation_parameters.py b/python/geoengine_openapi_client/models/interpolation_parameters.py new file mode 100644 index 00000000..f421a456 --- /dev/null +++ b/python/geoengine_openapi_client/models/interpolation_parameters.py @@ -0,0 +1,106 @@ +# coding: utf-8 + +""" + Geo Engine API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.9.0 + Contact: dev@geoengine.de + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field +from typing import Any, ClassVar, Dict, List, Optional +from geoengine_openapi_client.models.coordinate2_d import Coordinate2D +from geoengine_openapi_client.models.interpolation_method import InterpolationMethod +from geoengine_openapi_client.models.interpolation_resolution import InterpolationResolution +from typing import Optional, Set +from typing_extensions import Self + +class InterpolationParameters(BaseModel): + """ + Parameters for the `Interpolation` operator. + """ # noqa: E501 + interpolation: InterpolationMethod = Field(description="Interpolation method.") + output_origin_reference: Optional[Coordinate2D] = Field(default=None, description="Optional reference point used to align the output grid origin.", alias="outputOriginReference") + output_resolution: InterpolationResolution = Field(description="Target output resolution.", alias="outputResolution") + __properties: ClassVar[List[str]] = ["interpolation", "outputOriginReference", "outputResolution"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of InterpolationParameters from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of output_origin_reference + if self.output_origin_reference: + _dict['outputOriginReference'] = self.output_origin_reference.to_dict() + # override the default output from pydantic by calling `to_dict()` of output_resolution + if self.output_resolution: + _dict['outputResolution'] = self.output_resolution.to_dict() + # set to None if output_origin_reference (nullable) is None + # and model_fields_set contains the field + if self.output_origin_reference is None and "output_origin_reference" in self.model_fields_set: + _dict['outputOriginReference'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of InterpolationParameters from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "interpolation": obj.get("interpolation"), + "outputOriginReference": Coordinate2D.from_dict(obj["outputOriginReference"]) if obj.get("outputOriginReference") is not None else None, + "outputResolution": InterpolationResolution.from_dict(obj["outputResolution"]) if obj.get("outputResolution") is not None else None + }) + return _obj + + diff --git a/python/geoengine_openapi_client/models/interpolation_resolution.py b/python/geoengine_openapi_client/models/interpolation_resolution.py new file mode 100644 index 00000000..91e52055 --- /dev/null +++ b/python/geoengine_openapi_client/models/interpolation_resolution.py @@ -0,0 +1,138 @@ +# coding: utf-8 + +""" + Geo Engine API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.9.0 + Contact: dev@geoengine.de + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import json +import pprint +from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator +from typing import Any, List, Optional +from geoengine_openapi_client.models.fraction import Fraction +from geoengine_openapi_client.models.resolution import Resolution +from pydantic import StrictStr, Field +from typing import Union, List, Set, Optional, Dict +from typing_extensions import Literal, Self + +INTERPOLATIONRESOLUTION_ONE_OF_SCHEMAS = ["Fraction", "Resolution"] + +class InterpolationResolution(BaseModel): + """ + InterpolationResolution + """ + # data type: Resolution + oneof_schema_1_validator: Optional[Resolution] = None + # data type: Fraction + oneof_schema_2_validator: Optional[Fraction] = None + actual_instance: Optional[Union[Fraction, Resolution]] = None + one_of_schemas: Set[str] = { "Fraction", "Resolution" } + + model_config = ConfigDict( + validate_assignment=True, + protected_namespaces=(), + ) + + + def __init__(self, *args, **kwargs) -> None: + if args: + if len(args) > 1: + raise ValueError("If a position argument is used, only 1 is allowed to set `actual_instance`") + if kwargs: + raise ValueError("If a position argument is used, keyword arguments cannot be used.") + super().__init__(actual_instance=args[0]) + else: + super().__init__(**kwargs) + + @field_validator('actual_instance') + def actual_instance_must_validate_oneof(cls, v): + instance = InterpolationResolution.model_construct() + error_messages = [] + match = 0 + # validate data type: Resolution + if not isinstance(v, Resolution): + error_messages.append(f"Error! Input type `{type(v)}` is not `Resolution`") + else: + match += 1 + # validate data type: Fraction + if not isinstance(v, Fraction): + error_messages.append(f"Error! Input type `{type(v)}` is not `Fraction`") + else: + match += 1 + if match > 1: + # more than 1 match + raise ValueError("Multiple matches found when setting `actual_instance` in InterpolationResolution with oneOf schemas: Fraction, Resolution. Details: " + ", ".join(error_messages)) + elif match == 0: + # no match + raise ValueError("No match found when setting `actual_instance` in InterpolationResolution with oneOf schemas: Fraction, Resolution. Details: " + ", ".join(error_messages)) + else: + return v + + @classmethod + def from_dict(cls, obj: Union[str, Dict[str, Any]]) -> Self: + return cls.from_json(json.dumps(obj)) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Returns the object represented by the json string""" + instance = cls.model_construct() + error_messages = [] + match = 0 + + # deserialize data into Resolution + try: + instance.actual_instance = Resolution.from_json(json_str) + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into Fraction + try: + instance.actual_instance = Fraction.from_json(json_str) + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + + if match > 1: + # more than 1 match + raise ValueError("Multiple matches found when deserializing the JSON string into InterpolationResolution with oneOf schemas: Fraction, Resolution. Details: " + ", ".join(error_messages)) + elif match == 0: + # no match + raise ValueError("No match found when deserializing the JSON string into InterpolationResolution with oneOf schemas: Fraction, Resolution. Details: " + ", ".join(error_messages)) + else: + return instance + + def to_json(self) -> str: + """Returns the JSON representation of the actual instance""" + if self.actual_instance is None: + return "null" + + if hasattr(self.actual_instance, "to_json") and callable(self.actual_instance.to_json): + return self.actual_instance.to_json() + else: + return json.dumps(self.actual_instance) + + def to_dict(self) -> Optional[Union[Dict[str, Any], Fraction, Resolution]]: + """Returns the dict representation of the actual instance""" + if self.actual_instance is None: + return None + + if hasattr(self.actual_instance, "to_dict") and callable(self.actual_instance.to_dict): + return self.actual_instance.to_dict() + else: + # primitive type + return self.actual_instance + + def to_str(self) -> str: + """Returns the string representation of the actual instance""" + return pprint.pformat(self.model_dump()) + + diff --git a/python/geoengine_openapi_client/models/time_dimension_one_of1.py b/python/geoengine_openapi_client/models/irregular.py similarity index 92% rename from python/geoengine_openapi_client/models/time_dimension_one_of1.py rename to python/geoengine_openapi_client/models/irregular.py index 95f71582..1ec696c4 100644 --- a/python/geoengine_openapi_client/models/time_dimension_one_of1.py +++ b/python/geoengine_openapi_client/models/irregular.py @@ -23,9 +23,9 @@ from typing import Optional, Set from typing_extensions import Self -class TimeDimensionOneOf1(BaseModel): +class Irregular(BaseModel): """ - TimeDimensionOneOf1 + Irregular """ # noqa: E501 type: StrictStr __properties: ClassVar[List[str]] = ["type"] @@ -55,7 +55,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of TimeDimensionOneOf1 from a JSON string""" + """Create an instance of Irregular from a JSON string""" return cls.from_dict(json.loads(json_str)) def to_dict(self) -> Dict[str, Any]: @@ -80,7 +80,7 @@ def to_dict(self) -> Dict[str, Any]: @classmethod def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of TimeDimensionOneOf1 from a dict""" + """Create an instance of Irregular from a dict""" if obj is None: return None diff --git a/python/geoengine_openapi_client/models/last_aggregation.py b/python/geoengine_openapi_client/models/last_aggregation.py new file mode 100644 index 00000000..fd8669a3 --- /dev/null +++ b/python/geoengine_openapi_client/models/last_aggregation.py @@ -0,0 +1,97 @@ +# coding: utf-8 + +""" + Geo Engine API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.9.0 + Contact: dev@geoengine.de + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List +from typing import Optional, Set +from typing_extensions import Self + +class LastAggregation(BaseModel): + """ + LastAggregation + """ # noqa: E501 + ignore_no_data: StrictBool = Field(alias="ignoreNoData") + type: StrictStr + __properties: ClassVar[List[str]] = ["ignoreNoData", "type"] + + @field_validator('type') + def type_validate_enum(cls, value): + """Validates the enum""" + if value not in set(['last']): + raise ValueError("must be one of enum values ('last')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of LastAggregation from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of LastAggregation from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "ignoreNoData": obj.get("ignoreNoData"), + "type": obj.get("type") + }) + return _obj + + diff --git a/python/geoengine_openapi_client/models/max_aggregation.py b/python/geoengine_openapi_client/models/max_aggregation.py new file mode 100644 index 00000000..aa086312 --- /dev/null +++ b/python/geoengine_openapi_client/models/max_aggregation.py @@ -0,0 +1,97 @@ +# coding: utf-8 + +""" + Geo Engine API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.9.0 + Contact: dev@geoengine.de + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List +from typing import Optional, Set +from typing_extensions import Self + +class MaxAggregation(BaseModel): + """ + MaxAggregation + """ # noqa: E501 + ignore_no_data: StrictBool = Field(alias="ignoreNoData") + type: StrictStr + __properties: ClassVar[List[str]] = ["ignoreNoData", "type"] + + @field_validator('type') + def type_validate_enum(cls, value): + """Validates the enum""" + if value not in set(['max']): + raise ValueError("must be one of enum values ('max')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of MaxAggregation from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of MaxAggregation from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "ignoreNoData": obj.get("ignoreNoData"), + "type": obj.get("type") + }) + return _obj + + diff --git a/python/geoengine_openapi_client/models/mean_aggregation.py b/python/geoengine_openapi_client/models/mean_aggregation.py new file mode 100644 index 00000000..0e91df76 --- /dev/null +++ b/python/geoengine_openapi_client/models/mean_aggregation.py @@ -0,0 +1,97 @@ +# coding: utf-8 + +""" + Geo Engine API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.9.0 + Contact: dev@geoengine.de + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List +from typing import Optional, Set +from typing_extensions import Self + +class MeanAggregation(BaseModel): + """ + MeanAggregation + """ # noqa: E501 + ignore_no_data: StrictBool = Field(alias="ignoreNoData") + type: StrictStr + __properties: ClassVar[List[str]] = ["ignoreNoData", "type"] + + @field_validator('type') + def type_validate_enum(cls, value): + """Validates the enum""" + if value not in set(['mean']): + raise ValueError("must be one of enum values ('mean')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of MeanAggregation from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of MeanAggregation from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "ignoreNoData": obj.get("ignoreNoData"), + "type": obj.get("type") + }) + return _obj + + diff --git a/python/geoengine_openapi_client/models/min_aggregation.py b/python/geoengine_openapi_client/models/min_aggregation.py new file mode 100644 index 00000000..734f9bb3 --- /dev/null +++ b/python/geoengine_openapi_client/models/min_aggregation.py @@ -0,0 +1,97 @@ +# coding: utf-8 + +""" + Geo Engine API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.9.0 + Contact: dev@geoengine.de + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List +from typing import Optional, Set +from typing_extensions import Self + +class MinAggregation(BaseModel): + """ + MinAggregation + """ # noqa: E501 + ignore_no_data: StrictBool = Field(alias="ignoreNoData") + type: StrictStr + __properties: ClassVar[List[str]] = ["ignoreNoData", "type"] + + @field_validator('type') + def type_validate_enum(cls, value): + """Validates the enum""" + if value not in set(['min']): + raise ValueError("must be one of enum values ('min')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of MinAggregation from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of MinAggregation from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "ignoreNoData": obj.get("ignoreNoData"), + "type": obj.get("type") + }) + return _obj + + diff --git a/python/geoengine_openapi_client/models/multi_band_gdal_source.py b/python/geoengine_openapi_client/models/multi_band_gdal_source.py new file mode 100644 index 00000000..b617e348 --- /dev/null +++ b/python/geoengine_openapi_client/models/multi_band_gdal_source.py @@ -0,0 +1,101 @@ +# coding: utf-8 + +""" + Geo Engine API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.9.0 + Contact: dev@geoengine.de + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List +from geoengine_openapi_client.models.gdal_source_parameters import GdalSourceParameters +from typing import Optional, Set +from typing_extensions import Self + +class MultiBandGdalSource(BaseModel): + """ + The [`MultiBandGdalSource`] is a source operator that reads multi-band raster data using GDAL. + """ # noqa: E501 + params: GdalSourceParameters + type: StrictStr + __properties: ClassVar[List[str]] = ["params", "type"] + + @field_validator('type') + def type_validate_enum(cls, value): + """Validates the enum""" + if value not in set(['MultiBandGdalSource']): + raise ValueError("must be one of enum values ('MultiBandGdalSource')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of MultiBandGdalSource from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of params + if self.params: + _dict['params'] = self.params.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of MultiBandGdalSource from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "params": GdalSourceParameters.from_dict(obj["params"]) if obj.get("params") is not None else None, + "type": obj.get("type") + }) + return _obj + + diff --git a/python/geoengine_openapi_client/models/typed_geometry_one_of2.py b/python/geoengine_openapi_client/models/multi_line_string1.py similarity index 93% rename from python/geoengine_openapi_client/models/typed_geometry_one_of2.py rename to python/geoengine_openapi_client/models/multi_line_string1.py index a14025a5..7aa8e7cd 100644 --- a/python/geoengine_openapi_client/models/typed_geometry_one_of2.py +++ b/python/geoengine_openapi_client/models/multi_line_string1.py @@ -24,9 +24,9 @@ from typing import Optional, Set from typing_extensions import Self -class TypedGeometryOneOf2(BaseModel): +class MultiLineString1(BaseModel): """ - TypedGeometryOneOf2 + MultiLineString1 """ # noqa: E501 multi_line_string: MultiLineString = Field(alias="MultiLineString") __properties: ClassVar[List[str]] = ["MultiLineString"] @@ -49,7 +49,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of TypedGeometryOneOf2 from a JSON string""" + """Create an instance of MultiLineString1 from a JSON string""" return cls.from_dict(json.loads(json_str)) def to_dict(self) -> Dict[str, Any]: @@ -77,7 +77,7 @@ def to_dict(self) -> Dict[str, Any]: @classmethod def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of TypedGeometryOneOf2 from a dict""" + """Create an instance of MultiLineString1 from a dict""" if obj is None: return None diff --git a/python/geoengine_openapi_client/models/typed_geometry_one_of1.py b/python/geoengine_openapi_client/models/multi_point1.py similarity index 92% rename from python/geoengine_openapi_client/models/typed_geometry_one_of1.py rename to python/geoengine_openapi_client/models/multi_point1.py index 6e91c61a..f9710e4e 100644 --- a/python/geoengine_openapi_client/models/typed_geometry_one_of1.py +++ b/python/geoengine_openapi_client/models/multi_point1.py @@ -24,9 +24,9 @@ from typing import Optional, Set from typing_extensions import Self -class TypedGeometryOneOf1(BaseModel): +class MultiPoint1(BaseModel): """ - TypedGeometryOneOf1 + MultiPoint1 """ # noqa: E501 multi_point: MultiPoint = Field(alias="MultiPoint") __properties: ClassVar[List[str]] = ["MultiPoint"] @@ -49,7 +49,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of TypedGeometryOneOf1 from a JSON string""" + """Create an instance of MultiPoint1 from a JSON string""" return cls.from_dict(json.loads(json_str)) def to_dict(self) -> Dict[str, Any]: @@ -77,7 +77,7 @@ def to_dict(self) -> Dict[str, Any]: @classmethod def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of TypedGeometryOneOf1 from a dict""" + """Create an instance of MultiPoint1 from a dict""" if obj is None: return None diff --git a/python/geoengine_openapi_client/models/typed_geometry_one_of3.py b/python/geoengine_openapi_client/models/multi_polygon1.py similarity index 92% rename from python/geoengine_openapi_client/models/typed_geometry_one_of3.py rename to python/geoengine_openapi_client/models/multi_polygon1.py index 2fad5733..a44d2dfc 100644 --- a/python/geoengine_openapi_client/models/typed_geometry_one_of3.py +++ b/python/geoengine_openapi_client/models/multi_polygon1.py @@ -24,9 +24,9 @@ from typing import Optional, Set from typing_extensions import Self -class TypedGeometryOneOf3(BaseModel): +class MultiPolygon1(BaseModel): """ - TypedGeometryOneOf3 + MultiPolygon1 """ # noqa: E501 multi_polygon: MultiPolygon = Field(alias="MultiPolygon") __properties: ClassVar[List[str]] = ["MultiPolygon"] @@ -49,7 +49,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of TypedGeometryOneOf3 from a JSON string""" + """Create an instance of MultiPolygon1 from a JSON string""" return cls.from_dict(json.loads(json_str)) def to_dict(self) -> Dict[str, Any]: @@ -77,7 +77,7 @@ def to_dict(self) -> Dict[str, Any]: @classmethod def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of TypedGeometryOneOf3 from a dict""" + """Create an instance of MultiPolygon1 from a dict""" if obj is None: return None diff --git a/python/geoengine_openapi_client/models/multiple_raster_sources.py b/python/geoengine_openapi_client/models/multiple_raster_sources.py new file mode 100644 index 00000000..3cb9e00c --- /dev/null +++ b/python/geoengine_openapi_client/models/multiple_raster_sources.py @@ -0,0 +1,98 @@ +# coding: utf-8 + +""" + Geo Engine API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.9.0 + Contact: dev@geoengine.de + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List +from typing import Optional, Set +from typing_extensions import Self + +class MultipleRasterSources(BaseModel): + """ + One or more raster operators as sources for this operator. + """ # noqa: E501 + rasters: List[RasterOperator] + __properties: ClassVar[List[str]] = ["rasters"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of MultipleRasterSources from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in rasters (list) + _items = [] + if self.rasters: + for _item_rasters in self.rasters: + if _item_rasters: + _items.append(_item_rasters.to_dict()) + _dict['rasters'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of MultipleRasterSources from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "rasters": [RasterOperator.from_dict(_item) for _item in obj["rasters"]] if obj.get("rasters") is not None else None + }) + return _obj + +from geoengine_openapi_client.models.raster_operator import RasterOperator +# TODO: Rewrite to not use raise_errors +MultipleRasterSources.model_rebuild(raise_errors=False) + diff --git a/python/geoengine_openapi_client/models/typed_geometry_one_of.py b/python/geoengine_openapi_client/models/no_geometry1.py similarity index 92% rename from python/geoengine_openapi_client/models/typed_geometry_one_of.py rename to python/geoengine_openapi_client/models/no_geometry1.py index 9782ad82..a0eb7965 100644 --- a/python/geoengine_openapi_client/models/typed_geometry_one_of.py +++ b/python/geoengine_openapi_client/models/no_geometry1.py @@ -23,9 +23,9 @@ from typing import Optional, Set from typing_extensions import Self -class TypedGeometryOneOf(BaseModel): +class NoGeometry1(BaseModel): """ - TypedGeometryOneOf + NoGeometry1 """ # noqa: E501 data: Optional[Any] = Field(alias="Data") __properties: ClassVar[List[str]] = ["Data"] @@ -48,7 +48,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of TypedGeometryOneOf from a JSON string""" + """Create an instance of NoGeometry1 from a JSON string""" return cls.from_dict(json.loads(json_str)) def to_dict(self) -> Dict[str, Any]: @@ -78,7 +78,7 @@ def to_dict(self) -> Dict[str, Any]: @classmethod def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of TypedGeometryOneOf from a dict""" + """Create an instance of NoGeometry1 from a dict""" if obj is None: return None diff --git a/python/geoengine_openapi_client/models/histogram_buckets_one_of.py b/python/geoengine_openapi_client/models/number.py similarity index 92% rename from python/geoengine_openapi_client/models/histogram_buckets_one_of.py rename to python/geoengine_openapi_client/models/number.py index 8d8c2db7..f6bce4a3 100644 --- a/python/geoengine_openapi_client/models/histogram_buckets_one_of.py +++ b/python/geoengine_openapi_client/models/number.py @@ -24,9 +24,9 @@ from typing import Optional, Set from typing_extensions import Self -class HistogramBucketsOneOf(BaseModel): +class Number(BaseModel): """ - HistogramBucketsOneOf + Number """ # noqa: E501 type: StrictStr value: Annotated[int, Field(strict=True, ge=0)] @@ -57,7 +57,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of HistogramBucketsOneOf from a JSON string""" + """Create an instance of Number from a JSON string""" return cls.from_dict(json.loads(json_str)) def to_dict(self) -> Dict[str, Any]: @@ -82,7 +82,7 @@ def to_dict(self) -> Dict[str, Any]: @classmethod def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of HistogramBucketsOneOf from a dict""" + """Create an instance of Number from a dict""" if obj is None: return None diff --git a/python/geoengine_openapi_client/models/percentile_estimate_aggregation.py b/python/geoengine_openapi_client/models/percentile_estimate_aggregation.py new file mode 100644 index 00000000..0e8670b5 --- /dev/null +++ b/python/geoengine_openapi_client/models/percentile_estimate_aggregation.py @@ -0,0 +1,99 @@ +# coding: utf-8 + +""" + Geo Engine API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.9.0 + Contact: dev@geoengine.de + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictFloat, StrictInt, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Union +from typing import Optional, Set +from typing_extensions import Self + +class PercentileEstimateAggregation(BaseModel): + """ + PercentileEstimateAggregation + """ # noqa: E501 + ignore_no_data: StrictBool = Field(alias="ignoreNoData") + percentile: Union[StrictFloat, StrictInt] + type: StrictStr + __properties: ClassVar[List[str]] = ["ignoreNoData", "percentile", "type"] + + @field_validator('type') + def type_validate_enum(cls, value): + """Validates the enum""" + if value not in set(['percentileEstimate']): + raise ValueError("must be one of enum values ('percentileEstimate')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of PercentileEstimateAggregation from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of PercentileEstimateAggregation from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "ignoreNoData": obj.get("ignoreNoData"), + "percentile": obj.get("percentile"), + "type": obj.get("type") + }) + return _obj + + diff --git a/python/geoengine_openapi_client/models/raster_operator.py b/python/geoengine_openapi_client/models/raster_operator.py index 838c7d20..9884fcb6 100644 --- a/python/geoengine_openapi_client/models/raster_operator.py +++ b/python/geoengine_openapi_client/models/raster_operator.py @@ -19,22 +19,37 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator from typing import Any, List, Optional from geoengine_openapi_client.models.gdal_source import GdalSource +from geoengine_openapi_client.models.multi_band_gdal_source import MultiBandGdalSource from pydantic import StrictStr, Field from typing import Union, List, Set, Optional, Dict from typing_extensions import Literal, Self -RASTEROPERATOR_ONE_OF_SCHEMAS = ["Expression", "GdalSource"] +RASTEROPERATOR_ONE_OF_SCHEMAS = ["BandFilter", "Expression", "GdalSource", "Interpolation", "MultiBandGdalSource", "RasterStacker", "RasterTypeConversion", "Reprojection", "TemporalRasterAggregation"] class RasterOperator(BaseModel): """ An operator that produces raster data. """ + # data type: BandFilter + oneof_schema_1_validator: Optional[BandFilter] = None # data type: Expression - oneof_schema_1_validator: Optional[Expression] = None + oneof_schema_2_validator: Optional[Expression] = None # data type: GdalSource - oneof_schema_2_validator: Optional[GdalSource] = None - actual_instance: Optional[Union[Expression, GdalSource]] = None - one_of_schemas: Set[str] = { "Expression", "GdalSource" } + oneof_schema_3_validator: Optional[GdalSource] = None + # data type: Interpolation + oneof_schema_4_validator: Optional[Interpolation] = None + # data type: MultiBandGdalSource + oneof_schema_5_validator: Optional[MultiBandGdalSource] = None + # data type: RasterStacker + oneof_schema_6_validator: Optional[RasterStacker] = None + # data type: RasterTypeConversion + oneof_schema_7_validator: Optional[RasterTypeConversion] = None + # data type: Reprojection + oneof_schema_8_validator: Optional[Reprojection] = None + # data type: TemporalRasterAggregation + oneof_schema_9_validator: Optional[TemporalRasterAggregation] = None + actual_instance: Optional[Union[BandFilter, Expression, GdalSource, Interpolation, MultiBandGdalSource, RasterStacker, RasterTypeConversion, Reprojection, TemporalRasterAggregation]] = None + one_of_schemas: Set[str] = { "BandFilter", "Expression", "GdalSource", "Interpolation", "MultiBandGdalSource", "RasterStacker", "RasterTypeConversion", "Reprojection", "TemporalRasterAggregation" } model_config = ConfigDict( validate_assignment=True, @@ -60,6 +75,11 @@ def actual_instance_must_validate_oneof(cls, v): instance = RasterOperator.model_construct() error_messages = [] match = 0 + # validate data type: BandFilter + if not isinstance(v, BandFilter): + error_messages.append(f"Error! Input type `{type(v)}` is not `BandFilter`") + else: + match += 1 # validate data type: Expression if not isinstance(v, Expression): error_messages.append(f"Error! Input type `{type(v)}` is not `Expression`") @@ -70,12 +90,42 @@ def actual_instance_must_validate_oneof(cls, v): error_messages.append(f"Error! Input type `{type(v)}` is not `GdalSource`") else: match += 1 + # validate data type: Interpolation + if not isinstance(v, Interpolation): + error_messages.append(f"Error! Input type `{type(v)}` is not `Interpolation`") + else: + match += 1 + # validate data type: MultiBandGdalSource + if not isinstance(v, MultiBandGdalSource): + error_messages.append(f"Error! Input type `{type(v)}` is not `MultiBandGdalSource`") + else: + match += 1 + # validate data type: RasterStacker + if not isinstance(v, RasterStacker): + error_messages.append(f"Error! Input type `{type(v)}` is not `RasterStacker`") + else: + match += 1 + # validate data type: RasterTypeConversion + if not isinstance(v, RasterTypeConversion): + error_messages.append(f"Error! Input type `{type(v)}` is not `RasterTypeConversion`") + else: + match += 1 + # validate data type: Reprojection + if not isinstance(v, Reprojection): + error_messages.append(f"Error! Input type `{type(v)}` is not `Reprojection`") + else: + match += 1 + # validate data type: TemporalRasterAggregation + if not isinstance(v, TemporalRasterAggregation): + error_messages.append(f"Error! Input type `{type(v)}` is not `TemporalRasterAggregation`") + else: + match += 1 if match > 1: # more than 1 match - raise ValueError("Multiple matches found when setting `actual_instance` in RasterOperator with oneOf schemas: Expression, GdalSource. Details: " + ", ".join(error_messages)) + raise ValueError("Multiple matches found when setting `actual_instance` in RasterOperator with oneOf schemas: BandFilter, Expression, GdalSource, Interpolation, MultiBandGdalSource, RasterStacker, RasterTypeConversion, Reprojection, TemporalRasterAggregation. Details: " + ", ".join(error_messages)) elif match == 0: # no match - raise ValueError("No match found when setting `actual_instance` in RasterOperator with oneOf schemas: Expression, GdalSource. Details: " + ", ".join(error_messages)) + raise ValueError("No match found when setting `actual_instance` in RasterOperator with oneOf schemas: BandFilter, Expression, GdalSource, Interpolation, MultiBandGdalSource, RasterStacker, RasterTypeConversion, Reprojection, TemporalRasterAggregation. Details: " + ", ".join(error_messages)) else: return v @@ -95,6 +145,11 @@ def from_json(cls, json_str: str) -> Self: if not _data_type: raise ValueError("Failed to lookup data type from the field `type` in the input.") + # check if data type is `BandFilter` + if _data_type == "BandFilter": + instance.actual_instance = BandFilter.from_json(json_str) + return instance + # check if data type is `Expression` if _data_type == "Expression": instance.actual_instance = Expression.from_json(json_str) @@ -105,6 +160,42 @@ def from_json(cls, json_str: str) -> Self: instance.actual_instance = GdalSource.from_json(json_str) return instance + # check if data type is `Interpolation` + if _data_type == "Interpolation": + instance.actual_instance = Interpolation.from_json(json_str) + return instance + + # check if data type is `MultiBandGdalSource` + if _data_type == "MultiBandGdalSource": + instance.actual_instance = MultiBandGdalSource.from_json(json_str) + return instance + + # check if data type is `RasterStacker` + if _data_type == "RasterStacker": + instance.actual_instance = RasterStacker.from_json(json_str) + return instance + + # check if data type is `RasterTypeConversion` + if _data_type == "RasterTypeConversion": + instance.actual_instance = RasterTypeConversion.from_json(json_str) + return instance + + # check if data type is `Reprojection` + if _data_type == "Reprojection": + instance.actual_instance = Reprojection.from_json(json_str) + return instance + + # check if data type is `TemporalRasterAggregation` + if _data_type == "TemporalRasterAggregation": + instance.actual_instance = TemporalRasterAggregation.from_json(json_str) + return instance + + # deserialize data into BandFilter + try: + instance.actual_instance = BandFilter.from_json(json_str) + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) # deserialize data into Expression try: instance.actual_instance = Expression.from_json(json_str) @@ -117,13 +208,49 @@ def from_json(cls, json_str: str) -> Self: match += 1 except (ValidationError, ValueError) as e: error_messages.append(str(e)) + # deserialize data into Interpolation + try: + instance.actual_instance = Interpolation.from_json(json_str) + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into MultiBandGdalSource + try: + instance.actual_instance = MultiBandGdalSource.from_json(json_str) + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into RasterStacker + try: + instance.actual_instance = RasterStacker.from_json(json_str) + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into RasterTypeConversion + try: + instance.actual_instance = RasterTypeConversion.from_json(json_str) + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into Reprojection + try: + instance.actual_instance = Reprojection.from_json(json_str) + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into TemporalRasterAggregation + try: + instance.actual_instance = TemporalRasterAggregation.from_json(json_str) + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) if match > 1: # more than 1 match - raise ValueError("Multiple matches found when deserializing the JSON string into RasterOperator with oneOf schemas: Expression, GdalSource. Details: " + ", ".join(error_messages)) + raise ValueError("Multiple matches found when deserializing the JSON string into RasterOperator with oneOf schemas: BandFilter, Expression, GdalSource, Interpolation, MultiBandGdalSource, RasterStacker, RasterTypeConversion, Reprojection, TemporalRasterAggregation. Details: " + ", ".join(error_messages)) elif match == 0: # no match - raise ValueError("No match found when deserializing the JSON string into RasterOperator with oneOf schemas: Expression, GdalSource. Details: " + ", ".join(error_messages)) + raise ValueError("No match found when deserializing the JSON string into RasterOperator with oneOf schemas: BandFilter, Expression, GdalSource, Interpolation, MultiBandGdalSource, RasterStacker, RasterTypeConversion, Reprojection, TemporalRasterAggregation. Details: " + ", ".join(error_messages)) else: return instance @@ -137,7 +264,7 @@ def to_json(self) -> str: else: return json.dumps(self.actual_instance) - def to_dict(self) -> Optional[Union[Dict[str, Any], Expression, GdalSource]]: + def to_dict(self) -> Optional[Union[Dict[str, Any], BandFilter, Expression, GdalSource, Interpolation, MultiBandGdalSource, RasterStacker, RasterTypeConversion, Reprojection, TemporalRasterAggregation]]: """Returns the dict representation of the actual instance""" if self.actual_instance is None: return None @@ -152,7 +279,13 @@ def to_str(self) -> str: """Returns the string representation of the actual instance""" return pprint.pformat(self.model_dump()) +from geoengine_openapi_client.models.band_filter import BandFilter from geoengine_openapi_client.models.expression import Expression +from geoengine_openapi_client.models.interpolation import Interpolation +from geoengine_openapi_client.models.raster_stacker import RasterStacker +from geoengine_openapi_client.models.raster_type_conversion import RasterTypeConversion +from geoengine_openapi_client.models.reprojection import Reprojection +from geoengine_openapi_client.models.temporal_raster_aggregation import TemporalRasterAggregation # TODO: Rewrite to not use raise_errors RasterOperator.model_rebuild(raise_errors=False) diff --git a/python/geoengine_openapi_client/models/raster_stacker.py b/python/geoengine_openapi_client/models/raster_stacker.py new file mode 100644 index 00000000..2c13706b --- /dev/null +++ b/python/geoengine_openapi_client/models/raster_stacker.py @@ -0,0 +1,109 @@ +# coding: utf-8 + +""" + Geo Engine API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.9.0 + Contact: dev@geoengine.de + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List +from geoengine_openapi_client.models.raster_stacker_parameters import RasterStackerParameters +from typing import Optional, Set +from typing_extensions import Self + +class RasterStacker(BaseModel): + """ + The `RasterStacker` stacks all of its inputs into a single raster time series. It queries all inputs and combines them by band, space, and then time. The output raster has as many bands as the sum of all input bands. Tiles are automatically temporally aligned. All inputs must have the same data type and spatial reference. ## Inputs The `RasterStacker` operator expects multiple raster inputs. + """ # noqa: E501 + params: RasterStackerParameters + sources: MultipleRasterSources + type: StrictStr + __properties: ClassVar[List[str]] = ["params", "sources", "type"] + + @field_validator('type') + def type_validate_enum(cls, value): + """Validates the enum""" + if value not in set(['RasterStacker']): + raise ValueError("must be one of enum values ('RasterStacker')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of RasterStacker from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of params + if self.params: + _dict['params'] = self.params.to_dict() + # override the default output from pydantic by calling `to_dict()` of sources + if self.sources: + _dict['sources'] = self.sources.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of RasterStacker from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "params": RasterStackerParameters.from_dict(obj["params"]) if obj.get("params") is not None else None, + "sources": MultipleRasterSources.from_dict(obj["sources"]) if obj.get("sources") is not None else None, + "type": obj.get("type") + }) + return _obj + +from geoengine_openapi_client.models.multiple_raster_sources import MultipleRasterSources +# TODO: Rewrite to not use raise_errors +RasterStacker.model_rebuild(raise_errors=False) + diff --git a/python/geoengine_openapi_client/models/raster_stacker_parameters.py b/python/geoengine_openapi_client/models/raster_stacker_parameters.py new file mode 100644 index 00000000..5d5cadef --- /dev/null +++ b/python/geoengine_openapi_client/models/raster_stacker_parameters.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Geo Engine API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.9.0 + Contact: dev@geoengine.de + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field +from typing import Any, ClassVar, Dict, List +from geoengine_openapi_client.models.rename_bands import RenameBands +from typing import Optional, Set +from typing_extensions import Self + +class RasterStackerParameters(BaseModel): + """ + Parameters for the `RasterStacker` operator. + """ # noqa: E501 + rename_bands: RenameBands = Field(description="Strategy for deriving output band names. - `default`: appends ` (n)` with the smallest `n` that avoids a conflict. - `suffix`: appends one suffix per input. - `rename`: explicitly provides names for all resulting bands.", alias="renameBands") + __properties: ClassVar[List[str]] = ["renameBands"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of RasterStackerParameters from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of rename_bands + if self.rename_bands: + _dict['renameBands'] = self.rename_bands.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of RasterStackerParameters from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "renameBands": RenameBands.from_dict(obj["renameBands"]) if obj.get("renameBands") is not None else None + }) + return _obj + + diff --git a/python/geoengine_openapi_client/models/raster_type_conversion.py b/python/geoengine_openapi_client/models/raster_type_conversion.py new file mode 100644 index 00000000..13e39514 --- /dev/null +++ b/python/geoengine_openapi_client/models/raster_type_conversion.py @@ -0,0 +1,109 @@ +# coding: utf-8 + +""" + Geo Engine API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.9.0 + Contact: dev@geoengine.de + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List +from geoengine_openapi_client.models.raster_type_conversion_parameters import RasterTypeConversionParameters +from typing import Optional, Set +from typing_extensions import Self + +class RasterTypeConversion(BaseModel): + """ + The `RasterTypeConversion` operator changes the data type of raster pixels. Applying this conversion may cause precision loss. For example, converting `F32` value `3.1` to `U8` results in `3`. If a value is outside of the range of the target data type, it is clipped to the valid range of that type. For example, converting `F32` value `300.0` to `U8` results in `255`. ## Inputs The `RasterTypeConversion` operator expects exactly one _raster_ input. + """ # noqa: E501 + params: RasterTypeConversionParameters + sources: SingleRasterSource + type: StrictStr + __properties: ClassVar[List[str]] = ["params", "sources", "type"] + + @field_validator('type') + def type_validate_enum(cls, value): + """Validates the enum""" + if value not in set(['RasterTypeConversion']): + raise ValueError("must be one of enum values ('RasterTypeConversion')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of RasterTypeConversion from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of params + if self.params: + _dict['params'] = self.params.to_dict() + # override the default output from pydantic by calling `to_dict()` of sources + if self.sources: + _dict['sources'] = self.sources.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of RasterTypeConversion from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "params": RasterTypeConversionParameters.from_dict(obj["params"]) if obj.get("params") is not None else None, + "sources": SingleRasterSource.from_dict(obj["sources"]) if obj.get("sources") is not None else None, + "type": obj.get("type") + }) + return _obj + +from geoengine_openapi_client.models.single_raster_source import SingleRasterSource +# TODO: Rewrite to not use raise_errors +RasterTypeConversion.model_rebuild(raise_errors=False) + diff --git a/python/geoengine_openapi_client/models/raster_type_conversion_parameters.py b/python/geoengine_openapi_client/models/raster_type_conversion_parameters.py new file mode 100644 index 00000000..db20242d --- /dev/null +++ b/python/geoengine_openapi_client/models/raster_type_conversion_parameters.py @@ -0,0 +1,89 @@ +# coding: utf-8 + +""" + Geo Engine API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.9.0 + Contact: dev@geoengine.de + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field +from typing import Any, ClassVar, Dict, List +from geoengine_openapi_client.models.raster_data_type import RasterDataType +from typing import Optional, Set +from typing_extensions import Self + +class RasterTypeConversionParameters(BaseModel): + """ + Parameters for the `RasterTypeConversion` operator. + """ # noqa: E501 + output_data_type: RasterDataType = Field(description="Output raster data type.", alias="outputDataType") + __properties: ClassVar[List[str]] = ["outputDataType"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of RasterTypeConversionParameters from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of RasterTypeConversionParameters from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "outputDataType": obj.get("outputDataType") + }) + return _obj + + diff --git a/python/geoengine_openapi_client/models/time_dimension_one_of.py b/python/geoengine_openapi_client/models/regular.py similarity index 93% rename from python/geoengine_openapi_client/models/time_dimension_one_of.py rename to python/geoengine_openapi_client/models/regular.py index 75268c5b..885063ed 100644 --- a/python/geoengine_openapi_client/models/time_dimension_one_of.py +++ b/python/geoengine_openapi_client/models/regular.py @@ -25,9 +25,9 @@ from typing import Optional, Set from typing_extensions import Self -class TimeDimensionOneOf(RegularTimeDimension): +class Regular(RegularTimeDimension): """ - TimeDimensionOneOf + Regular """ # noqa: E501 type: StrictStr __properties: ClassVar[List[str]] = ["origin", "step", "type"] @@ -57,7 +57,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of TimeDimensionOneOf from a JSON string""" + """Create an instance of Regular from a JSON string""" return cls.from_dict(json.loads(json_str)) def to_dict(self) -> Dict[str, Any]: @@ -85,7 +85,7 @@ def to_dict(self) -> Dict[str, Any]: @classmethod def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of TimeDimensionOneOf from a dict""" + """Create an instance of Regular from a dict""" if obj is None: return None diff --git a/python/geoengine_openapi_client/models/rename.py b/python/geoengine_openapi_client/models/rename.py new file mode 100644 index 00000000..0ea72304 --- /dev/null +++ b/python/geoengine_openapi_client/models/rename.py @@ -0,0 +1,97 @@ +# coding: utf-8 + +""" + Geo Engine API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.9.0 + Contact: dev@geoengine.de + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List +from typing import Optional, Set +from typing_extensions import Self + +class Rename(BaseModel): + """ + Rename + """ # noqa: E501 + type: StrictStr + values: List[StrictStr] + __properties: ClassVar[List[str]] = ["type", "values"] + + @field_validator('type') + def type_validate_enum(cls, value): + """Validates the enum""" + if value not in set(['rename']): + raise ValueError("must be one of enum values ('rename')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of Rename from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of Rename from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "type": obj.get("type"), + "values": obj.get("values") + }) + return _obj + + diff --git a/python/geoengine_openapi_client/models/rename_bands.py b/python/geoengine_openapi_client/models/rename_bands.py new file mode 100644 index 00000000..e83abb81 --- /dev/null +++ b/python/geoengine_openapi_client/models/rename_bands.py @@ -0,0 +1,152 @@ +# coding: utf-8 + +""" + Geo Engine API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.9.0 + Contact: dev@geoengine.de + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import json +import pprint +from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator +from typing import Any, List, Optional +from geoengine_openapi_client.models.default import Default +from geoengine_openapi_client.models.rename import Rename +from geoengine_openapi_client.models.suffix import Suffix +from pydantic import StrictStr, Field +from typing import Union, List, Set, Optional, Dict +from typing_extensions import Literal, Self + +RENAMEBANDS_ONE_OF_SCHEMAS = ["Default", "Rename", "Suffix"] + +class RenameBands(BaseModel): + """ + RenameBands + """ + # data type: Default + oneof_schema_1_validator: Optional[Default] = None + # data type: Suffix + oneof_schema_2_validator: Optional[Suffix] = None + # data type: Rename + oneof_schema_3_validator: Optional[Rename] = None + actual_instance: Optional[Union[Default, Rename, Suffix]] = None + one_of_schemas: Set[str] = { "Default", "Rename", "Suffix" } + + model_config = ConfigDict( + validate_assignment=True, + protected_namespaces=(), + ) + + + def __init__(self, *args, **kwargs) -> None: + if args: + if len(args) > 1: + raise ValueError("If a position argument is used, only 1 is allowed to set `actual_instance`") + if kwargs: + raise ValueError("If a position argument is used, keyword arguments cannot be used.") + super().__init__(actual_instance=args[0]) + else: + super().__init__(**kwargs) + + @field_validator('actual_instance') + def actual_instance_must_validate_oneof(cls, v): + instance = RenameBands.model_construct() + error_messages = [] + match = 0 + # validate data type: Default + if not isinstance(v, Default): + error_messages.append(f"Error! Input type `{type(v)}` is not `Default`") + else: + match += 1 + # validate data type: Suffix + if not isinstance(v, Suffix): + error_messages.append(f"Error! Input type `{type(v)}` is not `Suffix`") + else: + match += 1 + # validate data type: Rename + if not isinstance(v, Rename): + error_messages.append(f"Error! Input type `{type(v)}` is not `Rename`") + else: + match += 1 + if match > 1: + # more than 1 match + raise ValueError("Multiple matches found when setting `actual_instance` in RenameBands with oneOf schemas: Default, Rename, Suffix. Details: " + ", ".join(error_messages)) + elif match == 0: + # no match + raise ValueError("No match found when setting `actual_instance` in RenameBands with oneOf schemas: Default, Rename, Suffix. Details: " + ", ".join(error_messages)) + else: + return v + + @classmethod + def from_dict(cls, obj: Union[str, Dict[str, Any]]) -> Self: + return cls.from_json(json.dumps(obj)) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Returns the object represented by the json string""" + instance = cls.model_construct() + error_messages = [] + match = 0 + + # deserialize data into Default + try: + instance.actual_instance = Default.from_json(json_str) + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into Suffix + try: + instance.actual_instance = Suffix.from_json(json_str) + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into Rename + try: + instance.actual_instance = Rename.from_json(json_str) + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + + if match > 1: + # more than 1 match + raise ValueError("Multiple matches found when deserializing the JSON string into RenameBands with oneOf schemas: Default, Rename, Suffix. Details: " + ", ".join(error_messages)) + elif match == 0: + # no match + raise ValueError("No match found when deserializing the JSON string into RenameBands with oneOf schemas: Default, Rename, Suffix. Details: " + ", ".join(error_messages)) + else: + return instance + + def to_json(self) -> str: + """Returns the JSON representation of the actual instance""" + if self.actual_instance is None: + return "null" + + if hasattr(self.actual_instance, "to_json") and callable(self.actual_instance.to_json): + return self.actual_instance.to_json() + else: + return json.dumps(self.actual_instance) + + def to_dict(self) -> Optional[Union[Dict[str, Any], Default, Rename, Suffix]]: + """Returns the dict representation of the actual instance""" + if self.actual_instance is None: + return None + + if hasattr(self.actual_instance, "to_dict") and callable(self.actual_instance.to_dict): + return self.actual_instance.to_dict() + else: + # primitive type + return self.actual_instance + + def to_str(self) -> str: + """Returns the string representation of the actual instance""" + return pprint.pformat(self.model_dump()) + + diff --git a/python/geoengine_openapi_client/models/reprojection.py b/python/geoengine_openapi_client/models/reprojection.py new file mode 100644 index 00000000..3af73093 --- /dev/null +++ b/python/geoengine_openapi_client/models/reprojection.py @@ -0,0 +1,109 @@ +# coding: utf-8 + +""" + Geo Engine API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.9.0 + Contact: dev@geoengine.de + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List +from geoengine_openapi_client.models.reprojection_parameters import ReprojectionParameters +from typing import Optional, Set +from typing_extensions import Self + +class Reprojection(BaseModel): + """ + The `Reprojection` operator reprojects data from one spatial reference system to another. It accepts exactly one input which can either be a raster or a vector data stream. The operator produces all data that, after reprojection, is contained in the query rectangle. ## Data Type Specifics The concrete behavior depends on the data type. ### Vector Data The operator reprojects all coordinates of the features individually. The result contains all features that, after reprojection, are intersected by the query rectangle. ### Raster Data To create tiles in the target projection, the operator loads corresponding tiles in the source projection. For each output pixel, the value of the nearest input pixel is used. If parts of a tile are outside of the source extent after projection, the operator produces NO DATA values. ## Inputs The `Reprojection` operator expects exactly one _raster_ or _vector_ input. ## Errors The operator returns an error if the target projection is unknown or if input data cannot be reprojected. + """ # noqa: E501 + params: ReprojectionParameters + sources: SingleRasterOrVectorSource + type: StrictStr + __properties: ClassVar[List[str]] = ["params", "sources", "type"] + + @field_validator('type') + def type_validate_enum(cls, value): + """Validates the enum""" + if value not in set(['Reprojection']): + raise ValueError("must be one of enum values ('Reprojection')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of Reprojection from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of params + if self.params: + _dict['params'] = self.params.to_dict() + # override the default output from pydantic by calling `to_dict()` of sources + if self.sources: + _dict['sources'] = self.sources.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of Reprojection from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "params": ReprojectionParameters.from_dict(obj["params"]) if obj.get("params") is not None else None, + "sources": SingleRasterOrVectorSource.from_dict(obj["sources"]) if obj.get("sources") is not None else None, + "type": obj.get("type") + }) + return _obj + +from geoengine_openapi_client.models.single_raster_or_vector_source import SingleRasterOrVectorSource +# TODO: Rewrite to not use raise_errors +Reprojection.model_rebuild(raise_errors=False) + diff --git a/python/geoengine_openapi_client/models/reprojection_parameters.py b/python/geoengine_openapi_client/models/reprojection_parameters.py new file mode 100644 index 00000000..ff2adf3a --- /dev/null +++ b/python/geoengine_openapi_client/models/reprojection_parameters.py @@ -0,0 +1,91 @@ +# coding: utf-8 + +""" + Geo Engine API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.9.0 + Contact: dev@geoengine.de + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from geoengine_openapi_client.models.derive_out_raster_specs_source import DeriveOutRasterSpecsSource +from typing import Optional, Set +from typing_extensions import Self + +class ReprojectionParameters(BaseModel): + """ + Parameters for the `Reprojection` operator. + """ # noqa: E501 + derive_out_spec: Optional[DeriveOutRasterSpecsSource] = Field(default=None, description="Controls how raster output bounds are derived. The default `projectionBounds` usually keeps a projection-aligned target grid, while `dataBounds` derives it directly from source data bounds.", alias="deriveOutSpec") + target_spatial_reference: StrictStr = Field(description="Target spatial reference system.", alias="targetSpatialReference") + __properties: ClassVar[List[str]] = ["deriveOutSpec", "targetSpatialReference"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ReprojectionParameters from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ReprojectionParameters from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "deriveOutSpec": obj.get("deriveOutSpec"), + "targetSpatialReference": obj.get("targetSpatialReference") + }) + return _obj + + diff --git a/python/geoengine_openapi_client/models/resolution.py b/python/geoengine_openapi_client/models/resolution.py new file mode 100644 index 00000000..6fdd72e6 --- /dev/null +++ b/python/geoengine_openapi_client/models/resolution.py @@ -0,0 +1,99 @@ +# coding: utf-8 + +""" + Geo Engine API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.9.0 + Contact: dev@geoengine.de + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, StrictFloat, StrictInt, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Union +from typing import Optional, Set +from typing_extensions import Self + +class Resolution(BaseModel): + """ + Explicit output resolution (`x`, `y`) in target coordinates. + """ # noqa: E501 + type: StrictStr + x: Union[StrictFloat, StrictInt] + y: Union[StrictFloat, StrictInt] + __properties: ClassVar[List[str]] = ["type", "x", "y"] + + @field_validator('type') + def type_validate_enum(cls, value): + """Validates the enum""" + if value not in set(['resolution']): + raise ValueError("must be one of enum values ('resolution')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of Resolution from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of Resolution from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "type": obj.get("type"), + "x": obj.get("x"), + "y": obj.get("y") + }) + return _obj + + diff --git a/python/geoengine_openapi_client/models/single_raster_or_vector_operator.py b/python/geoengine_openapi_client/models/single_raster_or_vector_operator.py index ef8b702a..f4206cbe 100644 --- a/python/geoengine_openapi_client/models/single_raster_or_vector_operator.py +++ b/python/geoengine_openapi_client/models/single_raster_or_vector_operator.py @@ -18,8 +18,6 @@ import pprint from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator from typing import Any, List, Optional -from geoengine_openapi_client.models.raster_operator import RasterOperator -from geoengine_openapi_client.models.vector_operator import VectorOperator from pydantic import StrictStr, Field from typing import Union, List, Set, Optional, Dict from typing_extensions import Literal, Self @@ -106,6 +104,11 @@ def from_json(cls, json_str: str) -> Self: instance.actual_instance = RasterVectorJoin.from_json(json_str) return instance + # check if data type is `Reprojection` + if _data_type == "Reprojection": + instance.actual_instance = Reprojection.from_json(json_str) + return instance + # check if data type is `RasterOperator` if _data_type == "RasterOperator": instance.actual_instance = RasterOperator.from_json(json_str) @@ -163,4 +166,8 @@ def to_str(self) -> str: """Returns the string representation of the actual instance""" return pprint.pformat(self.model_dump()) +from geoengine_openapi_client.models.raster_operator import RasterOperator +from geoengine_openapi_client.models.vector_operator import VectorOperator +# TODO: Rewrite to not use raise_errors +SingleRasterOrVectorOperator.model_rebuild(raise_errors=False) diff --git a/python/geoengine_openapi_client/models/single_raster_or_vector_source.py b/python/geoengine_openapi_client/models/single_raster_or_vector_source.py index 135194ad..9c513383 100644 --- a/python/geoengine_openapi_client/models/single_raster_or_vector_source.py +++ b/python/geoengine_openapi_client/models/single_raster_or_vector_source.py @@ -20,7 +20,6 @@ from pydantic import BaseModel, ConfigDict from typing import Any, ClassVar, Dict, List -from geoengine_openapi_client.models.single_raster_or_vector_operator import SingleRasterOrVectorOperator from typing import Optional, Set from typing_extensions import Self @@ -89,4 +88,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: }) return _obj +from geoengine_openapi_client.models.single_raster_or_vector_operator import SingleRasterOrVectorOperator +# TODO: Rewrite to not use raise_errors +SingleRasterOrVectorSource.model_rebuild(raise_errors=False) diff --git a/python/geoengine_openapi_client/models/single_vector_multiple_raster_sources.py b/python/geoengine_openapi_client/models/single_vector_multiple_raster_sources.py index 0ec6eb52..fa093e5d 100644 --- a/python/geoengine_openapi_client/models/single_vector_multiple_raster_sources.py +++ b/python/geoengine_openapi_client/models/single_vector_multiple_raster_sources.py @@ -20,7 +20,6 @@ from pydantic import BaseModel, ConfigDict from typing import Any, ClassVar, Dict, List -from geoengine_openapi_client.models.raster_operator import RasterOperator from typing import Optional, Set from typing_extensions import Self @@ -98,6 +97,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: }) return _obj +from geoengine_openapi_client.models.raster_operator import RasterOperator from geoengine_openapi_client.models.vector_operator import VectorOperator # TODO: Rewrite to not use raise_errors SingleVectorMultipleRasterSources.model_rebuild(raise_errors=False) diff --git a/python/geoengine_openapi_client/models/histogram_buckets_one_of1.py b/python/geoengine_openapi_client/models/square_root_choice_rule.py similarity index 92% rename from python/geoengine_openapi_client/models/histogram_buckets_one_of1.py rename to python/geoengine_openapi_client/models/square_root_choice_rule.py index 369341d9..2504ad3f 100644 --- a/python/geoengine_openapi_client/models/histogram_buckets_one_of1.py +++ b/python/geoengine_openapi_client/models/square_root_choice_rule.py @@ -24,9 +24,9 @@ from typing import Optional, Set from typing_extensions import Self -class HistogramBucketsOneOf1(BaseModel): +class SquareRootChoiceRule(BaseModel): """ - HistogramBucketsOneOf1 + SquareRootChoiceRule """ # noqa: E501 max_number_of_buckets: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="maxNumberOfBuckets") type: StrictStr @@ -57,7 +57,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of HistogramBucketsOneOf1 from a JSON string""" + """Create an instance of SquareRootChoiceRule from a JSON string""" return cls.from_dict(json.loads(json_str)) def to_dict(self) -> Dict[str, Any]: @@ -82,7 +82,7 @@ def to_dict(self) -> Dict[str, Any]: @classmethod def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of HistogramBucketsOneOf1 from a dict""" + """Create an instance of SquareRootChoiceRule from a dict""" if obj is None: return None diff --git a/python/geoengine_openapi_client/models/sum_aggregation.py b/python/geoengine_openapi_client/models/sum_aggregation.py new file mode 100644 index 00000000..e013d2ed --- /dev/null +++ b/python/geoengine_openapi_client/models/sum_aggregation.py @@ -0,0 +1,97 @@ +# coding: utf-8 + +""" + Geo Engine API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.9.0 + Contact: dev@geoengine.de + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List +from typing import Optional, Set +from typing_extensions import Self + +class SumAggregation(BaseModel): + """ + SumAggregation + """ # noqa: E501 + ignore_no_data: StrictBool = Field(alias="ignoreNoData") + type: StrictStr + __properties: ClassVar[List[str]] = ["ignoreNoData", "type"] + + @field_validator('type') + def type_validate_enum(cls, value): + """Validates the enum""" + if value not in set(['sum']): + raise ValueError("must be one of enum values ('sum')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of SumAggregation from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of SumAggregation from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "ignoreNoData": obj.get("ignoreNoData"), + "type": obj.get("type") + }) + return _obj + + diff --git a/python/geoengine_openapi_client/models/temporal_raster_aggregation.py b/python/geoengine_openapi_client/models/temporal_raster_aggregation.py new file mode 100644 index 00000000..65da57c5 --- /dev/null +++ b/python/geoengine_openapi_client/models/temporal_raster_aggregation.py @@ -0,0 +1,109 @@ +# coding: utf-8 + +""" + Geo Engine API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.9.0 + Contact: dev@geoengine.de + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List +from geoengine_openapi_client.models.temporal_raster_aggregation_parameters import TemporalRasterAggregationParameters +from typing import Optional, Set +from typing_extensions import Self + +class TemporalRasterAggregation(BaseModel): + """ + The `TemporalRasterAggregation` operator aggregates a raster time series into uniform time windows. The output starts with the first window that contains the query start and contains all windows that overlap the query interval. Pixel values are computed by aggregating all input rasters that contribute to the current window. ## Inputs The `TemporalRasterAggregation` operator expects exactly one _raster_ input. ## Errors If the aggregation method is `first`, `last`, or `mean` and the input raster has no NO DATA value, an error is returned. + """ # noqa: E501 + params: TemporalRasterAggregationParameters + sources: SingleRasterSource + type: StrictStr + __properties: ClassVar[List[str]] = ["params", "sources", "type"] + + @field_validator('type') + def type_validate_enum(cls, value): + """Validates the enum""" + if value not in set(['TemporalRasterAggregation']): + raise ValueError("must be one of enum values ('TemporalRasterAggregation')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of TemporalRasterAggregation from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of params + if self.params: + _dict['params'] = self.params.to_dict() + # override the default output from pydantic by calling `to_dict()` of sources + if self.sources: + _dict['sources'] = self.sources.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of TemporalRasterAggregation from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "params": TemporalRasterAggregationParameters.from_dict(obj["params"]) if obj.get("params") is not None else None, + "sources": SingleRasterSource.from_dict(obj["sources"]) if obj.get("sources") is not None else None, + "type": obj.get("type") + }) + return _obj + +from geoengine_openapi_client.models.single_raster_source import SingleRasterSource +# TODO: Rewrite to not use raise_errors +TemporalRasterAggregation.model_rebuild(raise_errors=False) + diff --git a/python/geoengine_openapi_client/models/temporal_raster_aggregation_parameters.py b/python/geoengine_openapi_client/models/temporal_raster_aggregation_parameters.py new file mode 100644 index 00000000..878e5ed0 --- /dev/null +++ b/python/geoengine_openapi_client/models/temporal_raster_aggregation_parameters.py @@ -0,0 +1,113 @@ +# coding: utf-8 + +""" + Geo Engine API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.9.0 + Contact: dev@geoengine.de + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from geoengine_openapi_client.models.aggregation import Aggregation +from geoengine_openapi_client.models.raster_data_type import RasterDataType +from geoengine_openapi_client.models.time_step import TimeStep +from typing import Optional, Set +from typing_extensions import Self + +class TemporalRasterAggregationParameters(BaseModel): + """ + Parameters for the `TemporalRasterAggregation` operator. + """ # noqa: E501 + aggregation: Aggregation = Field(description="Aggregation method for values within each time window. Encountering NO DATA makes the aggregation result NO DATA unless `ignoreNoData` is `true` for the selected aggregation variant.") + output_type: Optional[RasterDataType] = Field(default=None, description="Optional output raster data type.", alias="outputType") + window: TimeStep = Field(description="Window size and granularity for the output time series.") + window_reference: Optional[StrictInt] = Field(default=None, description="Optional reference timestamp used as the anchor for window boundaries. If omitted, windows are anchored at `1970-01-01T00:00:00Z`.", alias="windowReference") + __properties: ClassVar[List[str]] = ["aggregation", "outputType", "window", "windowReference"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of TemporalRasterAggregationParameters from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of aggregation + if self.aggregation: + _dict['aggregation'] = self.aggregation.to_dict() + # override the default output from pydantic by calling `to_dict()` of window + if self.window: + _dict['window'] = self.window.to_dict() + # set to None if output_type (nullable) is None + # and model_fields_set contains the field + if self.output_type is None and "output_type" in self.model_fields_set: + _dict['outputType'] = None + + # set to None if window_reference (nullable) is None + # and model_fields_set contains the field + if self.window_reference is None and "window_reference" in self.model_fields_set: + _dict['windowReference'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of TemporalRasterAggregationParameters from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "aggregation": Aggregation.from_dict(obj["aggregation"]) if obj.get("aggregation") is not None else None, + "outputType": obj.get("outputType"), + "window": TimeStep.from_dict(obj["window"]) if obj.get("window") is not None else None, + "windowReference": obj.get("windowReference") + }) + return _obj + + diff --git a/python/geoengine_openapi_client/models/time_dimension.py b/python/geoengine_openapi_client/models/time_dimension.py index 18ea3887..f5aa2ab9 100644 --- a/python/geoengine_openapi_client/models/time_dimension.py +++ b/python/geoengine_openapi_client/models/time_dimension.py @@ -18,24 +18,24 @@ import pprint from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator from typing import Any, List, Optional -from geoengine_openapi_client.models.time_dimension_one_of import TimeDimensionOneOf -from geoengine_openapi_client.models.time_dimension_one_of1 import TimeDimensionOneOf1 +from geoengine_openapi_client.models.irregular import Irregular +from geoengine_openapi_client.models.regular import Regular from pydantic import StrictStr, Field from typing import Union, List, Set, Optional, Dict from typing_extensions import Literal, Self -TIMEDIMENSION_ONE_OF_SCHEMAS = ["TimeDimensionOneOf", "TimeDimensionOneOf1"] +TIMEDIMENSION_ONE_OF_SCHEMAS = ["Irregular", "Regular"] class TimeDimension(BaseModel): """ TimeDimension """ - # data type: TimeDimensionOneOf - oneof_schema_1_validator: Optional[TimeDimensionOneOf] = None - # data type: TimeDimensionOneOf1 - oneof_schema_2_validator: Optional[TimeDimensionOneOf1] = None - actual_instance: Optional[Union[TimeDimensionOneOf, TimeDimensionOneOf1]] = None - one_of_schemas: Set[str] = { "TimeDimensionOneOf", "TimeDimensionOneOf1" } + # data type: Regular + oneof_schema_1_validator: Optional[Regular] = None + # data type: Irregular + oneof_schema_2_validator: Optional[Irregular] = None + actual_instance: Optional[Union[Irregular, Regular]] = None + one_of_schemas: Set[str] = { "Irregular", "Regular" } model_config = ConfigDict( validate_assignment=True, @@ -58,22 +58,22 @@ def actual_instance_must_validate_oneof(cls, v): instance = TimeDimension.model_construct() error_messages = [] match = 0 - # validate data type: TimeDimensionOneOf - if not isinstance(v, TimeDimensionOneOf): - error_messages.append(f"Error! Input type `{type(v)}` is not `TimeDimensionOneOf`") + # validate data type: Regular + if not isinstance(v, Regular): + error_messages.append(f"Error! Input type `{type(v)}` is not `Regular`") else: match += 1 - # validate data type: TimeDimensionOneOf1 - if not isinstance(v, TimeDimensionOneOf1): - error_messages.append(f"Error! Input type `{type(v)}` is not `TimeDimensionOneOf1`") + # validate data type: Irregular + if not isinstance(v, Irregular): + error_messages.append(f"Error! Input type `{type(v)}` is not `Irregular`") else: match += 1 if match > 1: # more than 1 match - raise ValueError("Multiple matches found when setting `actual_instance` in TimeDimension with oneOf schemas: TimeDimensionOneOf, TimeDimensionOneOf1. Details: " + ", ".join(error_messages)) + raise ValueError("Multiple matches found when setting `actual_instance` in TimeDimension with oneOf schemas: Irregular, Regular. Details: " + ", ".join(error_messages)) elif match == 0: # no match - raise ValueError("No match found when setting `actual_instance` in TimeDimension with oneOf schemas: TimeDimensionOneOf, TimeDimensionOneOf1. Details: " + ", ".join(error_messages)) + raise ValueError("No match found when setting `actual_instance` in TimeDimension with oneOf schemas: Irregular, Regular. Details: " + ", ".join(error_messages)) else: return v @@ -88,25 +88,25 @@ def from_json(cls, json_str: str) -> Self: error_messages = [] match = 0 - # deserialize data into TimeDimensionOneOf + # deserialize data into Regular try: - instance.actual_instance = TimeDimensionOneOf.from_json(json_str) + instance.actual_instance = Regular.from_json(json_str) match += 1 except (ValidationError, ValueError) as e: error_messages.append(str(e)) - # deserialize data into TimeDimensionOneOf1 + # deserialize data into Irregular try: - instance.actual_instance = TimeDimensionOneOf1.from_json(json_str) + instance.actual_instance = Irregular.from_json(json_str) match += 1 except (ValidationError, ValueError) as e: error_messages.append(str(e)) if match > 1: # more than 1 match - raise ValueError("Multiple matches found when deserializing the JSON string into TimeDimension with oneOf schemas: TimeDimensionOneOf, TimeDimensionOneOf1. Details: " + ", ".join(error_messages)) + raise ValueError("Multiple matches found when deserializing the JSON string into TimeDimension with oneOf schemas: Irregular, Regular. Details: " + ", ".join(error_messages)) elif match == 0: # no match - raise ValueError("No match found when deserializing the JSON string into TimeDimension with oneOf schemas: TimeDimensionOneOf, TimeDimensionOneOf1. Details: " + ", ".join(error_messages)) + raise ValueError("No match found when deserializing the JSON string into TimeDimension with oneOf schemas: Irregular, Regular. Details: " + ", ".join(error_messages)) else: return instance @@ -120,7 +120,7 @@ def to_json(self) -> str: else: return json.dumps(self.actual_instance) - def to_dict(self) -> Optional[Union[Dict[str, Any], TimeDimensionOneOf, TimeDimensionOneOf1]]: + def to_dict(self) -> Optional[Union[Dict[str, Any], Irregular, Regular]]: """Returns the dict representation of the actual instance""" if self.actual_instance is None: return None diff --git a/python/geoengine_openapi_client/models/typed_geometry.py b/python/geoengine_openapi_client/models/typed_geometry.py index e3df2069..9ae8b865 100644 --- a/python/geoengine_openapi_client/models/typed_geometry.py +++ b/python/geoengine_openapi_client/models/typed_geometry.py @@ -18,30 +18,30 @@ import pprint from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator from typing import Any, List, Optional -from geoengine_openapi_client.models.typed_geometry_one_of import TypedGeometryOneOf -from geoengine_openapi_client.models.typed_geometry_one_of1 import TypedGeometryOneOf1 -from geoengine_openapi_client.models.typed_geometry_one_of2 import TypedGeometryOneOf2 -from geoengine_openapi_client.models.typed_geometry_one_of3 import TypedGeometryOneOf3 +from geoengine_openapi_client.models.multi_line_string1 import MultiLineString1 +from geoengine_openapi_client.models.multi_point1 import MultiPoint1 +from geoengine_openapi_client.models.multi_polygon1 import MultiPolygon1 +from geoengine_openapi_client.models.no_geometry1 import NoGeometry1 from pydantic import StrictStr, Field from typing import Union, List, Set, Optional, Dict from typing_extensions import Literal, Self -TYPEDGEOMETRY_ONE_OF_SCHEMAS = ["TypedGeometryOneOf", "TypedGeometryOneOf1", "TypedGeometryOneOf2", "TypedGeometryOneOf3"] +TYPEDGEOMETRY_ONE_OF_SCHEMAS = ["MultiLineString1", "MultiPoint1", "MultiPolygon1", "NoGeometry1"] class TypedGeometry(BaseModel): """ TypedGeometry """ - # data type: TypedGeometryOneOf - oneof_schema_1_validator: Optional[TypedGeometryOneOf] = None - # data type: TypedGeometryOneOf1 - oneof_schema_2_validator: Optional[TypedGeometryOneOf1] = None - # data type: TypedGeometryOneOf2 - oneof_schema_3_validator: Optional[TypedGeometryOneOf2] = None - # data type: TypedGeometryOneOf3 - oneof_schema_4_validator: Optional[TypedGeometryOneOf3] = None - actual_instance: Optional[Union[TypedGeometryOneOf, TypedGeometryOneOf1, TypedGeometryOneOf2, TypedGeometryOneOf3]] = None - one_of_schemas: Set[str] = { "TypedGeometryOneOf", "TypedGeometryOneOf1", "TypedGeometryOneOf2", "TypedGeometryOneOf3" } + # data type: NoGeometry1 + oneof_schema_1_validator: Optional[NoGeometry1] = None + # data type: MultiPoint1 + oneof_schema_2_validator: Optional[MultiPoint1] = None + # data type: MultiLineString1 + oneof_schema_3_validator: Optional[MultiLineString1] = None + # data type: MultiPolygon1 + oneof_schema_4_validator: Optional[MultiPolygon1] = None + actual_instance: Optional[Union[MultiLineString1, MultiPoint1, MultiPolygon1, NoGeometry1]] = None + one_of_schemas: Set[str] = { "MultiLineString1", "MultiPoint1", "MultiPolygon1", "NoGeometry1" } model_config = ConfigDict( validate_assignment=True, @@ -64,32 +64,32 @@ def actual_instance_must_validate_oneof(cls, v): instance = TypedGeometry.model_construct() error_messages = [] match = 0 - # validate data type: TypedGeometryOneOf - if not isinstance(v, TypedGeometryOneOf): - error_messages.append(f"Error! Input type `{type(v)}` is not `TypedGeometryOneOf`") + # validate data type: NoGeometry1 + if not isinstance(v, NoGeometry1): + error_messages.append(f"Error! Input type `{type(v)}` is not `NoGeometry1`") else: match += 1 - # validate data type: TypedGeometryOneOf1 - if not isinstance(v, TypedGeometryOneOf1): - error_messages.append(f"Error! Input type `{type(v)}` is not `TypedGeometryOneOf1`") + # validate data type: MultiPoint1 + if not isinstance(v, MultiPoint1): + error_messages.append(f"Error! Input type `{type(v)}` is not `MultiPoint1`") else: match += 1 - # validate data type: TypedGeometryOneOf2 - if not isinstance(v, TypedGeometryOneOf2): - error_messages.append(f"Error! Input type `{type(v)}` is not `TypedGeometryOneOf2`") + # validate data type: MultiLineString1 + if not isinstance(v, MultiLineString1): + error_messages.append(f"Error! Input type `{type(v)}` is not `MultiLineString1`") else: match += 1 - # validate data type: TypedGeometryOneOf3 - if not isinstance(v, TypedGeometryOneOf3): - error_messages.append(f"Error! Input type `{type(v)}` is not `TypedGeometryOneOf3`") + # validate data type: MultiPolygon1 + if not isinstance(v, MultiPolygon1): + error_messages.append(f"Error! Input type `{type(v)}` is not `MultiPolygon1`") else: match += 1 if match > 1: # more than 1 match - raise ValueError("Multiple matches found when setting `actual_instance` in TypedGeometry with oneOf schemas: TypedGeometryOneOf, TypedGeometryOneOf1, TypedGeometryOneOf2, TypedGeometryOneOf3. Details: " + ", ".join(error_messages)) + raise ValueError("Multiple matches found when setting `actual_instance` in TypedGeometry with oneOf schemas: MultiLineString1, MultiPoint1, MultiPolygon1, NoGeometry1. Details: " + ", ".join(error_messages)) elif match == 0: # no match - raise ValueError("No match found when setting `actual_instance` in TypedGeometry with oneOf schemas: TypedGeometryOneOf, TypedGeometryOneOf1, TypedGeometryOneOf2, TypedGeometryOneOf3. Details: " + ", ".join(error_messages)) + raise ValueError("No match found when setting `actual_instance` in TypedGeometry with oneOf schemas: MultiLineString1, MultiPoint1, MultiPolygon1, NoGeometry1. Details: " + ", ".join(error_messages)) else: return v @@ -104,37 +104,37 @@ def from_json(cls, json_str: str) -> Self: error_messages = [] match = 0 - # deserialize data into TypedGeometryOneOf + # deserialize data into NoGeometry1 try: - instance.actual_instance = TypedGeometryOneOf.from_json(json_str) + instance.actual_instance = NoGeometry1.from_json(json_str) match += 1 except (ValidationError, ValueError) as e: error_messages.append(str(e)) - # deserialize data into TypedGeometryOneOf1 + # deserialize data into MultiPoint1 try: - instance.actual_instance = TypedGeometryOneOf1.from_json(json_str) + instance.actual_instance = MultiPoint1.from_json(json_str) match += 1 except (ValidationError, ValueError) as e: error_messages.append(str(e)) - # deserialize data into TypedGeometryOneOf2 + # deserialize data into MultiLineString1 try: - instance.actual_instance = TypedGeometryOneOf2.from_json(json_str) + instance.actual_instance = MultiLineString1.from_json(json_str) match += 1 except (ValidationError, ValueError) as e: error_messages.append(str(e)) - # deserialize data into TypedGeometryOneOf3 + # deserialize data into MultiPolygon1 try: - instance.actual_instance = TypedGeometryOneOf3.from_json(json_str) + instance.actual_instance = MultiPolygon1.from_json(json_str) match += 1 except (ValidationError, ValueError) as e: error_messages.append(str(e)) if match > 1: # more than 1 match - raise ValueError("Multiple matches found when deserializing the JSON string into TypedGeometry with oneOf schemas: TypedGeometryOneOf, TypedGeometryOneOf1, TypedGeometryOneOf2, TypedGeometryOneOf3. Details: " + ", ".join(error_messages)) + raise ValueError("Multiple matches found when deserializing the JSON string into TypedGeometry with oneOf schemas: MultiLineString1, MultiPoint1, MultiPolygon1, NoGeometry1. Details: " + ", ".join(error_messages)) elif match == 0: # no match - raise ValueError("No match found when deserializing the JSON string into TypedGeometry with oneOf schemas: TypedGeometryOneOf, TypedGeometryOneOf1, TypedGeometryOneOf2, TypedGeometryOneOf3. Details: " + ", ".join(error_messages)) + raise ValueError("No match found when deserializing the JSON string into TypedGeometry with oneOf schemas: MultiLineString1, MultiPoint1, MultiPolygon1, NoGeometry1. Details: " + ", ".join(error_messages)) else: return instance @@ -148,7 +148,7 @@ def to_json(self) -> str: else: return json.dumps(self.actual_instance) - def to_dict(self) -> Optional[Union[Dict[str, Any], TypedGeometryOneOf, TypedGeometryOneOf1, TypedGeometryOneOf2, TypedGeometryOneOf3]]: + def to_dict(self) -> Optional[Union[Dict[str, Any], MultiLineString1, MultiPoint1, MultiPolygon1, NoGeometry1]]: """Returns the dict representation of the actual instance""" if self.actual_instance is None: return None diff --git a/python/geoengine_openapi_client/models/data_path_one_of1.py b/python/geoengine_openapi_client/models/upload.py similarity index 92% rename from python/geoengine_openapi_client/models/data_path_one_of1.py rename to python/geoengine_openapi_client/models/upload.py index fd7d0560..8d58cd1d 100644 --- a/python/geoengine_openapi_client/models/data_path_one_of1.py +++ b/python/geoengine_openapi_client/models/upload.py @@ -24,9 +24,9 @@ from typing import Optional, Set from typing_extensions import Self -class DataPathOneOf1(BaseModel): +class Upload(BaseModel): """ - DataPathOneOf1 + Upload """ # noqa: E501 upload: UUID __properties: ClassVar[List[str]] = ["upload"] @@ -49,7 +49,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of DataPathOneOf1 from a JSON string""" + """Create an instance of Upload from a JSON string""" return cls.from_dict(json.loads(json_str)) def to_dict(self) -> Dict[str, Any]: @@ -74,7 +74,7 @@ def to_dict(self) -> Dict[str, Any]: @classmethod def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of DataPathOneOf1 from a dict""" + """Create an instance of Upload from a dict""" if obj is None: return None diff --git a/python/geoengine_openapi_client/models/histogram_bounds_one_of1.py b/python/geoengine_openapi_client/models/values.py similarity index 83% rename from python/geoengine_openapi_client/models/histogram_bounds_one_of1.py rename to python/geoengine_openapi_client/models/values.py index b188a555..eb1e164b 100644 --- a/python/geoengine_openapi_client/models/histogram_bounds_one_of1.py +++ b/python/geoengine_openapi_client/models/values.py @@ -20,15 +20,15 @@ from pydantic import BaseModel, ConfigDict from typing import Any, ClassVar, Dict, List -from geoengine_openapi_client.models.histogram_bounds_one_of1_values import HistogramBoundsOneOf1Values +from geoengine_openapi_client.models.values_values import ValuesValues from typing import Optional, Set from typing_extensions import Self -class HistogramBoundsOneOf1(BaseModel): +class Values(BaseModel): """ - HistogramBoundsOneOf1 + Values """ # noqa: E501 - values: HistogramBoundsOneOf1Values + values: ValuesValues __properties: ClassVar[List[str]] = ["values"] model_config = ConfigDict( @@ -49,7 +49,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of HistogramBoundsOneOf1 from a JSON string""" + """Create an instance of Values from a JSON string""" return cls.from_dict(json.loads(json_str)) def to_dict(self) -> Dict[str, Any]: @@ -77,7 +77,7 @@ def to_dict(self) -> Dict[str, Any]: @classmethod def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of HistogramBoundsOneOf1 from a dict""" + """Create an instance of Values from a dict""" if obj is None: return None @@ -85,7 +85,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "values": HistogramBoundsOneOf1Values.from_dict(obj["values"]) if obj.get("values") is not None else None + "values": ValuesValues.from_dict(obj["values"]) if obj.get("values") is not None else None }) return _obj diff --git a/python/geoengine_openapi_client/models/histogram_bounds_one_of1_values.py b/python/geoengine_openapi_client/models/values_values.py similarity index 91% rename from python/geoengine_openapi_client/models/histogram_bounds_one_of1_values.py rename to python/geoengine_openapi_client/models/values_values.py index 4c01d766..e21dcafa 100644 --- a/python/geoengine_openapi_client/models/histogram_bounds_one_of1_values.py +++ b/python/geoengine_openapi_client/models/values_values.py @@ -23,9 +23,9 @@ from typing import Optional, Set from typing_extensions import Self -class HistogramBoundsOneOf1Values(BaseModel): +class ValuesValues(BaseModel): """ - HistogramBoundsOneOf1Values + ValuesValues """ # noqa: E501 max: Union[StrictFloat, StrictInt] min: Union[StrictFloat, StrictInt] @@ -49,7 +49,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of HistogramBoundsOneOf1Values from a JSON string""" + """Create an instance of ValuesValues from a JSON string""" return cls.from_dict(json.loads(json_str)) def to_dict(self) -> Dict[str, Any]: @@ -74,7 +74,7 @@ def to_dict(self) -> Dict[str, Any]: @classmethod def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of HistogramBoundsOneOf1Values from a dict""" + """Create an instance of ValuesValues from a dict""" if obj is None: return None diff --git a/python/geoengine_openapi_client/models/vector_operator.py b/python/geoengine_openapi_client/models/vector_operator.py index 414c279f..3939670b 100644 --- a/python/geoengine_openapi_client/models/vector_operator.py +++ b/python/geoengine_openapi_client/models/vector_operator.py @@ -23,7 +23,7 @@ from typing import Union, List, Set, Optional, Dict from typing_extensions import Literal, Self -VECTOROPERATOR_ONE_OF_SCHEMAS = ["MockPointSource", "RasterVectorJoin"] +VECTOROPERATOR_ONE_OF_SCHEMAS = ["MockPointSource", "RasterVectorJoin", "Reprojection"] class VectorOperator(BaseModel): """ @@ -33,8 +33,10 @@ class VectorOperator(BaseModel): oneof_schema_1_validator: Optional[MockPointSource] = None # data type: RasterVectorJoin oneof_schema_2_validator: Optional[RasterVectorJoin] = None - actual_instance: Optional[Union[MockPointSource, RasterVectorJoin]] = None - one_of_schemas: Set[str] = { "MockPointSource", "RasterVectorJoin" } + # data type: Reprojection + oneof_schema_3_validator: Optional[Reprojection] = None + actual_instance: Optional[Union[MockPointSource, RasterVectorJoin, Reprojection]] = None + one_of_schemas: Set[str] = { "MockPointSource", "RasterVectorJoin", "Reprojection" } model_config = ConfigDict( validate_assignment=True, @@ -70,12 +72,17 @@ def actual_instance_must_validate_oneof(cls, v): error_messages.append(f"Error! Input type `{type(v)}` is not `RasterVectorJoin`") else: match += 1 + # validate data type: Reprojection + if not isinstance(v, Reprojection): + error_messages.append(f"Error! Input type `{type(v)}` is not `Reprojection`") + else: + match += 1 if match > 1: # more than 1 match - raise ValueError("Multiple matches found when setting `actual_instance` in VectorOperator with oneOf schemas: MockPointSource, RasterVectorJoin. Details: " + ", ".join(error_messages)) + raise ValueError("Multiple matches found when setting `actual_instance` in VectorOperator with oneOf schemas: MockPointSource, RasterVectorJoin, Reprojection. Details: " + ", ".join(error_messages)) elif match == 0: # no match - raise ValueError("No match found when setting `actual_instance` in VectorOperator with oneOf schemas: MockPointSource, RasterVectorJoin. Details: " + ", ".join(error_messages)) + raise ValueError("No match found when setting `actual_instance` in VectorOperator with oneOf schemas: MockPointSource, RasterVectorJoin, Reprojection. Details: " + ", ".join(error_messages)) else: return v @@ -105,6 +112,11 @@ def from_json(cls, json_str: str) -> Self: instance.actual_instance = RasterVectorJoin.from_json(json_str) return instance + # check if data type is `Reprojection` + if _data_type == "Reprojection": + instance.actual_instance = Reprojection.from_json(json_str) + return instance + # deserialize data into MockPointSource try: instance.actual_instance = MockPointSource.from_json(json_str) @@ -117,13 +129,19 @@ def from_json(cls, json_str: str) -> Self: match += 1 except (ValidationError, ValueError) as e: error_messages.append(str(e)) + # deserialize data into Reprojection + try: + instance.actual_instance = Reprojection.from_json(json_str) + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) if match > 1: # more than 1 match - raise ValueError("Multiple matches found when deserializing the JSON string into VectorOperator with oneOf schemas: MockPointSource, RasterVectorJoin. Details: " + ", ".join(error_messages)) + raise ValueError("Multiple matches found when deserializing the JSON string into VectorOperator with oneOf schemas: MockPointSource, RasterVectorJoin, Reprojection. Details: " + ", ".join(error_messages)) elif match == 0: # no match - raise ValueError("No match found when deserializing the JSON string into VectorOperator with oneOf schemas: MockPointSource, RasterVectorJoin. Details: " + ", ".join(error_messages)) + raise ValueError("No match found when deserializing the JSON string into VectorOperator with oneOf schemas: MockPointSource, RasterVectorJoin, Reprojection. Details: " + ", ".join(error_messages)) else: return instance @@ -137,7 +155,7 @@ def to_json(self) -> str: else: return json.dumps(self.actual_instance) - def to_dict(self) -> Optional[Union[Dict[str, Any], MockPointSource, RasterVectorJoin]]: + def to_dict(self) -> Optional[Union[Dict[str, Any], MockPointSource, RasterVectorJoin, Reprojection]]: """Returns the dict representation of the actual instance""" if self.actual_instance is None: return None @@ -153,6 +171,7 @@ def to_str(self) -> str: return pprint.pformat(self.model_dump()) from geoengine_openapi_client.models.raster_vector_join import RasterVectorJoin +from geoengine_openapi_client.models.reprojection import Reprojection # TODO: Rewrite to not use raise_errors VectorOperator.model_rebuild(raise_errors=False) diff --git a/python/geoengine_openapi_client/models/data_path_one_of.py b/python/geoengine_openapi_client/models/volume1.py similarity index 92% rename from python/geoengine_openapi_client/models/data_path_one_of.py rename to python/geoengine_openapi_client/models/volume1.py index 716bbcf5..c99a34df 100644 --- a/python/geoengine_openapi_client/models/data_path_one_of.py +++ b/python/geoengine_openapi_client/models/volume1.py @@ -23,9 +23,9 @@ from typing import Optional, Set from typing_extensions import Self -class DataPathOneOf(BaseModel): +class Volume1(BaseModel): """ - DataPathOneOf + Volume1 """ # noqa: E501 volume: StrictStr __properties: ClassVar[List[str]] = ["volume"] @@ -48,7 +48,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of DataPathOneOf from a JSON string""" + """Create an instance of Volume1 from a JSON string""" return cls.from_dict(json.loads(json_str)) def to_dict(self) -> Dict[str, Any]: @@ -73,7 +73,7 @@ def to_dict(self) -> Dict[str, Any]: @classmethod def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of DataPathOneOf from a dict""" + """Create an instance of Volume1 from a dict""" if obj is None: return None diff --git a/python/test/test_aggregation.py b/python/test/test_aggregation.py new file mode 100644 index 00000000..107afa25 --- /dev/null +++ b/python/test/test_aggregation.py @@ -0,0 +1,57 @@ +# coding: utf-8 + +""" + Geo Engine API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.9.0 + Contact: dev@geoengine.de + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from geoengine_openapi_client.models.aggregation import Aggregation + +class TestAggregation(unittest.TestCase): + """Aggregation unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> Aggregation: + """Test Aggregation + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `Aggregation` + """ + model = Aggregation() + if include_optional: + return Aggregation( + ignore_no_data = True, + type = 'min', + percentile = 1.337 + ) + else: + return Aggregation( + ignore_no_data = True, + type = 'min', + percentile = 1.337, + ) + """ + + def testAggregation(self): + """Test Aggregation""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/python/test/test_band_filter.py b/python/test/test_band_filter.py new file mode 100644 index 00000000..d4fcc858 --- /dev/null +++ b/python/test/test_band_filter.py @@ -0,0 +1,61 @@ +# coding: utf-8 + +""" + Geo Engine API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.9.0 + Contact: dev@geoengine.de + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from geoengine_openapi_client.models.band_filter import BandFilter + +class TestBandFilter(unittest.TestCase): + """BandFilter unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> BandFilter: + """Test BandFilter + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `BandFilter` + """ + model = BandFilter() + if include_optional: + return BandFilter( + params = geoengine_openapi_client.models.band_filter_parameters.BandFilterParameters( + bands = null, ), + sources = geoengine_openapi_client.models.single_raster_source.SingleRasterSource( + raster = null, ), + type = 'BandFilter' + ) + else: + return BandFilter( + params = geoengine_openapi_client.models.band_filter_parameters.BandFilterParameters( + bands = null, ), + sources = geoengine_openapi_client.models.single_raster_source.SingleRasterSource( + raster = null, ), + type = 'BandFilter', + ) + """ + + def testBandFilter(self): + """Test BandFilter""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/python/test/test_band_filter_parameters.py b/python/test/test_band_filter_parameters.py new file mode 100644 index 00000000..642187a3 --- /dev/null +++ b/python/test/test_band_filter_parameters.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Geo Engine API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.9.0 + Contact: dev@geoengine.de + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from geoengine_openapi_client.models.band_filter_parameters import BandFilterParameters + +class TestBandFilterParameters(unittest.TestCase): + """BandFilterParameters unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> BandFilterParameters: + """Test BandFilterParameters + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `BandFilterParameters` + """ + model = BandFilterParameters() + if include_optional: + return BandFilterParameters( + bands = None + ) + else: + return BandFilterParameters( + bands = None, + ) + """ + + def testBandFilterParameters(self): + """Test BandFilterParameters""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/python/test/test_bands_by_name_or_index.py b/python/test/test_bands_by_name_or_index.py new file mode 100644 index 00000000..ef5591c6 --- /dev/null +++ b/python/test/test_bands_by_name_or_index.py @@ -0,0 +1,51 @@ +# coding: utf-8 + +""" + Geo Engine API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.9.0 + Contact: dev@geoengine.de + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from geoengine_openapi_client.models.bands_by_name_or_index import BandsByNameOrIndex + +class TestBandsByNameOrIndex(unittest.TestCase): + """BandsByNameOrIndex unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> BandsByNameOrIndex: + """Test BandsByNameOrIndex + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `BandsByNameOrIndex` + """ + model = BandsByNameOrIndex() + if include_optional: + return BandsByNameOrIndex( + ) + else: + return BandsByNameOrIndex( + ) + """ + + def testBandsByNameOrIndex(self): + """Test BandsByNameOrIndex""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/python/test/test_count_aggregation.py b/python/test/test_count_aggregation.py new file mode 100644 index 00000000..6172a804 --- /dev/null +++ b/python/test/test_count_aggregation.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + Geo Engine API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.9.0 + Contact: dev@geoengine.de + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from geoengine_openapi_client.models.count_aggregation import CountAggregation + +class TestCountAggregation(unittest.TestCase): + """CountAggregation unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> CountAggregation: + """Test CountAggregation + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `CountAggregation` + """ + model = CountAggregation() + if include_optional: + return CountAggregation( + ignore_no_data = True, + type = 'count' + ) + else: + return CountAggregation( + ignore_no_data = True, + type = 'count', + ) + """ + + def testCountAggregation(self): + """Test CountAggregation""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/python/test/test_typed_geometry_one_of.py b/python/test/test_data1.py similarity index 63% rename from python/test/test_typed_geometry_one_of.py rename to python/test/test_data1.py index d84f6804..7c364c58 100644 --- a/python/test/test_typed_geometry_one_of.py +++ b/python/test/test_data1.py @@ -15,10 +15,10 @@ import unittest -from geoengine_openapi_client.models.typed_geometry_one_of import TypedGeometryOneOf +from geoengine_openapi_client.models.data1 import Data1 -class TestTypedGeometryOneOf(unittest.TestCase): - """TypedGeometryOneOf unit test stubs""" +class TestData1(unittest.TestCase): + """Data1 unit test stubs""" def setUp(self): pass @@ -26,26 +26,26 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> TypedGeometryOneOf: - """Test TypedGeometryOneOf + def make_instance(self, include_optional) -> Data1: + """Test Data1 include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ - # uncomment below to create an instance of `TypedGeometryOneOf` + # uncomment below to create an instance of `Data1` """ - model = TypedGeometryOneOf() + model = Data1() if include_optional: - return TypedGeometryOneOf( + return Data1( data = None ) else: - return TypedGeometryOneOf( + return Data1( data = None, ) """ - def testTypedGeometryOneOf(self): - """Test TypedGeometryOneOf""" + def testData1(self): + """Test Data1""" # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) diff --git a/python/test/test_derive_out_raster_specs_source.py b/python/test/test_derive_out_raster_specs_source.py new file mode 100644 index 00000000..cfe31645 --- /dev/null +++ b/python/test/test_derive_out_raster_specs_source.py @@ -0,0 +1,34 @@ +# coding: utf-8 + +""" + Geo Engine API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.9.0 + Contact: dev@geoengine.de + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from geoengine_openapi_client.models.derive_out_raster_specs_source import DeriveOutRasterSpecsSource + +class TestDeriveOutRasterSpecsSource(unittest.TestCase): + """DeriveOutRasterSpecsSource unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testDeriveOutRasterSpecsSource(self): + """Test DeriveOutRasterSpecsSource""" + # inst = DeriveOutRasterSpecsSource() + +if __name__ == '__main__': + unittest.main() diff --git a/python/test/test_first_aggregation.py b/python/test/test_first_aggregation.py new file mode 100644 index 00000000..30befbea --- /dev/null +++ b/python/test/test_first_aggregation.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + Geo Engine API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.9.0 + Contact: dev@geoengine.de + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from geoengine_openapi_client.models.first_aggregation import FirstAggregation + +class TestFirstAggregation(unittest.TestCase): + """FirstAggregation unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> FirstAggregation: + """Test FirstAggregation + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `FirstAggregation` + """ + model = FirstAggregation() + if include_optional: + return FirstAggregation( + ignore_no_data = True, + type = 'first' + ) + else: + return FirstAggregation( + ignore_no_data = True, + type = 'first', + ) + """ + + def testFirstAggregation(self): + """Test FirstAggregation""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/python/test/test_fraction.py b/python/test/test_fraction.py new file mode 100644 index 00000000..8a0cd0e2 --- /dev/null +++ b/python/test/test_fraction.py @@ -0,0 +1,57 @@ +# coding: utf-8 + +""" + Geo Engine API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.9.0 + Contact: dev@geoengine.de + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from geoengine_openapi_client.models.fraction import Fraction + +class TestFraction(unittest.TestCase): + """Fraction unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> Fraction: + """Test Fraction + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `Fraction` + """ + model = Fraction() + if include_optional: + return Fraction( + type = 'fraction', + x = 1.337, + y = 1.337 + ) + else: + return Fraction( + type = 'fraction', + x = 1.337, + y = 1.337, + ) + """ + + def testFraction(self): + """Test Fraction""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/python/test/test_histogram_bounds.py b/python/test/test_histogram_bounds.py index a0dec516..411ec6c7 100644 --- a/python/test/test_histogram_bounds.py +++ b/python/test/test_histogram_bounds.py @@ -37,14 +37,14 @@ def make_instance(self, include_optional) -> HistogramBounds: if include_optional: return HistogramBounds( data = None, - values = geoengine_openapi_client.models.histogram_bounds_one_of_1_values.HistogramBounds_oneOf_1_values( + values = geoengine_openapi_client.models.values_values.Values_values( max = 1.337, min = 1.337, ) ) else: return HistogramBounds( data = None, - values = geoengine_openapi_client.models.histogram_bounds_one_of_1_values.HistogramBounds_oneOf_1_values( + values = geoengine_openapi_client.models.values_values.Values_values( max = 1.337, min = 1.337, ), ) diff --git a/python/test/test_histogram_bounds_one_of1.py b/python/test/test_histogram_bounds_one_of1.py deleted file mode 100644 index cf5cb6fc..00000000 --- a/python/test/test_histogram_bounds_one_of1.py +++ /dev/null @@ -1,57 +0,0 @@ -# coding: utf-8 - -""" - Geo Engine API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - - The version of the OpenAPI document: 0.9.0 - Contact: dev@geoengine.de - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from geoengine_openapi_client.models.histogram_bounds_one_of1 import HistogramBoundsOneOf1 - -class TestHistogramBoundsOneOf1(unittest.TestCase): - """HistogramBoundsOneOf1 unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> HistogramBoundsOneOf1: - """Test HistogramBoundsOneOf1 - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `HistogramBoundsOneOf1` - """ - model = HistogramBoundsOneOf1() - if include_optional: - return HistogramBoundsOneOf1( - values = geoengine_openapi_client.models.histogram_bounds_one_of_1_values.HistogramBounds_oneOf_1_values( - max = 1.337, - min = 1.337, ) - ) - else: - return HistogramBoundsOneOf1( - values = geoengine_openapi_client.models.histogram_bounds_one_of_1_values.HistogramBounds_oneOf_1_values( - max = 1.337, - min = 1.337, ), - ) - """ - - def testHistogramBoundsOneOf1(self): - """Test HistogramBoundsOneOf1""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/python/test/test_interpolation.py b/python/test/test_interpolation.py new file mode 100644 index 00000000..215b9ac5 --- /dev/null +++ b/python/test/test_interpolation.py @@ -0,0 +1,65 @@ +# coding: utf-8 + +""" + Geo Engine API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.9.0 + Contact: dev@geoengine.de + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from geoengine_openapi_client.models.interpolation import Interpolation + +class TestInterpolation(unittest.TestCase): + """Interpolation unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> Interpolation: + """Test Interpolation + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `Interpolation` + """ + model = Interpolation() + if include_optional: + return Interpolation( + params = geoengine_openapi_client.models.interpolation_parameters.InterpolationParameters( + interpolation = null, + output_origin_reference = null, + output_resolution = null, ), + sources = geoengine_openapi_client.models.single_raster_source.SingleRasterSource( + raster = null, ), + type = 'Interpolation' + ) + else: + return Interpolation( + params = geoengine_openapi_client.models.interpolation_parameters.InterpolationParameters( + interpolation = null, + output_origin_reference = null, + output_resolution = null, ), + sources = geoengine_openapi_client.models.single_raster_source.SingleRasterSource( + raster = null, ), + type = 'Interpolation', + ) + """ + + def testInterpolation(self): + """Test Interpolation""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/python/test/test_interpolation_method.py b/python/test/test_interpolation_method.py new file mode 100644 index 00000000..8b509414 --- /dev/null +++ b/python/test/test_interpolation_method.py @@ -0,0 +1,34 @@ +# coding: utf-8 + +""" + Geo Engine API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.9.0 + Contact: dev@geoengine.de + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from geoengine_openapi_client.models.interpolation_method import InterpolationMethod + +class TestInterpolationMethod(unittest.TestCase): + """InterpolationMethod unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testInterpolationMethod(self): + """Test InterpolationMethod""" + # inst = InterpolationMethod() + +if __name__ == '__main__': + unittest.main() diff --git a/python/test/test_interpolation_parameters.py b/python/test/test_interpolation_parameters.py new file mode 100644 index 00000000..f9dbb15b --- /dev/null +++ b/python/test/test_interpolation_parameters.py @@ -0,0 +1,58 @@ +# coding: utf-8 + +""" + Geo Engine API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.9.0 + Contact: dev@geoengine.de + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from geoengine_openapi_client.models.interpolation_parameters import InterpolationParameters + +class TestInterpolationParameters(unittest.TestCase): + """InterpolationParameters unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> InterpolationParameters: + """Test InterpolationParameters + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `InterpolationParameters` + """ + model = InterpolationParameters() + if include_optional: + return InterpolationParameters( + interpolation = 'nearestNeighbor', + output_origin_reference = geoengine_openapi_client.models.coordinate2_d.Coordinate2D( + x = 1.337, + y = 1.337, ), + output_resolution = None + ) + else: + return InterpolationParameters( + interpolation = 'nearestNeighbor', + output_resolution = None, + ) + """ + + def testInterpolationParameters(self): + """Test InterpolationParameters""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/python/test/test_interpolation_resolution.py b/python/test/test_interpolation_resolution.py new file mode 100644 index 00000000..da11dc3e --- /dev/null +++ b/python/test/test_interpolation_resolution.py @@ -0,0 +1,57 @@ +# coding: utf-8 + +""" + Geo Engine API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.9.0 + Contact: dev@geoengine.de + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from geoengine_openapi_client.models.interpolation_resolution import InterpolationResolution + +class TestInterpolationResolution(unittest.TestCase): + """InterpolationResolution unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> InterpolationResolution: + """Test InterpolationResolution + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `InterpolationResolution` + """ + model = InterpolationResolution() + if include_optional: + return InterpolationResolution( + type = 'resolution', + x = 1.337, + y = 1.337 + ) + else: + return InterpolationResolution( + type = 'resolution', + x = 1.337, + y = 1.337, + ) + """ + + def testInterpolationResolution(self): + """Test InterpolationResolution""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/python/test/test_time_dimension_one_of1.py b/python/test/test_irregular.py similarity index 63% rename from python/test/test_time_dimension_one_of1.py rename to python/test/test_irregular.py index 4f0a6415..cc6a3206 100644 --- a/python/test/test_time_dimension_one_of1.py +++ b/python/test/test_irregular.py @@ -15,10 +15,10 @@ import unittest -from geoengine_openapi_client.models.time_dimension_one_of1 import TimeDimensionOneOf1 +from geoengine_openapi_client.models.irregular import Irregular -class TestTimeDimensionOneOf1(unittest.TestCase): - """TimeDimensionOneOf1 unit test stubs""" +class TestIrregular(unittest.TestCase): + """Irregular unit test stubs""" def setUp(self): pass @@ -26,26 +26,26 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> TimeDimensionOneOf1: - """Test TimeDimensionOneOf1 + def make_instance(self, include_optional) -> Irregular: + """Test Irregular include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ - # uncomment below to create an instance of `TimeDimensionOneOf1` + # uncomment below to create an instance of `Irregular` """ - model = TimeDimensionOneOf1() + model = Irregular() if include_optional: - return TimeDimensionOneOf1( + return Irregular( type = 'irregular' ) else: - return TimeDimensionOneOf1( + return Irregular( type = 'irregular', ) """ - def testTimeDimensionOneOf1(self): - """Test TimeDimensionOneOf1""" + def testIrregular(self): + """Test Irregular""" # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) diff --git a/python/test/test_last_aggregation.py b/python/test/test_last_aggregation.py new file mode 100644 index 00000000..77cd888b --- /dev/null +++ b/python/test/test_last_aggregation.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + Geo Engine API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.9.0 + Contact: dev@geoengine.de + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from geoengine_openapi_client.models.last_aggregation import LastAggregation + +class TestLastAggregation(unittest.TestCase): + """LastAggregation unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> LastAggregation: + """Test LastAggregation + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `LastAggregation` + """ + model = LastAggregation() + if include_optional: + return LastAggregation( + ignore_no_data = True, + type = 'last' + ) + else: + return LastAggregation( + ignore_no_data = True, + type = 'last', + ) + """ + + def testLastAggregation(self): + """Test LastAggregation""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/python/test/test_max_aggregation.py b/python/test/test_max_aggregation.py new file mode 100644 index 00000000..e7df643c --- /dev/null +++ b/python/test/test_max_aggregation.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + Geo Engine API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.9.0 + Contact: dev@geoengine.de + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from geoengine_openapi_client.models.max_aggregation import MaxAggregation + +class TestMaxAggregation(unittest.TestCase): + """MaxAggregation unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> MaxAggregation: + """Test MaxAggregation + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `MaxAggregation` + """ + model = MaxAggregation() + if include_optional: + return MaxAggregation( + ignore_no_data = True, + type = 'max' + ) + else: + return MaxAggregation( + ignore_no_data = True, + type = 'max', + ) + """ + + def testMaxAggregation(self): + """Test MaxAggregation""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/python/test/test_mean_aggregation.py b/python/test/test_mean_aggregation.py new file mode 100644 index 00000000..b09c242f --- /dev/null +++ b/python/test/test_mean_aggregation.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + Geo Engine API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.9.0 + Contact: dev@geoengine.de + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from geoengine_openapi_client.models.mean_aggregation import MeanAggregation + +class TestMeanAggregation(unittest.TestCase): + """MeanAggregation unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> MeanAggregation: + """Test MeanAggregation + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `MeanAggregation` + """ + model = MeanAggregation() + if include_optional: + return MeanAggregation( + ignore_no_data = True, + type = 'mean' + ) + else: + return MeanAggregation( + ignore_no_data = True, + type = 'mean', + ) + """ + + def testMeanAggregation(self): + """Test MeanAggregation""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/python/test/test_min_aggregation.py b/python/test/test_min_aggregation.py new file mode 100644 index 00000000..ce9c167d --- /dev/null +++ b/python/test/test_min_aggregation.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + Geo Engine API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.9.0 + Contact: dev@geoengine.de + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from geoengine_openapi_client.models.min_aggregation import MinAggregation + +class TestMinAggregation(unittest.TestCase): + """MinAggregation unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> MinAggregation: + """Test MinAggregation + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `MinAggregation` + """ + model = MinAggregation() + if include_optional: + return MinAggregation( + ignore_no_data = True, + type = 'min' + ) + else: + return MinAggregation( + ignore_no_data = True, + type = 'min', + ) + """ + + def testMinAggregation(self): + """Test MinAggregation""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/python/test/test_multi_band_gdal_source.py b/python/test/test_multi_band_gdal_source.py new file mode 100644 index 00000000..09cae9fa --- /dev/null +++ b/python/test/test_multi_band_gdal_source.py @@ -0,0 +1,59 @@ +# coding: utf-8 + +""" + Geo Engine API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.9.0 + Contact: dev@geoengine.de + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from geoengine_openapi_client.models.multi_band_gdal_source import MultiBandGdalSource + +class TestMultiBandGdalSource(unittest.TestCase): + """MultiBandGdalSource unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> MultiBandGdalSource: + """Test MultiBandGdalSource + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `MultiBandGdalSource` + """ + model = MultiBandGdalSource() + if include_optional: + return MultiBandGdalSource( + params = geoengine_openapi_client.models.gdal_source_parameters.GdalSourceParameters( + data = '', + overview_level = 0, ), + type = 'MultiBandGdalSource' + ) + else: + return MultiBandGdalSource( + params = geoengine_openapi_client.models.gdal_source_parameters.GdalSourceParameters( + data = '', + overview_level = 0, ), + type = 'MultiBandGdalSource', + ) + """ + + def testMultiBandGdalSource(self): + """Test MultiBandGdalSource""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/python/test/test_typed_geometry_one_of2.py b/python/test/test_multi_line_string1.py similarity index 75% rename from python/test/test_typed_geometry_one_of2.py rename to python/test/test_multi_line_string1.py index 65d8effa..73c8c1a0 100644 --- a/python/test/test_typed_geometry_one_of2.py +++ b/python/test/test_multi_line_string1.py @@ -15,10 +15,10 @@ import unittest -from geoengine_openapi_client.models.typed_geometry_one_of2 import TypedGeometryOneOf2 +from geoengine_openapi_client.models.multi_line_string1 import MultiLineString1 -class TestTypedGeometryOneOf2(unittest.TestCase): - """TypedGeometryOneOf2 unit test stubs""" +class TestMultiLineString1(unittest.TestCase): + """MultiLineString1 unit test stubs""" def setUp(self): pass @@ -26,16 +26,16 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> TypedGeometryOneOf2: - """Test TypedGeometryOneOf2 + def make_instance(self, include_optional) -> MultiLineString1: + """Test MultiLineString1 include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ - # uncomment below to create an instance of `TypedGeometryOneOf2` + # uncomment below to create an instance of `MultiLineString1` """ - model = TypedGeometryOneOf2() + model = MultiLineString1() if include_optional: - return TypedGeometryOneOf2( + return MultiLineString1( multi_line_string = geoengine_openapi_client.models.multi_line_string.MultiLineString( coordinates = [ [ @@ -46,7 +46,7 @@ def make_instance(self, include_optional) -> TypedGeometryOneOf2: ], ) ) else: - return TypedGeometryOneOf2( + return MultiLineString1( multi_line_string = geoengine_openapi_client.models.multi_line_string.MultiLineString( coordinates = [ [ @@ -58,8 +58,8 @@ def make_instance(self, include_optional) -> TypedGeometryOneOf2: ) """ - def testTypedGeometryOneOf2(self): - """Test TypedGeometryOneOf2""" + def testMultiLineString1(self): + """Test MultiLineString1""" # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) diff --git a/python/test/test_typed_geometry_one_of1.py b/python/test/test_multi_point1.py similarity index 73% rename from python/test/test_typed_geometry_one_of1.py rename to python/test/test_multi_point1.py index 7251e954..2bf3e80b 100644 --- a/python/test/test_typed_geometry_one_of1.py +++ b/python/test/test_multi_point1.py @@ -15,10 +15,10 @@ import unittest -from geoengine_openapi_client.models.typed_geometry_one_of1 import TypedGeometryOneOf1 +from geoengine_openapi_client.models.multi_point1 import MultiPoint1 -class TestTypedGeometryOneOf1(unittest.TestCase): - """TypedGeometryOneOf1 unit test stubs""" +class TestMultiPoint1(unittest.TestCase): + """MultiPoint1 unit test stubs""" def setUp(self): pass @@ -26,16 +26,16 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> TypedGeometryOneOf1: - """Test TypedGeometryOneOf1 + def make_instance(self, include_optional) -> MultiPoint1: + """Test MultiPoint1 include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ - # uncomment below to create an instance of `TypedGeometryOneOf1` + # uncomment below to create an instance of `MultiPoint1` """ - model = TypedGeometryOneOf1() + model = MultiPoint1() if include_optional: - return TypedGeometryOneOf1( + return MultiPoint1( multi_point = geoengine_openapi_client.models.multi_point.MultiPoint( coordinates = [ geoengine_openapi_client.models.coordinate2_d.Coordinate2D( @@ -44,7 +44,7 @@ def make_instance(self, include_optional) -> TypedGeometryOneOf1: ], ) ) else: - return TypedGeometryOneOf1( + return MultiPoint1( multi_point = geoengine_openapi_client.models.multi_point.MultiPoint( coordinates = [ geoengine_openapi_client.models.coordinate2_d.Coordinate2D( @@ -54,8 +54,8 @@ def make_instance(self, include_optional) -> TypedGeometryOneOf1: ) """ - def testTypedGeometryOneOf1(self): - """Test TypedGeometryOneOf1""" + def testMultiPoint1(self): + """Test MultiPoint1""" # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) diff --git a/python/test/test_typed_geometry_one_of3.py b/python/test/test_multi_polygon1.py similarity index 76% rename from python/test/test_typed_geometry_one_of3.py rename to python/test/test_multi_polygon1.py index cd48dcc5..7b259dbb 100644 --- a/python/test/test_typed_geometry_one_of3.py +++ b/python/test/test_multi_polygon1.py @@ -15,10 +15,10 @@ import unittest -from geoengine_openapi_client.models.typed_geometry_one_of3 import TypedGeometryOneOf3 +from geoengine_openapi_client.models.multi_polygon1 import MultiPolygon1 -class TestTypedGeometryOneOf3(unittest.TestCase): - """TypedGeometryOneOf3 unit test stubs""" +class TestMultiPolygon1(unittest.TestCase): + """MultiPolygon1 unit test stubs""" def setUp(self): pass @@ -26,16 +26,16 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> TypedGeometryOneOf3: - """Test TypedGeometryOneOf3 + def make_instance(self, include_optional) -> MultiPolygon1: + """Test MultiPolygon1 include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ - # uncomment below to create an instance of `TypedGeometryOneOf3` + # uncomment below to create an instance of `MultiPolygon1` """ - model = TypedGeometryOneOf3() + model = MultiPolygon1() if include_optional: - return TypedGeometryOneOf3( + return MultiPolygon1( multi_polygon = geoengine_openapi_client.models.multi_polygon.MultiPolygon( polygons = [ [ @@ -48,7 +48,7 @@ def make_instance(self, include_optional) -> TypedGeometryOneOf3: ], ) ) else: - return TypedGeometryOneOf3( + return MultiPolygon1( multi_polygon = geoengine_openapi_client.models.multi_polygon.MultiPolygon( polygons = [ [ @@ -62,8 +62,8 @@ def make_instance(self, include_optional) -> TypedGeometryOneOf3: ) """ - def testTypedGeometryOneOf3(self): - """Test TypedGeometryOneOf3""" + def testMultiPolygon1(self): + """Test MultiPolygon1""" # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) diff --git a/python/test/test_multiple_raster_sources.py b/python/test/test_multiple_raster_sources.py new file mode 100644 index 00000000..711ca621 --- /dev/null +++ b/python/test/test_multiple_raster_sources.py @@ -0,0 +1,57 @@ +# coding: utf-8 + +""" + Geo Engine API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.9.0 + Contact: dev@geoengine.de + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from geoengine_openapi_client.models.multiple_raster_sources import MultipleRasterSources + +class TestMultipleRasterSources(unittest.TestCase): + """MultipleRasterSources unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> MultipleRasterSources: + """Test MultipleRasterSources + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `MultipleRasterSources` + """ + model = MultipleRasterSources() + if include_optional: + return MultipleRasterSources( + rasters = [ + null + ] + ) + else: + return MultipleRasterSources( + rasters = [ + null + ], + ) + """ + + def testMultipleRasterSources(self): + """Test MultipleRasterSources""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/python/test/test_histogram_bounds_one_of.py b/python/test/test_no_geometry1.py similarity index 62% rename from python/test/test_histogram_bounds_one_of.py rename to python/test/test_no_geometry1.py index 64f9c501..ffbc4da5 100644 --- a/python/test/test_histogram_bounds_one_of.py +++ b/python/test/test_no_geometry1.py @@ -15,10 +15,10 @@ import unittest -from geoengine_openapi_client.models.histogram_bounds_one_of import HistogramBoundsOneOf +from geoengine_openapi_client.models.no_geometry1 import NoGeometry1 -class TestHistogramBoundsOneOf(unittest.TestCase): - """HistogramBoundsOneOf unit test stubs""" +class TestNoGeometry1(unittest.TestCase): + """NoGeometry1 unit test stubs""" def setUp(self): pass @@ -26,26 +26,26 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> HistogramBoundsOneOf: - """Test HistogramBoundsOneOf + def make_instance(self, include_optional) -> NoGeometry1: + """Test NoGeometry1 include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ - # uncomment below to create an instance of `HistogramBoundsOneOf` + # uncomment below to create an instance of `NoGeometry1` """ - model = HistogramBoundsOneOf() + model = NoGeometry1() if include_optional: - return HistogramBoundsOneOf( + return NoGeometry1( data = None ) else: - return HistogramBoundsOneOf( + return NoGeometry1( data = None, ) """ - def testHistogramBoundsOneOf(self): - """Test HistogramBoundsOneOf""" + def testNoGeometry1(self): + """Test NoGeometry1""" # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) diff --git a/python/test/test_histogram_buckets_one_of.py b/python/test/test_number.py similarity index 63% rename from python/test/test_histogram_buckets_one_of.py rename to python/test/test_number.py index 6859abc5..02b8ac65 100644 --- a/python/test/test_histogram_buckets_one_of.py +++ b/python/test/test_number.py @@ -15,10 +15,10 @@ import unittest -from geoengine_openapi_client.models.histogram_buckets_one_of import HistogramBucketsOneOf +from geoengine_openapi_client.models.number import Number -class TestHistogramBucketsOneOf(unittest.TestCase): - """HistogramBucketsOneOf unit test stubs""" +class TestNumber(unittest.TestCase): + """Number unit test stubs""" def setUp(self): pass @@ -26,28 +26,28 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> HistogramBucketsOneOf: - """Test HistogramBucketsOneOf + def make_instance(self, include_optional) -> Number: + """Test Number include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ - # uncomment below to create an instance of `HistogramBucketsOneOf` + # uncomment below to create an instance of `Number` """ - model = HistogramBucketsOneOf() + model = Number() if include_optional: - return HistogramBucketsOneOf( + return Number( type = 'number', value = 0 ) else: - return HistogramBucketsOneOf( + return Number( type = 'number', value = 0, ) """ - def testHistogramBucketsOneOf(self): - """Test HistogramBucketsOneOf""" + def testNumber(self): + """Test Number""" # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) diff --git a/python/test/test_percentile_estimate_aggregation.py b/python/test/test_percentile_estimate_aggregation.py new file mode 100644 index 00000000..56cc7b50 --- /dev/null +++ b/python/test/test_percentile_estimate_aggregation.py @@ -0,0 +1,57 @@ +# coding: utf-8 + +""" + Geo Engine API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.9.0 + Contact: dev@geoengine.de + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from geoengine_openapi_client.models.percentile_estimate_aggregation import PercentileEstimateAggregation + +class TestPercentileEstimateAggregation(unittest.TestCase): + """PercentileEstimateAggregation unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> PercentileEstimateAggregation: + """Test PercentileEstimateAggregation + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `PercentileEstimateAggregation` + """ + model = PercentileEstimateAggregation() + if include_optional: + return PercentileEstimateAggregation( + ignore_no_data = True, + percentile = 1.337, + type = 'percentileEstimate' + ) + else: + return PercentileEstimateAggregation( + ignore_no_data = True, + percentile = 1.337, + type = 'percentileEstimate', + ) + """ + + def testPercentileEstimateAggregation(self): + """Test PercentileEstimateAggregation""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/python/test/test_raster_operator.py b/python/test/test_raster_operator.py index 1909f1a6..81e2afe7 100644 --- a/python/test/test_raster_operator.py +++ b/python/test/test_raster_operator.py @@ -36,21 +36,25 @@ def make_instance(self, include_optional) -> RasterOperator: model = RasterOperator() if include_optional: return RasterOperator( - params = geoengine_openapi_client.models.gdal_source_parameters.GdalSourceParameters( - data = '', - overview_level = 0, ), + params = geoengine_openapi_client.models.temporal_raster_aggregation_parameters.TemporalRasterAggregationParameters( + aggregation = null, + output_type = null, + window = null, + window_reference = null, ), sources = geoengine_openapi_client.models.single_raster_source.SingleRasterSource( raster = null, ), - type = 'Expression' + type = 'BandFilter' ) else: return RasterOperator( - params = geoengine_openapi_client.models.gdal_source_parameters.GdalSourceParameters( - data = '', - overview_level = 0, ), + params = geoengine_openapi_client.models.temporal_raster_aggregation_parameters.TemporalRasterAggregationParameters( + aggregation = null, + output_type = null, + window = null, + window_reference = null, ), sources = geoengine_openapi_client.models.single_raster_source.SingleRasterSource( raster = null, ), - type = 'Expression', + type = 'BandFilter', ) """ diff --git a/python/test/test_raster_stacker.py b/python/test/test_raster_stacker.py new file mode 100644 index 00000000..9176cb99 --- /dev/null +++ b/python/test/test_raster_stacker.py @@ -0,0 +1,65 @@ +# coding: utf-8 + +""" + Geo Engine API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.9.0 + Contact: dev@geoengine.de + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from geoengine_openapi_client.models.raster_stacker import RasterStacker + +class TestRasterStacker(unittest.TestCase): + """RasterStacker unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> RasterStacker: + """Test RasterStacker + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `RasterStacker` + """ + model = RasterStacker() + if include_optional: + return RasterStacker( + params = geoengine_openapi_client.models.raster_stacker_parameters.RasterStackerParameters( + rename_bands = null, ), + sources = geoengine_openapi_client.models.multiple_raster_sources.MultipleRasterSources( + rasters = [ + null + ], ), + type = 'RasterStacker' + ) + else: + return RasterStacker( + params = geoengine_openapi_client.models.raster_stacker_parameters.RasterStackerParameters( + rename_bands = null, ), + sources = geoengine_openapi_client.models.multiple_raster_sources.MultipleRasterSources( + rasters = [ + null + ], ), + type = 'RasterStacker', + ) + """ + + def testRasterStacker(self): + """Test RasterStacker""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/python/test/test_raster_stacker_parameters.py b/python/test/test_raster_stacker_parameters.py new file mode 100644 index 00000000..d11dd0d3 --- /dev/null +++ b/python/test/test_raster_stacker_parameters.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Geo Engine API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.9.0 + Contact: dev@geoengine.de + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from geoengine_openapi_client.models.raster_stacker_parameters import RasterStackerParameters + +class TestRasterStackerParameters(unittest.TestCase): + """RasterStackerParameters unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> RasterStackerParameters: + """Test RasterStackerParameters + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `RasterStackerParameters` + """ + model = RasterStackerParameters() + if include_optional: + return RasterStackerParameters( + rename_bands = None + ) + else: + return RasterStackerParameters( + rename_bands = None, + ) + """ + + def testRasterStackerParameters(self): + """Test RasterStackerParameters""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/python/test/test_raster_type_conversion.py b/python/test/test_raster_type_conversion.py new file mode 100644 index 00000000..1ae2ff9f --- /dev/null +++ b/python/test/test_raster_type_conversion.py @@ -0,0 +1,61 @@ +# coding: utf-8 + +""" + Geo Engine API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.9.0 + Contact: dev@geoengine.de + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from geoengine_openapi_client.models.raster_type_conversion import RasterTypeConversion + +class TestRasterTypeConversion(unittest.TestCase): + """RasterTypeConversion unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> RasterTypeConversion: + """Test RasterTypeConversion + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `RasterTypeConversion` + """ + model = RasterTypeConversion() + if include_optional: + return RasterTypeConversion( + params = geoengine_openapi_client.models.raster_type_conversion_parameters.RasterTypeConversionParameters( + output_data_type = null, ), + sources = geoengine_openapi_client.models.single_raster_source.SingleRasterSource( + raster = null, ), + type = 'RasterTypeConversion' + ) + else: + return RasterTypeConversion( + params = geoengine_openapi_client.models.raster_type_conversion_parameters.RasterTypeConversionParameters( + output_data_type = null, ), + sources = geoengine_openapi_client.models.single_raster_source.SingleRasterSource( + raster = null, ), + type = 'RasterTypeConversion', + ) + """ + + def testRasterTypeConversion(self): + """Test RasterTypeConversion""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/python/test/test_raster_type_conversion_parameters.py b/python/test/test_raster_type_conversion_parameters.py new file mode 100644 index 00000000..b5f84d33 --- /dev/null +++ b/python/test/test_raster_type_conversion_parameters.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Geo Engine API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.9.0 + Contact: dev@geoengine.de + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from geoengine_openapi_client.models.raster_type_conversion_parameters import RasterTypeConversionParameters + +class TestRasterTypeConversionParameters(unittest.TestCase): + """RasterTypeConversionParameters unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> RasterTypeConversionParameters: + """Test RasterTypeConversionParameters + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `RasterTypeConversionParameters` + """ + model = RasterTypeConversionParameters() + if include_optional: + return RasterTypeConversionParameters( + output_data_type = 'U8' + ) + else: + return RasterTypeConversionParameters( + output_data_type = 'U8', + ) + """ + + def testRasterTypeConversionParameters(self): + """Test RasterTypeConversionParameters""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/python/test/test_time_dimension_one_of.py b/python/test/test_regular.py similarity index 64% rename from python/test/test_time_dimension_one_of.py rename to python/test/test_regular.py index cd10cbaa..fa382a8e 100644 --- a/python/test/test_time_dimension_one_of.py +++ b/python/test/test_regular.py @@ -15,10 +15,10 @@ import unittest -from geoengine_openapi_client.models.time_dimension_one_of import TimeDimensionOneOf +from geoengine_openapi_client.models.regular import Regular -class TestTimeDimensionOneOf(unittest.TestCase): - """TimeDimensionOneOf unit test stubs""" +class TestRegular(unittest.TestCase): + """Regular unit test stubs""" def setUp(self): pass @@ -26,26 +26,26 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> TimeDimensionOneOf: - """Test TimeDimensionOneOf + def make_instance(self, include_optional) -> Regular: + """Test Regular include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ - # uncomment below to create an instance of `TimeDimensionOneOf` + # uncomment below to create an instance of `Regular` """ - model = TimeDimensionOneOf() + model = Regular() if include_optional: - return TimeDimensionOneOf( + return Regular( type = 'regular' ) else: - return TimeDimensionOneOf( + return Regular( type = 'regular', ) """ - def testTimeDimensionOneOf(self): - """Test TimeDimensionOneOf""" + def testRegular(self): + """Test Regular""" # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) diff --git a/python/test/test_rename.py b/python/test/test_rename.py new file mode 100644 index 00000000..9e154cca --- /dev/null +++ b/python/test/test_rename.py @@ -0,0 +1,59 @@ +# coding: utf-8 + +""" + Geo Engine API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.9.0 + Contact: dev@geoengine.de + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from geoengine_openapi_client.models.rename import Rename + +class TestRename(unittest.TestCase): + """Rename unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> Rename: + """Test Rename + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `Rename` + """ + model = Rename() + if include_optional: + return Rename( + type = 'rename', + values = [ + '' + ] + ) + else: + return Rename( + type = 'rename', + values = [ + '' + ], + ) + """ + + def testRename(self): + """Test Rename""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/python/test/test_rename_bands.py b/python/test/test_rename_bands.py new file mode 100644 index 00000000..fcbed165 --- /dev/null +++ b/python/test/test_rename_bands.py @@ -0,0 +1,59 @@ +# coding: utf-8 + +""" + Geo Engine API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.9.0 + Contact: dev@geoengine.de + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from geoengine_openapi_client.models.rename_bands import RenameBands + +class TestRenameBands(unittest.TestCase): + """RenameBands unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> RenameBands: + """Test RenameBands + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `RenameBands` + """ + model = RenameBands() + if include_optional: + return RenameBands( + type = 'default', + values = [ + '' + ] + ) + else: + return RenameBands( + type = 'default', + values = [ + '' + ], + ) + """ + + def testRenameBands(self): + """Test RenameBands""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/python/test/test_reprojection.py b/python/test/test_reprojection.py new file mode 100644 index 00000000..d6a52b0b --- /dev/null +++ b/python/test/test_reprojection.py @@ -0,0 +1,63 @@ +# coding: utf-8 + +""" + Geo Engine API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.9.0 + Contact: dev@geoengine.de + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from geoengine_openapi_client.models.reprojection import Reprojection + +class TestReprojection(unittest.TestCase): + """Reprojection unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> Reprojection: + """Test Reprojection + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `Reprojection` + """ + model = Reprojection() + if include_optional: + return Reprojection( + params = geoengine_openapi_client.models.reprojection_parameters.ReprojectionParameters( + derive_out_spec = null, + target_spatial_reference = '', ), + sources = geoengine_openapi_client.models.single_raster_or_vector_source.SingleRasterOrVectorSource( + source = null, ), + type = 'Reprojection' + ) + else: + return Reprojection( + params = geoengine_openapi_client.models.reprojection_parameters.ReprojectionParameters( + derive_out_spec = null, + target_spatial_reference = '', ), + sources = geoengine_openapi_client.models.single_raster_or_vector_source.SingleRasterOrVectorSource( + source = null, ), + type = 'Reprojection', + ) + """ + + def testReprojection(self): + """Test Reprojection""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/python/test/test_reprojection_parameters.py b/python/test/test_reprojection_parameters.py new file mode 100644 index 00000000..f4ee7fff --- /dev/null +++ b/python/test/test_reprojection_parameters.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Geo Engine API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.9.0 + Contact: dev@geoengine.de + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from geoengine_openapi_client.models.reprojection_parameters import ReprojectionParameters + +class TestReprojectionParameters(unittest.TestCase): + """ReprojectionParameters unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ReprojectionParameters: + """Test ReprojectionParameters + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `ReprojectionParameters` + """ + model = ReprojectionParameters() + if include_optional: + return ReprojectionParameters( + derive_out_spec = 'dataBounds', + target_spatial_reference = '' + ) + else: + return ReprojectionParameters( + target_spatial_reference = '', + ) + """ + + def testReprojectionParameters(self): + """Test ReprojectionParameters""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/python/test/test_resolution.py b/python/test/test_resolution.py new file mode 100644 index 00000000..99f648fc --- /dev/null +++ b/python/test/test_resolution.py @@ -0,0 +1,57 @@ +# coding: utf-8 + +""" + Geo Engine API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.9.0 + Contact: dev@geoengine.de + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from geoengine_openapi_client.models.resolution import Resolution + +class TestResolution(unittest.TestCase): + """Resolution unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> Resolution: + """Test Resolution + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `Resolution` + """ + model = Resolution() + if include_optional: + return Resolution( + type = 'resolution', + x = 1.337, + y = 1.337 + ) + else: + return Resolution( + type = 'resolution', + x = 1.337, + y = 1.337, + ) + """ + + def testResolution(self): + """Test Resolution""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/python/test/test_single_raster_or_vector_operator.py b/python/test/test_single_raster_or_vector_operator.py index 3eceafc1..766c8c73 100644 --- a/python/test/test_single_raster_or_vector_operator.py +++ b/python/test/test_single_raster_or_vector_operator.py @@ -36,33 +36,21 @@ def make_instance(self, include_optional) -> SingleRasterOrVectorOperator: model = SingleRasterOrVectorOperator() if include_optional: return SingleRasterOrVectorOperator( - params = geoengine_openapi_client.models.raster_vector_join_parameters.RasterVectorJoinParameters( - feature_aggregation = null, - feature_aggregation_ignore_no_data = True, - names = null, - temporal_aggregation = null, - temporal_aggregation_ignore_no_data = True, ), - sources = geoengine_openapi_client.models.single_vector_multiple_raster_sources.SingleVectorMultipleRasterSources( - rasters = [ - null - ], - vector = null, ), - type = 'GdalSource' + params = geoengine_openapi_client.models.reprojection_parameters.ReprojectionParameters( + derive_out_spec = null, + target_spatial_reference = '', ), + sources = geoengine_openapi_client.models.single_raster_or_vector_source.SingleRasterOrVectorSource( + source = null, ), + type = 'TemporalRasterAggregation' ) else: return SingleRasterOrVectorOperator( - params = geoengine_openapi_client.models.raster_vector_join_parameters.RasterVectorJoinParameters( - feature_aggregation = null, - feature_aggregation_ignore_no_data = True, - names = null, - temporal_aggregation = null, - temporal_aggregation_ignore_no_data = True, ), - sources = geoengine_openapi_client.models.single_vector_multiple_raster_sources.SingleVectorMultipleRasterSources( - rasters = [ - null - ], - vector = null, ), - type = 'GdalSource', + params = geoengine_openapi_client.models.reprojection_parameters.ReprojectionParameters( + derive_out_spec = null, + target_spatial_reference = '', ), + sources = geoengine_openapi_client.models.single_raster_or_vector_source.SingleRasterOrVectorSource( + source = null, ), + type = 'TemporalRasterAggregation', ) """ diff --git a/python/test/test_histogram_buckets_one_of1.py b/python/test/test_square_root_choice_rule.py similarity index 63% rename from python/test/test_histogram_buckets_one_of1.py rename to python/test/test_square_root_choice_rule.py index f0fe847e..ed6ffcdb 100644 --- a/python/test/test_histogram_buckets_one_of1.py +++ b/python/test/test_square_root_choice_rule.py @@ -15,10 +15,10 @@ import unittest -from geoengine_openapi_client.models.histogram_buckets_one_of1 import HistogramBucketsOneOf1 +from geoengine_openapi_client.models.square_root_choice_rule import SquareRootChoiceRule -class TestHistogramBucketsOneOf1(unittest.TestCase): - """HistogramBucketsOneOf1 unit test stubs""" +class TestSquareRootChoiceRule(unittest.TestCase): + """SquareRootChoiceRule unit test stubs""" def setUp(self): pass @@ -26,27 +26,27 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> HistogramBucketsOneOf1: - """Test HistogramBucketsOneOf1 + def make_instance(self, include_optional) -> SquareRootChoiceRule: + """Test SquareRootChoiceRule include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ - # uncomment below to create an instance of `HistogramBucketsOneOf1` + # uncomment below to create an instance of `SquareRootChoiceRule` """ - model = HistogramBucketsOneOf1() + model = SquareRootChoiceRule() if include_optional: - return HistogramBucketsOneOf1( + return SquareRootChoiceRule( max_number_of_buckets = 0, type = 'squareRootChoiceRule' ) else: - return HistogramBucketsOneOf1( + return SquareRootChoiceRule( type = 'squareRootChoiceRule', ) """ - def testHistogramBucketsOneOf1(self): - """Test HistogramBucketsOneOf1""" + def testSquareRootChoiceRule(self): + """Test SquareRootChoiceRule""" # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) diff --git a/python/test/test_sum_aggregation.py b/python/test/test_sum_aggregation.py new file mode 100644 index 00000000..98c4a523 --- /dev/null +++ b/python/test/test_sum_aggregation.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + Geo Engine API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.9.0 + Contact: dev@geoengine.de + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from geoengine_openapi_client.models.sum_aggregation import SumAggregation + +class TestSumAggregation(unittest.TestCase): + """SumAggregation unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> SumAggregation: + """Test SumAggregation + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `SumAggregation` + """ + model = SumAggregation() + if include_optional: + return SumAggregation( + ignore_no_data = True, + type = 'sum' + ) + else: + return SumAggregation( + ignore_no_data = True, + type = 'sum', + ) + """ + + def testSumAggregation(self): + """Test SumAggregation""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/python/test/test_temporal_raster_aggregation.py b/python/test/test_temporal_raster_aggregation.py new file mode 100644 index 00000000..7277f15b --- /dev/null +++ b/python/test/test_temporal_raster_aggregation.py @@ -0,0 +1,67 @@ +# coding: utf-8 + +""" + Geo Engine API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.9.0 + Contact: dev@geoengine.de + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from geoengine_openapi_client.models.temporal_raster_aggregation import TemporalRasterAggregation + +class TestTemporalRasterAggregation(unittest.TestCase): + """TemporalRasterAggregation unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> TemporalRasterAggregation: + """Test TemporalRasterAggregation + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `TemporalRasterAggregation` + """ + model = TemporalRasterAggregation() + if include_optional: + return TemporalRasterAggregation( + params = geoengine_openapi_client.models.temporal_raster_aggregation_parameters.TemporalRasterAggregationParameters( + aggregation = null, + output_type = null, + window = null, + window_reference = null, ), + sources = geoengine_openapi_client.models.single_raster_source.SingleRasterSource( + raster = null, ), + type = 'TemporalRasterAggregation' + ) + else: + return TemporalRasterAggregation( + params = geoengine_openapi_client.models.temporal_raster_aggregation_parameters.TemporalRasterAggregationParameters( + aggregation = null, + output_type = null, + window = null, + window_reference = null, ), + sources = geoengine_openapi_client.models.single_raster_source.SingleRasterSource( + raster = null, ), + type = 'TemporalRasterAggregation', + ) + """ + + def testTemporalRasterAggregation(self): + """Test TemporalRasterAggregation""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/python/test/test_temporal_raster_aggregation_parameters.py b/python/test/test_temporal_raster_aggregation_parameters.py new file mode 100644 index 00000000..b6a7d932 --- /dev/null +++ b/python/test/test_temporal_raster_aggregation_parameters.py @@ -0,0 +1,61 @@ +# coding: utf-8 + +""" + Geo Engine API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.9.0 + Contact: dev@geoengine.de + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from geoengine_openapi_client.models.temporal_raster_aggregation_parameters import TemporalRasterAggregationParameters + +class TestTemporalRasterAggregationParameters(unittest.TestCase): + """TemporalRasterAggregationParameters unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> TemporalRasterAggregationParameters: + """Test TemporalRasterAggregationParameters + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `TemporalRasterAggregationParameters` + """ + model = TemporalRasterAggregationParameters() + if include_optional: + return TemporalRasterAggregationParameters( + aggregation = None, + output_type = 'U8', + window = geoengine_openapi_client.models.time_step.TimeStep( + granularity = 'millis', + step = 0, ), + window_reference = 56 + ) + else: + return TemporalRasterAggregationParameters( + aggregation = None, + window = geoengine_openapi_client.models.time_step.TimeStep( + granularity = 'millis', + step = 0, ), + ) + """ + + def testTemporalRasterAggregationParameters(self): + """Test TemporalRasterAggregationParameters""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/python/test/test_data_path_one_of1.py b/python/test/test_upload.py similarity index 65% rename from python/test/test_data_path_one_of1.py rename to python/test/test_upload.py index 49708deb..f5c1dc9b 100644 --- a/python/test/test_data_path_one_of1.py +++ b/python/test/test_upload.py @@ -15,10 +15,10 @@ import unittest -from geoengine_openapi_client.models.data_path_one_of1 import DataPathOneOf1 +from geoengine_openapi_client.models.upload import Upload -class TestDataPathOneOf1(unittest.TestCase): - """DataPathOneOf1 unit test stubs""" +class TestUpload(unittest.TestCase): + """Upload unit test stubs""" def setUp(self): pass @@ -26,26 +26,26 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> DataPathOneOf1: - """Test DataPathOneOf1 + def make_instance(self, include_optional) -> Upload: + """Test Upload include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ - # uncomment below to create an instance of `DataPathOneOf1` + # uncomment below to create an instance of `Upload` """ - model = DataPathOneOf1() + model = Upload() if include_optional: - return DataPathOneOf1( + return Upload( upload = '' ) else: - return DataPathOneOf1( + return Upload( upload = '', ) """ - def testDataPathOneOf1(self): - """Test DataPathOneOf1""" + def testUpload(self): + """Test Upload""" # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) diff --git a/python/test/test_values.py b/python/test/test_values.py new file mode 100644 index 00000000..b015d1ab --- /dev/null +++ b/python/test/test_values.py @@ -0,0 +1,57 @@ +# coding: utf-8 + +""" + Geo Engine API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.9.0 + Contact: dev@geoengine.de + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from geoengine_openapi_client.models.values import Values + +class TestValues(unittest.TestCase): + """Values unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> Values: + """Test Values + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `Values` + """ + model = Values() + if include_optional: + return Values( + values = geoengine_openapi_client.models.values_values.Values_values( + max = 1.337, + min = 1.337, ) + ) + else: + return Values( + values = geoengine_openapi_client.models.values_values.Values_values( + max = 1.337, + min = 1.337, ), + ) + """ + + def testValues(self): + """Test Values""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/python/test/test_histogram_bounds_one_of1_values.py b/python/test/test_values_values.py similarity index 60% rename from python/test/test_histogram_bounds_one_of1_values.py rename to python/test/test_values_values.py index a58a890d..f34b2058 100644 --- a/python/test/test_histogram_bounds_one_of1_values.py +++ b/python/test/test_values_values.py @@ -15,10 +15,10 @@ import unittest -from geoengine_openapi_client.models.histogram_bounds_one_of1_values import HistogramBoundsOneOf1Values +from geoengine_openapi_client.models.values_values import ValuesValues -class TestHistogramBoundsOneOf1Values(unittest.TestCase): - """HistogramBoundsOneOf1Values unit test stubs""" +class TestValuesValues(unittest.TestCase): + """ValuesValues unit test stubs""" def setUp(self): pass @@ -26,28 +26,28 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> HistogramBoundsOneOf1Values: - """Test HistogramBoundsOneOf1Values + def make_instance(self, include_optional) -> ValuesValues: + """Test ValuesValues include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ - # uncomment below to create an instance of `HistogramBoundsOneOf1Values` + # uncomment below to create an instance of `ValuesValues` """ - model = HistogramBoundsOneOf1Values() + model = ValuesValues() if include_optional: - return HistogramBoundsOneOf1Values( + return ValuesValues( max = 1.337, min = 1.337 ) else: - return HistogramBoundsOneOf1Values( + return ValuesValues( max = 1.337, min = 1.337, ) """ - def testHistogramBoundsOneOf1Values(self): - """Test HistogramBoundsOneOf1Values""" + def testValuesValues(self): + """Test ValuesValues""" # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) diff --git a/python/test/test_vector_operator.py b/python/test/test_vector_operator.py index 937bdaa4..9a500432 100644 --- a/python/test/test_vector_operator.py +++ b/python/test/test_vector_operator.py @@ -36,33 +36,21 @@ def make_instance(self, include_optional) -> VectorOperator: model = VectorOperator() if include_optional: return VectorOperator( - params = geoengine_openapi_client.models.raster_vector_join_parameters.RasterVectorJoinParameters( - feature_aggregation = null, - feature_aggregation_ignore_no_data = True, - names = null, - temporal_aggregation = null, - temporal_aggregation_ignore_no_data = True, ), + params = geoengine_openapi_client.models.reprojection_parameters.ReprojectionParameters( + derive_out_spec = null, + target_spatial_reference = '', ), type = 'MockPointSource', - sources = geoengine_openapi_client.models.single_vector_multiple_raster_sources.SingleVectorMultipleRasterSources( - rasters = [ - null - ], - vector = null, ) + sources = geoengine_openapi_client.models.single_raster_or_vector_source.SingleRasterOrVectorSource( + source = null, ) ) else: return VectorOperator( - params = geoengine_openapi_client.models.raster_vector_join_parameters.RasterVectorJoinParameters( - feature_aggregation = null, - feature_aggregation_ignore_no_data = True, - names = null, - temporal_aggregation = null, - temporal_aggregation_ignore_no_data = True, ), + params = geoengine_openapi_client.models.reprojection_parameters.ReprojectionParameters( + derive_out_spec = null, + target_spatial_reference = '', ), type = 'MockPointSource', - sources = geoengine_openapi_client.models.single_vector_multiple_raster_sources.SingleVectorMultipleRasterSources( - rasters = [ - null - ], - vector = null, ), + sources = geoengine_openapi_client.models.single_raster_or_vector_source.SingleRasterOrVectorSource( + source = null, ), ) """ diff --git a/python/test/test_data_path_one_of.py b/python/test/test_volume1.py similarity index 66% rename from python/test/test_data_path_one_of.py rename to python/test/test_volume1.py index 0c505f24..65c13255 100644 --- a/python/test/test_data_path_one_of.py +++ b/python/test/test_volume1.py @@ -15,10 +15,10 @@ import unittest -from geoengine_openapi_client.models.data_path_one_of import DataPathOneOf +from geoengine_openapi_client.models.volume1 import Volume1 -class TestDataPathOneOf(unittest.TestCase): - """DataPathOneOf unit test stubs""" +class TestVolume1(unittest.TestCase): + """Volume1 unit test stubs""" def setUp(self): pass @@ -26,26 +26,26 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> DataPathOneOf: - """Test DataPathOneOf + def make_instance(self, include_optional) -> Volume1: + """Test Volume1 include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ - # uncomment below to create an instance of `DataPathOneOf` + # uncomment below to create an instance of `Volume1` """ - model = DataPathOneOf() + model = Volume1() if include_optional: - return DataPathOneOf( + return Volume1( volume = '' ) else: - return DataPathOneOf( + return Volume1( volume = '', ) """ - def testDataPathOneOf(self): - """Test DataPathOneOf""" + def testVolume1(self): + """Test Volume1""" # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) diff --git a/rust/.openapi-generator/FILES b/rust/.openapi-generator/FILES index 999a4de8..49f922f3 100644 --- a/rust/.openapi-generator/FILES +++ b/rust/.openapi-generator/FILES @@ -6,11 +6,15 @@ docs/AddDataset.md docs/AddLayer.md docs/AddLayerCollection.md docs/AddRole.md +docs/Aggregation.md docs/ArunaDataProviderDefinition.md docs/AuthCodeRequestUrl.md docs/AuthCodeResponse.md docs/AutoCreateDataset.md docs/AxisOrder.md +docs/BandFilter.md +docs/BandFilterParameters.md +docs/BandsByNameOrIndex.md docs/BoundingBox2D.md docs/Breakpoint.md docs/ClassificationMeasurement.md @@ -23,13 +27,13 @@ docs/ComputationQuota.md docs/ContinuousMeasurement.md docs/Coordinate2D.md docs/CopernicusDataspaceDataProviderDefinition.md +docs/CountAggregation.md docs/CreateDataset.md docs/CreateProject.md docs/CsvHeader.md +docs/Data1.md docs/DataId.md docs/DataPath.md -docs/DataPathOneOf.md -docs/DataPathOneOf1.md docs/DataProviderResource.md docs/DataUsage.md docs/DataUsageSummary.md @@ -43,6 +47,7 @@ docs/DatasetNameResponse.md docs/DatasetResource.md docs/DatasetsApi.md docs/Default.md +docs/DeriveOutRasterSpecsSource.md docs/DerivedColor.md docs/DerivedNumber.md docs/EbvPortalDataProviderDefinition.md @@ -55,8 +60,10 @@ docs/ExternalDataId.md docs/FeatureAggregationMethod.md docs/FeatureDataType.md docs/FileNotFoundHandling.md +docs/FirstAggregation.md docs/FormatSpecifics.md docs/FormatSpecificsCsv.md +docs/Fraction.md docs/GbifDataProviderDefinition.md docs/GdalDatasetParameters.md docs/GdalLoadingInfoTemporalSlice.md @@ -80,15 +87,16 @@ docs/GridBoundingBox2D.md docs/GridIdx2D.md docs/Histogram.md docs/HistogramBounds.md -docs/HistogramBoundsOneOf.md -docs/HistogramBoundsOneOf1.md -docs/HistogramBoundsOneOf1Values.md docs/HistogramBuckets.md -docs/HistogramBucketsOneOf.md -docs/HistogramBucketsOneOf1.md docs/HistogramParameters.md docs/IdResponse.md docs/InternalDataId.md +docs/Interpolation.md +docs/InterpolationMethod.md +docs/InterpolationParameters.md +docs/InterpolationResolution.md +docs/Irregular.md +docs/LastAggregation.md docs/Layer.md docs/LayerCollection.md docs/LayerCollectionListing.md @@ -103,9 +111,12 @@ docs/LegacyTypedOperatorOperator.md docs/LineSymbology.md docs/LinearGradient.md docs/LogarithmicGradient.md +docs/MaxAggregation.md +docs/MeanAggregation.md docs/Measurement.md docs/MetaDataDefinition.md docs/MetaDataSuggestion.md +docs/MinAggregation.md docs/MlApi.md docs/MlModel.md docs/MlModelInputNoDataHandling.md @@ -120,14 +131,21 @@ docs/MockDatasetDataSourceLoadingInfo.md docs/MockMetaData.md docs/MockPointSource.md docs/MockPointSourceParameters.md +docs/MultiBandGdalSource.md docs/MultiBandRasterColorizer.md docs/MultiLineString.md +docs/MultiLineString1.md docs/MultiPoint.md +docs/MultiPoint1.md docs/MultiPolygon.md +docs/MultiPolygon1.md docs/MultipleRasterOrSingleVectorOperator.md docs/MultipleRasterOrSingleVectorSource.md +docs/MultipleRasterSources.md docs/Names.md docs/NetCdfCfDataProviderDefinition.md +docs/NoGeometry1.md +docs/Number.md docs/NumberParam.md docs/OgcwcsApi.md docs/OgcwfsApi.md @@ -153,6 +171,7 @@ docs/OperatorQuota.md docs/OrderBy.md docs/PaletteColorizer.md docs/PangaeaDataProviderDefinition.md +docs/PercentileEstimateAggregation.md docs/Permission.md docs/PermissionListing.md docs/PermissionRequest.md @@ -186,12 +205,22 @@ docs/RasterOperator.md docs/RasterPropertiesEntryType.md docs/RasterPropertiesKey.md docs/RasterResultDescriptor.md +docs/RasterStacker.md +docs/RasterStackerParameters.md docs/RasterStreamWebsocketResultType.md docs/RasterSymbology.md docs/RasterToDatasetQueryRectangle.md +docs/RasterTypeConversion.md +docs/RasterTypeConversionParameters.md docs/RasterVectorJoin.md docs/RasterVectorJoinParameters.md +docs/Regular.md docs/RegularTimeDimension.md +docs/Rename.md +docs/RenameBands.md +docs/Reprojection.md +docs/ReprojectionParameters.md +docs/Resolution.md docs/Resource.md docs/Role.md docs/RoleDescription.md @@ -216,6 +245,7 @@ docs/SpatialGridDescriptorState.md docs/SpatialPartition2D.md docs/SpatialReferenceSpecification.md docs/SpatialReferencesApi.md +docs/SquareRootChoiceRule.md docs/StRectangle.md docs/StacApiRetries.md docs/StacQueryBuffer.md @@ -226,6 +256,7 @@ docs/StatisticsParameters.md docs/StrokeParam.md docs/Suffix.md docs/SuggestMetaData.md +docs/SumAggregation.md docs/Symbology.md docs/TaskFilter.md docs/TaskResponse.md @@ -237,21 +268,17 @@ docs/TaskStatusRunning.md docs/TaskStatusWithId.md docs/TasksApi.md docs/TemporalAggregationMethod.md +docs/TemporalRasterAggregation.md +docs/TemporalRasterAggregationParameters.md docs/TextSymbology.md docs/TimeDescriptor.md docs/TimeDimension.md -docs/TimeDimensionOneOf.md -docs/TimeDimensionOneOf1.md docs/TimeGranularity.md docs/TimeInterval.md docs/TimeReference.md docs/TimeStep.md docs/TypedDataProviderDefinition.md docs/TypedGeometry.md -docs/TypedGeometryOneOf.md -docs/TypedGeometryOneOf1.md -docs/TypedGeometryOneOf2.md -docs/TypedGeometryOneOf3.md docs/TypedOperator.md docs/TypedPlotOperator.md docs/TypedPlotResultDescriptor.md @@ -267,6 +294,7 @@ docs/UpdateLayer.md docs/UpdateLayerCollection.md docs/UpdateProject.md docs/UpdateQuota.md +docs/Upload.md docs/UploadFileLayersResponse.md docs/UploadFilesResponse.md docs/UploadsApi.md @@ -276,12 +304,15 @@ docs/UserCredentials.md docs/UserInfo.md docs/UserRegistration.md docs/UserSession.md +docs/Values.md +docs/ValuesValues.md docs/VecUpdate.md docs/VectorColumnInfo.md docs/VectorDataType.md docs/VectorOperator.md docs/VectorResultDescriptor.md docs/Volume.md +docs/Volume1.md docs/VolumeFileLayersResponse.md docs/WcsRequest.md docs/WcsService.md @@ -321,11 +352,15 @@ src/models/add_dataset.rs src/models/add_layer.rs src/models/add_layer_collection.rs src/models/add_role.rs +src/models/aggregation.rs src/models/aruna_data_provider_definition.rs src/models/auth_code_request_url.rs src/models/auth_code_response.rs src/models/auto_create_dataset.rs src/models/axis_order.rs +src/models/band_filter.rs +src/models/band_filter_parameters.rs +src/models/bands_by_name_or_index.rs src/models/bounding_box2_d.rs src/models/breakpoint.rs src/models/classification_measurement.rs @@ -338,13 +373,13 @@ src/models/computation_quota.rs src/models/continuous_measurement.rs src/models/coordinate2_d.rs src/models/copernicus_dataspace_data_provider_definition.rs +src/models/count_aggregation.rs src/models/create_dataset.rs src/models/create_project.rs src/models/csv_header.rs +src/models/data_1.rs src/models/data_id.rs src/models/data_path.rs -src/models/data_path_one_of.rs -src/models/data_path_one_of_1.rs src/models/data_provider_resource.rs src/models/data_usage.rs src/models/data_usage_summary.rs @@ -357,6 +392,7 @@ src/models/dataset_listing.rs src/models/dataset_name_response.rs src/models/dataset_resource.rs src/models/default.rs +src/models/derive_out_raster_specs_source.rs src/models/derived_color.rs src/models/derived_number.rs src/models/ebv_portal_data_provider_definition.rs @@ -369,8 +405,10 @@ src/models/external_data_id.rs src/models/feature_aggregation_method.rs src/models/feature_data_type.rs src/models/file_not_found_handling.rs +src/models/first_aggregation.rs src/models/format_specifics.rs src/models/format_specifics_csv.rs +src/models/fraction.rs src/models/gbif_data_provider_definition.rs src/models/gdal_dataset_parameters.rs src/models/gdal_loading_info_temporal_slice.rs @@ -393,15 +431,16 @@ src/models/grid_bounding_box2_d.rs src/models/grid_idx2_d.rs src/models/histogram.rs src/models/histogram_bounds.rs -src/models/histogram_bounds_one_of.rs -src/models/histogram_bounds_one_of_1.rs -src/models/histogram_bounds_one_of_1_values.rs src/models/histogram_buckets.rs -src/models/histogram_buckets_one_of.rs -src/models/histogram_buckets_one_of_1.rs src/models/histogram_parameters.rs src/models/id_response.rs src/models/internal_data_id.rs +src/models/interpolation.rs +src/models/interpolation_method.rs +src/models/interpolation_parameters.rs +src/models/interpolation_resolution.rs +src/models/irregular.rs +src/models/last_aggregation.rs src/models/layer.rs src/models/layer_collection.rs src/models/layer_collection_listing.rs @@ -415,9 +454,12 @@ src/models/legacy_typed_operator_operator.rs src/models/line_symbology.rs src/models/linear_gradient.rs src/models/logarithmic_gradient.rs +src/models/max_aggregation.rs +src/models/mean_aggregation.rs src/models/measurement.rs src/models/meta_data_definition.rs src/models/meta_data_suggestion.rs +src/models/min_aggregation.rs src/models/ml_model.rs src/models/ml_model_input_no_data_handling.rs src/models/ml_model_input_no_data_handling_variant.rs @@ -432,14 +474,21 @@ src/models/mock_meta_data.rs src/models/mock_point_source.rs src/models/mock_point_source_parameters.rs src/models/mod.rs +src/models/multi_band_gdal_source.rs src/models/multi_band_raster_colorizer.rs src/models/multi_line_string.rs +src/models/multi_line_string_1.rs src/models/multi_point.rs +src/models/multi_point_1.rs src/models/multi_polygon.rs +src/models/multi_polygon_1.rs src/models/multiple_raster_or_single_vector_operator.rs src/models/multiple_raster_or_single_vector_source.rs +src/models/multiple_raster_sources.rs src/models/names.rs src/models/net_cdf_cf_data_provider_definition.rs +src/models/no_geometry_1.rs +src/models/number.rs src/models/number_param.rs src/models/ogr_meta_data.rs src/models/ogr_source_column_spec.rs @@ -462,6 +511,7 @@ src/models/operator_quota.rs src/models/order_by.rs src/models/palette_colorizer.rs src/models/pangaea_data_provider_definition.rs +src/models/percentile_estimate_aggregation.rs src/models/permission.rs src/models/permission_listing.rs src/models/permission_request.rs @@ -492,12 +542,22 @@ src/models/raster_operator.rs src/models/raster_properties_entry_type.rs src/models/raster_properties_key.rs src/models/raster_result_descriptor.rs +src/models/raster_stacker.rs +src/models/raster_stacker_parameters.rs src/models/raster_stream_websocket_result_type.rs src/models/raster_symbology.rs src/models/raster_to_dataset_query_rectangle.rs +src/models/raster_type_conversion.rs +src/models/raster_type_conversion_parameters.rs src/models/raster_vector_join.rs src/models/raster_vector_join_parameters.rs +src/models/regular.rs src/models/regular_time_dimension.rs +src/models/rename.rs +src/models/rename_bands.rs +src/models/reprojection.rs +src/models/reprojection_parameters.rs +src/models/resolution.rs src/models/resource.rs src/models/role.rs src/models/role_description.rs @@ -520,6 +580,7 @@ src/models/spatial_grid_descriptor.rs src/models/spatial_grid_descriptor_state.rs src/models/spatial_partition2_d.rs src/models/spatial_reference_specification.rs +src/models/square_root_choice_rule.rs src/models/st_rectangle.rs src/models/stac_api_retries.rs src/models/stac_query_buffer.rs @@ -530,6 +591,7 @@ src/models/statistics_parameters.rs src/models/stroke_param.rs src/models/suffix.rs src/models/suggest_meta_data.rs +src/models/sum_aggregation.rs src/models/symbology.rs src/models/task_filter.rs src/models/task_response.rs @@ -540,21 +602,17 @@ src/models/task_status_failed.rs src/models/task_status_running.rs src/models/task_status_with_id.rs src/models/temporal_aggregation_method.rs +src/models/temporal_raster_aggregation.rs +src/models/temporal_raster_aggregation_parameters.rs src/models/text_symbology.rs src/models/time_descriptor.rs src/models/time_dimension.rs -src/models/time_dimension_one_of.rs -src/models/time_dimension_one_of_1.rs src/models/time_granularity.rs src/models/time_interval.rs src/models/time_reference.rs src/models/time_step.rs src/models/typed_data_provider_definition.rs src/models/typed_geometry.rs -src/models/typed_geometry_one_of.rs -src/models/typed_geometry_one_of_1.rs -src/models/typed_geometry_one_of_2.rs -src/models/typed_geometry_one_of_3.rs src/models/typed_operator.rs src/models/typed_plot_operator.rs src/models/typed_plot_result_descriptor.rs @@ -570,6 +628,7 @@ src/models/update_layer.rs src/models/update_layer_collection.rs src/models/update_project.rs src/models/update_quota.rs +src/models/upload.rs src/models/upload_file_layers_response.rs src/models/upload_files_response.rs src/models/usage_summary_granularity.rs @@ -577,12 +636,15 @@ src/models/user_credentials.rs src/models/user_info.rs src/models/user_registration.rs src/models/user_session.rs +src/models/values.rs +src/models/values_values.rs src/models/vec_update.rs src/models/vector_column_info.rs src/models/vector_data_type.rs src/models/vector_operator.rs src/models/vector_result_descriptor.rs src/models/volume.rs +src/models/volume_1.rs src/models/volume_file_layers_response.rs src/models/wcs_request.rs src/models/wcs_service.rs diff --git a/rust/README.md b/rust/README.md index 114ff14c..2df6d901 100644 --- a/rust/README.md +++ b/rust/README.md @@ -126,11 +126,15 @@ Class | Method | HTTP request | Description - [AddLayer](docs/AddLayer.md) - [AddLayerCollection](docs/AddLayerCollection.md) - [AddRole](docs/AddRole.md) + - [Aggregation](docs/Aggregation.md) - [ArunaDataProviderDefinition](docs/ArunaDataProviderDefinition.md) - [AuthCodeRequestUrl](docs/AuthCodeRequestUrl.md) - [AuthCodeResponse](docs/AuthCodeResponse.md) - [AutoCreateDataset](docs/AutoCreateDataset.md) - [AxisOrder](docs/AxisOrder.md) + - [BandFilter](docs/BandFilter.md) + - [BandFilterParameters](docs/BandFilterParameters.md) + - [BandsByNameOrIndex](docs/BandsByNameOrIndex.md) - [BoundingBox2D](docs/BoundingBox2D.md) - [Breakpoint](docs/Breakpoint.md) - [ClassificationMeasurement](docs/ClassificationMeasurement.md) @@ -143,13 +147,13 @@ Class | Method | HTTP request | Description - [ContinuousMeasurement](docs/ContinuousMeasurement.md) - [Coordinate2D](docs/Coordinate2D.md) - [CopernicusDataspaceDataProviderDefinition](docs/CopernicusDataspaceDataProviderDefinition.md) + - [CountAggregation](docs/CountAggregation.md) - [CreateDataset](docs/CreateDataset.md) - [CreateProject](docs/CreateProject.md) - [CsvHeader](docs/CsvHeader.md) + - [Data1](docs/Data1.md) - [DataId](docs/DataId.md) - [DataPath](docs/DataPath.md) - - [DataPathOneOf](docs/DataPathOneOf.md) - - [DataPathOneOf1](docs/DataPathOneOf1.md) - [DataProviderResource](docs/DataProviderResource.md) - [DataUsage](docs/DataUsage.md) - [DataUsageSummary](docs/DataUsageSummary.md) @@ -162,6 +166,7 @@ Class | Method | HTTP request | Description - [DatasetNameResponse](docs/DatasetNameResponse.md) - [DatasetResource](docs/DatasetResource.md) - [Default](docs/Default.md) + - [DeriveOutRasterSpecsSource](docs/DeriveOutRasterSpecsSource.md) - [DerivedColor](docs/DerivedColor.md) - [DerivedNumber](docs/DerivedNumber.md) - [EbvPortalDataProviderDefinition](docs/EbvPortalDataProviderDefinition.md) @@ -174,8 +179,10 @@ Class | Method | HTTP request | Description - [FeatureAggregationMethod](docs/FeatureAggregationMethod.md) - [FeatureDataType](docs/FeatureDataType.md) - [FileNotFoundHandling](docs/FileNotFoundHandling.md) + - [FirstAggregation](docs/FirstAggregation.md) - [FormatSpecifics](docs/FormatSpecifics.md) - [FormatSpecificsCsv](docs/FormatSpecificsCsv.md) + - [Fraction](docs/Fraction.md) - [GbifDataProviderDefinition](docs/GbifDataProviderDefinition.md) - [GdalDatasetParameters](docs/GdalDatasetParameters.md) - [GdalLoadingInfoTemporalSlice](docs/GdalLoadingInfoTemporalSlice.md) @@ -198,15 +205,16 @@ Class | Method | HTTP request | Description - [GridIdx2D](docs/GridIdx2D.md) - [Histogram](docs/Histogram.md) - [HistogramBounds](docs/HistogramBounds.md) - - [HistogramBoundsOneOf](docs/HistogramBoundsOneOf.md) - - [HistogramBoundsOneOf1](docs/HistogramBoundsOneOf1.md) - - [HistogramBoundsOneOf1Values](docs/HistogramBoundsOneOf1Values.md) - [HistogramBuckets](docs/HistogramBuckets.md) - - [HistogramBucketsOneOf](docs/HistogramBucketsOneOf.md) - - [HistogramBucketsOneOf1](docs/HistogramBucketsOneOf1.md) - [HistogramParameters](docs/HistogramParameters.md) - [IdResponse](docs/IdResponse.md) - [InternalDataId](docs/InternalDataId.md) + - [Interpolation](docs/Interpolation.md) + - [InterpolationMethod](docs/InterpolationMethod.md) + - [InterpolationParameters](docs/InterpolationParameters.md) + - [InterpolationResolution](docs/InterpolationResolution.md) + - [Irregular](docs/Irregular.md) + - [LastAggregation](docs/LastAggregation.md) - [Layer](docs/Layer.md) - [LayerCollection](docs/LayerCollection.md) - [LayerCollectionListing](docs/LayerCollectionListing.md) @@ -220,9 +228,12 @@ Class | Method | HTTP request | Description - [LineSymbology](docs/LineSymbology.md) - [LinearGradient](docs/LinearGradient.md) - [LogarithmicGradient](docs/LogarithmicGradient.md) + - [MaxAggregation](docs/MaxAggregation.md) + - [MeanAggregation](docs/MeanAggregation.md) - [Measurement](docs/Measurement.md) - [MetaDataDefinition](docs/MetaDataDefinition.md) - [MetaDataSuggestion](docs/MetaDataSuggestion.md) + - [MinAggregation](docs/MinAggregation.md) - [MlModel](docs/MlModel.md) - [MlModelInputNoDataHandling](docs/MlModelInputNoDataHandling.md) - [MlModelInputNoDataHandlingVariant](docs/MlModelInputNoDataHandlingVariant.md) @@ -236,14 +247,21 @@ Class | Method | HTTP request | Description - [MockMetaData](docs/MockMetaData.md) - [MockPointSource](docs/MockPointSource.md) - [MockPointSourceParameters](docs/MockPointSourceParameters.md) + - [MultiBandGdalSource](docs/MultiBandGdalSource.md) - [MultiBandRasterColorizer](docs/MultiBandRasterColorizer.md) - [MultiLineString](docs/MultiLineString.md) + - [MultiLineString1](docs/MultiLineString1.md) - [MultiPoint](docs/MultiPoint.md) + - [MultiPoint1](docs/MultiPoint1.md) - [MultiPolygon](docs/MultiPolygon.md) + - [MultiPolygon1](docs/MultiPolygon1.md) - [MultipleRasterOrSingleVectorOperator](docs/MultipleRasterOrSingleVectorOperator.md) - [MultipleRasterOrSingleVectorSource](docs/MultipleRasterOrSingleVectorSource.md) + - [MultipleRasterSources](docs/MultipleRasterSources.md) - [Names](docs/Names.md) - [NetCdfCfDataProviderDefinition](docs/NetCdfCfDataProviderDefinition.md) + - [NoGeometry1](docs/NoGeometry1.md) + - [Number](docs/Number.md) - [NumberParam](docs/NumberParam.md) - [OgrMetaData](docs/OgrMetaData.md) - [OgrSourceColumnSpec](docs/OgrSourceColumnSpec.md) @@ -266,6 +284,7 @@ Class | Method | HTTP request | Description - [OrderBy](docs/OrderBy.md) - [PaletteColorizer](docs/PaletteColorizer.md) - [PangaeaDataProviderDefinition](docs/PangaeaDataProviderDefinition.md) + - [PercentileEstimateAggregation](docs/PercentileEstimateAggregation.md) - [Permission](docs/Permission.md) - [PermissionListing](docs/PermissionListing.md) - [PermissionRequest](docs/PermissionRequest.md) @@ -296,12 +315,22 @@ Class | Method | HTTP request | Description - [RasterPropertiesEntryType](docs/RasterPropertiesEntryType.md) - [RasterPropertiesKey](docs/RasterPropertiesKey.md) - [RasterResultDescriptor](docs/RasterResultDescriptor.md) + - [RasterStacker](docs/RasterStacker.md) + - [RasterStackerParameters](docs/RasterStackerParameters.md) - [RasterStreamWebsocketResultType](docs/RasterStreamWebsocketResultType.md) - [RasterSymbology](docs/RasterSymbology.md) - [RasterToDatasetQueryRectangle](docs/RasterToDatasetQueryRectangle.md) + - [RasterTypeConversion](docs/RasterTypeConversion.md) + - [RasterTypeConversionParameters](docs/RasterTypeConversionParameters.md) - [RasterVectorJoin](docs/RasterVectorJoin.md) - [RasterVectorJoinParameters](docs/RasterVectorJoinParameters.md) + - [Regular](docs/Regular.md) - [RegularTimeDimension](docs/RegularTimeDimension.md) + - [Rename](docs/Rename.md) + - [RenameBands](docs/RenameBands.md) + - [Reprojection](docs/Reprojection.md) + - [ReprojectionParameters](docs/ReprojectionParameters.md) + - [Resolution](docs/Resolution.md) - [Resource](docs/Resource.md) - [Role](docs/Role.md) - [RoleDescription](docs/RoleDescription.md) @@ -324,6 +353,7 @@ Class | Method | HTTP request | Description - [SpatialGridDescriptorState](docs/SpatialGridDescriptorState.md) - [SpatialPartition2D](docs/SpatialPartition2D.md) - [SpatialReferenceSpecification](docs/SpatialReferenceSpecification.md) + - [SquareRootChoiceRule](docs/SquareRootChoiceRule.md) - [StRectangle](docs/StRectangle.md) - [StacApiRetries](docs/StacApiRetries.md) - [StacQueryBuffer](docs/StacQueryBuffer.md) @@ -334,6 +364,7 @@ Class | Method | HTTP request | Description - [StrokeParam](docs/StrokeParam.md) - [Suffix](docs/Suffix.md) - [SuggestMetaData](docs/SuggestMetaData.md) + - [SumAggregation](docs/SumAggregation.md) - [Symbology](docs/Symbology.md) - [TaskFilter](docs/TaskFilter.md) - [TaskResponse](docs/TaskResponse.md) @@ -344,21 +375,17 @@ Class | Method | HTTP request | Description - [TaskStatusRunning](docs/TaskStatusRunning.md) - [TaskStatusWithId](docs/TaskStatusWithId.md) - [TemporalAggregationMethod](docs/TemporalAggregationMethod.md) + - [TemporalRasterAggregation](docs/TemporalRasterAggregation.md) + - [TemporalRasterAggregationParameters](docs/TemporalRasterAggregationParameters.md) - [TextSymbology](docs/TextSymbology.md) - [TimeDescriptor](docs/TimeDescriptor.md) - [TimeDimension](docs/TimeDimension.md) - - [TimeDimensionOneOf](docs/TimeDimensionOneOf.md) - - [TimeDimensionOneOf1](docs/TimeDimensionOneOf1.md) - [TimeGranularity](docs/TimeGranularity.md) - [TimeInterval](docs/TimeInterval.md) - [TimeReference](docs/TimeReference.md) - [TimeStep](docs/TimeStep.md) - [TypedDataProviderDefinition](docs/TypedDataProviderDefinition.md) - [TypedGeometry](docs/TypedGeometry.md) - - [TypedGeometryOneOf](docs/TypedGeometryOneOf.md) - - [TypedGeometryOneOf1](docs/TypedGeometryOneOf1.md) - - [TypedGeometryOneOf2](docs/TypedGeometryOneOf2.md) - - [TypedGeometryOneOf3](docs/TypedGeometryOneOf3.md) - [TypedOperator](docs/TypedOperator.md) - [TypedPlotOperator](docs/TypedPlotOperator.md) - [TypedPlotResultDescriptor](docs/TypedPlotResultDescriptor.md) @@ -374,6 +401,7 @@ Class | Method | HTTP request | Description - [UpdateLayerCollection](docs/UpdateLayerCollection.md) - [UpdateProject](docs/UpdateProject.md) - [UpdateQuota](docs/UpdateQuota.md) + - [Upload](docs/Upload.md) - [UploadFileLayersResponse](docs/UploadFileLayersResponse.md) - [UploadFilesResponse](docs/UploadFilesResponse.md) - [UsageSummaryGranularity](docs/UsageSummaryGranularity.md) @@ -381,12 +409,15 @@ Class | Method | HTTP request | Description - [UserInfo](docs/UserInfo.md) - [UserRegistration](docs/UserRegistration.md) - [UserSession](docs/UserSession.md) + - [Values](docs/Values.md) + - [ValuesValues](docs/ValuesValues.md) - [VecUpdate](docs/VecUpdate.md) - [VectorColumnInfo](docs/VectorColumnInfo.md) - [VectorDataType](docs/VectorDataType.md) - [VectorOperator](docs/VectorOperator.md) - [VectorResultDescriptor](docs/VectorResultDescriptor.md) - [Volume](docs/Volume.md) + - [Volume1](docs/Volume1.md) - [VolumeFileLayersResponse](docs/VolumeFileLayersResponse.md) - [WcsRequest](docs/WcsRequest.md) - [WcsService](docs/WcsService.md) diff --git a/rust/diffs/rust/src/models/raster_operator.rs.diff b/rust/diffs/rust/src/models/raster_operator.rs.diff index 1d7fc1f7..471b4850 100644 --- a/rust/diffs/rust/src/models/raster_operator.rs.diff +++ b/rust/diffs/rust/src/models/raster_operator.rs.diff @@ -7,5 +7,5 @@ -#[serde(tag = "type")] +#[serde(untagged)] pub enum RasterOperator { - #[serde(rename="Expression")] - Expression(Box), + #[serde(rename="BandFilter")] + BandFilter(Box), diff --git a/rust/docs/Aggregation.md b/rust/docs/Aggregation.md new file mode 100644 index 00000000..3a70b0af --- /dev/null +++ b/rust/docs/Aggregation.md @@ -0,0 +1,18 @@ +# Aggregation + +## Enum Variants + +| Name | Description | +|---- | -----| +| CountAggregation | Aggregation methods for `TemporalRasterAggregation`. Available variants are `min`, `max`, `first`, `last`, `mean`, `sum`, `count`, and `percentileEstimate`. Encountering NO DATA makes the aggregation result NO DATA unless `ignoreNoData` is `true`. | +| FirstAggregation | Aggregation methods for `TemporalRasterAggregation`. Available variants are `min`, `max`, `first`, `last`, `mean`, `sum`, `count`, and `percentileEstimate`. Encountering NO DATA makes the aggregation result NO DATA unless `ignoreNoData` is `true`. | +| LastAggregation | Aggregation methods for `TemporalRasterAggregation`. Available variants are `min`, `max`, `first`, `last`, `mean`, `sum`, `count`, and `percentileEstimate`. Encountering NO DATA makes the aggregation result NO DATA unless `ignoreNoData` is `true`. | +| MaxAggregation | Aggregation methods for `TemporalRasterAggregation`. Available variants are `min`, `max`, `first`, `last`, `mean`, `sum`, `count`, and `percentileEstimate`. Encountering NO DATA makes the aggregation result NO DATA unless `ignoreNoData` is `true`. | +| MeanAggregation | Aggregation methods for `TemporalRasterAggregation`. Available variants are `min`, `max`, `first`, `last`, `mean`, `sum`, `count`, and `percentileEstimate`. Encountering NO DATA makes the aggregation result NO DATA unless `ignoreNoData` is `true`. | +| MinAggregation | Aggregation methods for `TemporalRasterAggregation`. Available variants are `min`, `max`, `first`, `last`, `mean`, `sum`, `count`, and `percentileEstimate`. Encountering NO DATA makes the aggregation result NO DATA unless `ignoreNoData` is `true`. | +| PercentileEstimateAggregation | Aggregation methods for `TemporalRasterAggregation`. Available variants are `min`, `max`, `first`, `last`, `mean`, `sum`, `count`, and `percentileEstimate`. Encountering NO DATA makes the aggregation result NO DATA unless `ignoreNoData` is `true`. | +| SumAggregation | Aggregation methods for `TemporalRasterAggregation`. Available variants are `min`, `max`, `first`, `last`, `mean`, `sum`, `count`, and `percentileEstimate`. Encountering NO DATA makes the aggregation result NO DATA unless `ignoreNoData` is `true`. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/BandFilter.md b/rust/docs/BandFilter.md new file mode 100644 index 00000000..a9e5a688 --- /dev/null +++ b/rust/docs/BandFilter.md @@ -0,0 +1,13 @@ +# BandFilter + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**params** | [**models::BandFilterParameters**](BandFilterParameters.md) | | +**sources** | [**models::SingleRasterSource**](SingleRasterSource.md) | | +**r#type** | **Type** | (enum: BandFilter) | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/BandFilterParameters.md b/rust/docs/BandFilterParameters.md new file mode 100644 index 00000000..aff01089 --- /dev/null +++ b/rust/docs/BandFilterParameters.md @@ -0,0 +1,11 @@ +# BandFilterParameters + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**bands** | [**models::BandsByNameOrIndex**](BandsByNameOrIndex.md) | Selected bands either by names (e.g. `[\"nir\", \"red\"]`) or indices (e.g. `[0, 2]`). | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/BandsByNameOrIndex.md b/rust/docs/BandsByNameOrIndex.md new file mode 100644 index 00000000..ea5073d0 --- /dev/null +++ b/rust/docs/BandsByNameOrIndex.md @@ -0,0 +1,12 @@ +# BandsByNameOrIndex + +## Enum Variants + +| Name | Description | +|---- | -----| +| Vec | | +| Vec | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/CountAggregation.md b/rust/docs/CountAggregation.md new file mode 100644 index 00000000..cc1428ef --- /dev/null +++ b/rust/docs/CountAggregation.md @@ -0,0 +1,12 @@ +# CountAggregation + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ignore_no_data** | **bool** | | +**r#type** | **Type** | (enum: count) | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/Data1.md b/rust/docs/Data1.md new file mode 100644 index 00000000..e4b913a8 --- /dev/null +++ b/rust/docs/Data1.md @@ -0,0 +1,11 @@ +# Data1 + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | Option<**serde_json::Value**> | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/DataPath.md b/rust/docs/DataPath.md index 6bf19d41..76c6af8f 100644 --- a/rust/docs/DataPath.md +++ b/rust/docs/DataPath.md @@ -4,8 +4,8 @@ | Name | Description | |---- | -----| -| DataPathOneOf | | -| DataPathOneOf1 | | +| Upload | | +| Volume1 | | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/rust/docs/DeriveOutRasterSpecsSource.md b/rust/docs/DeriveOutRasterSpecsSource.md new file mode 100644 index 00000000..f262b82a --- /dev/null +++ b/rust/docs/DeriveOutRasterSpecsSource.md @@ -0,0 +1,13 @@ +# DeriveOutRasterSpecsSource + +## Enum Variants + +| Name | Value | +|---- | -----| +| DataBounds | dataBounds | +| ProjectionBounds | projectionBounds | + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/FirstAggregation.md b/rust/docs/FirstAggregation.md new file mode 100644 index 00000000..96e740f2 --- /dev/null +++ b/rust/docs/FirstAggregation.md @@ -0,0 +1,12 @@ +# FirstAggregation + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ignore_no_data** | **bool** | | +**r#type** | **Type** | (enum: first) | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/Fraction.md b/rust/docs/Fraction.md new file mode 100644 index 00000000..9e4e2967 --- /dev/null +++ b/rust/docs/Fraction.md @@ -0,0 +1,13 @@ +# Fraction + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**r#type** | **Type** | (enum: fraction) | +**x** | **f64** | | +**y** | **f64** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/HistogramBounds.md b/rust/docs/HistogramBounds.md index 117989d9..f4b364dd 100644 --- a/rust/docs/HistogramBounds.md +++ b/rust/docs/HistogramBounds.md @@ -4,8 +4,8 @@ | Name | Description | |---- | -----| -| HistogramBoundsOneOf | | -| HistogramBoundsOneOf1 | | +| Data1 | | +| Values | | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/rust/docs/HistogramBuckets.md b/rust/docs/HistogramBuckets.md index a2941e57..66a1656b 100644 --- a/rust/docs/HistogramBuckets.md +++ b/rust/docs/HistogramBuckets.md @@ -4,8 +4,8 @@ | Name | Description | |---- | -----| -| HistogramBucketsOneOf | | -| HistogramBucketsOneOf1 | | +| Number | | +| SquareRootChoiceRule | | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/rust/docs/Interpolation.md b/rust/docs/Interpolation.md new file mode 100644 index 00000000..9b1e97a0 --- /dev/null +++ b/rust/docs/Interpolation.md @@ -0,0 +1,13 @@ +# Interpolation + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**params** | [**models::InterpolationParameters**](InterpolationParameters.md) | | +**sources** | [**models::SingleRasterSource**](SingleRasterSource.md) | | +**r#type** | **Type** | (enum: Interpolation) | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/InterpolationMethod.md b/rust/docs/InterpolationMethod.md new file mode 100644 index 00000000..755ced67 --- /dev/null +++ b/rust/docs/InterpolationMethod.md @@ -0,0 +1,13 @@ +# InterpolationMethod + +## Enum Variants + +| Name | Value | +|---- | -----| +| NearestNeighbor | nearestNeighbor | +| BiLinear | biLinear | + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/InterpolationParameters.md b/rust/docs/InterpolationParameters.md new file mode 100644 index 00000000..46b764f1 --- /dev/null +++ b/rust/docs/InterpolationParameters.md @@ -0,0 +1,13 @@ +# InterpolationParameters + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**interpolation** | [**models::InterpolationMethod**](InterpolationMethod.md) | Interpolation method. | +**output_origin_reference** | Option<[**models::Coordinate2D**](Coordinate2D.md)> | Optional reference point used to align the output grid origin. | [optional] +**output_resolution** | [**models::InterpolationResolution**](InterpolationResolution.md) | Target output resolution. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/InterpolationResolution.md b/rust/docs/InterpolationResolution.md new file mode 100644 index 00000000..9d499034 --- /dev/null +++ b/rust/docs/InterpolationResolution.md @@ -0,0 +1,12 @@ +# InterpolationResolution + +## Enum Variants + +| Name | Description | +|---- | -----| +| Fraction | | +| Resolution | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/Irregular.md b/rust/docs/Irregular.md new file mode 100644 index 00000000..5dedce89 --- /dev/null +++ b/rust/docs/Irregular.md @@ -0,0 +1,11 @@ +# Irregular + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**r#type** | **Type** | (enum: irregular) | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/LastAggregation.md b/rust/docs/LastAggregation.md new file mode 100644 index 00000000..f477895d --- /dev/null +++ b/rust/docs/LastAggregation.md @@ -0,0 +1,12 @@ +# LastAggregation + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ignore_no_data** | **bool** | | +**r#type** | **Type** | (enum: last) | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/MaxAggregation.md b/rust/docs/MaxAggregation.md new file mode 100644 index 00000000..b276acfe --- /dev/null +++ b/rust/docs/MaxAggregation.md @@ -0,0 +1,12 @@ +# MaxAggregation + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ignore_no_data** | **bool** | | +**r#type** | **Type** | (enum: max) | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/MeanAggregation.md b/rust/docs/MeanAggregation.md new file mode 100644 index 00000000..ae309b8d --- /dev/null +++ b/rust/docs/MeanAggregation.md @@ -0,0 +1,12 @@ +# MeanAggregation + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ignore_no_data** | **bool** | | +**r#type** | **Type** | (enum: mean) | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/MinAggregation.md b/rust/docs/MinAggregation.md new file mode 100644 index 00000000..f3338c0e --- /dev/null +++ b/rust/docs/MinAggregation.md @@ -0,0 +1,12 @@ +# MinAggregation + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ignore_no_data** | **bool** | | +**r#type** | **Type** | (enum: min) | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/MultiBandGdalSource.md b/rust/docs/MultiBandGdalSource.md new file mode 100644 index 00000000..c31c3a15 --- /dev/null +++ b/rust/docs/MultiBandGdalSource.md @@ -0,0 +1,12 @@ +# MultiBandGdalSource + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**params** | [**models::GdalSourceParameters**](GdalSourceParameters.md) | | +**r#type** | **Type** | (enum: MultiBandGdalSource) | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/MultiLineString1.md b/rust/docs/MultiLineString1.md new file mode 100644 index 00000000..fc9f0682 --- /dev/null +++ b/rust/docs/MultiLineString1.md @@ -0,0 +1,11 @@ +# MultiLineString1 + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**multi_line_string** | [**models::MultiLineString**](MultiLineString.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/MultiPoint1.md b/rust/docs/MultiPoint1.md new file mode 100644 index 00000000..43beb974 --- /dev/null +++ b/rust/docs/MultiPoint1.md @@ -0,0 +1,11 @@ +# MultiPoint1 + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**multi_point** | [**models::MultiPoint**](MultiPoint.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/MultiPolygon1.md b/rust/docs/MultiPolygon1.md new file mode 100644 index 00000000..a83fdd7f --- /dev/null +++ b/rust/docs/MultiPolygon1.md @@ -0,0 +1,11 @@ +# MultiPolygon1 + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**multi_polygon** | [**models::MultiPolygon**](MultiPolygon.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/MultipleRasterSources.md b/rust/docs/MultipleRasterSources.md new file mode 100644 index 00000000..75db6cae --- /dev/null +++ b/rust/docs/MultipleRasterSources.md @@ -0,0 +1,11 @@ +# MultipleRasterSources + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**rasters** | [**Vec**](RasterOperator.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/NoGeometry1.md b/rust/docs/NoGeometry1.md new file mode 100644 index 00000000..caa14a27 --- /dev/null +++ b/rust/docs/NoGeometry1.md @@ -0,0 +1,11 @@ +# NoGeometry1 + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | Option<**serde_json::Value**> | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/Number.md b/rust/docs/Number.md new file mode 100644 index 00000000..7bf56ea9 --- /dev/null +++ b/rust/docs/Number.md @@ -0,0 +1,12 @@ +# Number + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**r#type** | **Type** | (enum: number) | +**value** | **i32** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/PercentileEstimateAggregation.md b/rust/docs/PercentileEstimateAggregation.md new file mode 100644 index 00000000..d0b3df64 --- /dev/null +++ b/rust/docs/PercentileEstimateAggregation.md @@ -0,0 +1,13 @@ +# PercentileEstimateAggregation + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ignore_no_data** | **bool** | | +**percentile** | **f64** | | +**r#type** | **Type** | (enum: percentileEstimate) | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/RasterStacker.md b/rust/docs/RasterStacker.md new file mode 100644 index 00000000..6f391e89 --- /dev/null +++ b/rust/docs/RasterStacker.md @@ -0,0 +1,13 @@ +# RasterStacker + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**params** | [**models::RasterStackerParameters**](RasterStackerParameters.md) | | +**sources** | [**models::MultipleRasterSources**](MultipleRasterSources.md) | | +**r#type** | **Type** | (enum: RasterStacker) | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/RasterStackerParameters.md b/rust/docs/RasterStackerParameters.md new file mode 100644 index 00000000..f5a70733 --- /dev/null +++ b/rust/docs/RasterStackerParameters.md @@ -0,0 +1,11 @@ +# RasterStackerParameters + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**rename_bands** | [**models::RenameBands**](RenameBands.md) | Strategy for deriving output band names. - `default`: appends ` (n)` with the smallest `n` that avoids a conflict. - `suffix`: appends one suffix per input. - `rename`: explicitly provides names for all resulting bands. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/RasterTypeConversion.md b/rust/docs/RasterTypeConversion.md new file mode 100644 index 00000000..cb201ed8 --- /dev/null +++ b/rust/docs/RasterTypeConversion.md @@ -0,0 +1,13 @@ +# RasterTypeConversion + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**params** | [**models::RasterTypeConversionParameters**](RasterTypeConversionParameters.md) | | +**sources** | [**models::SingleRasterSource**](SingleRasterSource.md) | | +**r#type** | **Type** | (enum: RasterTypeConversion) | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/RasterTypeConversionParameters.md b/rust/docs/RasterTypeConversionParameters.md new file mode 100644 index 00000000..bf259aa7 --- /dev/null +++ b/rust/docs/RasterTypeConversionParameters.md @@ -0,0 +1,11 @@ +# RasterTypeConversionParameters + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**output_data_type** | [**models::RasterDataType**](RasterDataType.md) | Output raster data type. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/Regular.md b/rust/docs/Regular.md new file mode 100644 index 00000000..742e5cc5 --- /dev/null +++ b/rust/docs/Regular.md @@ -0,0 +1,13 @@ +# Regular + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**origin** | **i64** | | +**step** | [**models::TimeStep**](TimeStep.md) | | +**r#type** | **Type** | (enum: regular) | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/Rename.md b/rust/docs/Rename.md new file mode 100644 index 00000000..89dd8485 --- /dev/null +++ b/rust/docs/Rename.md @@ -0,0 +1,12 @@ +# Rename + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**r#type** | **Type** | (enum: rename) | +**values** | **Vec** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/RenameBands.md b/rust/docs/RenameBands.md new file mode 100644 index 00000000..9a95319c --- /dev/null +++ b/rust/docs/RenameBands.md @@ -0,0 +1,13 @@ +# RenameBands + +## Enum Variants + +| Name | Description | +|---- | -----| +| Default | | +| Rename | | +| Suffix | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/Reprojection.md b/rust/docs/Reprojection.md new file mode 100644 index 00000000..9cf1b5d1 --- /dev/null +++ b/rust/docs/Reprojection.md @@ -0,0 +1,13 @@ +# Reprojection + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**params** | [**models::ReprojectionParameters**](ReprojectionParameters.md) | | +**sources** | [**models::SingleRasterOrVectorSource**](SingleRasterOrVectorSource.md) | | +**r#type** | **Type** | (enum: Reprojection) | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/ReprojectionParameters.md b/rust/docs/ReprojectionParameters.md new file mode 100644 index 00000000..1513a9f2 --- /dev/null +++ b/rust/docs/ReprojectionParameters.md @@ -0,0 +1,12 @@ +# ReprojectionParameters + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**derive_out_spec** | Option<[**models::DeriveOutRasterSpecsSource**](DeriveOutRasterSpecsSource.md)> | Controls how raster output bounds are derived. The default `projectionBounds` usually keeps a projection-aligned target grid, while `dataBounds` derives it directly from source data bounds. | [optional] +**target_spatial_reference** | **String** | Target spatial reference system. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/Resolution.md b/rust/docs/Resolution.md new file mode 100644 index 00000000..6d861b27 --- /dev/null +++ b/rust/docs/Resolution.md @@ -0,0 +1,13 @@ +# Resolution + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**r#type** | **Type** | (enum: resolution) | +**x** | **f64** | | +**y** | **f64** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/SquareRootChoiceRule.md b/rust/docs/SquareRootChoiceRule.md new file mode 100644 index 00000000..dbed8f62 --- /dev/null +++ b/rust/docs/SquareRootChoiceRule.md @@ -0,0 +1,12 @@ +# SquareRootChoiceRule + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**max_number_of_buckets** | Option<**i32**> | | [optional] +**r#type** | **Type** | (enum: squareRootChoiceRule) | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/SumAggregation.md b/rust/docs/SumAggregation.md new file mode 100644 index 00000000..a524c686 --- /dev/null +++ b/rust/docs/SumAggregation.md @@ -0,0 +1,12 @@ +# SumAggregation + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ignore_no_data** | **bool** | | +**r#type** | **Type** | (enum: sum) | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/TemporalRasterAggregation.md b/rust/docs/TemporalRasterAggregation.md new file mode 100644 index 00000000..22008c1e --- /dev/null +++ b/rust/docs/TemporalRasterAggregation.md @@ -0,0 +1,13 @@ +# TemporalRasterAggregation + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**params** | [**models::TemporalRasterAggregationParameters**](TemporalRasterAggregationParameters.md) | | +**sources** | [**models::SingleRasterSource**](SingleRasterSource.md) | | +**r#type** | **Type** | (enum: TemporalRasterAggregation) | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/TemporalRasterAggregationParameters.md b/rust/docs/TemporalRasterAggregationParameters.md new file mode 100644 index 00000000..9ae5aa57 --- /dev/null +++ b/rust/docs/TemporalRasterAggregationParameters.md @@ -0,0 +1,14 @@ +# TemporalRasterAggregationParameters + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**aggregation** | [**models::Aggregation**](Aggregation.md) | Aggregation method for values within each time window. Encountering NO DATA makes the aggregation result NO DATA unless `ignoreNoData` is `true` for the selected aggregation variant. | +**output_type** | Option<[**models::RasterDataType**](RasterDataType.md)> | Optional output raster data type. | [optional] +**window** | [**models::TimeStep**](TimeStep.md) | Window size and granularity for the output time series. | +**window_reference** | Option<**i64**> | Optional reference timestamp used as the anchor for window boundaries. If omitted, windows are anchored at `1970-01-01T00:00:00Z`. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/TimeDimension.md b/rust/docs/TimeDimension.md index fc08ac9f..a89046f2 100644 --- a/rust/docs/TimeDimension.md +++ b/rust/docs/TimeDimension.md @@ -4,8 +4,8 @@ | Name | Description | |---- | -----| -| TimeDimensionOneOf | | -| TimeDimensionOneOf1 | | +| Irregular | | +| Regular | | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/rust/docs/TypedGeometry.md b/rust/docs/TypedGeometry.md index ce0df27c..0d955844 100644 --- a/rust/docs/TypedGeometry.md +++ b/rust/docs/TypedGeometry.md @@ -4,10 +4,10 @@ | Name | Description | |---- | -----| -| TypedGeometryOneOf | | -| TypedGeometryOneOf1 | | -| TypedGeometryOneOf2 | | -| TypedGeometryOneOf3 | | +| MultiLineString1 | | +| MultiPoint1 | | +| MultiPolygon1 | | +| NoGeometry1 | | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/rust/docs/Upload.md b/rust/docs/Upload.md new file mode 100644 index 00000000..3f77e1a5 --- /dev/null +++ b/rust/docs/Upload.md @@ -0,0 +1,11 @@ +# Upload + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**upload** | **uuid::Uuid** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/Values.md b/rust/docs/Values.md new file mode 100644 index 00000000..73cc77ee --- /dev/null +++ b/rust/docs/Values.md @@ -0,0 +1,11 @@ +# Values + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**values** | [**models::ValuesValues**](ValuesValues.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/ValuesValues.md b/rust/docs/ValuesValues.md new file mode 100644 index 00000000..ee622bae --- /dev/null +++ b/rust/docs/ValuesValues.md @@ -0,0 +1,12 @@ +# ValuesValues + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**max** | **f64** | | +**min** | **f64** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/Volume1.md b/rust/docs/Volume1.md new file mode 100644 index 00000000..b4b1e5c6 --- /dev/null +++ b/rust/docs/Volume1.md @@ -0,0 +1,11 @@ +# Volume1 + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**volume** | **String** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/src/models/aggregation.rs b/rust/src/models/aggregation.rs new file mode 100644 index 00000000..d846fc41 --- /dev/null +++ b/rust/src/models/aggregation.rs @@ -0,0 +1,60 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +/// Aggregation : Aggregation methods for `TemporalRasterAggregation`. Available variants are `min`, `max`, `first`, `last`, `mean`, `sum`, `count`, and `percentileEstimate`. Encountering NO DATA makes the aggregation result NO DATA unless `ignoreNoData` is `true`. +/// Aggregation methods for `TemporalRasterAggregation`. Available variants are `min`, `max`, `first`, `last`, `mean`, `sum`, `count`, and `percentileEstimate`. Encountering NO DATA makes the aggregation result NO DATA unless `ignoreNoData` is `true`. +#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] +#[serde(untagged)] +pub enum Aggregation { + MinAggregation(Box), + MaxAggregation(Box), + FirstAggregation(Box), + LastAggregation(Box), + MeanAggregation(Box), + SumAggregation(Box), + CountAggregation(Box), + PercentileEstimateAggregation(Box), +} + +impl Default for Aggregation { + fn default() -> Self { + Self::MinAggregation(Default::default()) + } +} +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum Type { + #[serde(rename = "min")] + Min, + #[serde(rename = "max")] + Max, + #[serde(rename = "first")] + First, + #[serde(rename = "last")] + Last, + #[serde(rename = "mean")] + Mean, + #[serde(rename = "sum")] + Sum, + #[serde(rename = "count")] + Count, + #[serde(rename = "percentileEstimate")] + PercentileEstimate, +} + +impl Default for Type { + fn default() -> Type { + Self::Min + } +} + diff --git a/rust/src/models/band_filter.rs b/rust/src/models/band_filter.rs new file mode 100644 index 00000000..40acbb21 --- /dev/null +++ b/rust/src/models/band_filter.rs @@ -0,0 +1,47 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +/// BandFilter : The `BandFilter` operator selects bands from a raster source by band names or band indices. It removes all non-selected bands while preserving the original order of remaining bands. ## Inputs The `BandFilter` operator expects exactly one _raster_ input. ## Errors The operator returns an error if no bands are selected or if selected band names/indices cannot be mapped to existing input bands. +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct BandFilter { + #[serde(rename = "params")] + pub params: Box, + #[serde(rename = "sources")] + pub sources: Box, + #[serde(rename = "type")] + pub r#type: Type, +} + +impl BandFilter { + /// The `BandFilter` operator selects bands from a raster source by band names or band indices. It removes all non-selected bands while preserving the original order of remaining bands. ## Inputs The `BandFilter` operator expects exactly one _raster_ input. ## Errors The operator returns an error if no bands are selected or if selected band names/indices cannot be mapped to existing input bands. + pub fn new(params: models::BandFilterParameters, sources: models::SingleRasterSource, r#type: Type) -> BandFilter { + BandFilter { + params: Box::new(params), + sources: Box::new(sources), + r#type, + } + } +} +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum Type { + #[serde(rename = "BandFilter")] + BandFilter, +} + +impl Default for Type { + fn default() -> Type { + Self::BandFilter + } +} + diff --git a/rust/src/models/band_filter_parameters.rs b/rust/src/models/band_filter_parameters.rs new file mode 100644 index 00000000..d7cf9111 --- /dev/null +++ b/rust/src/models/band_filter_parameters.rs @@ -0,0 +1,30 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +/// BandFilterParameters : Parameters for the `BandFilter` operator. +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct BandFilterParameters { + /// Selected bands either by names (e.g. `[\"nir\", \"red\"]`) or indices (e.g. `[0, 2]`). + #[serde(rename = "bands")] + pub bands: Box, +} + +impl BandFilterParameters { + /// Parameters for the `BandFilter` operator. + pub fn new(bands: models::BandsByNameOrIndex) -> BandFilterParameters { + BandFilterParameters { + bands: Box::new(bands), + } + } +} + diff --git a/rust/src/models/bands_by_name_or_index.rs b/rust/src/models/bands_by_name_or_index.rs new file mode 100644 index 00000000..928cc623 --- /dev/null +++ b/rust/src/models/bands_by_name_or_index.rs @@ -0,0 +1,28 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] +#[serde(untagged)] +pub enum BandsByNameOrIndex { + /// Select bands by their names. + ArrayVecString(Vec), + /// Select bands by zero-based band indices. + ArrayVeci32(Vec), +} + +impl Default for BandsByNameOrIndex { + fn default() -> Self { + Self::ArrayVecString(Default::default()) + } +} + diff --git a/rust/src/models/count_aggregation.rs b/rust/src/models/count_aggregation.rs new file mode 100644 index 00000000..9842fd8e --- /dev/null +++ b/rust/src/models/count_aggregation.rs @@ -0,0 +1,42 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct CountAggregation { + #[serde(rename = "ignoreNoData")] + pub ignore_no_data: bool, + #[serde(rename = "type")] + pub r#type: Type, +} + +impl CountAggregation { + pub fn new(ignore_no_data: bool, r#type: Type) -> CountAggregation { + CountAggregation { + ignore_no_data, + r#type, + } + } +} +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum Type { + #[serde(rename = "count")] + Count, +} + +impl Default for Type { + fn default() -> Type { + Self::Count + } +} + diff --git a/rust/src/models/data_1.rs b/rust/src/models/data_1.rs new file mode 100644 index 00000000..928696d2 --- /dev/null +++ b/rust/src/models/data_1.rs @@ -0,0 +1,27 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct Data1 { + #[serde(rename = "data", deserialize_with = "Option::deserialize")] + pub data: Option, +} + +impl Data1 { + pub fn new(data: Option) -> Data1 { + Data1 { + data, + } + } +} + diff --git a/rust/src/models/data_path.rs b/rust/src/models/data_path.rs index 8418f1b5..62a265ec 100644 --- a/rust/src/models/data_path.rs +++ b/rust/src/models/data_path.rs @@ -14,13 +14,13 @@ use serde::{Deserialize, Serialize}; #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] #[serde(untagged)] pub enum DataPath { - DataPathOneOf(Box), - DataPathOneOf1(Box), + Volume1(Box), + Upload(Box), } impl Default for DataPath { fn default() -> Self { - Self::DataPathOneOf(Default::default()) + Self::Volume1(Default::default()) } } diff --git a/rust/src/models/derive_out_raster_specs_source.rs b/rust/src/models/derive_out_raster_specs_source.rs new file mode 100644 index 00000000..cdf1f13d --- /dev/null +++ b/rust/src/models/derive_out_raster_specs_source.rs @@ -0,0 +1,38 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum DeriveOutRasterSpecsSource { + #[serde(rename = "dataBounds")] + DataBounds, + #[serde(rename = "projectionBounds")] + ProjectionBounds, + +} + +impl std::fmt::Display for DeriveOutRasterSpecsSource { + fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { + match self { + Self::DataBounds => write!(f, "dataBounds"), + Self::ProjectionBounds => write!(f, "projectionBounds"), + } + } +} + +impl Default for DeriveOutRasterSpecsSource { + fn default() -> DeriveOutRasterSpecsSource { + Self::DataBounds + } +} + diff --git a/rust/src/models/first_aggregation.rs b/rust/src/models/first_aggregation.rs new file mode 100644 index 00000000..231d2043 --- /dev/null +++ b/rust/src/models/first_aggregation.rs @@ -0,0 +1,42 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct FirstAggregation { + #[serde(rename = "ignoreNoData")] + pub ignore_no_data: bool, + #[serde(rename = "type")] + pub r#type: Type, +} + +impl FirstAggregation { + pub fn new(ignore_no_data: bool, r#type: Type) -> FirstAggregation { + FirstAggregation { + ignore_no_data, + r#type, + } + } +} +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum Type { + #[serde(rename = "first")] + First, +} + +impl Default for Type { + fn default() -> Type { + Self::First + } +} + diff --git a/rust/src/models/fraction.rs b/rust/src/models/fraction.rs new file mode 100644 index 00000000..b9aefe68 --- /dev/null +++ b/rust/src/models/fraction.rs @@ -0,0 +1,47 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +/// Fraction : Upscale factor relative to input resolution (`x >= 1`, `y >= 1`). +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct Fraction { + #[serde(rename = "type")] + pub r#type: Type, + #[serde(rename = "x")] + pub x: f64, + #[serde(rename = "y")] + pub y: f64, +} + +impl Fraction { + /// Upscale factor relative to input resolution (`x >= 1`, `y >= 1`). + pub fn new(r#type: Type, x: f64, y: f64) -> Fraction { + Fraction { + r#type, + x, + y, + } + } +} +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum Type { + #[serde(rename = "fraction")] + Fraction, +} + +impl Default for Type { + fn default() -> Type { + Self::Fraction + } +} + diff --git a/rust/src/models/histogram_bounds.rs b/rust/src/models/histogram_bounds.rs index 2206e535..9e75d527 100644 --- a/rust/src/models/histogram_bounds.rs +++ b/rust/src/models/histogram_bounds.rs @@ -14,13 +14,13 @@ use serde::{Deserialize, Serialize}; #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] #[serde(untagged)] pub enum HistogramBounds { - HistogramBoundsOneOf(Box), - HistogramBoundsOneOf1(Box), + Data1(Box), + Values(Box), } impl Default for HistogramBounds { fn default() -> Self { - Self::HistogramBoundsOneOf(Default::default()) + Self::Data1(Default::default()) } } diff --git a/rust/src/models/histogram_buckets.rs b/rust/src/models/histogram_buckets.rs index 8d20d874..3c446a85 100644 --- a/rust/src/models/histogram_buckets.rs +++ b/rust/src/models/histogram_buckets.rs @@ -14,13 +14,13 @@ use serde::{Deserialize, Serialize}; #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] #[serde(untagged)] pub enum HistogramBuckets { - HistogramBucketsOneOf(Box), - HistogramBucketsOneOf1(Box), + Number(Box), + SquareRootChoiceRule(Box), } impl Default for HistogramBuckets { fn default() -> Self { - Self::HistogramBucketsOneOf(Default::default()) + Self::Number(Default::default()) } } /// diff --git a/rust/src/models/interpolation.rs b/rust/src/models/interpolation.rs new file mode 100644 index 00000000..e71f12e7 --- /dev/null +++ b/rust/src/models/interpolation.rs @@ -0,0 +1,47 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +/// Interpolation : The `Interpolation` operator increases raster resolution by interpolating values of an input raster. If queried with a resolution that is coarser than the input resolution, interpolation is not applicable and an error is returned. ## Inputs The `Interpolation` operator expects exactly one _raster_ input. +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct Interpolation { + #[serde(rename = "params")] + pub params: Box, + #[serde(rename = "sources")] + pub sources: Box, + #[serde(rename = "type")] + pub r#type: Type, +} + +impl Interpolation { + /// The `Interpolation` operator increases raster resolution by interpolating values of an input raster. If queried with a resolution that is coarser than the input resolution, interpolation is not applicable and an error is returned. ## Inputs The `Interpolation` operator expects exactly one _raster_ input. + pub fn new(params: models::InterpolationParameters, sources: models::SingleRasterSource, r#type: Type) -> Interpolation { + Interpolation { + params: Box::new(params), + sources: Box::new(sources), + r#type, + } + } +} +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum Type { + #[serde(rename = "Interpolation")] + Interpolation, +} + +impl Default for Type { + fn default() -> Type { + Self::Interpolation + } +} + diff --git a/rust/src/models/interpolation_method.rs b/rust/src/models/interpolation_method.rs new file mode 100644 index 00000000..4225d751 --- /dev/null +++ b/rust/src/models/interpolation_method.rs @@ -0,0 +1,38 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum InterpolationMethod { + #[serde(rename = "nearestNeighbor")] + NearestNeighbor, + #[serde(rename = "biLinear")] + BiLinear, + +} + +impl std::fmt::Display for InterpolationMethod { + fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { + match self { + Self::NearestNeighbor => write!(f, "nearestNeighbor"), + Self::BiLinear => write!(f, "biLinear"), + } + } +} + +impl Default for InterpolationMethod { + fn default() -> InterpolationMethod { + Self::NearestNeighbor + } +} + diff --git a/rust/src/models/interpolation_parameters.rs b/rust/src/models/interpolation_parameters.rs new file mode 100644 index 00000000..16255a61 --- /dev/null +++ b/rust/src/models/interpolation_parameters.rs @@ -0,0 +1,38 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +/// InterpolationParameters : Parameters for the `Interpolation` operator. +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct InterpolationParameters { + /// Interpolation method. + #[serde(rename = "interpolation")] + pub interpolation: models::InterpolationMethod, + /// Optional reference point used to align the output grid origin. + #[serde(rename = "outputOriginReference", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub output_origin_reference: Option>>, + /// Target output resolution. + #[serde(rename = "outputResolution")] + pub output_resolution: Box, +} + +impl InterpolationParameters { + /// Parameters for the `Interpolation` operator. + pub fn new(interpolation: models::InterpolationMethod, output_resolution: models::InterpolationResolution) -> InterpolationParameters { + InterpolationParameters { + interpolation, + output_origin_reference: None, + output_resolution: Box::new(output_resolution), + } + } +} + diff --git a/rust/src/models/interpolation_resolution.rs b/rust/src/models/interpolation_resolution.rs new file mode 100644 index 00000000..d7033c22 --- /dev/null +++ b/rust/src/models/interpolation_resolution.rs @@ -0,0 +1,40 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] +#[serde(untagged)] +pub enum InterpolationResolution { + Resolution(Box), + Fraction(Box), +} + +impl Default for InterpolationResolution { + fn default() -> Self { + Self::Resolution(Default::default()) + } +} +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum Type { + #[serde(rename = "resolution")] + Resolution, + #[serde(rename = "fraction")] + Fraction, +} + +impl Default for Type { + fn default() -> Type { + Self::Resolution + } +} + diff --git a/rust/src/models/irregular.rs b/rust/src/models/irregular.rs new file mode 100644 index 00000000..1b85aadd --- /dev/null +++ b/rust/src/models/irregular.rs @@ -0,0 +1,39 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct Irregular { + #[serde(rename = "type")] + pub r#type: Type, +} + +impl Irregular { + pub fn new(r#type: Type) -> Irregular { + Irregular { + r#type, + } + } +} +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum Type { + #[serde(rename = "irregular")] + Irregular, +} + +impl Default for Type { + fn default() -> Type { + Self::Irregular + } +} + diff --git a/rust/src/models/last_aggregation.rs b/rust/src/models/last_aggregation.rs new file mode 100644 index 00000000..974ae3b8 --- /dev/null +++ b/rust/src/models/last_aggregation.rs @@ -0,0 +1,42 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct LastAggregation { + #[serde(rename = "ignoreNoData")] + pub ignore_no_data: bool, + #[serde(rename = "type")] + pub r#type: Type, +} + +impl LastAggregation { + pub fn new(ignore_no_data: bool, r#type: Type) -> LastAggregation { + LastAggregation { + ignore_no_data, + r#type, + } + } +} +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum Type { + #[serde(rename = "last")] + Last, +} + +impl Default for Type { + fn default() -> Type { + Self::Last + } +} + diff --git a/rust/src/models/max_aggregation.rs b/rust/src/models/max_aggregation.rs new file mode 100644 index 00000000..2a6ceacd --- /dev/null +++ b/rust/src/models/max_aggregation.rs @@ -0,0 +1,42 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct MaxAggregation { + #[serde(rename = "ignoreNoData")] + pub ignore_no_data: bool, + #[serde(rename = "type")] + pub r#type: Type, +} + +impl MaxAggregation { + pub fn new(ignore_no_data: bool, r#type: Type) -> MaxAggregation { + MaxAggregation { + ignore_no_data, + r#type, + } + } +} +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum Type { + #[serde(rename = "max")] + Max, +} + +impl Default for Type { + fn default() -> Type { + Self::Max + } +} + diff --git a/rust/src/models/mean_aggregation.rs b/rust/src/models/mean_aggregation.rs new file mode 100644 index 00000000..be173f6e --- /dev/null +++ b/rust/src/models/mean_aggregation.rs @@ -0,0 +1,42 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct MeanAggregation { + #[serde(rename = "ignoreNoData")] + pub ignore_no_data: bool, + #[serde(rename = "type")] + pub r#type: Type, +} + +impl MeanAggregation { + pub fn new(ignore_no_data: bool, r#type: Type) -> MeanAggregation { + MeanAggregation { + ignore_no_data, + r#type, + } + } +} +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum Type { + #[serde(rename = "mean")] + Mean, +} + +impl Default for Type { + fn default() -> Type { + Self::Mean + } +} + diff --git a/rust/src/models/min_aggregation.rs b/rust/src/models/min_aggregation.rs new file mode 100644 index 00000000..e03c2010 --- /dev/null +++ b/rust/src/models/min_aggregation.rs @@ -0,0 +1,42 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct MinAggregation { + #[serde(rename = "ignoreNoData")] + pub ignore_no_data: bool, + #[serde(rename = "type")] + pub r#type: Type, +} + +impl MinAggregation { + pub fn new(ignore_no_data: bool, r#type: Type) -> MinAggregation { + MinAggregation { + ignore_no_data, + r#type, + } + } +} +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum Type { + #[serde(rename = "min")] + Min, +} + +impl Default for Type { + fn default() -> Type { + Self::Min + } +} + diff --git a/rust/src/models/mod.rs b/rust/src/models/mod.rs index 1089052b..2c271943 100644 --- a/rust/src/models/mod.rs +++ b/rust/src/models/mod.rs @@ -6,6 +6,8 @@ pub mod add_layer_collection; pub use self::add_layer_collection::AddLayerCollection; pub mod add_role; pub use self::add_role::AddRole; +pub mod aggregation; +pub use self::aggregation::Aggregation; pub mod aruna_data_provider_definition; pub use self::aruna_data_provider_definition::ArunaDataProviderDefinition; pub mod auth_code_request_url; @@ -16,6 +18,12 @@ pub mod auto_create_dataset; pub use self::auto_create_dataset::AutoCreateDataset; pub mod axis_order; pub use self::axis_order::AxisOrder; +pub mod band_filter; +pub use self::band_filter::BandFilter; +pub mod band_filter_parameters; +pub use self::band_filter_parameters::BandFilterParameters; +pub mod bands_by_name_or_index; +pub use self::bands_by_name_or_index::BandsByNameOrIndex; pub mod bounding_box2_d; pub use self::bounding_box2_d::BoundingBox2D; pub mod breakpoint; @@ -40,20 +48,20 @@ pub mod coordinate2_d; pub use self::coordinate2_d::Coordinate2D; pub mod copernicus_dataspace_data_provider_definition; pub use self::copernicus_dataspace_data_provider_definition::CopernicusDataspaceDataProviderDefinition; +pub mod count_aggregation; +pub use self::count_aggregation::CountAggregation; pub mod create_dataset; pub use self::create_dataset::CreateDataset; pub mod create_project; pub use self::create_project::CreateProject; pub mod csv_header; pub use self::csv_header::CsvHeader; +pub mod data_1; +pub use self::data_1::Data1; pub mod data_id; pub use self::data_id::DataId; pub mod data_path; pub use self::data_path::DataPath; -pub mod data_path_one_of; -pub use self::data_path_one_of::DataPathOneOf; -pub mod data_path_one_of_1; -pub use self::data_path_one_of_1::DataPathOneOf1; pub mod data_provider_resource; pub use self::data_provider_resource::DataProviderResource; pub mod data_usage; @@ -78,6 +86,8 @@ pub mod dataset_resource; pub use self::dataset_resource::DatasetResource; pub mod default; pub use self::default::Default; +pub mod derive_out_raster_specs_source; +pub use self::derive_out_raster_specs_source::DeriveOutRasterSpecsSource; pub mod derived_color; pub use self::derived_color::DerivedColor; pub mod derived_number; @@ -102,10 +112,14 @@ pub mod feature_data_type; pub use self::feature_data_type::FeatureDataType; pub mod file_not_found_handling; pub use self::file_not_found_handling::FileNotFoundHandling; +pub mod first_aggregation; +pub use self::first_aggregation::FirstAggregation; pub mod format_specifics; pub use self::format_specifics::FormatSpecifics; pub mod format_specifics_csv; pub use self::format_specifics_csv::FormatSpecificsCsv; +pub mod fraction; +pub use self::fraction::Fraction; pub mod gbif_data_provider_definition; pub use self::gbif_data_provider_definition::GbifDataProviderDefinition; pub mod gdal_dataset_parameters; @@ -150,24 +164,26 @@ pub mod histogram; pub use self::histogram::Histogram; pub mod histogram_bounds; pub use self::histogram_bounds::HistogramBounds; -pub mod histogram_bounds_one_of; -pub use self::histogram_bounds_one_of::HistogramBoundsOneOf; -pub mod histogram_bounds_one_of_1; -pub use self::histogram_bounds_one_of_1::HistogramBoundsOneOf1; -pub mod histogram_bounds_one_of_1_values; -pub use self::histogram_bounds_one_of_1_values::HistogramBoundsOneOf1Values; pub mod histogram_buckets; pub use self::histogram_buckets::HistogramBuckets; -pub mod histogram_buckets_one_of; -pub use self::histogram_buckets_one_of::HistogramBucketsOneOf; -pub mod histogram_buckets_one_of_1; -pub use self::histogram_buckets_one_of_1::HistogramBucketsOneOf1; pub mod histogram_parameters; pub use self::histogram_parameters::HistogramParameters; pub mod id_response; pub use self::id_response::IdResponse; pub mod internal_data_id; pub use self::internal_data_id::InternalDataId; +pub mod interpolation; +pub use self::interpolation::Interpolation; +pub mod interpolation_method; +pub use self::interpolation_method::InterpolationMethod; +pub mod interpolation_parameters; +pub use self::interpolation_parameters::InterpolationParameters; +pub mod interpolation_resolution; +pub use self::interpolation_resolution::InterpolationResolution; +pub mod irregular; +pub use self::irregular::Irregular; +pub mod last_aggregation; +pub use self::last_aggregation::LastAggregation; pub mod layer; pub use self::layer::Layer; pub mod layer_collection; @@ -194,12 +210,18 @@ pub mod linear_gradient; pub use self::linear_gradient::LinearGradient; pub mod logarithmic_gradient; pub use self::logarithmic_gradient::LogarithmicGradient; +pub mod max_aggregation; +pub use self::max_aggregation::MaxAggregation; +pub mod mean_aggregation; +pub use self::mean_aggregation::MeanAggregation; pub mod measurement; pub use self::measurement::Measurement; pub mod meta_data_definition; pub use self::meta_data_definition::MetaDataDefinition; pub mod meta_data_suggestion; pub use self::meta_data_suggestion::MetaDataSuggestion; +pub mod min_aggregation; +pub use self::min_aggregation::MinAggregation; pub mod ml_model; pub use self::ml_model::MlModel; pub mod ml_model_input_no_data_handling; @@ -226,22 +248,36 @@ pub mod mock_point_source; pub use self::mock_point_source::MockPointSource; pub mod mock_point_source_parameters; pub use self::mock_point_source_parameters::MockPointSourceParameters; +pub mod multi_band_gdal_source; +pub use self::multi_band_gdal_source::MultiBandGdalSource; pub mod multi_band_raster_colorizer; pub use self::multi_band_raster_colorizer::MultiBandRasterColorizer; pub mod multi_line_string; pub use self::multi_line_string::MultiLineString; +pub mod multi_line_string_1; +pub use self::multi_line_string_1::MultiLineString1; pub mod multi_point; pub use self::multi_point::MultiPoint; +pub mod multi_point_1; +pub use self::multi_point_1::MultiPoint1; pub mod multi_polygon; pub use self::multi_polygon::MultiPolygon; +pub mod multi_polygon_1; +pub use self::multi_polygon_1::MultiPolygon1; pub mod multiple_raster_or_single_vector_operator; pub use self::multiple_raster_or_single_vector_operator::MultipleRasterOrSingleVectorOperator; pub mod multiple_raster_or_single_vector_source; pub use self::multiple_raster_or_single_vector_source::MultipleRasterOrSingleVectorSource; +pub mod multiple_raster_sources; +pub use self::multiple_raster_sources::MultipleRasterSources; pub mod names; pub use self::names::Names; pub mod net_cdf_cf_data_provider_definition; pub use self::net_cdf_cf_data_provider_definition::NetCdfCfDataProviderDefinition; +pub mod no_geometry_1; +pub use self::no_geometry_1::NoGeometry1; +pub mod number; +pub use self::number::Number; pub mod number_param; pub use self::number_param::NumberParam; pub mod ogr_meta_data; @@ -286,6 +322,8 @@ pub mod palette_colorizer; pub use self::palette_colorizer::PaletteColorizer; pub mod pangaea_data_provider_definition; pub use self::pangaea_data_provider_definition::PangaeaDataProviderDefinition; +pub mod percentile_estimate_aggregation; +pub use self::percentile_estimate_aggregation::PercentileEstimateAggregation; pub mod permission; pub use self::permission::Permission; pub mod permission_listing; @@ -346,18 +384,38 @@ pub mod raster_properties_key; pub use self::raster_properties_key::RasterPropertiesKey; pub mod raster_result_descriptor; pub use self::raster_result_descriptor::RasterResultDescriptor; +pub mod raster_stacker; +pub use self::raster_stacker::RasterStacker; +pub mod raster_stacker_parameters; +pub use self::raster_stacker_parameters::RasterStackerParameters; pub mod raster_stream_websocket_result_type; pub use self::raster_stream_websocket_result_type::RasterStreamWebsocketResultType; pub mod raster_symbology; pub use self::raster_symbology::RasterSymbology; pub mod raster_to_dataset_query_rectangle; pub use self::raster_to_dataset_query_rectangle::RasterToDatasetQueryRectangle; +pub mod raster_type_conversion; +pub use self::raster_type_conversion::RasterTypeConversion; +pub mod raster_type_conversion_parameters; +pub use self::raster_type_conversion_parameters::RasterTypeConversionParameters; pub mod raster_vector_join; pub use self::raster_vector_join::RasterVectorJoin; pub mod raster_vector_join_parameters; pub use self::raster_vector_join_parameters::RasterVectorJoinParameters; +pub mod regular; +pub use self::regular::Regular; pub mod regular_time_dimension; pub use self::regular_time_dimension::RegularTimeDimension; +pub mod rename; +pub use self::rename::Rename; +pub mod rename_bands; +pub use self::rename_bands::RenameBands; +pub mod reprojection; +pub use self::reprojection::Reprojection; +pub mod reprojection_parameters; +pub use self::reprojection_parameters::ReprojectionParameters; +pub mod resolution; +pub use self::resolution::Resolution; pub mod resource; pub use self::resource::Resource; pub mod role; @@ -402,6 +460,8 @@ pub mod spatial_partition2_d; pub use self::spatial_partition2_d::SpatialPartition2D; pub mod spatial_reference_specification; pub use self::spatial_reference_specification::SpatialReferenceSpecification; +pub mod square_root_choice_rule; +pub use self::square_root_choice_rule::SquareRootChoiceRule; pub mod st_rectangle; pub use self::st_rectangle::StRectangle; pub mod stac_api_retries; @@ -422,6 +482,8 @@ pub mod suffix; pub use self::suffix::Suffix; pub mod suggest_meta_data; pub use self::suggest_meta_data::SuggestMetaData; +pub mod sum_aggregation; +pub use self::sum_aggregation::SumAggregation; pub mod symbology; pub use self::symbology::Symbology; pub mod task_filter; @@ -442,16 +504,16 @@ pub mod task_status_with_id; pub use self::task_status_with_id::TaskStatusWithId; pub mod temporal_aggregation_method; pub use self::temporal_aggregation_method::TemporalAggregationMethod; +pub mod temporal_raster_aggregation; +pub use self::temporal_raster_aggregation::TemporalRasterAggregation; +pub mod temporal_raster_aggregation_parameters; +pub use self::temporal_raster_aggregation_parameters::TemporalRasterAggregationParameters; pub mod text_symbology; pub use self::text_symbology::TextSymbology; pub mod time_descriptor; pub use self::time_descriptor::TimeDescriptor; pub mod time_dimension; pub use self::time_dimension::TimeDimension; -pub mod time_dimension_one_of; -pub use self::time_dimension_one_of::TimeDimensionOneOf; -pub mod time_dimension_one_of_1; -pub use self::time_dimension_one_of_1::TimeDimensionOneOf1; pub mod time_granularity; pub use self::time_granularity::TimeGranularity; pub mod time_interval; @@ -464,14 +526,6 @@ pub mod typed_data_provider_definition; pub use self::typed_data_provider_definition::TypedDataProviderDefinition; pub mod typed_geometry; pub use self::typed_geometry::TypedGeometry; -pub mod typed_geometry_one_of; -pub use self::typed_geometry_one_of::TypedGeometryOneOf; -pub mod typed_geometry_one_of_1; -pub use self::typed_geometry_one_of_1::TypedGeometryOneOf1; -pub mod typed_geometry_one_of_2; -pub use self::typed_geometry_one_of_2::TypedGeometryOneOf2; -pub mod typed_geometry_one_of_3; -pub use self::typed_geometry_one_of_3::TypedGeometryOneOf3; pub mod typed_operator; pub use self::typed_operator::TypedOperator; pub mod typed_plot_operator; @@ -502,6 +556,8 @@ pub mod update_project; pub use self::update_project::UpdateProject; pub mod update_quota; pub use self::update_quota::UpdateQuota; +pub mod upload; +pub use self::upload::Upload; pub mod upload_file_layers_response; pub use self::upload_file_layers_response::UploadFileLayersResponse; pub mod upload_files_response; @@ -516,6 +572,10 @@ pub mod user_registration; pub use self::user_registration::UserRegistration; pub mod user_session; pub use self::user_session::UserSession; +pub mod values; +pub use self::values::Values; +pub mod values_values; +pub use self::values_values::ValuesValues; pub mod vec_update; pub use self::vec_update::VecUpdate; pub mod vector_column_info; @@ -528,6 +588,8 @@ pub mod vector_result_descriptor; pub use self::vector_result_descriptor::VectorResultDescriptor; pub mod volume; pub use self::volume::Volume; +pub mod volume_1; +pub use self::volume_1::Volume1; pub mod volume_file_layers_response; pub use self::volume_file_layers_response::VolumeFileLayersResponse; pub mod wcs_request; diff --git a/rust/src/models/multi_band_gdal_source.rs b/rust/src/models/multi_band_gdal_source.rs new file mode 100644 index 00000000..92fc811c --- /dev/null +++ b/rust/src/models/multi_band_gdal_source.rs @@ -0,0 +1,44 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +/// MultiBandGdalSource : The [`MultiBandGdalSource`] is a source operator that reads multi-band raster data using GDAL. +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct MultiBandGdalSource { + #[serde(rename = "params")] + pub params: Box, + #[serde(rename = "type")] + pub r#type: Type, +} + +impl MultiBandGdalSource { + /// The [`MultiBandGdalSource`] is a source operator that reads multi-band raster data using GDAL. + pub fn new(params: models::GdalSourceParameters, r#type: Type) -> MultiBandGdalSource { + MultiBandGdalSource { + params: Box::new(params), + r#type, + } + } +} +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum Type { + #[serde(rename = "MultiBandGdalSource")] + MultiBandGdalSource, +} + +impl Default for Type { + fn default() -> Type { + Self::MultiBandGdalSource + } +} + diff --git a/rust/src/models/multi_line_string_1.rs b/rust/src/models/multi_line_string_1.rs new file mode 100644 index 00000000..18441870 --- /dev/null +++ b/rust/src/models/multi_line_string_1.rs @@ -0,0 +1,27 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct MultiLineString1 { + #[serde(rename = "MultiLineString")] + pub multi_line_string: Box, +} + +impl MultiLineString1 { + pub fn new(multi_line_string: models::MultiLineString) -> MultiLineString1 { + MultiLineString1 { + multi_line_string: Box::new(multi_line_string), + } + } +} + diff --git a/rust/src/models/multi_point_1.rs b/rust/src/models/multi_point_1.rs new file mode 100644 index 00000000..79cda275 --- /dev/null +++ b/rust/src/models/multi_point_1.rs @@ -0,0 +1,27 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct MultiPoint1 { + #[serde(rename = "MultiPoint")] + pub multi_point: Box, +} + +impl MultiPoint1 { + pub fn new(multi_point: models::MultiPoint) -> MultiPoint1 { + MultiPoint1 { + multi_point: Box::new(multi_point), + } + } +} + diff --git a/rust/src/models/multi_polygon_1.rs b/rust/src/models/multi_polygon_1.rs new file mode 100644 index 00000000..6beb9283 --- /dev/null +++ b/rust/src/models/multi_polygon_1.rs @@ -0,0 +1,27 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct MultiPolygon1 { + #[serde(rename = "MultiPolygon")] + pub multi_polygon: Box, +} + +impl MultiPolygon1 { + pub fn new(multi_polygon: models::MultiPolygon) -> MultiPolygon1 { + MultiPolygon1 { + multi_polygon: Box::new(multi_polygon), + } + } +} + diff --git a/rust/src/models/multiple_raster_or_single_vector_operator.rs b/rust/src/models/multiple_raster_or_single_vector_operator.rs index 7a474804..afbdc6bc 100644 --- a/rust/src/models/multiple_raster_or_single_vector_operator.rs +++ b/rust/src/models/multiple_raster_or_single_vector_operator.rs @@ -28,13 +28,13 @@ impl Default for MultipleRasterOrSingleVectorOperator { /// #[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] pub enum Type { - #[serde(rename = "RasterVectorJoin")] - RasterVectorJoin, + #[serde(rename = "Reprojection")] + Reprojection, } impl Default for Type { fn default() -> Type { - Self::RasterVectorJoin + Self::Reprojection } } diff --git a/rust/src/models/multiple_raster_sources.rs b/rust/src/models/multiple_raster_sources.rs new file mode 100644 index 00000000..670d814a --- /dev/null +++ b/rust/src/models/multiple_raster_sources.rs @@ -0,0 +1,29 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +/// MultipleRasterSources : One or more raster operators as sources for this operator. +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct MultipleRasterSources { + #[serde(rename = "rasters")] + pub rasters: Vec, +} + +impl MultipleRasterSources { + /// One or more raster operators as sources for this operator. + pub fn new(rasters: Vec) -> MultipleRasterSources { + MultipleRasterSources { + rasters, + } + } +} + diff --git a/rust/src/models/no_geometry_1.rs b/rust/src/models/no_geometry_1.rs new file mode 100644 index 00000000..af3f4e61 --- /dev/null +++ b/rust/src/models/no_geometry_1.rs @@ -0,0 +1,27 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct NoGeometry1 { + #[serde(rename = "Data", deserialize_with = "Option::deserialize")] + pub data: Option, +} + +impl NoGeometry1 { + pub fn new(data: Option) -> NoGeometry1 { + NoGeometry1 { + data, + } + } +} + diff --git a/rust/src/models/number.rs b/rust/src/models/number.rs new file mode 100644 index 00000000..6b61e7bd --- /dev/null +++ b/rust/src/models/number.rs @@ -0,0 +1,42 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct Number { + #[serde(rename = "type")] + pub r#type: Type, + #[serde(rename = "value")] + pub value: i32, +} + +impl Number { + pub fn new(r#type: Type, value: i32) -> Number { + Number { + r#type, + value, + } + } +} +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum Type { + #[serde(rename = "number")] + Number, +} + +impl Default for Type { + fn default() -> Type { + Self::Number + } +} + diff --git a/rust/src/models/percentile_estimate_aggregation.rs b/rust/src/models/percentile_estimate_aggregation.rs new file mode 100644 index 00000000..50cf6fe7 --- /dev/null +++ b/rust/src/models/percentile_estimate_aggregation.rs @@ -0,0 +1,45 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct PercentileEstimateAggregation { + #[serde(rename = "ignoreNoData")] + pub ignore_no_data: bool, + #[serde(rename = "percentile")] + pub percentile: f64, + #[serde(rename = "type")] + pub r#type: Type, +} + +impl PercentileEstimateAggregation { + pub fn new(ignore_no_data: bool, percentile: f64, r#type: Type) -> PercentileEstimateAggregation { + PercentileEstimateAggregation { + ignore_no_data, + percentile, + r#type, + } + } +} +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum Type { + #[serde(rename = "percentileEstimate")] + PercentileEstimate, +} + +impl Default for Type { + fn default() -> Type { + Self::PercentileEstimate + } +} + diff --git a/rust/src/models/raster_operator.rs b/rust/src/models/raster_operator.rs index 1772e7cc..111d5be7 100644 --- a/rust/src/models/raster_operator.rs +++ b/rust/src/models/raster_operator.rs @@ -15,15 +15,29 @@ use serde::{Deserialize, Serialize}; #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] #[serde(untagged)] pub enum RasterOperator { + #[serde(rename="BandFilter")] + BandFilter(Box), #[serde(rename="Expression")] Expression(Box), #[serde(rename="GdalSource")] GdalSource(Box), + #[serde(rename="Interpolation")] + Interpolation(Box), + #[serde(rename="MultiBandGdalSource")] + MultiBandGdalSource(Box), + #[serde(rename="RasterStacker")] + RasterStacker(Box), + #[serde(rename="RasterTypeConversion")] + RasterTypeConversion(Box), + #[serde(rename="Reprojection")] + Reprojection(Box), + #[serde(rename="TemporalRasterAggregation")] + TemporalRasterAggregation(Box), } impl Default for RasterOperator { fn default() -> Self { - Self::Expression(Default::default()) + Self::BandFilter(Default::default()) } } diff --git a/rust/src/models/raster_stacker.rs b/rust/src/models/raster_stacker.rs new file mode 100644 index 00000000..0cd6883b --- /dev/null +++ b/rust/src/models/raster_stacker.rs @@ -0,0 +1,47 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +/// RasterStacker : The `RasterStacker` stacks all of its inputs into a single raster time series. It queries all inputs and combines them by band, space, and then time. The output raster has as many bands as the sum of all input bands. Tiles are automatically temporally aligned. All inputs must have the same data type and spatial reference. ## Inputs The `RasterStacker` operator expects multiple raster inputs. +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct RasterStacker { + #[serde(rename = "params")] + pub params: Box, + #[serde(rename = "sources")] + pub sources: Box, + #[serde(rename = "type")] + pub r#type: Type, +} + +impl RasterStacker { + /// The `RasterStacker` stacks all of its inputs into a single raster time series. It queries all inputs and combines them by band, space, and then time. The output raster has as many bands as the sum of all input bands. Tiles are automatically temporally aligned. All inputs must have the same data type and spatial reference. ## Inputs The `RasterStacker` operator expects multiple raster inputs. + pub fn new(params: models::RasterStackerParameters, sources: models::MultipleRasterSources, r#type: Type) -> RasterStacker { + RasterStacker { + params: Box::new(params), + sources: Box::new(sources), + r#type, + } + } +} +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum Type { + #[serde(rename = "RasterStacker")] + RasterStacker, +} + +impl Default for Type { + fn default() -> Type { + Self::RasterStacker + } +} + diff --git a/rust/src/models/raster_stacker_parameters.rs b/rust/src/models/raster_stacker_parameters.rs new file mode 100644 index 00000000..a282f333 --- /dev/null +++ b/rust/src/models/raster_stacker_parameters.rs @@ -0,0 +1,30 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +/// RasterStackerParameters : Parameters for the `RasterStacker` operator. +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct RasterStackerParameters { + /// Strategy for deriving output band names. - `default`: appends ` (n)` with the smallest `n` that avoids a conflict. - `suffix`: appends one suffix per input. - `rename`: explicitly provides names for all resulting bands. + #[serde(rename = "renameBands")] + pub rename_bands: Box, +} + +impl RasterStackerParameters { + /// Parameters for the `RasterStacker` operator. + pub fn new(rename_bands: models::RenameBands) -> RasterStackerParameters { + RasterStackerParameters { + rename_bands: Box::new(rename_bands), + } + } +} + diff --git a/rust/src/models/raster_type_conversion.rs b/rust/src/models/raster_type_conversion.rs new file mode 100644 index 00000000..73725bc4 --- /dev/null +++ b/rust/src/models/raster_type_conversion.rs @@ -0,0 +1,47 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +/// RasterTypeConversion : The `RasterTypeConversion` operator changes the data type of raster pixels. Applying this conversion may cause precision loss. For example, converting `F32` value `3.1` to `U8` results in `3`. If a value is outside of the range of the target data type, it is clipped to the valid range of that type. For example, converting `F32` value `300.0` to `U8` results in `255`. ## Inputs The `RasterTypeConversion` operator expects exactly one _raster_ input. +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct RasterTypeConversion { + #[serde(rename = "params")] + pub params: Box, + #[serde(rename = "sources")] + pub sources: Box, + #[serde(rename = "type")] + pub r#type: Type, +} + +impl RasterTypeConversion { + /// The `RasterTypeConversion` operator changes the data type of raster pixels. Applying this conversion may cause precision loss. For example, converting `F32` value `3.1` to `U8` results in `3`. If a value is outside of the range of the target data type, it is clipped to the valid range of that type. For example, converting `F32` value `300.0` to `U8` results in `255`. ## Inputs The `RasterTypeConversion` operator expects exactly one _raster_ input. + pub fn new(params: models::RasterTypeConversionParameters, sources: models::SingleRasterSource, r#type: Type) -> RasterTypeConversion { + RasterTypeConversion { + params: Box::new(params), + sources: Box::new(sources), + r#type, + } + } +} +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum Type { + #[serde(rename = "RasterTypeConversion")] + RasterTypeConversion, +} + +impl Default for Type { + fn default() -> Type { + Self::RasterTypeConversion + } +} + diff --git a/rust/src/models/raster_type_conversion_parameters.rs b/rust/src/models/raster_type_conversion_parameters.rs new file mode 100644 index 00000000..c270aa02 --- /dev/null +++ b/rust/src/models/raster_type_conversion_parameters.rs @@ -0,0 +1,30 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +/// RasterTypeConversionParameters : Parameters for the `RasterTypeConversion` operator. +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct RasterTypeConversionParameters { + /// Output raster data type. + #[serde(rename = "outputDataType")] + pub output_data_type: models::RasterDataType, +} + +impl RasterTypeConversionParameters { + /// Parameters for the `RasterTypeConversion` operator. + pub fn new(output_data_type: models::RasterDataType) -> RasterTypeConversionParameters { + RasterTypeConversionParameters { + output_data_type, + } + } +} + diff --git a/rust/src/models/regular.rs b/rust/src/models/regular.rs new file mode 100644 index 00000000..3967a8a3 --- /dev/null +++ b/rust/src/models/regular.rs @@ -0,0 +1,45 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct Regular { + #[serde(rename = "origin")] + pub origin: i64, + #[serde(rename = "step")] + pub step: Box, + #[serde(rename = "type")] + pub r#type: Type, +} + +impl Regular { + pub fn new(origin: i64, step: models::TimeStep, r#type: Type) -> Regular { + Regular { + origin, + step: Box::new(step), + r#type, + } + } +} +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum Type { + #[serde(rename = "regular")] + Regular, +} + +impl Default for Type { + fn default() -> Type { + Self::Regular + } +} + diff --git a/rust/src/models/rename.rs b/rust/src/models/rename.rs new file mode 100644 index 00000000..38389416 --- /dev/null +++ b/rust/src/models/rename.rs @@ -0,0 +1,42 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct Rename { + #[serde(rename = "type")] + pub r#type: Type, + #[serde(rename = "values")] + pub values: Vec, +} + +impl Rename { + pub fn new(r#type: Type, values: Vec) -> Rename { + Rename { + r#type, + values, + } + } +} +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum Type { + #[serde(rename = "rename")] + Rename, +} + +impl Default for Type { + fn default() -> Type { + Self::Rename + } +} + diff --git a/rust/src/models/rename_bands.rs b/rust/src/models/rename_bands.rs new file mode 100644 index 00000000..ab955a3d --- /dev/null +++ b/rust/src/models/rename_bands.rs @@ -0,0 +1,43 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] +#[serde(untagged)] +pub enum RenameBands { + Default(Box), + Suffix(Box), + Rename(Box), +} + +impl Default for RenameBands { + fn default() -> Self { + Self::Default(Default::default()) + } +} +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum Type { + #[serde(rename = "default")] + Default, + #[serde(rename = "suffix")] + Suffix, + #[serde(rename = "rename")] + Rename, +} + +impl Default for Type { + fn default() -> Type { + Self::Default + } +} + diff --git a/rust/src/models/reprojection.rs b/rust/src/models/reprojection.rs new file mode 100644 index 00000000..dd26cfb1 --- /dev/null +++ b/rust/src/models/reprojection.rs @@ -0,0 +1,47 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +/// Reprojection : The `Reprojection` operator reprojects data from one spatial reference system to another. It accepts exactly one input which can either be a raster or a vector data stream. The operator produces all data that, after reprojection, is contained in the query rectangle. ## Data Type Specifics The concrete behavior depends on the data type. ### Vector Data The operator reprojects all coordinates of the features individually. The result contains all features that, after reprojection, are intersected by the query rectangle. ### Raster Data To create tiles in the target projection, the operator loads corresponding tiles in the source projection. For each output pixel, the value of the nearest input pixel is used. If parts of a tile are outside of the source extent after projection, the operator produces NO DATA values. ## Inputs The `Reprojection` operator expects exactly one _raster_ or _vector_ input. ## Errors The operator returns an error if the target projection is unknown or if input data cannot be reprojected. +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct Reprojection { + #[serde(rename = "params")] + pub params: Box, + #[serde(rename = "sources")] + pub sources: Box, + #[serde(rename = "type")] + pub r#type: Type, +} + +impl Reprojection { + /// The `Reprojection` operator reprojects data from one spatial reference system to another. It accepts exactly one input which can either be a raster or a vector data stream. The operator produces all data that, after reprojection, is contained in the query rectangle. ## Data Type Specifics The concrete behavior depends on the data type. ### Vector Data The operator reprojects all coordinates of the features individually. The result contains all features that, after reprojection, are intersected by the query rectangle. ### Raster Data To create tiles in the target projection, the operator loads corresponding tiles in the source projection. For each output pixel, the value of the nearest input pixel is used. If parts of a tile are outside of the source extent after projection, the operator produces NO DATA values. ## Inputs The `Reprojection` operator expects exactly one _raster_ or _vector_ input. ## Errors The operator returns an error if the target projection is unknown or if input data cannot be reprojected. + pub fn new(params: models::ReprojectionParameters, sources: models::SingleRasterOrVectorSource, r#type: Type) -> Reprojection { + Reprojection { + params: Box::new(params), + sources: Box::new(sources), + r#type, + } + } +} +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum Type { + #[serde(rename = "Reprojection")] + Reprojection, +} + +impl Default for Type { + fn default() -> Type { + Self::Reprojection + } +} + diff --git a/rust/src/models/reprojection_parameters.rs b/rust/src/models/reprojection_parameters.rs new file mode 100644 index 00000000..75962cb1 --- /dev/null +++ b/rust/src/models/reprojection_parameters.rs @@ -0,0 +1,34 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +/// ReprojectionParameters : Parameters for the `Reprojection` operator. +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct ReprojectionParameters { + /// Controls how raster output bounds are derived. The default `projectionBounds` usually keeps a projection-aligned target grid, while `dataBounds` derives it directly from source data bounds. + #[serde(rename = "deriveOutSpec", skip_serializing_if = "Option::is_none")] + pub derive_out_spec: Option, + /// Target spatial reference system. + #[serde(rename = "targetSpatialReference")] + pub target_spatial_reference: String, +} + +impl ReprojectionParameters { + /// Parameters for the `Reprojection` operator. + pub fn new(target_spatial_reference: String) -> ReprojectionParameters { + ReprojectionParameters { + derive_out_spec: None, + target_spatial_reference, + } + } +} + diff --git a/rust/src/models/resolution.rs b/rust/src/models/resolution.rs new file mode 100644 index 00000000..dcc772a2 --- /dev/null +++ b/rust/src/models/resolution.rs @@ -0,0 +1,47 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +/// Resolution : Explicit output resolution (`x`, `y`) in target coordinates. +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct Resolution { + #[serde(rename = "type")] + pub r#type: Type, + #[serde(rename = "x")] + pub x: f64, + #[serde(rename = "y")] + pub y: f64, +} + +impl Resolution { + /// Explicit output resolution (`x`, `y`) in target coordinates. + pub fn new(r#type: Type, x: f64, y: f64) -> Resolution { + Resolution { + r#type, + x, + y, + } + } +} +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum Type { + #[serde(rename = "resolution")] + Resolution, +} + +impl Default for Type { + fn default() -> Type { + Self::Resolution + } +} + diff --git a/rust/src/models/single_raster_or_vector_operator.rs b/rust/src/models/single_raster_or_vector_operator.rs index de0f8799..fa4c88e7 100644 --- a/rust/src/models/single_raster_or_vector_operator.rs +++ b/rust/src/models/single_raster_or_vector_operator.rs @@ -28,15 +28,15 @@ impl Default for SingleRasterOrVectorOperator { /// #[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] pub enum Type { - #[serde(rename = "GdalSource")] - GdalSource, - #[serde(rename = "RasterVectorJoin")] - RasterVectorJoin, + #[serde(rename = "TemporalRasterAggregation")] + TemporalRasterAggregation, + #[serde(rename = "Reprojection")] + Reprojection, } impl Default for Type { fn default() -> Type { - Self::GdalSource + Self::TemporalRasterAggregation } } diff --git a/rust/src/models/square_root_choice_rule.rs b/rust/src/models/square_root_choice_rule.rs new file mode 100644 index 00000000..23715753 --- /dev/null +++ b/rust/src/models/square_root_choice_rule.rs @@ -0,0 +1,42 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct SquareRootChoiceRule { + #[serde(rename = "maxNumberOfBuckets", skip_serializing_if = "Option::is_none")] + pub max_number_of_buckets: Option, + #[serde(rename = "type")] + pub r#type: Type, +} + +impl SquareRootChoiceRule { + pub fn new(r#type: Type) -> SquareRootChoiceRule { + SquareRootChoiceRule { + max_number_of_buckets: None, + r#type, + } + } +} +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum Type { + #[serde(rename = "squareRootChoiceRule")] + SquareRootChoiceRule, +} + +impl Default for Type { + fn default() -> Type { + Self::SquareRootChoiceRule + } +} + diff --git a/rust/src/models/sum_aggregation.rs b/rust/src/models/sum_aggregation.rs new file mode 100644 index 00000000..08ce3e74 --- /dev/null +++ b/rust/src/models/sum_aggregation.rs @@ -0,0 +1,42 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct SumAggregation { + #[serde(rename = "ignoreNoData")] + pub ignore_no_data: bool, + #[serde(rename = "type")] + pub r#type: Type, +} + +impl SumAggregation { + pub fn new(ignore_no_data: bool, r#type: Type) -> SumAggregation { + SumAggregation { + ignore_no_data, + r#type, + } + } +} +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum Type { + #[serde(rename = "sum")] + Sum, +} + +impl Default for Type { + fn default() -> Type { + Self::Sum + } +} + diff --git a/rust/src/models/temporal_raster_aggregation.rs b/rust/src/models/temporal_raster_aggregation.rs new file mode 100644 index 00000000..10805daf --- /dev/null +++ b/rust/src/models/temporal_raster_aggregation.rs @@ -0,0 +1,47 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +/// TemporalRasterAggregation : The `TemporalRasterAggregation` operator aggregates a raster time series into uniform time windows. The output starts with the first window that contains the query start and contains all windows that overlap the query interval. Pixel values are computed by aggregating all input rasters that contribute to the current window. ## Inputs The `TemporalRasterAggregation` operator expects exactly one _raster_ input. ## Errors If the aggregation method is `first`, `last`, or `mean` and the input raster has no NO DATA value, an error is returned. +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct TemporalRasterAggregation { + #[serde(rename = "params")] + pub params: Box, + #[serde(rename = "sources")] + pub sources: Box, + #[serde(rename = "type")] + pub r#type: Type, +} + +impl TemporalRasterAggregation { + /// The `TemporalRasterAggregation` operator aggregates a raster time series into uniform time windows. The output starts with the first window that contains the query start and contains all windows that overlap the query interval. Pixel values are computed by aggregating all input rasters that contribute to the current window. ## Inputs The `TemporalRasterAggregation` operator expects exactly one _raster_ input. ## Errors If the aggregation method is `first`, `last`, or `mean` and the input raster has no NO DATA value, an error is returned. + pub fn new(params: models::TemporalRasterAggregationParameters, sources: models::SingleRasterSource, r#type: Type) -> TemporalRasterAggregation { + TemporalRasterAggregation { + params: Box::new(params), + sources: Box::new(sources), + r#type, + } + } +} +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum Type { + #[serde(rename = "TemporalRasterAggregation")] + TemporalRasterAggregation, +} + +impl Default for Type { + fn default() -> Type { + Self::TemporalRasterAggregation + } +} + diff --git a/rust/src/models/temporal_raster_aggregation_parameters.rs b/rust/src/models/temporal_raster_aggregation_parameters.rs new file mode 100644 index 00000000..0ac7e853 --- /dev/null +++ b/rust/src/models/temporal_raster_aggregation_parameters.rs @@ -0,0 +1,42 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +/// TemporalRasterAggregationParameters : Parameters for the `TemporalRasterAggregation` operator. +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct TemporalRasterAggregationParameters { + /// Aggregation method for values within each time window. Encountering NO DATA makes the aggregation result NO DATA unless `ignoreNoData` is `true` for the selected aggregation variant. + #[serde(rename = "aggregation")] + pub aggregation: Box, + /// Optional output raster data type. + #[serde(rename = "outputType", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub output_type: Option>, + /// Window size and granularity for the output time series. + #[serde(rename = "window")] + pub window: Box, + /// Optional reference timestamp used as the anchor for window boundaries. If omitted, windows are anchored at `1970-01-01T00:00:00Z`. + #[serde(rename = "windowReference", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub window_reference: Option>, +} + +impl TemporalRasterAggregationParameters { + /// Parameters for the `TemporalRasterAggregation` operator. + pub fn new(aggregation: models::Aggregation, window: models::TimeStep) -> TemporalRasterAggregationParameters { + TemporalRasterAggregationParameters { + aggregation: Box::new(aggregation), + output_type: None, + window: Box::new(window), + window_reference: None, + } + } +} + diff --git a/rust/src/models/time_dimension.rs b/rust/src/models/time_dimension.rs index cc543a79..729707f8 100644 --- a/rust/src/models/time_dimension.rs +++ b/rust/src/models/time_dimension.rs @@ -14,13 +14,13 @@ use serde::{Deserialize, Serialize}; #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] #[serde(untagged)] pub enum TimeDimension { - TimeDimensionOneOf(Box), - TimeDimensionOneOf1(Box), + Regular(Box), + Irregular(Box), } impl Default for TimeDimension { fn default() -> Self { - Self::TimeDimensionOneOf(Default::default()) + Self::Regular(Default::default()) } } /// diff --git a/rust/src/models/typed_geometry.rs b/rust/src/models/typed_geometry.rs index 8618607c..2806b175 100644 --- a/rust/src/models/typed_geometry.rs +++ b/rust/src/models/typed_geometry.rs @@ -14,15 +14,15 @@ use serde::{Deserialize, Serialize}; #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] #[serde(untagged)] pub enum TypedGeometry { - TypedGeometryOneOf(Box), - TypedGeometryOneOf1(Box), - TypedGeometryOneOf2(Box), - TypedGeometryOneOf3(Box), + NoGeometry1(Box), + MultiPoint1(Box), + MultiLineString1(Box), + MultiPolygon1(Box), } impl Default for TypedGeometry { fn default() -> Self { - Self::TypedGeometryOneOf(Default::default()) + Self::NoGeometry1(Default::default()) } } diff --git a/rust/src/models/upload.rs b/rust/src/models/upload.rs new file mode 100644 index 00000000..0c94ce6d --- /dev/null +++ b/rust/src/models/upload.rs @@ -0,0 +1,27 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct Upload { + #[serde(rename = "upload")] + pub upload: uuid::Uuid, +} + +impl Upload { + pub fn new(upload: uuid::Uuid) -> Upload { + Upload { + upload, + } + } +} + diff --git a/rust/src/models/values.rs b/rust/src/models/values.rs new file mode 100644 index 00000000..83889c94 --- /dev/null +++ b/rust/src/models/values.rs @@ -0,0 +1,27 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct Values { + #[serde(rename = "values")] + pub values: Box, +} + +impl Values { + pub fn new(values: models::ValuesValues) -> Values { + Values { + values: Box::new(values), + } + } +} + diff --git a/rust/src/models/values_values.rs b/rust/src/models/values_values.rs new file mode 100644 index 00000000..32333282 --- /dev/null +++ b/rust/src/models/values_values.rs @@ -0,0 +1,30 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct ValuesValues { + #[serde(rename = "max")] + pub max: f64, + #[serde(rename = "min")] + pub min: f64, +} + +impl ValuesValues { + pub fn new(max: f64, min: f64) -> ValuesValues { + ValuesValues { + max, + min, + } + } +} + diff --git a/rust/src/models/vector_operator.rs b/rust/src/models/vector_operator.rs index 355a7b48..736d90a5 100644 --- a/rust/src/models/vector_operator.rs +++ b/rust/src/models/vector_operator.rs @@ -19,6 +19,8 @@ pub enum VectorOperator { MockPointSource(Box), #[serde(rename="RasterVectorJoin")] RasterVectorJoin(Box), + #[serde(rename="Reprojection")] + Reprojection(Box), } impl Default for VectorOperator { diff --git a/rust/src/models/volume_1.rs b/rust/src/models/volume_1.rs new file mode 100644 index 00000000..9277c42e --- /dev/null +++ b/rust/src/models/volume_1.rs @@ -0,0 +1,27 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct Volume1 { + #[serde(rename = "volume")] + pub volume: String, +} + +impl Volume1 { + pub fn new(volume: String) -> Volume1 { + Volume1 { + volume, + } + } +} + diff --git a/typescript/README.md b/typescript/README.md index f308a1d6..cf6cbe0a 100644 --- a/typescript/README.md +++ b/typescript/README.md @@ -156,11 +156,15 @@ All URIs are relative to *https://geoengine.io/api* - [AddLayer](docs/AddLayer.md) - [AddLayerCollection](docs/AddLayerCollection.md) - [AddRole](docs/AddRole.md) +- [Aggregation](docs/Aggregation.md) - [ArunaDataProviderDefinition](docs/ArunaDataProviderDefinition.md) - [AuthCodeRequestURL](docs/AuthCodeRequestURL.md) - [AuthCodeResponse](docs/AuthCodeResponse.md) - [AutoCreateDataset](docs/AutoCreateDataset.md) - [AxisOrder](docs/AxisOrder.md) +- [BandFilter](docs/BandFilter.md) +- [BandFilterParameters](docs/BandFilterParameters.md) +- [BandsByNameOrIndex](docs/BandsByNameOrIndex.md) - [BoundingBox2D](docs/BoundingBox2D.md) - [Breakpoint](docs/Breakpoint.md) - [ClassificationMeasurement](docs/ClassificationMeasurement.md) @@ -173,13 +177,13 @@ All URIs are relative to *https://geoengine.io/api* - [ContinuousMeasurement](docs/ContinuousMeasurement.md) - [Coordinate2D](docs/Coordinate2D.md) - [CopernicusDataspaceDataProviderDefinition](docs/CopernicusDataspaceDataProviderDefinition.md) +- [CountAggregation](docs/CountAggregation.md) - [CreateDataset](docs/CreateDataset.md) - [CreateProject](docs/CreateProject.md) - [CsvHeader](docs/CsvHeader.md) +- [Data1](docs/Data1.md) - [DataId](docs/DataId.md) - [DataPath](docs/DataPath.md) -- [DataPathOneOf](docs/DataPathOneOf.md) -- [DataPathOneOf1](docs/DataPathOneOf1.md) - [DataProviderResource](docs/DataProviderResource.md) - [DataUsage](docs/DataUsage.md) - [DataUsageSummary](docs/DataUsageSummary.md) @@ -192,6 +196,7 @@ All URIs are relative to *https://geoengine.io/api* - [DatasetNameResponse](docs/DatasetNameResponse.md) - [DatasetResource](docs/DatasetResource.md) - [Default](docs/Default.md) +- [DeriveOutRasterSpecsSource](docs/DeriveOutRasterSpecsSource.md) - [DerivedColor](docs/DerivedColor.md) - [DerivedNumber](docs/DerivedNumber.md) - [EbvPortalDataProviderDefinition](docs/EbvPortalDataProviderDefinition.md) @@ -204,8 +209,10 @@ All URIs are relative to *https://geoengine.io/api* - [FeatureAggregationMethod](docs/FeatureAggregationMethod.md) - [FeatureDataType](docs/FeatureDataType.md) - [FileNotFoundHandling](docs/FileNotFoundHandling.md) +- [FirstAggregation](docs/FirstAggregation.md) - [FormatSpecifics](docs/FormatSpecifics.md) - [FormatSpecificsCsv](docs/FormatSpecificsCsv.md) +- [Fraction](docs/Fraction.md) - [GbifDataProviderDefinition](docs/GbifDataProviderDefinition.md) - [GdalDatasetParameters](docs/GdalDatasetParameters.md) - [GdalLoadingInfoTemporalSlice](docs/GdalLoadingInfoTemporalSlice.md) @@ -228,15 +235,16 @@ All URIs are relative to *https://geoengine.io/api* - [GridIdx2D](docs/GridIdx2D.md) - [Histogram](docs/Histogram.md) - [HistogramBounds](docs/HistogramBounds.md) -- [HistogramBoundsOneOf](docs/HistogramBoundsOneOf.md) -- [HistogramBoundsOneOf1](docs/HistogramBoundsOneOf1.md) -- [HistogramBoundsOneOf1Values](docs/HistogramBoundsOneOf1Values.md) - [HistogramBuckets](docs/HistogramBuckets.md) -- [HistogramBucketsOneOf](docs/HistogramBucketsOneOf.md) -- [HistogramBucketsOneOf1](docs/HistogramBucketsOneOf1.md) - [HistogramParameters](docs/HistogramParameters.md) - [IdResponse](docs/IdResponse.md) - [InternalDataId](docs/InternalDataId.md) +- [Interpolation](docs/Interpolation.md) +- [InterpolationMethod](docs/InterpolationMethod.md) +- [InterpolationParameters](docs/InterpolationParameters.md) +- [InterpolationResolution](docs/InterpolationResolution.md) +- [Irregular](docs/Irregular.md) +- [LastAggregation](docs/LastAggregation.md) - [Layer](docs/Layer.md) - [LayerCollection](docs/LayerCollection.md) - [LayerCollectionListing](docs/LayerCollectionListing.md) @@ -250,9 +258,12 @@ All URIs are relative to *https://geoengine.io/api* - [LineSymbology](docs/LineSymbology.md) - [LinearGradient](docs/LinearGradient.md) - [LogarithmicGradient](docs/LogarithmicGradient.md) +- [MaxAggregation](docs/MaxAggregation.md) +- [MeanAggregation](docs/MeanAggregation.md) - [Measurement](docs/Measurement.md) - [MetaDataDefinition](docs/MetaDataDefinition.md) - [MetaDataSuggestion](docs/MetaDataSuggestion.md) +- [MinAggregation](docs/MinAggregation.md) - [MlModel](docs/MlModel.md) - [MlModelInputNoDataHandling](docs/MlModelInputNoDataHandling.md) - [MlModelInputNoDataHandlingVariant](docs/MlModelInputNoDataHandlingVariant.md) @@ -266,14 +277,21 @@ All URIs are relative to *https://geoengine.io/api* - [MockMetaData](docs/MockMetaData.md) - [MockPointSource](docs/MockPointSource.md) - [MockPointSourceParameters](docs/MockPointSourceParameters.md) +- [MultiBandGdalSource](docs/MultiBandGdalSource.md) - [MultiBandRasterColorizer](docs/MultiBandRasterColorizer.md) - [MultiLineString](docs/MultiLineString.md) +- [MultiLineString1](docs/MultiLineString1.md) - [MultiPoint](docs/MultiPoint.md) +- [MultiPoint1](docs/MultiPoint1.md) - [MultiPolygon](docs/MultiPolygon.md) +- [MultiPolygon1](docs/MultiPolygon1.md) - [MultipleRasterOrSingleVectorOperator](docs/MultipleRasterOrSingleVectorOperator.md) - [MultipleRasterOrSingleVectorSource](docs/MultipleRasterOrSingleVectorSource.md) +- [MultipleRasterSources](docs/MultipleRasterSources.md) - [Names](docs/Names.md) - [NetCdfCfDataProviderDefinition](docs/NetCdfCfDataProviderDefinition.md) +- [NoGeometry1](docs/NoGeometry1.md) +- [Number](docs/Number.md) - [NumberParam](docs/NumberParam.md) - [OgrMetaData](docs/OgrMetaData.md) - [OgrSourceColumnSpec](docs/OgrSourceColumnSpec.md) @@ -296,6 +314,7 @@ All URIs are relative to *https://geoengine.io/api* - [OrderBy](docs/OrderBy.md) - [PaletteColorizer](docs/PaletteColorizer.md) - [PangaeaDataProviderDefinition](docs/PangaeaDataProviderDefinition.md) +- [PercentileEstimateAggregation](docs/PercentileEstimateAggregation.md) - [Permission](docs/Permission.md) - [PermissionListing](docs/PermissionListing.md) - [PermissionRequest](docs/PermissionRequest.md) @@ -326,12 +345,22 @@ All URIs are relative to *https://geoengine.io/api* - [RasterPropertiesEntryType](docs/RasterPropertiesEntryType.md) - [RasterPropertiesKey](docs/RasterPropertiesKey.md) - [RasterResultDescriptor](docs/RasterResultDescriptor.md) +- [RasterStacker](docs/RasterStacker.md) +- [RasterStackerParameters](docs/RasterStackerParameters.md) - [RasterStreamWebsocketResultType](docs/RasterStreamWebsocketResultType.md) - [RasterSymbology](docs/RasterSymbology.md) - [RasterToDatasetQueryRectangle](docs/RasterToDatasetQueryRectangle.md) +- [RasterTypeConversion](docs/RasterTypeConversion.md) +- [RasterTypeConversionParameters](docs/RasterTypeConversionParameters.md) - [RasterVectorJoin](docs/RasterVectorJoin.md) - [RasterVectorJoinParameters](docs/RasterVectorJoinParameters.md) +- [Regular](docs/Regular.md) - [RegularTimeDimension](docs/RegularTimeDimension.md) +- [Rename](docs/Rename.md) +- [RenameBands](docs/RenameBands.md) +- [Reprojection](docs/Reprojection.md) +- [ReprojectionParameters](docs/ReprojectionParameters.md) +- [Resolution](docs/Resolution.md) - [Resource](docs/Resource.md) - [Role](docs/Role.md) - [RoleDescription](docs/RoleDescription.md) @@ -355,6 +384,7 @@ All URIs are relative to *https://geoengine.io/api* - [SpatialGridDescriptorState](docs/SpatialGridDescriptorState.md) - [SpatialPartition2D](docs/SpatialPartition2D.md) - [SpatialReferenceSpecification](docs/SpatialReferenceSpecification.md) +- [SquareRootChoiceRule](docs/SquareRootChoiceRule.md) - [StacApiRetries](docs/StacApiRetries.md) - [StacQueryBuffer](docs/StacQueryBuffer.md) - [StaticColor](docs/StaticColor.md) @@ -364,6 +394,7 @@ All URIs are relative to *https://geoengine.io/api* - [StrokeParam](docs/StrokeParam.md) - [Suffix](docs/Suffix.md) - [SuggestMetaData](docs/SuggestMetaData.md) +- [SumAggregation](docs/SumAggregation.md) - [Symbology](docs/Symbology.md) - [TaskFilter](docs/TaskFilter.md) - [TaskResponse](docs/TaskResponse.md) @@ -374,21 +405,17 @@ All URIs are relative to *https://geoengine.io/api* - [TaskStatusRunning](docs/TaskStatusRunning.md) - [TaskStatusWithId](docs/TaskStatusWithId.md) - [TemporalAggregationMethod](docs/TemporalAggregationMethod.md) +- [TemporalRasterAggregation](docs/TemporalRasterAggregation.md) +- [TemporalRasterAggregationParameters](docs/TemporalRasterAggregationParameters.md) - [TextSymbology](docs/TextSymbology.md) - [TimeDescriptor](docs/TimeDescriptor.md) - [TimeDimension](docs/TimeDimension.md) -- [TimeDimensionOneOf](docs/TimeDimensionOneOf.md) -- [TimeDimensionOneOf1](docs/TimeDimensionOneOf1.md) - [TimeGranularity](docs/TimeGranularity.md) - [TimeInterval](docs/TimeInterval.md) - [TimeReference](docs/TimeReference.md) - [TimeStep](docs/TimeStep.md) - [TypedDataProviderDefinition](docs/TypedDataProviderDefinition.md) - [TypedGeometry](docs/TypedGeometry.md) -- [TypedGeometryOneOf](docs/TypedGeometryOneOf.md) -- [TypedGeometryOneOf1](docs/TypedGeometryOneOf1.md) -- [TypedGeometryOneOf2](docs/TypedGeometryOneOf2.md) -- [TypedGeometryOneOf3](docs/TypedGeometryOneOf3.md) - [TypedOperator](docs/TypedOperator.md) - [TypedPlotOperator](docs/TypedPlotOperator.md) - [TypedPlotResultDescriptor](docs/TypedPlotResultDescriptor.md) @@ -404,6 +431,7 @@ All URIs are relative to *https://geoengine.io/api* - [UpdateLayerCollection](docs/UpdateLayerCollection.md) - [UpdateProject](docs/UpdateProject.md) - [UpdateQuota](docs/UpdateQuota.md) +- [Upload](docs/Upload.md) - [UploadFileLayersResponse](docs/UploadFileLayersResponse.md) - [UploadFilesResponse](docs/UploadFilesResponse.md) - [UsageSummaryGranularity](docs/UsageSummaryGranularity.md) @@ -411,12 +439,15 @@ All URIs are relative to *https://geoengine.io/api* - [UserInfo](docs/UserInfo.md) - [UserRegistration](docs/UserRegistration.md) - [UserSession](docs/UserSession.md) +- [Values](docs/Values.md) +- [ValuesValues](docs/ValuesValues.md) - [VecUpdate](docs/VecUpdate.md) - [VectorColumnInfo](docs/VectorColumnInfo.md) - [VectorDataType](docs/VectorDataType.md) - [VectorOperator](docs/VectorOperator.md) - [VectorResultDescriptor](docs/VectorResultDescriptor.md) - [Volume](docs/Volume.md) +- [Volume1](docs/Volume1.md) - [VolumeFileLayersResponse](docs/VolumeFileLayersResponse.md) - [WcsRequest](docs/WcsRequest.md) - [WcsService](docs/WcsService.md) diff --git a/typescript/diffs/typescript/src/models/RasterOperator.ts.diff b/typescript/diffs/typescript/src/models/RasterOperator.ts.diff index 2bb8b969..9fc6f0c9 100644 --- a/typescript/diffs/typescript/src/models/RasterOperator.ts.diff +++ b/typescript/diffs/typescript/src/models/RasterOperator.ts.diff @@ -1,6 +1,6 @@ --- typescript/src/models/RasterOperator.ts +++ typescript/src/models/RasterOperator.ts -@@ -70,3 +70,11 @@ +@@ -147,3 +147,11 @@ } } diff --git a/typescript/diffs/typescript/src/models/VectorOperator.ts.diff b/typescript/diffs/typescript/src/models/VectorOperator.ts.diff index 374312b7..a3b2ceaa 100644 --- a/typescript/diffs/typescript/src/models/VectorOperator.ts.diff +++ b/typescript/diffs/typescript/src/models/VectorOperator.ts.diff @@ -1,6 +1,6 @@ --- typescript/src/models/VectorOperator.ts +++ typescript/src/models/VectorOperator.ts -@@ -70,3 +70,11 @@ +@@ -81,3 +81,11 @@ } } diff --git a/typescript/dist/esm/models/Aggregation.d.ts b/typescript/dist/esm/models/Aggregation.d.ts new file mode 100644 index 00000000..ae560672 --- /dev/null +++ b/typescript/dist/esm/models/Aggregation.d.ts @@ -0,0 +1,32 @@ +/** + * Geo Engine API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { CountAggregation } from './CountAggregation'; +import type { FirstAggregation } from './FirstAggregation'; +import type { LastAggregation } from './LastAggregation'; +import type { MaxAggregation } from './MaxAggregation'; +import type { MeanAggregation } from './MeanAggregation'; +import type { MinAggregation } from './MinAggregation'; +import type { PercentileEstimateAggregation } from './PercentileEstimateAggregation'; +import type { SumAggregation } from './SumAggregation'; +/** + * @type Aggregation + * Aggregation methods for `TemporalRasterAggregation`. + * + * Available variants are `min`, `max`, `first`, `last`, `mean`, `sum`, `count`, and `percentileEstimate`. + * Encountering NO DATA makes the aggregation result NO DATA unless `ignoreNoData` is `true`. + * @export + */ +export type Aggregation = CountAggregation | FirstAggregation | LastAggregation | MaxAggregation | MeanAggregation | MinAggregation | PercentileEstimateAggregation | SumAggregation; +export declare function AggregationFromJSON(json: any): Aggregation; +export declare function AggregationFromJSONTyped(json: any, ignoreDiscriminator: boolean): Aggregation; +export declare function AggregationToJSON(json: any): any; +export declare function AggregationToJSONTyped(value?: Aggregation | null, ignoreDiscriminator?: boolean): any; diff --git a/typescript/dist/esm/models/Aggregation.js b/typescript/dist/esm/models/Aggregation.js new file mode 100644 index 00000000..4872f39f --- /dev/null +++ b/typescript/dist/esm/models/Aggregation.js @@ -0,0 +1,93 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { instanceOfCountAggregation, CountAggregationFromJSONTyped, CountAggregationToJSON, } from './CountAggregation'; +import { instanceOfFirstAggregation, FirstAggregationFromJSONTyped, FirstAggregationToJSON, } from './FirstAggregation'; +import { instanceOfLastAggregation, LastAggregationFromJSONTyped, LastAggregationToJSON, } from './LastAggregation'; +import { instanceOfMaxAggregation, MaxAggregationFromJSONTyped, MaxAggregationToJSON, } from './MaxAggregation'; +import { instanceOfMeanAggregation, MeanAggregationFromJSONTyped, MeanAggregationToJSON, } from './MeanAggregation'; +import { instanceOfMinAggregation, MinAggregationFromJSONTyped, MinAggregationToJSON, } from './MinAggregation'; +import { instanceOfPercentileEstimateAggregation, PercentileEstimateAggregationFromJSONTyped, PercentileEstimateAggregationToJSON, } from './PercentileEstimateAggregation'; +import { instanceOfSumAggregation, SumAggregationFromJSONTyped, SumAggregationToJSON, } from './SumAggregation'; +export function AggregationFromJSON(json) { + return AggregationFromJSONTyped(json, false); +} +export function AggregationFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + if (typeof json !== 'object') { + return json; + } + if (instanceOfCountAggregation(json)) { + return CountAggregationFromJSONTyped(json, true); + } + if (instanceOfFirstAggregation(json)) { + return FirstAggregationFromJSONTyped(json, true); + } + if (instanceOfLastAggregation(json)) { + return LastAggregationFromJSONTyped(json, true); + } + if (instanceOfMaxAggregation(json)) { + return MaxAggregationFromJSONTyped(json, true); + } + if (instanceOfMeanAggregation(json)) { + return MeanAggregationFromJSONTyped(json, true); + } + if (instanceOfMinAggregation(json)) { + return MinAggregationFromJSONTyped(json, true); + } + if (instanceOfPercentileEstimateAggregation(json)) { + return PercentileEstimateAggregationFromJSONTyped(json, true); + } + if (instanceOfSumAggregation(json)) { + return SumAggregationFromJSONTyped(json, true); + } + return {}; +} +export function AggregationToJSON(json) { + return AggregationToJSONTyped(json, false); +} +export function AggregationToJSONTyped(value, ignoreDiscriminator = false) { + if (value == null) { + return value; + } + if (typeof value !== 'object') { + return value; + } + if (instanceOfCountAggregation(value)) { + return CountAggregationToJSON(value); + } + if (instanceOfFirstAggregation(value)) { + return FirstAggregationToJSON(value); + } + if (instanceOfLastAggregation(value)) { + return LastAggregationToJSON(value); + } + if (instanceOfMaxAggregation(value)) { + return MaxAggregationToJSON(value); + } + if (instanceOfMeanAggregation(value)) { + return MeanAggregationToJSON(value); + } + if (instanceOfMinAggregation(value)) { + return MinAggregationToJSON(value); + } + if (instanceOfPercentileEstimateAggregation(value)) { + return PercentileEstimateAggregationToJSON(value); + } + if (instanceOfSumAggregation(value)) { + return SumAggregationToJSON(value); + } + return {}; +} diff --git a/typescript/dist/esm/models/BandFilter.d.ts b/typescript/dist/esm/models/BandFilter.d.ts new file mode 100644 index 00000000..4efa461b --- /dev/null +++ b/typescript/dist/esm/models/BandFilter.d.ts @@ -0,0 +1,64 @@ +/** + * Geo Engine API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { SingleRasterSource } from './SingleRasterSource'; +import type { BandFilterParameters } from './BandFilterParameters'; +/** + * The `BandFilter` operator selects bands from a raster source by band names or band indices. + * + * It removes all non-selected bands while preserving the original order of remaining bands. + * + * ## Inputs + * + * The `BandFilter` operator expects exactly one _raster_ input. + * + * ## Errors + * + * The operator returns an error if no bands are selected or if selected band names/indices + * cannot be mapped to existing input bands. + * @export + * @interface BandFilter + */ +export interface BandFilter { + /** + * + * @type {BandFilterParameters} + * @memberof BandFilter + */ + params: BandFilterParameters; + /** + * + * @type {SingleRasterSource} + * @memberof BandFilter + */ + sources: SingleRasterSource; + /** + * + * @type {BandFilterTypeEnum} + * @memberof BandFilter + */ + type: BandFilterTypeEnum; +} +/** + * @export + */ +export declare const BandFilterTypeEnum: { + readonly BandFilter: "BandFilter"; +}; +export type BandFilterTypeEnum = typeof BandFilterTypeEnum[keyof typeof BandFilterTypeEnum]; +/** + * Check if a given object implements the BandFilter interface. + */ +export declare function instanceOfBandFilter(value: object): value is BandFilter; +export declare function BandFilterFromJSON(json: any): BandFilter; +export declare function BandFilterFromJSONTyped(json: any, ignoreDiscriminator: boolean): BandFilter; +export declare function BandFilterToJSON(json: any): BandFilter; +export declare function BandFilterToJSONTyped(value?: BandFilter | null, ignoreDiscriminator?: boolean): any; diff --git a/typescript/dist/esm/models/BandFilter.js b/typescript/dist/esm/models/BandFilter.js new file mode 100644 index 00000000..756e36a3 --- /dev/null +++ b/typescript/dist/esm/models/BandFilter.js @@ -0,0 +1,59 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { SingleRasterSourceFromJSON, SingleRasterSourceToJSON, } from './SingleRasterSource'; +import { BandFilterParametersFromJSON, BandFilterParametersToJSON, } from './BandFilterParameters'; +/** + * @export + */ +export const BandFilterTypeEnum = { + BandFilter: 'BandFilter' +}; +/** + * Check if a given object implements the BandFilter interface. + */ +export function instanceOfBandFilter(value) { + if (!('params' in value) || value['params'] === undefined) + return false; + if (!('sources' in value) || value['sources'] === undefined) + return false; + if (!('type' in value) || value['type'] === undefined) + return false; + return true; +} +export function BandFilterFromJSON(json) { + return BandFilterFromJSONTyped(json, false); +} +export function BandFilterFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'params': BandFilterParametersFromJSON(json['params']), + 'sources': SingleRasterSourceFromJSON(json['sources']), + 'type': json['type'], + }; +} +export function BandFilterToJSON(json) { + return BandFilterToJSONTyped(json, false); +} +export function BandFilterToJSONTyped(value, ignoreDiscriminator = false) { + if (value == null) { + return value; + } + return { + 'params': BandFilterParametersToJSON(value['params']), + 'sources': SingleRasterSourceToJSON(value['sources']), + 'type': value['type'], + }; +} diff --git a/typescript/dist/esm/models/BandFilterParameters.d.ts b/typescript/dist/esm/models/BandFilterParameters.d.ts new file mode 100644 index 00000000..92f5fd6b --- /dev/null +++ b/typescript/dist/esm/models/BandFilterParameters.d.ts @@ -0,0 +1,33 @@ +/** + * Geo Engine API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { BandsByNameOrIndex } from './BandsByNameOrIndex'; +/** + * Parameters for the `BandFilter` operator. + * @export + * @interface BandFilterParameters + */ +export interface BandFilterParameters { + /** + * Selected bands either by names (e.g. `["nir", "red"]`) or indices (e.g. `[0, 2]`). + * @type {BandsByNameOrIndex} + * @memberof BandFilterParameters + */ + bands: BandsByNameOrIndex; +} +/** + * Check if a given object implements the BandFilterParameters interface. + */ +export declare function instanceOfBandFilterParameters(value: object): value is BandFilterParameters; +export declare function BandFilterParametersFromJSON(json: any): BandFilterParameters; +export declare function BandFilterParametersFromJSONTyped(json: any, ignoreDiscriminator: boolean): BandFilterParameters; +export declare function BandFilterParametersToJSON(json: any): BandFilterParameters; +export declare function BandFilterParametersToJSONTyped(value?: BandFilterParameters | null, ignoreDiscriminator?: boolean): any; diff --git a/typescript/dist/esm/models/BandFilterParameters.js b/typescript/dist/esm/models/BandFilterParameters.js new file mode 100644 index 00000000..4978ef0d --- /dev/null +++ b/typescript/dist/esm/models/BandFilterParameters.js @@ -0,0 +1,44 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { BandsByNameOrIndexFromJSON, BandsByNameOrIndexToJSON, } from './BandsByNameOrIndex'; +/** + * Check if a given object implements the BandFilterParameters interface. + */ +export function instanceOfBandFilterParameters(value) { + if (!('bands' in value) || value['bands'] === undefined) + return false; + return true; +} +export function BandFilterParametersFromJSON(json) { + return BandFilterParametersFromJSONTyped(json, false); +} +export function BandFilterParametersFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'bands': BandsByNameOrIndexFromJSON(json['bands']), + }; +} +export function BandFilterParametersToJSON(json) { + return BandFilterParametersToJSONTyped(json, false); +} +export function BandFilterParametersToJSONTyped(value, ignoreDiscriminator = false) { + if (value == null) { + return value; + } + return { + 'bands': BandsByNameOrIndexToJSON(value['bands']), + }; +} diff --git a/typescript/dist/esm/models/BandsByNameOrIndex.d.ts b/typescript/dist/esm/models/BandsByNameOrIndex.d.ts new file mode 100644 index 00000000..823a4d78 --- /dev/null +++ b/typescript/dist/esm/models/BandsByNameOrIndex.d.ts @@ -0,0 +1,21 @@ +/** + * Geo Engine API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * @type BandsByNameOrIndex + * + * @export + */ +export type BandsByNameOrIndex = Array | Array; +export declare function BandsByNameOrIndexFromJSON(json: any): BandsByNameOrIndex; +export declare function BandsByNameOrIndexFromJSONTyped(json: any, ignoreDiscriminator: boolean): BandsByNameOrIndex; +export declare function BandsByNameOrIndexToJSON(json: any): any; +export declare function BandsByNameOrIndexToJSONTyped(value?: BandsByNameOrIndex | null, ignoreDiscriminator?: boolean): any; diff --git a/typescript/dist/esm/models/BandsByNameOrIndex.js b/typescript/dist/esm/models/BandsByNameOrIndex.js new file mode 100644 index 00000000..2730b638 --- /dev/null +++ b/typescript/dist/esm/models/BandsByNameOrIndex.js @@ -0,0 +1,51 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +export function BandsByNameOrIndexFromJSON(json) { + return BandsByNameOrIndexFromJSONTyped(json, false); +} +export function BandsByNameOrIndexFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + if (Array.isArray(json)) { + if (json.every(item => typeof item === 'string')) { + return json; + } + } + if (Array.isArray(json)) { + if (json.every(item => typeof item === 'number')) { + return json; + } + } + return {}; +} +export function BandsByNameOrIndexToJSON(json) { + return BandsByNameOrIndexToJSONTyped(json, false); +} +export function BandsByNameOrIndexToJSONTyped(value, ignoreDiscriminator = false) { + if (value == null) { + return value; + } + if (Array.isArray(value)) { + if (value.every(item => typeof item === 'string')) { + return value; + } + } + if (Array.isArray(value)) { + if (value.every(item => typeof item === 'number')) { + return value; + } + } + return {}; +} diff --git a/typescript/dist/esm/models/CountAggregation.d.ts b/typescript/dist/esm/models/CountAggregation.d.ts new file mode 100644 index 00000000..aeb81771 --- /dev/null +++ b/typescript/dist/esm/models/CountAggregation.d.ts @@ -0,0 +1,45 @@ +/** + * Geo Engine API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface CountAggregation + */ +export interface CountAggregation { + /** + * + * @type {boolean} + * @memberof CountAggregation + */ + ignoreNoData: boolean; + /** + * + * @type {CountAggregationTypeEnum} + * @memberof CountAggregation + */ + type: CountAggregationTypeEnum; +} +/** + * @export + */ +export declare const CountAggregationTypeEnum: { + readonly Count: "count"; +}; +export type CountAggregationTypeEnum = typeof CountAggregationTypeEnum[keyof typeof CountAggregationTypeEnum]; +/** + * Check if a given object implements the CountAggregation interface. + */ +export declare function instanceOfCountAggregation(value: object): value is CountAggregation; +export declare function CountAggregationFromJSON(json: any): CountAggregation; +export declare function CountAggregationFromJSONTyped(json: any, ignoreDiscriminator: boolean): CountAggregation; +export declare function CountAggregationToJSON(json: any): CountAggregation; +export declare function CountAggregationToJSONTyped(value?: CountAggregation | null, ignoreDiscriminator?: boolean): any; diff --git a/typescript/dist/esm/models/CountAggregation.js b/typescript/dist/esm/models/CountAggregation.js new file mode 100644 index 00000000..7fec5967 --- /dev/null +++ b/typescript/dist/esm/models/CountAggregation.js @@ -0,0 +1,53 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * @export + */ +export const CountAggregationTypeEnum = { + Count: 'count' +}; +/** + * Check if a given object implements the CountAggregation interface. + */ +export function instanceOfCountAggregation(value) { + if (!('ignoreNoData' in value) || value['ignoreNoData'] === undefined) + return false; + if (!('type' in value) || value['type'] === undefined) + return false; + return true; +} +export function CountAggregationFromJSON(json) { + return CountAggregationFromJSONTyped(json, false); +} +export function CountAggregationFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'ignoreNoData': json['ignoreNoData'], + 'type': json['type'], + }; +} +export function CountAggregationToJSON(json) { + return CountAggregationToJSONTyped(json, false); +} +export function CountAggregationToJSONTyped(value, ignoreDiscriminator = false) { + if (value == null) { + return value; + } + return { + 'ignoreNoData': value['ignoreNoData'], + 'type': value['type'], + }; +} diff --git a/typescript/dist/esm/models/Data1.d.ts b/typescript/dist/esm/models/Data1.d.ts new file mode 100644 index 00000000..29100b96 --- /dev/null +++ b/typescript/dist/esm/models/Data1.d.ts @@ -0,0 +1,32 @@ +/** + * Geo Engine API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface Data1 + */ +export interface Data1 { + /** + * + * @type {any} + * @memberof Data1 + */ + data: any | null; +} +/** + * Check if a given object implements the Data1 interface. + */ +export declare function instanceOfData1(value: object): value is Data1; +export declare function Data1FromJSON(json: any): Data1; +export declare function Data1FromJSONTyped(json: any, ignoreDiscriminator: boolean): Data1; +export declare function Data1ToJSON(json: any): Data1; +export declare function Data1ToJSONTyped(value?: Data1 | null, ignoreDiscriminator?: boolean): any; diff --git a/typescript/dist/esm/models/HistogramBoundsOneOf.js b/typescript/dist/esm/models/Data1.js similarity index 59% rename from typescript/dist/esm/models/HistogramBoundsOneOf.js rename to typescript/dist/esm/models/Data1.js index fe4ffba1..fffff89d 100644 --- a/typescript/dist/esm/models/HistogramBoundsOneOf.js +++ b/typescript/dist/esm/models/Data1.js @@ -12,17 +12,17 @@ * Do not edit the class manually. */ /** - * Check if a given object implements the HistogramBoundsOneOf interface. + * Check if a given object implements the Data1 interface. */ -export function instanceOfHistogramBoundsOneOf(value) { +export function instanceOfData1(value) { if (!('data' in value) || value['data'] === undefined) return false; return true; } -export function HistogramBoundsOneOfFromJSON(json) { - return HistogramBoundsOneOfFromJSONTyped(json, false); +export function Data1FromJSON(json) { + return Data1FromJSONTyped(json, false); } -export function HistogramBoundsOneOfFromJSONTyped(json, ignoreDiscriminator) { +export function Data1FromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } @@ -30,10 +30,10 @@ export function HistogramBoundsOneOfFromJSONTyped(json, ignoreDiscriminator) { 'data': json['data'], }; } -export function HistogramBoundsOneOfToJSON(json) { - return HistogramBoundsOneOfToJSONTyped(json, false); +export function Data1ToJSON(json) { + return Data1ToJSONTyped(json, false); } -export function HistogramBoundsOneOfToJSONTyped(value, ignoreDiscriminator = false) { +export function Data1ToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } diff --git a/typescript/dist/esm/models/DataPath.d.ts b/typescript/dist/esm/models/DataPath.d.ts index bacdd2a0..6da2e2b2 100644 --- a/typescript/dist/esm/models/DataPath.d.ts +++ b/typescript/dist/esm/models/DataPath.d.ts @@ -9,14 +9,14 @@ * https://openapi-generator.tech * Do not edit the class manually. */ -import type { DataPathOneOf } from './DataPathOneOf'; -import type { DataPathOneOf1 } from './DataPathOneOf1'; +import type { Upload } from './Upload'; +import type { Volume1 } from './Volume1'; /** * @type DataPath * * @export */ -export type DataPath = DataPathOneOf | DataPathOneOf1; +export type DataPath = Upload | Volume1; export declare function DataPathFromJSON(json: any): DataPath; export declare function DataPathFromJSONTyped(json: any, ignoreDiscriminator: boolean): DataPath; export declare function DataPathToJSON(json: any): any; diff --git a/typescript/dist/esm/models/DataPath.js b/typescript/dist/esm/models/DataPath.js index 1158c9aa..da298d40 100644 --- a/typescript/dist/esm/models/DataPath.js +++ b/typescript/dist/esm/models/DataPath.js @@ -11,8 +11,8 @@ * https://openapi-generator.tech * Do not edit the class manually. */ -import { instanceOfDataPathOneOf, DataPathOneOfFromJSONTyped, DataPathOneOfToJSON, } from './DataPathOneOf'; -import { instanceOfDataPathOneOf1, DataPathOneOf1FromJSONTyped, DataPathOneOf1ToJSON, } from './DataPathOneOf1'; +import { instanceOfUpload, UploadFromJSONTyped, UploadToJSON, } from './Upload'; +import { instanceOfVolume1, Volume1FromJSONTyped, Volume1ToJSON, } from './Volume1'; export function DataPathFromJSON(json) { return DataPathFromJSONTyped(json, false); } @@ -23,11 +23,11 @@ export function DataPathFromJSONTyped(json, ignoreDiscriminator) { if (typeof json !== 'object') { return json; } - if (instanceOfDataPathOneOf(json)) { - return DataPathOneOfFromJSONTyped(json, true); + if (instanceOfUpload(json)) { + return UploadFromJSONTyped(json, true); } - if (instanceOfDataPathOneOf1(json)) { - return DataPathOneOf1FromJSONTyped(json, true); + if (instanceOfVolume1(json)) { + return Volume1FromJSONTyped(json, true); } return {}; } @@ -41,11 +41,11 @@ export function DataPathToJSONTyped(value, ignoreDiscriminator = false) { if (typeof value !== 'object') { return value; } - if (instanceOfDataPathOneOf(value)) { - return DataPathOneOfToJSON(value); + if (instanceOfUpload(value)) { + return UploadToJSON(value); } - if (instanceOfDataPathOneOf1(value)) { - return DataPathOneOf1ToJSON(value); + if (instanceOfVolume1(value)) { + return Volume1ToJSON(value); } return {}; } diff --git a/typescript/dist/esm/models/DataPathOneOf.d.ts b/typescript/dist/esm/models/DataPathOneOf.d.ts deleted file mode 100644 index 63e792fc..00000000 --- a/typescript/dist/esm/models/DataPathOneOf.d.ts +++ /dev/null @@ -1,32 +0,0 @@ -/** - * Geo Engine API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.9.0 - * Contact: dev@geoengine.de - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -/** - * - * @export - * @interface DataPathOneOf - */ -export interface DataPathOneOf { - /** - * - * @type {string} - * @memberof DataPathOneOf - */ - volume: string; -} -/** - * Check if a given object implements the DataPathOneOf interface. - */ -export declare function instanceOfDataPathOneOf(value: object): value is DataPathOneOf; -export declare function DataPathOneOfFromJSON(json: any): DataPathOneOf; -export declare function DataPathOneOfFromJSONTyped(json: any, ignoreDiscriminator: boolean): DataPathOneOf; -export declare function DataPathOneOfToJSON(json: any): DataPathOneOf; -export declare function DataPathOneOfToJSONTyped(value?: DataPathOneOf | null, ignoreDiscriminator?: boolean): any; diff --git a/typescript/dist/esm/models/DataPathOneOf1.d.ts b/typescript/dist/esm/models/DataPathOneOf1.d.ts deleted file mode 100644 index b2297105..00000000 --- a/typescript/dist/esm/models/DataPathOneOf1.d.ts +++ /dev/null @@ -1,32 +0,0 @@ -/** - * Geo Engine API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.9.0 - * Contact: dev@geoengine.de - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -/** - * - * @export - * @interface DataPathOneOf1 - */ -export interface DataPathOneOf1 { - /** - * - * @type {string} - * @memberof DataPathOneOf1 - */ - upload: string; -} -/** - * Check if a given object implements the DataPathOneOf1 interface. - */ -export declare function instanceOfDataPathOneOf1(value: object): value is DataPathOneOf1; -export declare function DataPathOneOf1FromJSON(json: any): DataPathOneOf1; -export declare function DataPathOneOf1FromJSONTyped(json: any, ignoreDiscriminator: boolean): DataPathOneOf1; -export declare function DataPathOneOf1ToJSON(json: any): DataPathOneOf1; -export declare function DataPathOneOf1ToJSONTyped(value?: DataPathOneOf1 | null, ignoreDiscriminator?: boolean): any; diff --git a/typescript/dist/esm/models/DeriveOutRasterSpecsSource.d.ts b/typescript/dist/esm/models/DeriveOutRasterSpecsSource.d.ts new file mode 100644 index 00000000..cc1199a1 --- /dev/null +++ b/typescript/dist/esm/models/DeriveOutRasterSpecsSource.d.ts @@ -0,0 +1,25 @@ +/** + * Geo Engine API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + */ +export declare const DeriveOutRasterSpecsSource: { + readonly DataBounds: "dataBounds"; + readonly ProjectionBounds: "projectionBounds"; +}; +export type DeriveOutRasterSpecsSource = typeof DeriveOutRasterSpecsSource[keyof typeof DeriveOutRasterSpecsSource]; +export declare function instanceOfDeriveOutRasterSpecsSource(value: any): boolean; +export declare function DeriveOutRasterSpecsSourceFromJSON(json: any): DeriveOutRasterSpecsSource; +export declare function DeriveOutRasterSpecsSourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeriveOutRasterSpecsSource; +export declare function DeriveOutRasterSpecsSourceToJSON(value?: DeriveOutRasterSpecsSource | null): any; +export declare function DeriveOutRasterSpecsSourceToJSONTyped(value: any, ignoreDiscriminator: boolean): DeriveOutRasterSpecsSource; diff --git a/typescript/dist/esm/models/DeriveOutRasterSpecsSource.js b/typescript/dist/esm/models/DeriveOutRasterSpecsSource.js new file mode 100644 index 00000000..fb6e50a8 --- /dev/null +++ b/typescript/dist/esm/models/DeriveOutRasterSpecsSource.js @@ -0,0 +1,43 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + */ +export const DeriveOutRasterSpecsSource = { + DataBounds: 'dataBounds', + ProjectionBounds: 'projectionBounds' +}; +export function instanceOfDeriveOutRasterSpecsSource(value) { + for (const key in DeriveOutRasterSpecsSource) { + if (Object.prototype.hasOwnProperty.call(DeriveOutRasterSpecsSource, key)) { + if (DeriveOutRasterSpecsSource[key] === value) { + return true; + } + } + } + return false; +} +export function DeriveOutRasterSpecsSourceFromJSON(json) { + return DeriveOutRasterSpecsSourceFromJSONTyped(json, false); +} +export function DeriveOutRasterSpecsSourceFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function DeriveOutRasterSpecsSourceToJSON(value) { + return value; +} +export function DeriveOutRasterSpecsSourceToJSONTyped(value, ignoreDiscriminator) { + return value; +} diff --git a/typescript/dist/esm/models/FirstAggregation.d.ts b/typescript/dist/esm/models/FirstAggregation.d.ts new file mode 100644 index 00000000..ef1d7dc2 --- /dev/null +++ b/typescript/dist/esm/models/FirstAggregation.d.ts @@ -0,0 +1,45 @@ +/** + * Geo Engine API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface FirstAggregation + */ +export interface FirstAggregation { + /** + * + * @type {boolean} + * @memberof FirstAggregation + */ + ignoreNoData: boolean; + /** + * + * @type {FirstAggregationTypeEnum} + * @memberof FirstAggregation + */ + type: FirstAggregationTypeEnum; +} +/** + * @export + */ +export declare const FirstAggregationTypeEnum: { + readonly First: "first"; +}; +export type FirstAggregationTypeEnum = typeof FirstAggregationTypeEnum[keyof typeof FirstAggregationTypeEnum]; +/** + * Check if a given object implements the FirstAggregation interface. + */ +export declare function instanceOfFirstAggregation(value: object): value is FirstAggregation; +export declare function FirstAggregationFromJSON(json: any): FirstAggregation; +export declare function FirstAggregationFromJSONTyped(json: any, ignoreDiscriminator: boolean): FirstAggregation; +export declare function FirstAggregationToJSON(json: any): FirstAggregation; +export declare function FirstAggregationToJSONTyped(value?: FirstAggregation | null, ignoreDiscriminator?: boolean): any; diff --git a/typescript/dist/esm/models/FirstAggregation.js b/typescript/dist/esm/models/FirstAggregation.js new file mode 100644 index 00000000..b76dc9a4 --- /dev/null +++ b/typescript/dist/esm/models/FirstAggregation.js @@ -0,0 +1,53 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * @export + */ +export const FirstAggregationTypeEnum = { + First: 'first' +}; +/** + * Check if a given object implements the FirstAggregation interface. + */ +export function instanceOfFirstAggregation(value) { + if (!('ignoreNoData' in value) || value['ignoreNoData'] === undefined) + return false; + if (!('type' in value) || value['type'] === undefined) + return false; + return true; +} +export function FirstAggregationFromJSON(json) { + return FirstAggregationFromJSONTyped(json, false); +} +export function FirstAggregationFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'ignoreNoData': json['ignoreNoData'], + 'type': json['type'], + }; +} +export function FirstAggregationToJSON(json) { + return FirstAggregationToJSONTyped(json, false); +} +export function FirstAggregationToJSONTyped(value, ignoreDiscriminator = false) { + if (value == null) { + return value; + } + return { + 'ignoreNoData': value['ignoreNoData'], + 'type': value['type'], + }; +} diff --git a/typescript/dist/esm/models/Fraction.d.ts b/typescript/dist/esm/models/Fraction.d.ts new file mode 100644 index 00000000..9448e9e5 --- /dev/null +++ b/typescript/dist/esm/models/Fraction.d.ts @@ -0,0 +1,51 @@ +/** + * Geo Engine API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Upscale factor relative to input resolution (`x >= 1`, `y >= 1`). + * @export + * @interface Fraction + */ +export interface Fraction { + /** + * + * @type {FractionTypeEnum} + * @memberof Fraction + */ + type: FractionTypeEnum; + /** + * + * @type {number} + * @memberof Fraction + */ + x: number; + /** + * + * @type {number} + * @memberof Fraction + */ + y: number; +} +/** + * @export + */ +export declare const FractionTypeEnum: { + readonly Fraction: "fraction"; +}; +export type FractionTypeEnum = typeof FractionTypeEnum[keyof typeof FractionTypeEnum]; +/** + * Check if a given object implements the Fraction interface. + */ +export declare function instanceOfFraction(value: object): value is Fraction; +export declare function FractionFromJSON(json: any): Fraction; +export declare function FractionFromJSONTyped(json: any, ignoreDiscriminator: boolean): Fraction; +export declare function FractionToJSON(json: any): Fraction; +export declare function FractionToJSONTyped(value?: Fraction | null, ignoreDiscriminator?: boolean): any; diff --git a/typescript/dist/esm/models/Fraction.js b/typescript/dist/esm/models/Fraction.js new file mode 100644 index 00000000..6880cc0a --- /dev/null +++ b/typescript/dist/esm/models/Fraction.js @@ -0,0 +1,57 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * @export + */ +export const FractionTypeEnum = { + Fraction: 'fraction' +}; +/** + * Check if a given object implements the Fraction interface. + */ +export function instanceOfFraction(value) { + if (!('type' in value) || value['type'] === undefined) + return false; + if (!('x' in value) || value['x'] === undefined) + return false; + if (!('y' in value) || value['y'] === undefined) + return false; + return true; +} +export function FractionFromJSON(json) { + return FractionFromJSONTyped(json, false); +} +export function FractionFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'type': json['type'], + 'x': json['x'], + 'y': json['y'], + }; +} +export function FractionToJSON(json) { + return FractionToJSONTyped(json, false); +} +export function FractionToJSONTyped(value, ignoreDiscriminator = false) { + if (value == null) { + return value; + } + return { + 'type': value['type'], + 'x': value['x'], + 'y': value['y'], + }; +} diff --git a/typescript/dist/esm/models/HistogramBounds.d.ts b/typescript/dist/esm/models/HistogramBounds.d.ts index ca63e0c0..98f9f48d 100644 --- a/typescript/dist/esm/models/HistogramBounds.d.ts +++ b/typescript/dist/esm/models/HistogramBounds.d.ts @@ -9,14 +9,14 @@ * https://openapi-generator.tech * Do not edit the class manually. */ -import type { HistogramBoundsOneOf } from './HistogramBoundsOneOf'; -import type { HistogramBoundsOneOf1 } from './HistogramBoundsOneOf1'; +import type { Data1 } from './Data1'; +import type { Values } from './Values'; /** * @type HistogramBounds * * @export */ -export type HistogramBounds = HistogramBoundsOneOf | HistogramBoundsOneOf1; +export type HistogramBounds = Data1 | Values; export declare function HistogramBoundsFromJSON(json: any): HistogramBounds; export declare function HistogramBoundsFromJSONTyped(json: any, ignoreDiscriminator: boolean): HistogramBounds; export declare function HistogramBoundsToJSON(json: any): any; diff --git a/typescript/dist/esm/models/HistogramBounds.js b/typescript/dist/esm/models/HistogramBounds.js index aee13ec1..0dacf630 100644 --- a/typescript/dist/esm/models/HistogramBounds.js +++ b/typescript/dist/esm/models/HistogramBounds.js @@ -11,8 +11,8 @@ * https://openapi-generator.tech * Do not edit the class manually. */ -import { instanceOfHistogramBoundsOneOf, HistogramBoundsOneOfFromJSONTyped, HistogramBoundsOneOfToJSON, } from './HistogramBoundsOneOf'; -import { instanceOfHistogramBoundsOneOf1, HistogramBoundsOneOf1FromJSONTyped, HistogramBoundsOneOf1ToJSON, } from './HistogramBoundsOneOf1'; +import { instanceOfData1, Data1FromJSONTyped, Data1ToJSON, } from './Data1'; +import { instanceOfValues, ValuesFromJSONTyped, ValuesToJSON, } from './Values'; export function HistogramBoundsFromJSON(json) { return HistogramBoundsFromJSONTyped(json, false); } @@ -23,11 +23,11 @@ export function HistogramBoundsFromJSONTyped(json, ignoreDiscriminator) { if (typeof json !== 'object') { return json; } - if (instanceOfHistogramBoundsOneOf(json)) { - return HistogramBoundsOneOfFromJSONTyped(json, true); + if (instanceOfData1(json)) { + return Data1FromJSONTyped(json, true); } - if (instanceOfHistogramBoundsOneOf1(json)) { - return HistogramBoundsOneOf1FromJSONTyped(json, true); + if (instanceOfValues(json)) { + return ValuesFromJSONTyped(json, true); } return {}; } @@ -41,11 +41,11 @@ export function HistogramBoundsToJSONTyped(value, ignoreDiscriminator = false) { if (typeof value !== 'object') { return value; } - if (instanceOfHistogramBoundsOneOf(value)) { - return HistogramBoundsOneOfToJSON(value); + if (instanceOfData1(value)) { + return Data1ToJSON(value); } - if (instanceOfHistogramBoundsOneOf1(value)) { - return HistogramBoundsOneOf1ToJSON(value); + if (instanceOfValues(value)) { + return ValuesToJSON(value); } return {}; } diff --git a/typescript/dist/esm/models/HistogramBoundsOneOf.d.ts b/typescript/dist/esm/models/HistogramBoundsOneOf.d.ts deleted file mode 100644 index ebe90a24..00000000 --- a/typescript/dist/esm/models/HistogramBoundsOneOf.d.ts +++ /dev/null @@ -1,32 +0,0 @@ -/** - * Geo Engine API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.9.0 - * Contact: dev@geoengine.de - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -/** - * - * @export - * @interface HistogramBoundsOneOf - */ -export interface HistogramBoundsOneOf { - /** - * - * @type {any} - * @memberof HistogramBoundsOneOf - */ - data: any | null; -} -/** - * Check if a given object implements the HistogramBoundsOneOf interface. - */ -export declare function instanceOfHistogramBoundsOneOf(value: object): value is HistogramBoundsOneOf; -export declare function HistogramBoundsOneOfFromJSON(json: any): HistogramBoundsOneOf; -export declare function HistogramBoundsOneOfFromJSONTyped(json: any, ignoreDiscriminator: boolean): HistogramBoundsOneOf; -export declare function HistogramBoundsOneOfToJSON(json: any): HistogramBoundsOneOf; -export declare function HistogramBoundsOneOfToJSONTyped(value?: HistogramBoundsOneOf | null, ignoreDiscriminator?: boolean): any; diff --git a/typescript/dist/esm/models/HistogramBoundsOneOf1.d.ts b/typescript/dist/esm/models/HistogramBoundsOneOf1.d.ts deleted file mode 100644 index 5d5af761..00000000 --- a/typescript/dist/esm/models/HistogramBoundsOneOf1.d.ts +++ /dev/null @@ -1,33 +0,0 @@ -/** - * Geo Engine API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.9.0 - * Contact: dev@geoengine.de - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -import type { HistogramBoundsOneOf1Values } from './HistogramBoundsOneOf1Values'; -/** - * - * @export - * @interface HistogramBoundsOneOf1 - */ -export interface HistogramBoundsOneOf1 { - /** - * - * @type {HistogramBoundsOneOf1Values} - * @memberof HistogramBoundsOneOf1 - */ - values: HistogramBoundsOneOf1Values; -} -/** - * Check if a given object implements the HistogramBoundsOneOf1 interface. - */ -export declare function instanceOfHistogramBoundsOneOf1(value: object): value is HistogramBoundsOneOf1; -export declare function HistogramBoundsOneOf1FromJSON(json: any): HistogramBoundsOneOf1; -export declare function HistogramBoundsOneOf1FromJSONTyped(json: any, ignoreDiscriminator: boolean): HistogramBoundsOneOf1; -export declare function HistogramBoundsOneOf1ToJSON(json: any): HistogramBoundsOneOf1; -export declare function HistogramBoundsOneOf1ToJSONTyped(value?: HistogramBoundsOneOf1 | null, ignoreDiscriminator?: boolean): any; diff --git a/typescript/dist/esm/models/HistogramBoundsOneOf1.js b/typescript/dist/esm/models/HistogramBoundsOneOf1.js deleted file mode 100644 index 780e16b9..00000000 --- a/typescript/dist/esm/models/HistogramBoundsOneOf1.js +++ /dev/null @@ -1,44 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Geo Engine API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.9.0 - * Contact: dev@geoengine.de - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -import { HistogramBoundsOneOf1ValuesFromJSON, HistogramBoundsOneOf1ValuesToJSON, } from './HistogramBoundsOneOf1Values'; -/** - * Check if a given object implements the HistogramBoundsOneOf1 interface. - */ -export function instanceOfHistogramBoundsOneOf1(value) { - if (!('values' in value) || value['values'] === undefined) - return false; - return true; -} -export function HistogramBoundsOneOf1FromJSON(json) { - return HistogramBoundsOneOf1FromJSONTyped(json, false); -} -export function HistogramBoundsOneOf1FromJSONTyped(json, ignoreDiscriminator) { - if (json == null) { - return json; - } - return { - 'values': HistogramBoundsOneOf1ValuesFromJSON(json['values']), - }; -} -export function HistogramBoundsOneOf1ToJSON(json) { - return HistogramBoundsOneOf1ToJSONTyped(json, false); -} -export function HistogramBoundsOneOf1ToJSONTyped(value, ignoreDiscriminator = false) { - if (value == null) { - return value; - } - return { - 'values': HistogramBoundsOneOf1ValuesToJSON(value['values']), - }; -} diff --git a/typescript/dist/esm/models/HistogramBoundsOneOf1Values.d.ts b/typescript/dist/esm/models/HistogramBoundsOneOf1Values.d.ts deleted file mode 100644 index 7ecedb87..00000000 --- a/typescript/dist/esm/models/HistogramBoundsOneOf1Values.d.ts +++ /dev/null @@ -1,38 +0,0 @@ -/** - * Geo Engine API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.9.0 - * Contact: dev@geoengine.de - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -/** - * - * @export - * @interface HistogramBoundsOneOf1Values - */ -export interface HistogramBoundsOneOf1Values { - /** - * - * @type {number} - * @memberof HistogramBoundsOneOf1Values - */ - max: number; - /** - * - * @type {number} - * @memberof HistogramBoundsOneOf1Values - */ - min: number; -} -/** - * Check if a given object implements the HistogramBoundsOneOf1Values interface. - */ -export declare function instanceOfHistogramBoundsOneOf1Values(value: object): value is HistogramBoundsOneOf1Values; -export declare function HistogramBoundsOneOf1ValuesFromJSON(json: any): HistogramBoundsOneOf1Values; -export declare function HistogramBoundsOneOf1ValuesFromJSONTyped(json: any, ignoreDiscriminator: boolean): HistogramBoundsOneOf1Values; -export declare function HistogramBoundsOneOf1ValuesToJSON(json: any): HistogramBoundsOneOf1Values; -export declare function HistogramBoundsOneOf1ValuesToJSONTyped(value?: HistogramBoundsOneOf1Values | null, ignoreDiscriminator?: boolean): any; diff --git a/typescript/dist/esm/models/HistogramBuckets.d.ts b/typescript/dist/esm/models/HistogramBuckets.d.ts index 3f4b4152..358b2818 100644 --- a/typescript/dist/esm/models/HistogramBuckets.d.ts +++ b/typescript/dist/esm/models/HistogramBuckets.d.ts @@ -9,14 +9,14 @@ * https://openapi-generator.tech * Do not edit the class manually. */ -import type { HistogramBucketsOneOf } from './HistogramBucketsOneOf'; -import type { HistogramBucketsOneOf1 } from './HistogramBucketsOneOf1'; +import type { Number } from './Number'; +import type { SquareRootChoiceRule } from './SquareRootChoiceRule'; /** * @type HistogramBuckets * * @export */ -export type HistogramBuckets = HistogramBucketsOneOf | HistogramBucketsOneOf1; +export type HistogramBuckets = Number | SquareRootChoiceRule; export declare function HistogramBucketsFromJSON(json: any): HistogramBuckets; export declare function HistogramBucketsFromJSONTyped(json: any, ignoreDiscriminator: boolean): HistogramBuckets; export declare function HistogramBucketsToJSON(json: any): any; diff --git a/typescript/dist/esm/models/HistogramBuckets.js b/typescript/dist/esm/models/HistogramBuckets.js index 3a679200..08bf21ce 100644 --- a/typescript/dist/esm/models/HistogramBuckets.js +++ b/typescript/dist/esm/models/HistogramBuckets.js @@ -11,8 +11,8 @@ * https://openapi-generator.tech * Do not edit the class manually. */ -import { instanceOfHistogramBucketsOneOf, HistogramBucketsOneOfFromJSONTyped, HistogramBucketsOneOfToJSON, } from './HistogramBucketsOneOf'; -import { instanceOfHistogramBucketsOneOf1, HistogramBucketsOneOf1FromJSONTyped, HistogramBucketsOneOf1ToJSON, } from './HistogramBucketsOneOf1'; +import { instanceOfNumber, NumberFromJSONTyped, NumberToJSON, } from './Number'; +import { instanceOfSquareRootChoiceRule, SquareRootChoiceRuleFromJSONTyped, SquareRootChoiceRuleToJSON, } from './SquareRootChoiceRule'; export function HistogramBucketsFromJSON(json) { return HistogramBucketsFromJSONTyped(json, false); } @@ -23,11 +23,11 @@ export function HistogramBucketsFromJSONTyped(json, ignoreDiscriminator) { if (typeof json !== 'object') { return json; } - if (instanceOfHistogramBucketsOneOf(json)) { - return HistogramBucketsOneOfFromJSONTyped(json, true); + if (instanceOfNumber(json)) { + return NumberFromJSONTyped(json, true); } - if (instanceOfHistogramBucketsOneOf1(json)) { - return HistogramBucketsOneOf1FromJSONTyped(json, true); + if (instanceOfSquareRootChoiceRule(json)) { + return SquareRootChoiceRuleFromJSONTyped(json, true); } return {}; } @@ -41,11 +41,11 @@ export function HistogramBucketsToJSONTyped(value, ignoreDiscriminator = false) if (typeof value !== 'object') { return value; } - if (instanceOfHistogramBucketsOneOf(value)) { - return HistogramBucketsOneOfToJSON(value); + if (instanceOfNumber(value)) { + return NumberToJSON(value); } - if (instanceOfHistogramBucketsOneOf1(value)) { - return HistogramBucketsOneOf1ToJSON(value); + if (instanceOfSquareRootChoiceRule(value)) { + return SquareRootChoiceRuleToJSON(value); } return {}; } diff --git a/typescript/dist/esm/models/HistogramBucketsOneOf.d.ts b/typescript/dist/esm/models/HistogramBucketsOneOf.d.ts deleted file mode 100644 index 10a2dfce..00000000 --- a/typescript/dist/esm/models/HistogramBucketsOneOf.d.ts +++ /dev/null @@ -1,45 +0,0 @@ -/** - * Geo Engine API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.9.0 - * Contact: dev@geoengine.de - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -/** - * - * @export - * @interface HistogramBucketsOneOf - */ -export interface HistogramBucketsOneOf { - /** - * - * @type {HistogramBucketsOneOfTypeEnum} - * @memberof HistogramBucketsOneOf - */ - type: HistogramBucketsOneOfTypeEnum; - /** - * - * @type {number} - * @memberof HistogramBucketsOneOf - */ - value: number; -} -/** - * @export - */ -export declare const HistogramBucketsOneOfTypeEnum: { - readonly Number: "number"; -}; -export type HistogramBucketsOneOfTypeEnum = typeof HistogramBucketsOneOfTypeEnum[keyof typeof HistogramBucketsOneOfTypeEnum]; -/** - * Check if a given object implements the HistogramBucketsOneOf interface. - */ -export declare function instanceOfHistogramBucketsOneOf(value: object): value is HistogramBucketsOneOf; -export declare function HistogramBucketsOneOfFromJSON(json: any): HistogramBucketsOneOf; -export declare function HistogramBucketsOneOfFromJSONTyped(json: any, ignoreDiscriminator: boolean): HistogramBucketsOneOf; -export declare function HistogramBucketsOneOfToJSON(json: any): HistogramBucketsOneOf; -export declare function HistogramBucketsOneOfToJSONTyped(value?: HistogramBucketsOneOf | null, ignoreDiscriminator?: boolean): any; diff --git a/typescript/dist/esm/models/HistogramBucketsOneOf1.d.ts b/typescript/dist/esm/models/HistogramBucketsOneOf1.d.ts deleted file mode 100644 index 2698370c..00000000 --- a/typescript/dist/esm/models/HistogramBucketsOneOf1.d.ts +++ /dev/null @@ -1,45 +0,0 @@ -/** - * Geo Engine API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.9.0 - * Contact: dev@geoengine.de - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -/** - * - * @export - * @interface HistogramBucketsOneOf1 - */ -export interface HistogramBucketsOneOf1 { - /** - * - * @type {number} - * @memberof HistogramBucketsOneOf1 - */ - maxNumberOfBuckets?: number; - /** - * - * @type {HistogramBucketsOneOf1TypeEnum} - * @memberof HistogramBucketsOneOf1 - */ - type: HistogramBucketsOneOf1TypeEnum; -} -/** - * @export - */ -export declare const HistogramBucketsOneOf1TypeEnum: { - readonly SquareRootChoiceRule: "squareRootChoiceRule"; -}; -export type HistogramBucketsOneOf1TypeEnum = typeof HistogramBucketsOneOf1TypeEnum[keyof typeof HistogramBucketsOneOf1TypeEnum]; -/** - * Check if a given object implements the HistogramBucketsOneOf1 interface. - */ -export declare function instanceOfHistogramBucketsOneOf1(value: object): value is HistogramBucketsOneOf1; -export declare function HistogramBucketsOneOf1FromJSON(json: any): HistogramBucketsOneOf1; -export declare function HistogramBucketsOneOf1FromJSONTyped(json: any, ignoreDiscriminator: boolean): HistogramBucketsOneOf1; -export declare function HistogramBucketsOneOf1ToJSON(json: any): HistogramBucketsOneOf1; -export declare function HistogramBucketsOneOf1ToJSONTyped(value?: HistogramBucketsOneOf1 | null, ignoreDiscriminator?: boolean): any; diff --git a/typescript/dist/esm/models/Interpolation.d.ts b/typescript/dist/esm/models/Interpolation.d.ts new file mode 100644 index 00000000..7e2c5ad7 --- /dev/null +++ b/typescript/dist/esm/models/Interpolation.d.ts @@ -0,0 +1,60 @@ +/** + * Geo Engine API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { SingleRasterSource } from './SingleRasterSource'; +import type { InterpolationParameters } from './InterpolationParameters'; +/** + * The `Interpolation` operator increases raster resolution by interpolating values of an input raster. + * + * If queried with a resolution that is coarser than the input resolution, + * interpolation is not applicable and an error is returned. + * + * ## Inputs + * + * The `Interpolation` operator expects exactly one _raster_ input. + * @export + * @interface Interpolation + */ +export interface Interpolation { + /** + * + * @type {InterpolationParameters} + * @memberof Interpolation + */ + params: InterpolationParameters; + /** + * + * @type {SingleRasterSource} + * @memberof Interpolation + */ + sources: SingleRasterSource; + /** + * + * @type {InterpolationTypeEnum} + * @memberof Interpolation + */ + type: InterpolationTypeEnum; +} +/** + * @export + */ +export declare const InterpolationTypeEnum: { + readonly Interpolation: "Interpolation"; +}; +export type InterpolationTypeEnum = typeof InterpolationTypeEnum[keyof typeof InterpolationTypeEnum]; +/** + * Check if a given object implements the Interpolation interface. + */ +export declare function instanceOfInterpolation(value: object): value is Interpolation; +export declare function InterpolationFromJSON(json: any): Interpolation; +export declare function InterpolationFromJSONTyped(json: any, ignoreDiscriminator: boolean): Interpolation; +export declare function InterpolationToJSON(json: any): Interpolation; +export declare function InterpolationToJSONTyped(value?: Interpolation | null, ignoreDiscriminator?: boolean): any; diff --git a/typescript/dist/esm/models/Interpolation.js b/typescript/dist/esm/models/Interpolation.js new file mode 100644 index 00000000..cbee9c87 --- /dev/null +++ b/typescript/dist/esm/models/Interpolation.js @@ -0,0 +1,59 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { SingleRasterSourceFromJSON, SingleRasterSourceToJSON, } from './SingleRasterSource'; +import { InterpolationParametersFromJSON, InterpolationParametersToJSON, } from './InterpolationParameters'; +/** + * @export + */ +export const InterpolationTypeEnum = { + Interpolation: 'Interpolation' +}; +/** + * Check if a given object implements the Interpolation interface. + */ +export function instanceOfInterpolation(value) { + if (!('params' in value) || value['params'] === undefined) + return false; + if (!('sources' in value) || value['sources'] === undefined) + return false; + if (!('type' in value) || value['type'] === undefined) + return false; + return true; +} +export function InterpolationFromJSON(json) { + return InterpolationFromJSONTyped(json, false); +} +export function InterpolationFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'params': InterpolationParametersFromJSON(json['params']), + 'sources': SingleRasterSourceFromJSON(json['sources']), + 'type': json['type'], + }; +} +export function InterpolationToJSON(json) { + return InterpolationToJSONTyped(json, false); +} +export function InterpolationToJSONTyped(value, ignoreDiscriminator = false) { + if (value == null) { + return value; + } + return { + 'params': InterpolationParametersToJSON(value['params']), + 'sources': SingleRasterSourceToJSON(value['sources']), + 'type': value['type'], + }; +} diff --git a/typescript/dist/esm/models/InterpolationMethod.d.ts b/typescript/dist/esm/models/InterpolationMethod.d.ts new file mode 100644 index 00000000..9ddc3c5d --- /dev/null +++ b/typescript/dist/esm/models/InterpolationMethod.d.ts @@ -0,0 +1,25 @@ +/** + * Geo Engine API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + */ +export declare const InterpolationMethod: { + readonly NearestNeighbor: "nearestNeighbor"; + readonly BiLinear: "biLinear"; +}; +export type InterpolationMethod = typeof InterpolationMethod[keyof typeof InterpolationMethod]; +export declare function instanceOfInterpolationMethod(value: any): boolean; +export declare function InterpolationMethodFromJSON(json: any): InterpolationMethod; +export declare function InterpolationMethodFromJSONTyped(json: any, ignoreDiscriminator: boolean): InterpolationMethod; +export declare function InterpolationMethodToJSON(value?: InterpolationMethod | null): any; +export declare function InterpolationMethodToJSONTyped(value: any, ignoreDiscriminator: boolean): InterpolationMethod; diff --git a/typescript/dist/esm/models/InterpolationMethod.js b/typescript/dist/esm/models/InterpolationMethod.js new file mode 100644 index 00000000..7a1c073c --- /dev/null +++ b/typescript/dist/esm/models/InterpolationMethod.js @@ -0,0 +1,43 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + */ +export const InterpolationMethod = { + NearestNeighbor: 'nearestNeighbor', + BiLinear: 'biLinear' +}; +export function instanceOfInterpolationMethod(value) { + for (const key in InterpolationMethod) { + if (Object.prototype.hasOwnProperty.call(InterpolationMethod, key)) { + if (InterpolationMethod[key] === value) { + return true; + } + } + } + return false; +} +export function InterpolationMethodFromJSON(json) { + return InterpolationMethodFromJSONTyped(json, false); +} +export function InterpolationMethodFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function InterpolationMethodToJSON(value) { + return value; +} +export function InterpolationMethodToJSONTyped(value, ignoreDiscriminator) { + return value; +} diff --git a/typescript/dist/esm/models/InterpolationParameters.d.ts b/typescript/dist/esm/models/InterpolationParameters.d.ts new file mode 100644 index 00000000..d96f2bc1 --- /dev/null +++ b/typescript/dist/esm/models/InterpolationParameters.d.ts @@ -0,0 +1,47 @@ +/** + * Geo Engine API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { InterpolationMethod } from './InterpolationMethod'; +import type { Coordinate2D } from './Coordinate2D'; +import type { InterpolationResolution } from './InterpolationResolution'; +/** + * Parameters for the `Interpolation` operator. + * @export + * @interface InterpolationParameters + */ +export interface InterpolationParameters { + /** + * Interpolation method. + * @type {InterpolationMethod} + * @memberof InterpolationParameters + */ + interpolation: InterpolationMethod; + /** + * Optional reference point used to align the output grid origin. + * @type {Coordinate2D} + * @memberof InterpolationParameters + */ + outputOriginReference?: Coordinate2D | null; + /** + * Target output resolution. + * @type {InterpolationResolution} + * @memberof InterpolationParameters + */ + outputResolution: InterpolationResolution; +} +/** + * Check if a given object implements the InterpolationParameters interface. + */ +export declare function instanceOfInterpolationParameters(value: object): value is InterpolationParameters; +export declare function InterpolationParametersFromJSON(json: any): InterpolationParameters; +export declare function InterpolationParametersFromJSONTyped(json: any, ignoreDiscriminator: boolean): InterpolationParameters; +export declare function InterpolationParametersToJSON(json: any): InterpolationParameters; +export declare function InterpolationParametersToJSONTyped(value?: InterpolationParameters | null, ignoreDiscriminator?: boolean): any; diff --git a/typescript/dist/esm/models/InterpolationParameters.js b/typescript/dist/esm/models/InterpolationParameters.js new file mode 100644 index 00000000..68780539 --- /dev/null +++ b/typescript/dist/esm/models/InterpolationParameters.js @@ -0,0 +1,52 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { InterpolationMethodFromJSON, InterpolationMethodToJSON, } from './InterpolationMethod'; +import { Coordinate2DFromJSON, Coordinate2DToJSON, } from './Coordinate2D'; +import { InterpolationResolutionFromJSON, InterpolationResolutionToJSON, } from './InterpolationResolution'; +/** + * Check if a given object implements the InterpolationParameters interface. + */ +export function instanceOfInterpolationParameters(value) { + if (!('interpolation' in value) || value['interpolation'] === undefined) + return false; + if (!('outputResolution' in value) || value['outputResolution'] === undefined) + return false; + return true; +} +export function InterpolationParametersFromJSON(json) { + return InterpolationParametersFromJSONTyped(json, false); +} +export function InterpolationParametersFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'interpolation': InterpolationMethodFromJSON(json['interpolation']), + 'outputOriginReference': json['outputOriginReference'] == null ? undefined : Coordinate2DFromJSON(json['outputOriginReference']), + 'outputResolution': InterpolationResolutionFromJSON(json['outputResolution']), + }; +} +export function InterpolationParametersToJSON(json) { + return InterpolationParametersToJSONTyped(json, false); +} +export function InterpolationParametersToJSONTyped(value, ignoreDiscriminator = false) { + if (value == null) { + return value; + } + return { + 'interpolation': InterpolationMethodToJSON(value['interpolation']), + 'outputOriginReference': Coordinate2DToJSON(value['outputOriginReference']), + 'outputResolution': InterpolationResolutionToJSON(value['outputResolution']), + }; +} diff --git a/typescript/dist/esm/models/InterpolationResolution.d.ts b/typescript/dist/esm/models/InterpolationResolution.d.ts new file mode 100644 index 00000000..9895a113 --- /dev/null +++ b/typescript/dist/esm/models/InterpolationResolution.d.ts @@ -0,0 +1,23 @@ +/** + * Geo Engine API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Fraction } from './Fraction'; +import type { Resolution } from './Resolution'; +/** + * @type InterpolationResolution + * + * @export + */ +export type InterpolationResolution = Fraction | Resolution; +export declare function InterpolationResolutionFromJSON(json: any): InterpolationResolution; +export declare function InterpolationResolutionFromJSONTyped(json: any, ignoreDiscriminator: boolean): InterpolationResolution; +export declare function InterpolationResolutionToJSON(json: any): any; +export declare function InterpolationResolutionToJSONTyped(value?: InterpolationResolution | null, ignoreDiscriminator?: boolean): any; diff --git a/typescript/dist/esm/models/InterpolationResolution.js b/typescript/dist/esm/models/InterpolationResolution.js new file mode 100644 index 00000000..9f00fc47 --- /dev/null +++ b/typescript/dist/esm/models/InterpolationResolution.js @@ -0,0 +1,51 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { instanceOfFraction, FractionFromJSONTyped, FractionToJSON, } from './Fraction'; +import { instanceOfResolution, ResolutionFromJSONTyped, ResolutionToJSON, } from './Resolution'; +export function InterpolationResolutionFromJSON(json) { + return InterpolationResolutionFromJSONTyped(json, false); +} +export function InterpolationResolutionFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + if (typeof json !== 'object') { + return json; + } + if (instanceOfFraction(json)) { + return FractionFromJSONTyped(json, true); + } + if (instanceOfResolution(json)) { + return ResolutionFromJSONTyped(json, true); + } + return {}; +} +export function InterpolationResolutionToJSON(json) { + return InterpolationResolutionToJSONTyped(json, false); +} +export function InterpolationResolutionToJSONTyped(value, ignoreDiscriminator = false) { + if (value == null) { + return value; + } + if (typeof value !== 'object') { + return value; + } + if (instanceOfFraction(value)) { + return FractionToJSON(value); + } + if (instanceOfResolution(value)) { + return ResolutionToJSON(value); + } + return {}; +} diff --git a/typescript/dist/esm/models/Irregular.d.ts b/typescript/dist/esm/models/Irregular.d.ts new file mode 100644 index 00000000..099ebda9 --- /dev/null +++ b/typescript/dist/esm/models/Irregular.d.ts @@ -0,0 +1,39 @@ +/** + * Geo Engine API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface Irregular + */ +export interface Irregular { + /** + * + * @type {IrregularTypeEnum} + * @memberof Irregular + */ + type: IrregularTypeEnum; +} +/** + * @export + */ +export declare const IrregularTypeEnum: { + readonly Irregular: "irregular"; +}; +export type IrregularTypeEnum = typeof IrregularTypeEnum[keyof typeof IrregularTypeEnum]; +/** + * Check if a given object implements the Irregular interface. + */ +export declare function instanceOfIrregular(value: object): value is Irregular; +export declare function IrregularFromJSON(json: any): Irregular; +export declare function IrregularFromJSONTyped(json: any, ignoreDiscriminator: boolean): Irregular; +export declare function IrregularToJSON(json: any): Irregular; +export declare function IrregularToJSONTyped(value?: Irregular | null, ignoreDiscriminator?: boolean): any; diff --git a/typescript/dist/esm/models/TimeDimensionOneOf1.js b/typescript/dist/esm/models/Irregular.js similarity index 58% rename from typescript/dist/esm/models/TimeDimensionOneOf1.js rename to typescript/dist/esm/models/Irregular.js index a7a8a69a..ca4c85f1 100644 --- a/typescript/dist/esm/models/TimeDimensionOneOf1.js +++ b/typescript/dist/esm/models/Irregular.js @@ -14,21 +14,21 @@ /** * @export */ -export const TimeDimensionOneOf1TypeEnum = { +export const IrregularTypeEnum = { Irregular: 'irregular' }; /** - * Check if a given object implements the TimeDimensionOneOf1 interface. + * Check if a given object implements the Irregular interface. */ -export function instanceOfTimeDimensionOneOf1(value) { +export function instanceOfIrregular(value) { if (!('type' in value) || value['type'] === undefined) return false; return true; } -export function TimeDimensionOneOf1FromJSON(json) { - return TimeDimensionOneOf1FromJSONTyped(json, false); +export function IrregularFromJSON(json) { + return IrregularFromJSONTyped(json, false); } -export function TimeDimensionOneOf1FromJSONTyped(json, ignoreDiscriminator) { +export function IrregularFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } @@ -36,10 +36,10 @@ export function TimeDimensionOneOf1FromJSONTyped(json, ignoreDiscriminator) { 'type': json['type'], }; } -export function TimeDimensionOneOf1ToJSON(json) { - return TimeDimensionOneOf1ToJSONTyped(json, false); +export function IrregularToJSON(json) { + return IrregularToJSONTyped(json, false); } -export function TimeDimensionOneOf1ToJSONTyped(value, ignoreDiscriminator = false) { +export function IrregularToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } diff --git a/typescript/dist/esm/models/LastAggregation.d.ts b/typescript/dist/esm/models/LastAggregation.d.ts new file mode 100644 index 00000000..1e693872 --- /dev/null +++ b/typescript/dist/esm/models/LastAggregation.d.ts @@ -0,0 +1,45 @@ +/** + * Geo Engine API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface LastAggregation + */ +export interface LastAggregation { + /** + * + * @type {boolean} + * @memberof LastAggregation + */ + ignoreNoData: boolean; + /** + * + * @type {LastAggregationTypeEnum} + * @memberof LastAggregation + */ + type: LastAggregationTypeEnum; +} +/** + * @export + */ +export declare const LastAggregationTypeEnum: { + readonly Last: "last"; +}; +export type LastAggregationTypeEnum = typeof LastAggregationTypeEnum[keyof typeof LastAggregationTypeEnum]; +/** + * Check if a given object implements the LastAggregation interface. + */ +export declare function instanceOfLastAggregation(value: object): value is LastAggregation; +export declare function LastAggregationFromJSON(json: any): LastAggregation; +export declare function LastAggregationFromJSONTyped(json: any, ignoreDiscriminator: boolean): LastAggregation; +export declare function LastAggregationToJSON(json: any): LastAggregation; +export declare function LastAggregationToJSONTyped(value?: LastAggregation | null, ignoreDiscriminator?: boolean): any; diff --git a/typescript/dist/esm/models/LastAggregation.js b/typescript/dist/esm/models/LastAggregation.js new file mode 100644 index 00000000..0b231100 --- /dev/null +++ b/typescript/dist/esm/models/LastAggregation.js @@ -0,0 +1,53 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * @export + */ +export const LastAggregationTypeEnum = { + Last: 'last' +}; +/** + * Check if a given object implements the LastAggregation interface. + */ +export function instanceOfLastAggregation(value) { + if (!('ignoreNoData' in value) || value['ignoreNoData'] === undefined) + return false; + if (!('type' in value) || value['type'] === undefined) + return false; + return true; +} +export function LastAggregationFromJSON(json) { + return LastAggregationFromJSONTyped(json, false); +} +export function LastAggregationFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'ignoreNoData': json['ignoreNoData'], + 'type': json['type'], + }; +} +export function LastAggregationToJSON(json) { + return LastAggregationToJSONTyped(json, false); +} +export function LastAggregationToJSONTyped(value, ignoreDiscriminator = false) { + if (value == null) { + return value; + } + return { + 'ignoreNoData': value['ignoreNoData'], + 'type': value['type'], + }; +} diff --git a/typescript/dist/esm/models/MaxAggregation.d.ts b/typescript/dist/esm/models/MaxAggregation.d.ts new file mode 100644 index 00000000..2e3a273a --- /dev/null +++ b/typescript/dist/esm/models/MaxAggregation.d.ts @@ -0,0 +1,45 @@ +/** + * Geo Engine API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface MaxAggregation + */ +export interface MaxAggregation { + /** + * + * @type {boolean} + * @memberof MaxAggregation + */ + ignoreNoData: boolean; + /** + * + * @type {MaxAggregationTypeEnum} + * @memberof MaxAggregation + */ + type: MaxAggregationTypeEnum; +} +/** + * @export + */ +export declare const MaxAggregationTypeEnum: { + readonly Max: "max"; +}; +export type MaxAggregationTypeEnum = typeof MaxAggregationTypeEnum[keyof typeof MaxAggregationTypeEnum]; +/** + * Check if a given object implements the MaxAggregation interface. + */ +export declare function instanceOfMaxAggregation(value: object): value is MaxAggregation; +export declare function MaxAggregationFromJSON(json: any): MaxAggregation; +export declare function MaxAggregationFromJSONTyped(json: any, ignoreDiscriminator: boolean): MaxAggregation; +export declare function MaxAggregationToJSON(json: any): MaxAggregation; +export declare function MaxAggregationToJSONTyped(value?: MaxAggregation | null, ignoreDiscriminator?: boolean): any; diff --git a/typescript/dist/esm/models/MaxAggregation.js b/typescript/dist/esm/models/MaxAggregation.js new file mode 100644 index 00000000..14c03949 --- /dev/null +++ b/typescript/dist/esm/models/MaxAggregation.js @@ -0,0 +1,53 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * @export + */ +export const MaxAggregationTypeEnum = { + Max: 'max' +}; +/** + * Check if a given object implements the MaxAggregation interface. + */ +export function instanceOfMaxAggregation(value) { + if (!('ignoreNoData' in value) || value['ignoreNoData'] === undefined) + return false; + if (!('type' in value) || value['type'] === undefined) + return false; + return true; +} +export function MaxAggregationFromJSON(json) { + return MaxAggregationFromJSONTyped(json, false); +} +export function MaxAggregationFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'ignoreNoData': json['ignoreNoData'], + 'type': json['type'], + }; +} +export function MaxAggregationToJSON(json) { + return MaxAggregationToJSONTyped(json, false); +} +export function MaxAggregationToJSONTyped(value, ignoreDiscriminator = false) { + if (value == null) { + return value; + } + return { + 'ignoreNoData': value['ignoreNoData'], + 'type': value['type'], + }; +} diff --git a/typescript/dist/esm/models/MeanAggregation.d.ts b/typescript/dist/esm/models/MeanAggregation.d.ts new file mode 100644 index 00000000..736ee378 --- /dev/null +++ b/typescript/dist/esm/models/MeanAggregation.d.ts @@ -0,0 +1,45 @@ +/** + * Geo Engine API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface MeanAggregation + */ +export interface MeanAggregation { + /** + * + * @type {boolean} + * @memberof MeanAggregation + */ + ignoreNoData: boolean; + /** + * + * @type {MeanAggregationTypeEnum} + * @memberof MeanAggregation + */ + type: MeanAggregationTypeEnum; +} +/** + * @export + */ +export declare const MeanAggregationTypeEnum: { + readonly Mean: "mean"; +}; +export type MeanAggregationTypeEnum = typeof MeanAggregationTypeEnum[keyof typeof MeanAggregationTypeEnum]; +/** + * Check if a given object implements the MeanAggregation interface. + */ +export declare function instanceOfMeanAggregation(value: object): value is MeanAggregation; +export declare function MeanAggregationFromJSON(json: any): MeanAggregation; +export declare function MeanAggregationFromJSONTyped(json: any, ignoreDiscriminator: boolean): MeanAggregation; +export declare function MeanAggregationToJSON(json: any): MeanAggregation; +export declare function MeanAggregationToJSONTyped(value?: MeanAggregation | null, ignoreDiscriminator?: boolean): any; diff --git a/typescript/dist/esm/models/MeanAggregation.js b/typescript/dist/esm/models/MeanAggregation.js new file mode 100644 index 00000000..d0209547 --- /dev/null +++ b/typescript/dist/esm/models/MeanAggregation.js @@ -0,0 +1,53 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * @export + */ +export const MeanAggregationTypeEnum = { + Mean: 'mean' +}; +/** + * Check if a given object implements the MeanAggregation interface. + */ +export function instanceOfMeanAggregation(value) { + if (!('ignoreNoData' in value) || value['ignoreNoData'] === undefined) + return false; + if (!('type' in value) || value['type'] === undefined) + return false; + return true; +} +export function MeanAggregationFromJSON(json) { + return MeanAggregationFromJSONTyped(json, false); +} +export function MeanAggregationFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'ignoreNoData': json['ignoreNoData'], + 'type': json['type'], + }; +} +export function MeanAggregationToJSON(json) { + return MeanAggregationToJSONTyped(json, false); +} +export function MeanAggregationToJSONTyped(value, ignoreDiscriminator = false) { + if (value == null) { + return value; + } + return { + 'ignoreNoData': value['ignoreNoData'], + 'type': value['type'], + }; +} diff --git a/typescript/dist/esm/models/MinAggregation.d.ts b/typescript/dist/esm/models/MinAggregation.d.ts new file mode 100644 index 00000000..21fe87ea --- /dev/null +++ b/typescript/dist/esm/models/MinAggregation.d.ts @@ -0,0 +1,45 @@ +/** + * Geo Engine API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface MinAggregation + */ +export interface MinAggregation { + /** + * + * @type {boolean} + * @memberof MinAggregation + */ + ignoreNoData: boolean; + /** + * + * @type {MinAggregationTypeEnum} + * @memberof MinAggregation + */ + type: MinAggregationTypeEnum; +} +/** + * @export + */ +export declare const MinAggregationTypeEnum: { + readonly Min: "min"; +}; +export type MinAggregationTypeEnum = typeof MinAggregationTypeEnum[keyof typeof MinAggregationTypeEnum]; +/** + * Check if a given object implements the MinAggregation interface. + */ +export declare function instanceOfMinAggregation(value: object): value is MinAggregation; +export declare function MinAggregationFromJSON(json: any): MinAggregation; +export declare function MinAggregationFromJSONTyped(json: any, ignoreDiscriminator: boolean): MinAggregation; +export declare function MinAggregationToJSON(json: any): MinAggregation; +export declare function MinAggregationToJSONTyped(value?: MinAggregation | null, ignoreDiscriminator?: boolean): any; diff --git a/typescript/dist/esm/models/MinAggregation.js b/typescript/dist/esm/models/MinAggregation.js new file mode 100644 index 00000000..397e1304 --- /dev/null +++ b/typescript/dist/esm/models/MinAggregation.js @@ -0,0 +1,53 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * @export + */ +export const MinAggregationTypeEnum = { + Min: 'min' +}; +/** + * Check if a given object implements the MinAggregation interface. + */ +export function instanceOfMinAggregation(value) { + if (!('ignoreNoData' in value) || value['ignoreNoData'] === undefined) + return false; + if (!('type' in value) || value['type'] === undefined) + return false; + return true; +} +export function MinAggregationFromJSON(json) { + return MinAggregationFromJSONTyped(json, false); +} +export function MinAggregationFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'ignoreNoData': json['ignoreNoData'], + 'type': json['type'], + }; +} +export function MinAggregationToJSON(json) { + return MinAggregationToJSONTyped(json, false); +} +export function MinAggregationToJSONTyped(value, ignoreDiscriminator = false) { + if (value == null) { + return value; + } + return { + 'ignoreNoData': value['ignoreNoData'], + 'type': value['type'], + }; +} diff --git a/typescript/dist/esm/models/MultiBandGdalSource.d.ts b/typescript/dist/esm/models/MultiBandGdalSource.d.ts new file mode 100644 index 00000000..81d1ee0f --- /dev/null +++ b/typescript/dist/esm/models/MultiBandGdalSource.d.ts @@ -0,0 +1,46 @@ +/** + * Geo Engine API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { GdalSourceParameters } from './GdalSourceParameters'; +/** + * The [`MultiBandGdalSource`] is a source operator that reads multi-band raster data using GDAL. + * @export + * @interface MultiBandGdalSource + */ +export interface MultiBandGdalSource { + /** + * + * @type {GdalSourceParameters} + * @memberof MultiBandGdalSource + */ + params: GdalSourceParameters; + /** + * + * @type {MultiBandGdalSourceTypeEnum} + * @memberof MultiBandGdalSource + */ + type: MultiBandGdalSourceTypeEnum; +} +/** + * @export + */ +export declare const MultiBandGdalSourceTypeEnum: { + readonly MultiBandGdalSource: "MultiBandGdalSource"; +}; +export type MultiBandGdalSourceTypeEnum = typeof MultiBandGdalSourceTypeEnum[keyof typeof MultiBandGdalSourceTypeEnum]; +/** + * Check if a given object implements the MultiBandGdalSource interface. + */ +export declare function instanceOfMultiBandGdalSource(value: object): value is MultiBandGdalSource; +export declare function MultiBandGdalSourceFromJSON(json: any): MultiBandGdalSource; +export declare function MultiBandGdalSourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): MultiBandGdalSource; +export declare function MultiBandGdalSourceToJSON(json: any): MultiBandGdalSource; +export declare function MultiBandGdalSourceToJSONTyped(value?: MultiBandGdalSource | null, ignoreDiscriminator?: boolean): any; diff --git a/typescript/dist/esm/models/MultiBandGdalSource.js b/typescript/dist/esm/models/MultiBandGdalSource.js new file mode 100644 index 00000000..83a89491 --- /dev/null +++ b/typescript/dist/esm/models/MultiBandGdalSource.js @@ -0,0 +1,54 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { GdalSourceParametersFromJSON, GdalSourceParametersToJSON, } from './GdalSourceParameters'; +/** + * @export + */ +export const MultiBandGdalSourceTypeEnum = { + MultiBandGdalSource: 'MultiBandGdalSource' +}; +/** + * Check if a given object implements the MultiBandGdalSource interface. + */ +export function instanceOfMultiBandGdalSource(value) { + if (!('params' in value) || value['params'] === undefined) + return false; + if (!('type' in value) || value['type'] === undefined) + return false; + return true; +} +export function MultiBandGdalSourceFromJSON(json) { + return MultiBandGdalSourceFromJSONTyped(json, false); +} +export function MultiBandGdalSourceFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'params': GdalSourceParametersFromJSON(json['params']), + 'type': json['type'], + }; +} +export function MultiBandGdalSourceToJSON(json) { + return MultiBandGdalSourceToJSONTyped(json, false); +} +export function MultiBandGdalSourceToJSONTyped(value, ignoreDiscriminator = false) { + if (value == null) { + return value; + } + return { + 'params': GdalSourceParametersToJSON(value['params']), + 'type': value['type'], + }; +} diff --git a/typescript/dist/esm/models/MultiLineString1.d.ts b/typescript/dist/esm/models/MultiLineString1.d.ts new file mode 100644 index 00000000..bdac3628 --- /dev/null +++ b/typescript/dist/esm/models/MultiLineString1.d.ts @@ -0,0 +1,33 @@ +/** + * Geo Engine API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { MultiLineString } from './MultiLineString'; +/** + * + * @export + * @interface MultiLineString1 + */ +export interface MultiLineString1 { + /** + * + * @type {MultiLineString} + * @memberof MultiLineString1 + */ + multiLineString: MultiLineString; +} +/** + * Check if a given object implements the MultiLineString1 interface. + */ +export declare function instanceOfMultiLineString1(value: object): value is MultiLineString1; +export declare function MultiLineString1FromJSON(json: any): MultiLineString1; +export declare function MultiLineString1FromJSONTyped(json: any, ignoreDiscriminator: boolean): MultiLineString1; +export declare function MultiLineString1ToJSON(json: any): MultiLineString1; +export declare function MultiLineString1ToJSONTyped(value?: MultiLineString1 | null, ignoreDiscriminator?: boolean): any; diff --git a/typescript/dist/esm/models/TypedGeometryOneOf2.js b/typescript/dist/esm/models/MultiLineString1.js similarity index 64% rename from typescript/dist/esm/models/TypedGeometryOneOf2.js rename to typescript/dist/esm/models/MultiLineString1.js index e99c71c8..43b9cc15 100644 --- a/typescript/dist/esm/models/TypedGeometryOneOf2.js +++ b/typescript/dist/esm/models/MultiLineString1.js @@ -13,17 +13,17 @@ */ import { MultiLineStringFromJSON, MultiLineStringToJSON, } from './MultiLineString'; /** - * Check if a given object implements the TypedGeometryOneOf2 interface. + * Check if a given object implements the MultiLineString1 interface. */ -export function instanceOfTypedGeometryOneOf2(value) { +export function instanceOfMultiLineString1(value) { if (!('multiLineString' in value) || value['multiLineString'] === undefined) return false; return true; } -export function TypedGeometryOneOf2FromJSON(json) { - return TypedGeometryOneOf2FromJSONTyped(json, false); +export function MultiLineString1FromJSON(json) { + return MultiLineString1FromJSONTyped(json, false); } -export function TypedGeometryOneOf2FromJSONTyped(json, ignoreDiscriminator) { +export function MultiLineString1FromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } @@ -31,10 +31,10 @@ export function TypedGeometryOneOf2FromJSONTyped(json, ignoreDiscriminator) { 'multiLineString': MultiLineStringFromJSON(json['MultiLineString']), }; } -export function TypedGeometryOneOf2ToJSON(json) { - return TypedGeometryOneOf2ToJSONTyped(json, false); +export function MultiLineString1ToJSON(json) { + return MultiLineString1ToJSONTyped(json, false); } -export function TypedGeometryOneOf2ToJSONTyped(value, ignoreDiscriminator = false) { +export function MultiLineString1ToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } diff --git a/typescript/dist/esm/models/MultiPoint1.d.ts b/typescript/dist/esm/models/MultiPoint1.d.ts new file mode 100644 index 00000000..2b106fa1 --- /dev/null +++ b/typescript/dist/esm/models/MultiPoint1.d.ts @@ -0,0 +1,33 @@ +/** + * Geo Engine API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { MultiPoint } from './MultiPoint'; +/** + * + * @export + * @interface MultiPoint1 + */ +export interface MultiPoint1 { + /** + * + * @type {MultiPoint} + * @memberof MultiPoint1 + */ + multiPoint: MultiPoint; +} +/** + * Check if a given object implements the MultiPoint1 interface. + */ +export declare function instanceOfMultiPoint1(value: object): value is MultiPoint1; +export declare function MultiPoint1FromJSON(json: any): MultiPoint1; +export declare function MultiPoint1FromJSONTyped(json: any, ignoreDiscriminator: boolean): MultiPoint1; +export declare function MultiPoint1ToJSON(json: any): MultiPoint1; +export declare function MultiPoint1ToJSONTyped(value?: MultiPoint1 | null, ignoreDiscriminator?: boolean): any; diff --git a/typescript/dist/esm/models/TypedGeometryOneOf1.js b/typescript/dist/esm/models/MultiPoint1.js similarity index 63% rename from typescript/dist/esm/models/TypedGeometryOneOf1.js rename to typescript/dist/esm/models/MultiPoint1.js index 2417024f..d85b15ae 100644 --- a/typescript/dist/esm/models/TypedGeometryOneOf1.js +++ b/typescript/dist/esm/models/MultiPoint1.js @@ -13,17 +13,17 @@ */ import { MultiPointFromJSON, MultiPointToJSON, } from './MultiPoint'; /** - * Check if a given object implements the TypedGeometryOneOf1 interface. + * Check if a given object implements the MultiPoint1 interface. */ -export function instanceOfTypedGeometryOneOf1(value) { +export function instanceOfMultiPoint1(value) { if (!('multiPoint' in value) || value['multiPoint'] === undefined) return false; return true; } -export function TypedGeometryOneOf1FromJSON(json) { - return TypedGeometryOneOf1FromJSONTyped(json, false); +export function MultiPoint1FromJSON(json) { + return MultiPoint1FromJSONTyped(json, false); } -export function TypedGeometryOneOf1FromJSONTyped(json, ignoreDiscriminator) { +export function MultiPoint1FromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } @@ -31,10 +31,10 @@ export function TypedGeometryOneOf1FromJSONTyped(json, ignoreDiscriminator) { 'multiPoint': MultiPointFromJSON(json['MultiPoint']), }; } -export function TypedGeometryOneOf1ToJSON(json) { - return TypedGeometryOneOf1ToJSONTyped(json, false); +export function MultiPoint1ToJSON(json) { + return MultiPoint1ToJSONTyped(json, false); } -export function TypedGeometryOneOf1ToJSONTyped(value, ignoreDiscriminator = false) { +export function MultiPoint1ToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } diff --git a/typescript/dist/esm/models/MultiPolygon1.d.ts b/typescript/dist/esm/models/MultiPolygon1.d.ts new file mode 100644 index 00000000..d9855ea5 --- /dev/null +++ b/typescript/dist/esm/models/MultiPolygon1.d.ts @@ -0,0 +1,33 @@ +/** + * Geo Engine API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { MultiPolygon } from './MultiPolygon'; +/** + * + * @export + * @interface MultiPolygon1 + */ +export interface MultiPolygon1 { + /** + * + * @type {MultiPolygon} + * @memberof MultiPolygon1 + */ + multiPolygon: MultiPolygon; +} +/** + * Check if a given object implements the MultiPolygon1 interface. + */ +export declare function instanceOfMultiPolygon1(value: object): value is MultiPolygon1; +export declare function MultiPolygon1FromJSON(json: any): MultiPolygon1; +export declare function MultiPolygon1FromJSONTyped(json: any, ignoreDiscriminator: boolean): MultiPolygon1; +export declare function MultiPolygon1ToJSON(json: any): MultiPolygon1; +export declare function MultiPolygon1ToJSONTyped(value?: MultiPolygon1 | null, ignoreDiscriminator?: boolean): any; diff --git a/typescript/dist/esm/models/TypedGeometryOneOf3.js b/typescript/dist/esm/models/MultiPolygon1.js similarity index 64% rename from typescript/dist/esm/models/TypedGeometryOneOf3.js rename to typescript/dist/esm/models/MultiPolygon1.js index 07c9131a..d5881197 100644 --- a/typescript/dist/esm/models/TypedGeometryOneOf3.js +++ b/typescript/dist/esm/models/MultiPolygon1.js @@ -13,17 +13,17 @@ */ import { MultiPolygonFromJSON, MultiPolygonToJSON, } from './MultiPolygon'; /** - * Check if a given object implements the TypedGeometryOneOf3 interface. + * Check if a given object implements the MultiPolygon1 interface. */ -export function instanceOfTypedGeometryOneOf3(value) { +export function instanceOfMultiPolygon1(value) { if (!('multiPolygon' in value) || value['multiPolygon'] === undefined) return false; return true; } -export function TypedGeometryOneOf3FromJSON(json) { - return TypedGeometryOneOf3FromJSONTyped(json, false); +export function MultiPolygon1FromJSON(json) { + return MultiPolygon1FromJSONTyped(json, false); } -export function TypedGeometryOneOf3FromJSONTyped(json, ignoreDiscriminator) { +export function MultiPolygon1FromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } @@ -31,10 +31,10 @@ export function TypedGeometryOneOf3FromJSONTyped(json, ignoreDiscriminator) { 'multiPolygon': MultiPolygonFromJSON(json['MultiPolygon']), }; } -export function TypedGeometryOneOf3ToJSON(json) { - return TypedGeometryOneOf3ToJSONTyped(json, false); +export function MultiPolygon1ToJSON(json) { + return MultiPolygon1ToJSONTyped(json, false); } -export function TypedGeometryOneOf3ToJSONTyped(value, ignoreDiscriminator = false) { +export function MultiPolygon1ToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } diff --git a/typescript/dist/esm/models/MultipleRasterSources.d.ts b/typescript/dist/esm/models/MultipleRasterSources.d.ts new file mode 100644 index 00000000..b6f97932 --- /dev/null +++ b/typescript/dist/esm/models/MultipleRasterSources.d.ts @@ -0,0 +1,33 @@ +/** + * Geo Engine API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { RasterOperator } from './RasterOperator'; +/** + * One or more raster operators as sources for this operator. + * @export + * @interface MultipleRasterSources + */ +export interface MultipleRasterSources { + /** + * + * @type {Array} + * @memberof MultipleRasterSources + */ + rasters: Array; +} +/** + * Check if a given object implements the MultipleRasterSources interface. + */ +export declare function instanceOfMultipleRasterSources(value: object): value is MultipleRasterSources; +export declare function MultipleRasterSourcesFromJSON(json: any): MultipleRasterSources; +export declare function MultipleRasterSourcesFromJSONTyped(json: any, ignoreDiscriminator: boolean): MultipleRasterSources; +export declare function MultipleRasterSourcesToJSON(json: any): MultipleRasterSources; +export declare function MultipleRasterSourcesToJSONTyped(value?: MultipleRasterSources | null, ignoreDiscriminator?: boolean): any; diff --git a/typescript/dist/esm/models/MultipleRasterSources.js b/typescript/dist/esm/models/MultipleRasterSources.js new file mode 100644 index 00000000..58b38c23 --- /dev/null +++ b/typescript/dist/esm/models/MultipleRasterSources.js @@ -0,0 +1,44 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { RasterOperatorFromJSON, RasterOperatorToJSON, } from './RasterOperator'; +/** + * Check if a given object implements the MultipleRasterSources interface. + */ +export function instanceOfMultipleRasterSources(value) { + if (!('rasters' in value) || value['rasters'] === undefined) + return false; + return true; +} +export function MultipleRasterSourcesFromJSON(json) { + return MultipleRasterSourcesFromJSONTyped(json, false); +} +export function MultipleRasterSourcesFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'rasters': (json['rasters'].map(RasterOperatorFromJSON)), + }; +} +export function MultipleRasterSourcesToJSON(json) { + return MultipleRasterSourcesToJSONTyped(json, false); +} +export function MultipleRasterSourcesToJSONTyped(value, ignoreDiscriminator = false) { + if (value == null) { + return value; + } + return { + 'rasters': (value['rasters'].map(RasterOperatorToJSON)), + }; +} diff --git a/typescript/dist/esm/models/NoGeometry1.d.ts b/typescript/dist/esm/models/NoGeometry1.d.ts new file mode 100644 index 00000000..6239e974 --- /dev/null +++ b/typescript/dist/esm/models/NoGeometry1.d.ts @@ -0,0 +1,32 @@ +/** + * Geo Engine API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface NoGeometry1 + */ +export interface NoGeometry1 { + /** + * + * @type {any} + * @memberof NoGeometry1 + */ + data: any | null; +} +/** + * Check if a given object implements the NoGeometry1 interface. + */ +export declare function instanceOfNoGeometry1(value: object): value is NoGeometry1; +export declare function NoGeometry1FromJSON(json: any): NoGeometry1; +export declare function NoGeometry1FromJSONTyped(json: any, ignoreDiscriminator: boolean): NoGeometry1; +export declare function NoGeometry1ToJSON(json: any): NoGeometry1; +export declare function NoGeometry1ToJSONTyped(value?: NoGeometry1 | null, ignoreDiscriminator?: boolean): any; diff --git a/typescript/dist/esm/models/TypedGeometryOneOf.js b/typescript/dist/esm/models/NoGeometry1.js similarity index 59% rename from typescript/dist/esm/models/TypedGeometryOneOf.js rename to typescript/dist/esm/models/NoGeometry1.js index 845a0ff5..80bd78f8 100644 --- a/typescript/dist/esm/models/TypedGeometryOneOf.js +++ b/typescript/dist/esm/models/NoGeometry1.js @@ -12,17 +12,17 @@ * Do not edit the class manually. */ /** - * Check if a given object implements the TypedGeometryOneOf interface. + * Check if a given object implements the NoGeometry1 interface. */ -export function instanceOfTypedGeometryOneOf(value) { +export function instanceOfNoGeometry1(value) { if (!('data' in value) || value['data'] === undefined) return false; return true; } -export function TypedGeometryOneOfFromJSON(json) { - return TypedGeometryOneOfFromJSONTyped(json, false); +export function NoGeometry1FromJSON(json) { + return NoGeometry1FromJSONTyped(json, false); } -export function TypedGeometryOneOfFromJSONTyped(json, ignoreDiscriminator) { +export function NoGeometry1FromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } @@ -30,10 +30,10 @@ export function TypedGeometryOneOfFromJSONTyped(json, ignoreDiscriminator) { 'data': json['Data'], }; } -export function TypedGeometryOneOfToJSON(json) { - return TypedGeometryOneOfToJSONTyped(json, false); +export function NoGeometry1ToJSON(json) { + return NoGeometry1ToJSONTyped(json, false); } -export function TypedGeometryOneOfToJSONTyped(value, ignoreDiscriminator = false) { +export function NoGeometry1ToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } diff --git a/typescript/dist/esm/models/Number.d.ts b/typescript/dist/esm/models/Number.d.ts new file mode 100644 index 00000000..5c37975a --- /dev/null +++ b/typescript/dist/esm/models/Number.d.ts @@ -0,0 +1,45 @@ +/** + * Geo Engine API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface Number + */ +export interface Number { + /** + * + * @type {NumberTypeEnum} + * @memberof Number + */ + type: NumberTypeEnum; + /** + * + * @type {number} + * @memberof Number + */ + value: number; +} +/** + * @export + */ +export declare const NumberTypeEnum: { + readonly Number: "number"; +}; +export type NumberTypeEnum = typeof NumberTypeEnum[keyof typeof NumberTypeEnum]; +/** + * Check if a given object implements the Number interface. + */ +export declare function instanceOfNumber(value: object): value is Number; +export declare function NumberFromJSON(json: any): Number; +export declare function NumberFromJSONTyped(json: any, ignoreDiscriminator: boolean): Number; +export declare function NumberToJSON(json: any): Number; +export declare function NumberToJSONTyped(value?: Number | null, ignoreDiscriminator?: boolean): any; diff --git a/typescript/dist/esm/models/HistogramBucketsOneOf.js b/typescript/dist/esm/models/Number.js similarity index 62% rename from typescript/dist/esm/models/HistogramBucketsOneOf.js rename to typescript/dist/esm/models/Number.js index a8630603..b8542593 100644 --- a/typescript/dist/esm/models/HistogramBucketsOneOf.js +++ b/typescript/dist/esm/models/Number.js @@ -14,23 +14,23 @@ /** * @export */ -export const HistogramBucketsOneOfTypeEnum = { +export const NumberTypeEnum = { Number: 'number' }; /** - * Check if a given object implements the HistogramBucketsOneOf interface. + * Check if a given object implements the Number interface. */ -export function instanceOfHistogramBucketsOneOf(value) { +export function instanceOfNumber(value) { if (!('type' in value) || value['type'] === undefined) return false; if (!('value' in value) || value['value'] === undefined) return false; return true; } -export function HistogramBucketsOneOfFromJSON(json) { - return HistogramBucketsOneOfFromJSONTyped(json, false); +export function NumberFromJSON(json) { + return NumberFromJSONTyped(json, false); } -export function HistogramBucketsOneOfFromJSONTyped(json, ignoreDiscriminator) { +export function NumberFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } @@ -39,10 +39,10 @@ export function HistogramBucketsOneOfFromJSONTyped(json, ignoreDiscriminator) { 'value': json['value'], }; } -export function HistogramBucketsOneOfToJSON(json) { - return HistogramBucketsOneOfToJSONTyped(json, false); +export function NumberToJSON(json) { + return NumberToJSONTyped(json, false); } -export function HistogramBucketsOneOfToJSONTyped(value, ignoreDiscriminator = false) { +export function NumberToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } diff --git a/typescript/dist/esm/models/PercentileEstimateAggregation.d.ts b/typescript/dist/esm/models/PercentileEstimateAggregation.d.ts new file mode 100644 index 00000000..2d80820d --- /dev/null +++ b/typescript/dist/esm/models/PercentileEstimateAggregation.d.ts @@ -0,0 +1,51 @@ +/** + * Geo Engine API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface PercentileEstimateAggregation + */ +export interface PercentileEstimateAggregation { + /** + * + * @type {boolean} + * @memberof PercentileEstimateAggregation + */ + ignoreNoData: boolean; + /** + * + * @type {number} + * @memberof PercentileEstimateAggregation + */ + percentile: number; + /** + * + * @type {PercentileEstimateAggregationTypeEnum} + * @memberof PercentileEstimateAggregation + */ + type: PercentileEstimateAggregationTypeEnum; +} +/** + * @export + */ +export declare const PercentileEstimateAggregationTypeEnum: { + readonly PercentileEstimate: "percentileEstimate"; +}; +export type PercentileEstimateAggregationTypeEnum = typeof PercentileEstimateAggregationTypeEnum[keyof typeof PercentileEstimateAggregationTypeEnum]; +/** + * Check if a given object implements the PercentileEstimateAggregation interface. + */ +export declare function instanceOfPercentileEstimateAggregation(value: object): value is PercentileEstimateAggregation; +export declare function PercentileEstimateAggregationFromJSON(json: any): PercentileEstimateAggregation; +export declare function PercentileEstimateAggregationFromJSONTyped(json: any, ignoreDiscriminator: boolean): PercentileEstimateAggregation; +export declare function PercentileEstimateAggregationToJSON(json: any): PercentileEstimateAggregation; +export declare function PercentileEstimateAggregationToJSONTyped(value?: PercentileEstimateAggregation | null, ignoreDiscriminator?: boolean): any; diff --git a/typescript/dist/esm/models/PercentileEstimateAggregation.js b/typescript/dist/esm/models/PercentileEstimateAggregation.js new file mode 100644 index 00000000..8e1d9df8 --- /dev/null +++ b/typescript/dist/esm/models/PercentileEstimateAggregation.js @@ -0,0 +1,57 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * @export + */ +export const PercentileEstimateAggregationTypeEnum = { + PercentileEstimate: 'percentileEstimate' +}; +/** + * Check if a given object implements the PercentileEstimateAggregation interface. + */ +export function instanceOfPercentileEstimateAggregation(value) { + if (!('ignoreNoData' in value) || value['ignoreNoData'] === undefined) + return false; + if (!('percentile' in value) || value['percentile'] === undefined) + return false; + if (!('type' in value) || value['type'] === undefined) + return false; + return true; +} +export function PercentileEstimateAggregationFromJSON(json) { + return PercentileEstimateAggregationFromJSONTyped(json, false); +} +export function PercentileEstimateAggregationFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'ignoreNoData': json['ignoreNoData'], + 'percentile': json['percentile'], + 'type': json['type'], + }; +} +export function PercentileEstimateAggregationToJSON(json) { + return PercentileEstimateAggregationToJSONTyped(json, false); +} +export function PercentileEstimateAggregationToJSONTyped(value, ignoreDiscriminator = false) { + if (value == null) { + return value; + } + return { + 'ignoreNoData': value['ignoreNoData'], + 'percentile': value['percentile'], + 'type': value['type'], + }; +} diff --git a/typescript/dist/esm/models/RasterOperator.d.ts b/typescript/dist/esm/models/RasterOperator.d.ts index 13886517..6597bdd2 100644 --- a/typescript/dist/esm/models/RasterOperator.d.ts +++ b/typescript/dist/esm/models/RasterOperator.d.ts @@ -9,18 +9,39 @@ * https://openapi-generator.tech * Do not edit the class manually. */ +import type { BandFilter } from './BandFilter'; import type { Expression } from './Expression'; import type { GdalSource } from './GdalSource'; +import type { Interpolation } from './Interpolation'; +import type { MultiBandGdalSource } from './MultiBandGdalSource'; +import type { RasterStacker } from './RasterStacker'; +import type { RasterTypeConversion } from './RasterTypeConversion'; +import type { Reprojection } from './Reprojection'; +import type { TemporalRasterAggregation } from './TemporalRasterAggregation'; /** * @type RasterOperator * An operator that produces raster data. * @export */ export type RasterOperator = { + type: 'BandFilter'; +} & BandFilter | { type: 'Expression'; } & Expression | { type: 'GdalSource'; -} & GdalSource; +} & GdalSource | { + type: 'Interpolation'; +} & Interpolation | { + type: 'MultiBandGdalSource'; +} & MultiBandGdalSource | { + type: 'RasterStacker'; +} & RasterStacker | { + type: 'RasterTypeConversion'; +} & RasterTypeConversion | { + type: 'Reprojection'; +} & Reprojection | { + type: 'TemporalRasterAggregation'; +} & TemporalRasterAggregation; export declare function RasterOperatorFromJSON(json: any): RasterOperator; export declare function RasterOperatorFromJSONTyped(json: any, ignoreDiscriminator: boolean): RasterOperator; export declare function RasterOperatorToJSON(json: any): any; diff --git a/typescript/dist/esm/models/RasterOperator.js b/typescript/dist/esm/models/RasterOperator.js index c7f7b834..3c5b8e45 100644 --- a/typescript/dist/esm/models/RasterOperator.js +++ b/typescript/dist/esm/models/RasterOperator.js @@ -11,8 +11,15 @@ * https://openapi-generator.tech * Do not edit the class manually. */ +import { BandFilterFromJSONTyped, BandFilterToJSON, } from './BandFilter'; import { instanceOfExpression, ExpressionFromJSONTyped, ExpressionToJSON, } from './Expression'; import { instanceOfGdalSource, GdalSourceFromJSONTyped, GdalSourceToJSON, } from './GdalSource'; +import { InterpolationFromJSONTyped, InterpolationToJSON, } from './Interpolation'; +import { MultiBandGdalSourceFromJSONTyped, MultiBandGdalSourceToJSON, } from './MultiBandGdalSource'; +import { RasterStackerFromJSONTyped, RasterStackerToJSON, } from './RasterStacker'; +import { RasterTypeConversionFromJSONTyped, RasterTypeConversionToJSON, } from './RasterTypeConversion'; +import { ReprojectionFromJSONTyped, ReprojectionToJSON, } from './Reprojection'; +import { TemporalRasterAggregationFromJSONTyped, TemporalRasterAggregationToJSON, } from './TemporalRasterAggregation'; export function RasterOperatorFromJSON(json) { return RasterOperatorFromJSONTyped(json, false); } @@ -21,10 +28,24 @@ export function RasterOperatorFromJSONTyped(json, ignoreDiscriminator) { return json; } switch (json['type']) { + case 'BandFilter': + return Object.assign({}, BandFilterFromJSONTyped(json, true), { type: 'BandFilter' }); case 'Expression': return Object.assign({}, ExpressionFromJSONTyped(json, true), { type: 'Expression' }); case 'GdalSource': return Object.assign({}, GdalSourceFromJSONTyped(json, true), { type: 'GdalSource' }); + case 'Interpolation': + return Object.assign({}, InterpolationFromJSONTyped(json, true), { type: 'Interpolation' }); + case 'MultiBandGdalSource': + return Object.assign({}, MultiBandGdalSourceFromJSONTyped(json, true), { type: 'MultiBandGdalSource' }); + case 'RasterStacker': + return Object.assign({}, RasterStackerFromJSONTyped(json, true), { type: 'RasterStacker' }); + case 'RasterTypeConversion': + return Object.assign({}, RasterTypeConversionFromJSONTyped(json, true), { type: 'RasterTypeConversion' }); + case 'Reprojection': + return Object.assign({}, ReprojectionFromJSONTyped(json, true), { type: 'Reprojection' }); + case 'TemporalRasterAggregation': + return Object.assign({}, TemporalRasterAggregationFromJSONTyped(json, true), { type: 'TemporalRasterAggregation' }); default: return json; } @@ -37,10 +58,24 @@ export function RasterOperatorToJSONTyped(value, ignoreDiscriminator = false) { return value; } switch (value['type']) { + case 'BandFilter': + return Object.assign({}, BandFilterToJSON(value), { type: 'BandFilter' }); case 'Expression': return Object.assign({}, ExpressionToJSON(value), { type: 'Expression' }); case 'GdalSource': return Object.assign({}, GdalSourceToJSON(value), { type: 'GdalSource' }); + case 'Interpolation': + return Object.assign({}, InterpolationToJSON(value), { type: 'Interpolation' }); + case 'MultiBandGdalSource': + return Object.assign({}, MultiBandGdalSourceToJSON(value), { type: 'MultiBandGdalSource' }); + case 'RasterStacker': + return Object.assign({}, RasterStackerToJSON(value), { type: 'RasterStacker' }); + case 'RasterTypeConversion': + return Object.assign({}, RasterTypeConversionToJSON(value), { type: 'RasterTypeConversion' }); + case 'Reprojection': + return Object.assign({}, ReprojectionToJSON(value), { type: 'Reprojection' }); + case 'TemporalRasterAggregation': + return Object.assign({}, TemporalRasterAggregationToJSON(value), { type: 'TemporalRasterAggregation' }); default: return value; } diff --git a/typescript/dist/esm/models/RasterStacker.d.ts b/typescript/dist/esm/models/RasterStacker.d.ts new file mode 100644 index 00000000..10960fd5 --- /dev/null +++ b/typescript/dist/esm/models/RasterStacker.d.ts @@ -0,0 +1,63 @@ +/** + * Geo Engine API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { MultipleRasterSources } from './MultipleRasterSources'; +import type { RasterStackerParameters } from './RasterStackerParameters'; +/** + * The `RasterStacker` stacks all of its inputs into a single raster time series. + * It queries all inputs and combines them by band, space, and then time. + * + * The output raster has as many bands as the sum of all input bands. + * Tiles are automatically temporally aligned. + * + * All inputs must have the same data type and spatial reference. + * + * ## Inputs + * + * The `RasterStacker` operator expects multiple raster inputs. + * @export + * @interface RasterStacker + */ +export interface RasterStacker { + /** + * + * @type {RasterStackerParameters} + * @memberof RasterStacker + */ + params: RasterStackerParameters; + /** + * + * @type {MultipleRasterSources} + * @memberof RasterStacker + */ + sources: MultipleRasterSources; + /** + * + * @type {RasterStackerTypeEnum} + * @memberof RasterStacker + */ + type: RasterStackerTypeEnum; +} +/** + * @export + */ +export declare const RasterStackerTypeEnum: { + readonly RasterStacker: "RasterStacker"; +}; +export type RasterStackerTypeEnum = typeof RasterStackerTypeEnum[keyof typeof RasterStackerTypeEnum]; +/** + * Check if a given object implements the RasterStacker interface. + */ +export declare function instanceOfRasterStacker(value: object): value is RasterStacker; +export declare function RasterStackerFromJSON(json: any): RasterStacker; +export declare function RasterStackerFromJSONTyped(json: any, ignoreDiscriminator: boolean): RasterStacker; +export declare function RasterStackerToJSON(json: any): RasterStacker; +export declare function RasterStackerToJSONTyped(value?: RasterStacker | null, ignoreDiscriminator?: boolean): any; diff --git a/typescript/dist/esm/models/RasterStacker.js b/typescript/dist/esm/models/RasterStacker.js new file mode 100644 index 00000000..1932b070 --- /dev/null +++ b/typescript/dist/esm/models/RasterStacker.js @@ -0,0 +1,59 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { MultipleRasterSourcesFromJSON, MultipleRasterSourcesToJSON, } from './MultipleRasterSources'; +import { RasterStackerParametersFromJSON, RasterStackerParametersToJSON, } from './RasterStackerParameters'; +/** + * @export + */ +export const RasterStackerTypeEnum = { + RasterStacker: 'RasterStacker' +}; +/** + * Check if a given object implements the RasterStacker interface. + */ +export function instanceOfRasterStacker(value) { + if (!('params' in value) || value['params'] === undefined) + return false; + if (!('sources' in value) || value['sources'] === undefined) + return false; + if (!('type' in value) || value['type'] === undefined) + return false; + return true; +} +export function RasterStackerFromJSON(json) { + return RasterStackerFromJSONTyped(json, false); +} +export function RasterStackerFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'params': RasterStackerParametersFromJSON(json['params']), + 'sources': MultipleRasterSourcesFromJSON(json['sources']), + 'type': json['type'], + }; +} +export function RasterStackerToJSON(json) { + return RasterStackerToJSONTyped(json, false); +} +export function RasterStackerToJSONTyped(value, ignoreDiscriminator = false) { + if (value == null) { + return value; + } + return { + 'params': RasterStackerParametersToJSON(value['params']), + 'sources': MultipleRasterSourcesToJSON(value['sources']), + 'type': value['type'], + }; +} diff --git a/typescript/dist/esm/models/RasterStackerParameters.d.ts b/typescript/dist/esm/models/RasterStackerParameters.d.ts new file mode 100644 index 00000000..c6bad256 --- /dev/null +++ b/typescript/dist/esm/models/RasterStackerParameters.d.ts @@ -0,0 +1,37 @@ +/** + * Geo Engine API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { RenameBands } from './RenameBands'; +/** + * Parameters for the `RasterStacker` operator. + * @export + * @interface RasterStackerParameters + */ +export interface RasterStackerParameters { + /** + * Strategy for deriving output band names. + * + * - `default`: appends ` (n)` with the smallest `n` that avoids a conflict. + * - `suffix`: appends one suffix per input. + * - `rename`: explicitly provides names for all resulting bands. + * @type {RenameBands} + * @memberof RasterStackerParameters + */ + renameBands: RenameBands; +} +/** + * Check if a given object implements the RasterStackerParameters interface. + */ +export declare function instanceOfRasterStackerParameters(value: object): value is RasterStackerParameters; +export declare function RasterStackerParametersFromJSON(json: any): RasterStackerParameters; +export declare function RasterStackerParametersFromJSONTyped(json: any, ignoreDiscriminator: boolean): RasterStackerParameters; +export declare function RasterStackerParametersToJSON(json: any): RasterStackerParameters; +export declare function RasterStackerParametersToJSONTyped(value?: RasterStackerParameters | null, ignoreDiscriminator?: boolean): any; diff --git a/typescript/dist/esm/models/RasterStackerParameters.js b/typescript/dist/esm/models/RasterStackerParameters.js new file mode 100644 index 00000000..a7615273 --- /dev/null +++ b/typescript/dist/esm/models/RasterStackerParameters.js @@ -0,0 +1,44 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { RenameBandsFromJSON, RenameBandsToJSON, } from './RenameBands'; +/** + * Check if a given object implements the RasterStackerParameters interface. + */ +export function instanceOfRasterStackerParameters(value) { + if (!('renameBands' in value) || value['renameBands'] === undefined) + return false; + return true; +} +export function RasterStackerParametersFromJSON(json) { + return RasterStackerParametersFromJSONTyped(json, false); +} +export function RasterStackerParametersFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'renameBands': RenameBandsFromJSON(json['renameBands']), + }; +} +export function RasterStackerParametersToJSON(json) { + return RasterStackerParametersToJSONTyped(json, false); +} +export function RasterStackerParametersToJSONTyped(value, ignoreDiscriminator = false) { + if (value == null) { + return value; + } + return { + 'renameBands': RenameBandsToJSON(value['renameBands']), + }; +} diff --git a/typescript/dist/esm/models/RasterTypeConversion.d.ts b/typescript/dist/esm/models/RasterTypeConversion.d.ts new file mode 100644 index 00000000..f414aa9c --- /dev/null +++ b/typescript/dist/esm/models/RasterTypeConversion.d.ts @@ -0,0 +1,64 @@ +/** + * Geo Engine API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { SingleRasterSource } from './SingleRasterSource'; +import type { RasterTypeConversionParameters } from './RasterTypeConversionParameters'; +/** + * The `RasterTypeConversion` operator changes the data type of raster pixels. + * + * Applying this conversion may cause precision loss. + * For example, converting `F32` value `3.1` to `U8` results in `3`. + * + * If a value is outside of the range of the target data type, + * it is clipped to the valid range of that type. + * For example, converting `F32` value `300.0` to `U8` results in `255`. + * + * ## Inputs + * + * The `RasterTypeConversion` operator expects exactly one _raster_ input. + * @export + * @interface RasterTypeConversion + */ +export interface RasterTypeConversion { + /** + * + * @type {RasterTypeConversionParameters} + * @memberof RasterTypeConversion + */ + params: RasterTypeConversionParameters; + /** + * + * @type {SingleRasterSource} + * @memberof RasterTypeConversion + */ + sources: SingleRasterSource; + /** + * + * @type {RasterTypeConversionTypeEnum} + * @memberof RasterTypeConversion + */ + type: RasterTypeConversionTypeEnum; +} +/** + * @export + */ +export declare const RasterTypeConversionTypeEnum: { + readonly RasterTypeConversion: "RasterTypeConversion"; +}; +export type RasterTypeConversionTypeEnum = typeof RasterTypeConversionTypeEnum[keyof typeof RasterTypeConversionTypeEnum]; +/** + * Check if a given object implements the RasterTypeConversion interface. + */ +export declare function instanceOfRasterTypeConversion(value: object): value is RasterTypeConversion; +export declare function RasterTypeConversionFromJSON(json: any): RasterTypeConversion; +export declare function RasterTypeConversionFromJSONTyped(json: any, ignoreDiscriminator: boolean): RasterTypeConversion; +export declare function RasterTypeConversionToJSON(json: any): RasterTypeConversion; +export declare function RasterTypeConversionToJSONTyped(value?: RasterTypeConversion | null, ignoreDiscriminator?: boolean): any; diff --git a/typescript/dist/esm/models/RasterTypeConversion.js b/typescript/dist/esm/models/RasterTypeConversion.js new file mode 100644 index 00000000..d0c421ca --- /dev/null +++ b/typescript/dist/esm/models/RasterTypeConversion.js @@ -0,0 +1,59 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { SingleRasterSourceFromJSON, SingleRasterSourceToJSON, } from './SingleRasterSource'; +import { RasterTypeConversionParametersFromJSON, RasterTypeConversionParametersToJSON, } from './RasterTypeConversionParameters'; +/** + * @export + */ +export const RasterTypeConversionTypeEnum = { + RasterTypeConversion: 'RasterTypeConversion' +}; +/** + * Check if a given object implements the RasterTypeConversion interface. + */ +export function instanceOfRasterTypeConversion(value) { + if (!('params' in value) || value['params'] === undefined) + return false; + if (!('sources' in value) || value['sources'] === undefined) + return false; + if (!('type' in value) || value['type'] === undefined) + return false; + return true; +} +export function RasterTypeConversionFromJSON(json) { + return RasterTypeConversionFromJSONTyped(json, false); +} +export function RasterTypeConversionFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'params': RasterTypeConversionParametersFromJSON(json['params']), + 'sources': SingleRasterSourceFromJSON(json['sources']), + 'type': json['type'], + }; +} +export function RasterTypeConversionToJSON(json) { + return RasterTypeConversionToJSONTyped(json, false); +} +export function RasterTypeConversionToJSONTyped(value, ignoreDiscriminator = false) { + if (value == null) { + return value; + } + return { + 'params': RasterTypeConversionParametersToJSON(value['params']), + 'sources': SingleRasterSourceToJSON(value['sources']), + 'type': value['type'], + }; +} diff --git a/typescript/dist/esm/models/RasterTypeConversionParameters.d.ts b/typescript/dist/esm/models/RasterTypeConversionParameters.d.ts new file mode 100644 index 00000000..e3936f44 --- /dev/null +++ b/typescript/dist/esm/models/RasterTypeConversionParameters.d.ts @@ -0,0 +1,33 @@ +/** + * Geo Engine API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { RasterDataType } from './RasterDataType'; +/** + * Parameters for the `RasterTypeConversion` operator. + * @export + * @interface RasterTypeConversionParameters + */ +export interface RasterTypeConversionParameters { + /** + * Output raster data type. + * @type {RasterDataType} + * @memberof RasterTypeConversionParameters + */ + outputDataType: RasterDataType; +} +/** + * Check if a given object implements the RasterTypeConversionParameters interface. + */ +export declare function instanceOfRasterTypeConversionParameters(value: object): value is RasterTypeConversionParameters; +export declare function RasterTypeConversionParametersFromJSON(json: any): RasterTypeConversionParameters; +export declare function RasterTypeConversionParametersFromJSONTyped(json: any, ignoreDiscriminator: boolean): RasterTypeConversionParameters; +export declare function RasterTypeConversionParametersToJSON(json: any): RasterTypeConversionParameters; +export declare function RasterTypeConversionParametersToJSONTyped(value?: RasterTypeConversionParameters | null, ignoreDiscriminator?: boolean): any; diff --git a/typescript/dist/esm/models/RasterTypeConversionParameters.js b/typescript/dist/esm/models/RasterTypeConversionParameters.js new file mode 100644 index 00000000..65af72e6 --- /dev/null +++ b/typescript/dist/esm/models/RasterTypeConversionParameters.js @@ -0,0 +1,44 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { RasterDataTypeFromJSON, RasterDataTypeToJSON, } from './RasterDataType'; +/** + * Check if a given object implements the RasterTypeConversionParameters interface. + */ +export function instanceOfRasterTypeConversionParameters(value) { + if (!('outputDataType' in value) || value['outputDataType'] === undefined) + return false; + return true; +} +export function RasterTypeConversionParametersFromJSON(json) { + return RasterTypeConversionParametersFromJSONTyped(json, false); +} +export function RasterTypeConversionParametersFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'outputDataType': RasterDataTypeFromJSON(json['outputDataType']), + }; +} +export function RasterTypeConversionParametersToJSON(json) { + return RasterTypeConversionParametersToJSONTyped(json, false); +} +export function RasterTypeConversionParametersToJSONTyped(value, ignoreDiscriminator = false) { + if (value == null) { + return value; + } + return { + 'outputDataType': RasterDataTypeToJSON(value['outputDataType']), + }; +} diff --git a/typescript/dist/esm/models/Regular.d.ts b/typescript/dist/esm/models/Regular.d.ts new file mode 100644 index 00000000..b22ba5cf --- /dev/null +++ b/typescript/dist/esm/models/Regular.d.ts @@ -0,0 +1,40 @@ +/** + * Geo Engine API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { RegularTimeDimension } from './RegularTimeDimension'; +/** + * + * @export + * @interface Regular + */ +export interface Regular extends RegularTimeDimension { + /** + * + * @type {RegularTypeEnum} + * @memberof Regular + */ + type: RegularTypeEnum; +} +/** + * @export + */ +export declare const RegularTypeEnum: { + readonly Regular: "regular"; +}; +export type RegularTypeEnum = typeof RegularTypeEnum[keyof typeof RegularTypeEnum]; +/** + * Check if a given object implements the Regular interface. + */ +export declare function instanceOfRegular(value: object): value is Regular; +export declare function RegularFromJSON(json: any): Regular; +export declare function RegularFromJSONTyped(json: any, ignoreDiscriminator: boolean): Regular; +export declare function RegularToJSON(json: any): Regular; +export declare function RegularToJSONTyped(value?: Regular | null, ignoreDiscriminator?: boolean): any; diff --git a/typescript/dist/esm/models/TimeDimensionOneOf.js b/typescript/dist/esm/models/Regular.js similarity index 65% rename from typescript/dist/esm/models/TimeDimensionOneOf.js rename to typescript/dist/esm/models/Regular.js index aabaed15..4fcf0451 100644 --- a/typescript/dist/esm/models/TimeDimensionOneOf.js +++ b/typescript/dist/esm/models/Regular.js @@ -15,30 +15,30 @@ import { RegularTimeDimensionFromJSONTyped, RegularTimeDimensionToJSONTyped, } f /** * @export */ -export const TimeDimensionOneOfTypeEnum = { +export const RegularTypeEnum = { Regular: 'regular' }; /** - * Check if a given object implements the TimeDimensionOneOf interface. + * Check if a given object implements the Regular interface. */ -export function instanceOfTimeDimensionOneOf(value) { +export function instanceOfRegular(value) { if (!('type' in value) || value['type'] === undefined) return false; return true; } -export function TimeDimensionOneOfFromJSON(json) { - return TimeDimensionOneOfFromJSONTyped(json, false); +export function RegularFromJSON(json) { + return RegularFromJSONTyped(json, false); } -export function TimeDimensionOneOfFromJSONTyped(json, ignoreDiscriminator) { +export function RegularFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return Object.assign(Object.assign({}, RegularTimeDimensionFromJSONTyped(json, true)), { 'type': json['type'] }); } -export function TimeDimensionOneOfToJSON(json) { - return TimeDimensionOneOfToJSONTyped(json, false); +export function RegularToJSON(json) { + return RegularToJSONTyped(json, false); } -export function TimeDimensionOneOfToJSONTyped(value, ignoreDiscriminator = false) { +export function RegularToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } diff --git a/typescript/dist/esm/models/Rename.d.ts b/typescript/dist/esm/models/Rename.d.ts new file mode 100644 index 00000000..9bdc276c --- /dev/null +++ b/typescript/dist/esm/models/Rename.d.ts @@ -0,0 +1,45 @@ +/** + * Geo Engine API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface Rename + */ +export interface Rename { + /** + * + * @type {RenameTypeEnum} + * @memberof Rename + */ + type: RenameTypeEnum; + /** + * + * @type {Array} + * @memberof Rename + */ + values: Array; +} +/** + * @export + */ +export declare const RenameTypeEnum: { + readonly Rename: "rename"; +}; +export type RenameTypeEnum = typeof RenameTypeEnum[keyof typeof RenameTypeEnum]; +/** + * Check if a given object implements the Rename interface. + */ +export declare function instanceOfRename(value: object): value is Rename; +export declare function RenameFromJSON(json: any): Rename; +export declare function RenameFromJSONTyped(json: any, ignoreDiscriminator: boolean): Rename; +export declare function RenameToJSON(json: any): Rename; +export declare function RenameToJSONTyped(value?: Rename | null, ignoreDiscriminator?: boolean): any; diff --git a/typescript/dist/esm/models/Rename.js b/typescript/dist/esm/models/Rename.js new file mode 100644 index 00000000..2fc18a46 --- /dev/null +++ b/typescript/dist/esm/models/Rename.js @@ -0,0 +1,53 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * @export + */ +export const RenameTypeEnum = { + Rename: 'rename' +}; +/** + * Check if a given object implements the Rename interface. + */ +export function instanceOfRename(value) { + if (!('type' in value) || value['type'] === undefined) + return false; + if (!('values' in value) || value['values'] === undefined) + return false; + return true; +} +export function RenameFromJSON(json) { + return RenameFromJSONTyped(json, false); +} +export function RenameFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'type': json['type'], + 'values': json['values'], + }; +} +export function RenameToJSON(json) { + return RenameToJSONTyped(json, false); +} +export function RenameToJSONTyped(value, ignoreDiscriminator = false) { + if (value == null) { + return value; + } + return { + 'type': value['type'], + 'values': value['values'], + }; +} diff --git a/typescript/dist/esm/models/RenameBands.d.ts b/typescript/dist/esm/models/RenameBands.d.ts new file mode 100644 index 00000000..f3c1a253 --- /dev/null +++ b/typescript/dist/esm/models/RenameBands.d.ts @@ -0,0 +1,24 @@ +/** + * Geo Engine API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Default } from './Default'; +import type { Rename } from './Rename'; +import type { Suffix } from './Suffix'; +/** + * @type RenameBands + * + * @export + */ +export type RenameBands = Default | Rename | Suffix; +export declare function RenameBandsFromJSON(json: any): RenameBands; +export declare function RenameBandsFromJSONTyped(json: any, ignoreDiscriminator: boolean): RenameBands; +export declare function RenameBandsToJSON(json: any): any; +export declare function RenameBandsToJSONTyped(value?: RenameBands | null, ignoreDiscriminator?: boolean): any; diff --git a/typescript/dist/esm/models/RenameBands.js b/typescript/dist/esm/models/RenameBands.js new file mode 100644 index 00000000..1780e3bb --- /dev/null +++ b/typescript/dist/esm/models/RenameBands.js @@ -0,0 +1,58 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { instanceOfDefault, DefaultFromJSONTyped, DefaultToJSON, } from './Default'; +import { instanceOfRename, RenameFromJSONTyped, RenameToJSON, } from './Rename'; +import { instanceOfSuffix, SuffixFromJSONTyped, SuffixToJSON, } from './Suffix'; +export function RenameBandsFromJSON(json) { + return RenameBandsFromJSONTyped(json, false); +} +export function RenameBandsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + if (typeof json !== 'object') { + return json; + } + if (instanceOfDefault(json)) { + return DefaultFromJSONTyped(json, true); + } + if (instanceOfRename(json)) { + return RenameFromJSONTyped(json, true); + } + if (instanceOfSuffix(json)) { + return SuffixFromJSONTyped(json, true); + } + return {}; +} +export function RenameBandsToJSON(json) { + return RenameBandsToJSONTyped(json, false); +} +export function RenameBandsToJSONTyped(value, ignoreDiscriminator = false) { + if (value == null) { + return value; + } + if (typeof value !== 'object') { + return value; + } + if (instanceOfDefault(value)) { + return DefaultToJSON(value); + } + if (instanceOfRename(value)) { + return RenameToJSON(value); + } + if (instanceOfSuffix(value)) { + return SuffixToJSON(value); + } + return {}; +} diff --git a/typescript/dist/esm/models/Reprojection.d.ts b/typescript/dist/esm/models/Reprojection.d.ts new file mode 100644 index 00000000..5f664d46 --- /dev/null +++ b/typescript/dist/esm/models/Reprojection.d.ts @@ -0,0 +1,79 @@ +/** + * Geo Engine API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ReprojectionParameters } from './ReprojectionParameters'; +import type { SingleRasterOrVectorSource } from './SingleRasterOrVectorSource'; +/** + * The `Reprojection` operator reprojects data from one spatial reference system to another. + * It accepts exactly one input which can either be a raster or a vector data stream. + * The operator produces all data that, after reprojection, is contained in the query rectangle. + * + * ## Data Type Specifics + * + * The concrete behavior depends on the data type. + * + * ### Vector Data + * + * The operator reprojects all coordinates of the features individually. + * The result contains all features that, after reprojection, are intersected by the query rectangle. + * + * ### Raster Data + * + * To create tiles in the target projection, the operator loads corresponding tiles in the source projection. + * For each output pixel, the value of the nearest input pixel is used. + * + * If parts of a tile are outside of the source extent after projection, the operator produces NO DATA values. + * + * ## Inputs + * + * The `Reprojection` operator expects exactly one _raster_ or _vector_ input. + * + * ## Errors + * + * The operator returns an error if the target projection is unknown or if input data cannot be reprojected. + * @export + * @interface Reprojection + */ +export interface Reprojection { + /** + * + * @type {ReprojectionParameters} + * @memberof Reprojection + */ + params: ReprojectionParameters; + /** + * + * @type {SingleRasterOrVectorSource} + * @memberof Reprojection + */ + sources: SingleRasterOrVectorSource; + /** + * + * @type {ReprojectionTypeEnum} + * @memberof Reprojection + */ + type: ReprojectionTypeEnum; +} +/** + * @export + */ +export declare const ReprojectionTypeEnum: { + readonly Reprojection: "Reprojection"; +}; +export type ReprojectionTypeEnum = typeof ReprojectionTypeEnum[keyof typeof ReprojectionTypeEnum]; +/** + * Check if a given object implements the Reprojection interface. + */ +export declare function instanceOfReprojection(value: object): value is Reprojection; +export declare function ReprojectionFromJSON(json: any): Reprojection; +export declare function ReprojectionFromJSONTyped(json: any, ignoreDiscriminator: boolean): Reprojection; +export declare function ReprojectionToJSON(json: any): Reprojection; +export declare function ReprojectionToJSONTyped(value?: Reprojection | null, ignoreDiscriminator?: boolean): any; diff --git a/typescript/dist/esm/models/Reprojection.js b/typescript/dist/esm/models/Reprojection.js new file mode 100644 index 00000000..2d9f8e54 --- /dev/null +++ b/typescript/dist/esm/models/Reprojection.js @@ -0,0 +1,59 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ReprojectionParametersFromJSON, ReprojectionParametersToJSON, } from './ReprojectionParameters'; +import { SingleRasterOrVectorSourceFromJSON, SingleRasterOrVectorSourceToJSON, } from './SingleRasterOrVectorSource'; +/** + * @export + */ +export const ReprojectionTypeEnum = { + Reprojection: 'Reprojection' +}; +/** + * Check if a given object implements the Reprojection interface. + */ +export function instanceOfReprojection(value) { + if (!('params' in value) || value['params'] === undefined) + return false; + if (!('sources' in value) || value['sources'] === undefined) + return false; + if (!('type' in value) || value['type'] === undefined) + return false; + return true; +} +export function ReprojectionFromJSON(json) { + return ReprojectionFromJSONTyped(json, false); +} +export function ReprojectionFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'params': ReprojectionParametersFromJSON(json['params']), + 'sources': SingleRasterOrVectorSourceFromJSON(json['sources']), + 'type': json['type'], + }; +} +export function ReprojectionToJSON(json) { + return ReprojectionToJSONTyped(json, false); +} +export function ReprojectionToJSONTyped(value, ignoreDiscriminator = false) { + if (value == null) { + return value; + } + return { + 'params': ReprojectionParametersToJSON(value['params']), + 'sources': SingleRasterOrVectorSourceToJSON(value['sources']), + 'type': value['type'], + }; +} diff --git a/typescript/dist/esm/models/ReprojectionParameters.d.ts b/typescript/dist/esm/models/ReprojectionParameters.d.ts new file mode 100644 index 00000000..30b3efc6 --- /dev/null +++ b/typescript/dist/esm/models/ReprojectionParameters.d.ts @@ -0,0 +1,42 @@ +/** + * Geo Engine API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { DeriveOutRasterSpecsSource } from './DeriveOutRasterSpecsSource'; +/** + * Parameters for the `Reprojection` operator. + * @export + * @interface ReprojectionParameters + */ +export interface ReprojectionParameters { + /** + * Controls how raster output bounds are derived. + * + * The default `projectionBounds` usually keeps a projection-aligned target grid, + * while `dataBounds` derives it directly from source data bounds. + * @type {DeriveOutRasterSpecsSource} + * @memberof ReprojectionParameters + */ + deriveOutSpec?: DeriveOutRasterSpecsSource; + /** + * Target spatial reference system. + * @type {string} + * @memberof ReprojectionParameters + */ + targetSpatialReference: string; +} +/** + * Check if a given object implements the ReprojectionParameters interface. + */ +export declare function instanceOfReprojectionParameters(value: object): value is ReprojectionParameters; +export declare function ReprojectionParametersFromJSON(json: any): ReprojectionParameters; +export declare function ReprojectionParametersFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReprojectionParameters; +export declare function ReprojectionParametersToJSON(json: any): ReprojectionParameters; +export declare function ReprojectionParametersToJSONTyped(value?: ReprojectionParameters | null, ignoreDiscriminator?: boolean): any; diff --git a/typescript/dist/esm/models/ReprojectionParameters.js b/typescript/dist/esm/models/ReprojectionParameters.js new file mode 100644 index 00000000..ebf05e30 --- /dev/null +++ b/typescript/dist/esm/models/ReprojectionParameters.js @@ -0,0 +1,46 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { DeriveOutRasterSpecsSourceFromJSON, DeriveOutRasterSpecsSourceToJSON, } from './DeriveOutRasterSpecsSource'; +/** + * Check if a given object implements the ReprojectionParameters interface. + */ +export function instanceOfReprojectionParameters(value) { + if (!('targetSpatialReference' in value) || value['targetSpatialReference'] === undefined) + return false; + return true; +} +export function ReprojectionParametersFromJSON(json) { + return ReprojectionParametersFromJSONTyped(json, false); +} +export function ReprojectionParametersFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'deriveOutSpec': json['deriveOutSpec'] == null ? undefined : DeriveOutRasterSpecsSourceFromJSON(json['deriveOutSpec']), + 'targetSpatialReference': json['targetSpatialReference'], + }; +} +export function ReprojectionParametersToJSON(json) { + return ReprojectionParametersToJSONTyped(json, false); +} +export function ReprojectionParametersToJSONTyped(value, ignoreDiscriminator = false) { + if (value == null) { + return value; + } + return { + 'deriveOutSpec': DeriveOutRasterSpecsSourceToJSON(value['deriveOutSpec']), + 'targetSpatialReference': value['targetSpatialReference'], + }; +} diff --git a/typescript/dist/esm/models/Resolution.d.ts b/typescript/dist/esm/models/Resolution.d.ts new file mode 100644 index 00000000..e3c600e6 --- /dev/null +++ b/typescript/dist/esm/models/Resolution.d.ts @@ -0,0 +1,51 @@ +/** + * Geo Engine API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Explicit output resolution (`x`, `y`) in target coordinates. + * @export + * @interface Resolution + */ +export interface Resolution { + /** + * + * @type {ResolutionTypeEnum} + * @memberof Resolution + */ + type: ResolutionTypeEnum; + /** + * + * @type {number} + * @memberof Resolution + */ + x: number; + /** + * + * @type {number} + * @memberof Resolution + */ + y: number; +} +/** + * @export + */ +export declare const ResolutionTypeEnum: { + readonly Resolution: "resolution"; +}; +export type ResolutionTypeEnum = typeof ResolutionTypeEnum[keyof typeof ResolutionTypeEnum]; +/** + * Check if a given object implements the Resolution interface. + */ +export declare function instanceOfResolution(value: object): value is Resolution; +export declare function ResolutionFromJSON(json: any): Resolution; +export declare function ResolutionFromJSONTyped(json: any, ignoreDiscriminator: boolean): Resolution; +export declare function ResolutionToJSON(json: any): Resolution; +export declare function ResolutionToJSONTyped(value?: Resolution | null, ignoreDiscriminator?: boolean): any; diff --git a/typescript/dist/esm/models/Resolution.js b/typescript/dist/esm/models/Resolution.js new file mode 100644 index 00000000..2aa40313 --- /dev/null +++ b/typescript/dist/esm/models/Resolution.js @@ -0,0 +1,57 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * @export + */ +export const ResolutionTypeEnum = { + Resolution: 'resolution' +}; +/** + * Check if a given object implements the Resolution interface. + */ +export function instanceOfResolution(value) { + if (!('type' in value) || value['type'] === undefined) + return false; + if (!('x' in value) || value['x'] === undefined) + return false; + if (!('y' in value) || value['y'] === undefined) + return false; + return true; +} +export function ResolutionFromJSON(json) { + return ResolutionFromJSONTyped(json, false); +} +export function ResolutionFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'type': json['type'], + 'x': json['x'], + 'y': json['y'], + }; +} +export function ResolutionToJSON(json) { + return ResolutionToJSONTyped(json, false); +} +export function ResolutionToJSONTyped(value, ignoreDiscriminator = false) { + if (value == null) { + return value; + } + return { + 'type': value['type'], + 'x': value['x'], + 'y': value['y'], + }; +} diff --git a/typescript/dist/esm/models/SquareRootChoiceRule.d.ts b/typescript/dist/esm/models/SquareRootChoiceRule.d.ts new file mode 100644 index 00000000..ccefc73d --- /dev/null +++ b/typescript/dist/esm/models/SquareRootChoiceRule.d.ts @@ -0,0 +1,45 @@ +/** + * Geo Engine API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface SquareRootChoiceRule + */ +export interface SquareRootChoiceRule { + /** + * + * @type {number} + * @memberof SquareRootChoiceRule + */ + maxNumberOfBuckets?: number; + /** + * + * @type {SquareRootChoiceRuleTypeEnum} + * @memberof SquareRootChoiceRule + */ + type: SquareRootChoiceRuleTypeEnum; +} +/** + * @export + */ +export declare const SquareRootChoiceRuleTypeEnum: { + readonly SquareRootChoiceRule: "squareRootChoiceRule"; +}; +export type SquareRootChoiceRuleTypeEnum = typeof SquareRootChoiceRuleTypeEnum[keyof typeof SquareRootChoiceRuleTypeEnum]; +/** + * Check if a given object implements the SquareRootChoiceRule interface. + */ +export declare function instanceOfSquareRootChoiceRule(value: object): value is SquareRootChoiceRule; +export declare function SquareRootChoiceRuleFromJSON(json: any): SquareRootChoiceRule; +export declare function SquareRootChoiceRuleFromJSONTyped(json: any, ignoreDiscriminator: boolean): SquareRootChoiceRule; +export declare function SquareRootChoiceRuleToJSON(json: any): SquareRootChoiceRule; +export declare function SquareRootChoiceRuleToJSONTyped(value?: SquareRootChoiceRule | null, ignoreDiscriminator?: boolean): any; diff --git a/typescript/dist/esm/models/HistogramBucketsOneOf1.js b/typescript/dist/esm/models/SquareRootChoiceRule.js similarity index 62% rename from typescript/dist/esm/models/HistogramBucketsOneOf1.js rename to typescript/dist/esm/models/SquareRootChoiceRule.js index f226c234..2c64c95f 100644 --- a/typescript/dist/esm/models/HistogramBucketsOneOf1.js +++ b/typescript/dist/esm/models/SquareRootChoiceRule.js @@ -14,21 +14,21 @@ /** * @export */ -export const HistogramBucketsOneOf1TypeEnum = { +export const SquareRootChoiceRuleTypeEnum = { SquareRootChoiceRule: 'squareRootChoiceRule' }; /** - * Check if a given object implements the HistogramBucketsOneOf1 interface. + * Check if a given object implements the SquareRootChoiceRule interface. */ -export function instanceOfHistogramBucketsOneOf1(value) { +export function instanceOfSquareRootChoiceRule(value) { if (!('type' in value) || value['type'] === undefined) return false; return true; } -export function HistogramBucketsOneOf1FromJSON(json) { - return HistogramBucketsOneOf1FromJSONTyped(json, false); +export function SquareRootChoiceRuleFromJSON(json) { + return SquareRootChoiceRuleFromJSONTyped(json, false); } -export function HistogramBucketsOneOf1FromJSONTyped(json, ignoreDiscriminator) { +export function SquareRootChoiceRuleFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } @@ -37,10 +37,10 @@ export function HistogramBucketsOneOf1FromJSONTyped(json, ignoreDiscriminator) { 'type': json['type'], }; } -export function HistogramBucketsOneOf1ToJSON(json) { - return HistogramBucketsOneOf1ToJSONTyped(json, false); +export function SquareRootChoiceRuleToJSON(json) { + return SquareRootChoiceRuleToJSONTyped(json, false); } -export function HistogramBucketsOneOf1ToJSONTyped(value, ignoreDiscriminator = false) { +export function SquareRootChoiceRuleToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } diff --git a/typescript/dist/esm/models/SumAggregation.d.ts b/typescript/dist/esm/models/SumAggregation.d.ts new file mode 100644 index 00000000..66f61903 --- /dev/null +++ b/typescript/dist/esm/models/SumAggregation.d.ts @@ -0,0 +1,45 @@ +/** + * Geo Engine API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface SumAggregation + */ +export interface SumAggregation { + /** + * + * @type {boolean} + * @memberof SumAggregation + */ + ignoreNoData: boolean; + /** + * + * @type {SumAggregationTypeEnum} + * @memberof SumAggregation + */ + type: SumAggregationTypeEnum; +} +/** + * @export + */ +export declare const SumAggregationTypeEnum: { + readonly Sum: "sum"; +}; +export type SumAggregationTypeEnum = typeof SumAggregationTypeEnum[keyof typeof SumAggregationTypeEnum]; +/** + * Check if a given object implements the SumAggregation interface. + */ +export declare function instanceOfSumAggregation(value: object): value is SumAggregation; +export declare function SumAggregationFromJSON(json: any): SumAggregation; +export declare function SumAggregationFromJSONTyped(json: any, ignoreDiscriminator: boolean): SumAggregation; +export declare function SumAggregationToJSON(json: any): SumAggregation; +export declare function SumAggregationToJSONTyped(value?: SumAggregation | null, ignoreDiscriminator?: boolean): any; diff --git a/typescript/dist/esm/models/SumAggregation.js b/typescript/dist/esm/models/SumAggregation.js new file mode 100644 index 00000000..4fe11e74 --- /dev/null +++ b/typescript/dist/esm/models/SumAggregation.js @@ -0,0 +1,53 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * @export + */ +export const SumAggregationTypeEnum = { + Sum: 'sum' +}; +/** + * Check if a given object implements the SumAggregation interface. + */ +export function instanceOfSumAggregation(value) { + if (!('ignoreNoData' in value) || value['ignoreNoData'] === undefined) + return false; + if (!('type' in value) || value['type'] === undefined) + return false; + return true; +} +export function SumAggregationFromJSON(json) { + return SumAggregationFromJSONTyped(json, false); +} +export function SumAggregationFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'ignoreNoData': json['ignoreNoData'], + 'type': json['type'], + }; +} +export function SumAggregationToJSON(json) { + return SumAggregationToJSONTyped(json, false); +} +export function SumAggregationToJSONTyped(value, ignoreDiscriminator = false) { + if (value == null) { + return value; + } + return { + 'ignoreNoData': value['ignoreNoData'], + 'type': value['type'], + }; +} diff --git a/typescript/dist/esm/models/TemporalRasterAggregation.d.ts b/typescript/dist/esm/models/TemporalRasterAggregation.d.ts new file mode 100644 index 00000000..a4335d22 --- /dev/null +++ b/typescript/dist/esm/models/TemporalRasterAggregation.d.ts @@ -0,0 +1,66 @@ +/** + * Geo Engine API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { TemporalRasterAggregationParameters } from './TemporalRasterAggregationParameters'; +import type { SingleRasterSource } from './SingleRasterSource'; +/** + * The `TemporalRasterAggregation` operator aggregates a raster time series into uniform time windows. + * The output starts with the first window that contains the query start and contains all windows + * that overlap the query interval. + * + * Pixel values are computed by aggregating all input rasters that contribute to the current window. + * + * ## Inputs + * + * The `TemporalRasterAggregation` operator expects exactly one _raster_ input. + * + * ## Errors + * + * If the aggregation method is `first`, `last`, or `mean` and the input raster has no NO DATA value, + * an error is returned. + * @export + * @interface TemporalRasterAggregation + */ +export interface TemporalRasterAggregation { + /** + * + * @type {TemporalRasterAggregationParameters} + * @memberof TemporalRasterAggregation + */ + params: TemporalRasterAggregationParameters; + /** + * + * @type {SingleRasterSource} + * @memberof TemporalRasterAggregation + */ + sources: SingleRasterSource; + /** + * + * @type {TemporalRasterAggregationTypeEnum} + * @memberof TemporalRasterAggregation + */ + type: TemporalRasterAggregationTypeEnum; +} +/** + * @export + */ +export declare const TemporalRasterAggregationTypeEnum: { + readonly TemporalRasterAggregation: "TemporalRasterAggregation"; +}; +export type TemporalRasterAggregationTypeEnum = typeof TemporalRasterAggregationTypeEnum[keyof typeof TemporalRasterAggregationTypeEnum]; +/** + * Check if a given object implements the TemporalRasterAggregation interface. + */ +export declare function instanceOfTemporalRasterAggregation(value: object): value is TemporalRasterAggregation; +export declare function TemporalRasterAggregationFromJSON(json: any): TemporalRasterAggregation; +export declare function TemporalRasterAggregationFromJSONTyped(json: any, ignoreDiscriminator: boolean): TemporalRasterAggregation; +export declare function TemporalRasterAggregationToJSON(json: any): TemporalRasterAggregation; +export declare function TemporalRasterAggregationToJSONTyped(value?: TemporalRasterAggregation | null, ignoreDiscriminator?: boolean): any; diff --git a/typescript/dist/esm/models/TemporalRasterAggregation.js b/typescript/dist/esm/models/TemporalRasterAggregation.js new file mode 100644 index 00000000..55089c3a --- /dev/null +++ b/typescript/dist/esm/models/TemporalRasterAggregation.js @@ -0,0 +1,59 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { TemporalRasterAggregationParametersFromJSON, TemporalRasterAggregationParametersToJSON, } from './TemporalRasterAggregationParameters'; +import { SingleRasterSourceFromJSON, SingleRasterSourceToJSON, } from './SingleRasterSource'; +/** + * @export + */ +export const TemporalRasterAggregationTypeEnum = { + TemporalRasterAggregation: 'TemporalRasterAggregation' +}; +/** + * Check if a given object implements the TemporalRasterAggregation interface. + */ +export function instanceOfTemporalRasterAggregation(value) { + if (!('params' in value) || value['params'] === undefined) + return false; + if (!('sources' in value) || value['sources'] === undefined) + return false; + if (!('type' in value) || value['type'] === undefined) + return false; + return true; +} +export function TemporalRasterAggregationFromJSON(json) { + return TemporalRasterAggregationFromJSONTyped(json, false); +} +export function TemporalRasterAggregationFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'params': TemporalRasterAggregationParametersFromJSON(json['params']), + 'sources': SingleRasterSourceFromJSON(json['sources']), + 'type': json['type'], + }; +} +export function TemporalRasterAggregationToJSON(json) { + return TemporalRasterAggregationToJSONTyped(json, false); +} +export function TemporalRasterAggregationToJSONTyped(value, ignoreDiscriminator = false) { + if (value == null) { + return value; + } + return { + 'params': TemporalRasterAggregationParametersToJSON(value['params']), + 'sources': SingleRasterSourceToJSON(value['sources']), + 'type': value['type'], + }; +} diff --git a/typescript/dist/esm/models/TemporalRasterAggregationParameters.d.ts b/typescript/dist/esm/models/TemporalRasterAggregationParameters.d.ts new file mode 100644 index 00000000..7798ba54 --- /dev/null +++ b/typescript/dist/esm/models/TemporalRasterAggregationParameters.d.ts @@ -0,0 +1,58 @@ +/** + * Geo Engine API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Aggregation } from './Aggregation'; +import type { TimeStep } from './TimeStep'; +import type { RasterDataType } from './RasterDataType'; +/** + * Parameters for the `TemporalRasterAggregation` operator. + * @export + * @interface TemporalRasterAggregationParameters + */ +export interface TemporalRasterAggregationParameters { + /** + * Aggregation method for values within each time window. + * + * Encountering NO DATA makes the aggregation result NO DATA unless + * `ignoreNoData` is `true` for the selected aggregation variant. + * @type {Aggregation} + * @memberof TemporalRasterAggregationParameters + */ + aggregation: Aggregation; + /** + * Optional output raster data type. + * @type {RasterDataType} + * @memberof TemporalRasterAggregationParameters + */ + outputType?: RasterDataType | null; + /** + * Window size and granularity for the output time series. + * @type {TimeStep} + * @memberof TemporalRasterAggregationParameters + */ + window: TimeStep; + /** + * Optional reference timestamp used as the anchor for window boundaries. + * + * If omitted, windows are anchored at `1970-01-01T00:00:00Z`. + * @type {number} + * @memberof TemporalRasterAggregationParameters + */ + windowReference?: number | null; +} +/** + * Check if a given object implements the TemporalRasterAggregationParameters interface. + */ +export declare function instanceOfTemporalRasterAggregationParameters(value: object): value is TemporalRasterAggregationParameters; +export declare function TemporalRasterAggregationParametersFromJSON(json: any): TemporalRasterAggregationParameters; +export declare function TemporalRasterAggregationParametersFromJSONTyped(json: any, ignoreDiscriminator: boolean): TemporalRasterAggregationParameters; +export declare function TemporalRasterAggregationParametersToJSON(json: any): TemporalRasterAggregationParameters; +export declare function TemporalRasterAggregationParametersToJSONTyped(value?: TemporalRasterAggregationParameters | null, ignoreDiscriminator?: boolean): any; diff --git a/typescript/dist/esm/models/TemporalRasterAggregationParameters.js b/typescript/dist/esm/models/TemporalRasterAggregationParameters.js new file mode 100644 index 00000000..d52cac3c --- /dev/null +++ b/typescript/dist/esm/models/TemporalRasterAggregationParameters.js @@ -0,0 +1,54 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { AggregationFromJSON, AggregationToJSON, } from './Aggregation'; +import { TimeStepFromJSON, TimeStepToJSON, } from './TimeStep'; +import { RasterDataTypeFromJSON, RasterDataTypeToJSON, } from './RasterDataType'; +/** + * Check if a given object implements the TemporalRasterAggregationParameters interface. + */ +export function instanceOfTemporalRasterAggregationParameters(value) { + if (!('aggregation' in value) || value['aggregation'] === undefined) + return false; + if (!('window' in value) || value['window'] === undefined) + return false; + return true; +} +export function TemporalRasterAggregationParametersFromJSON(json) { + return TemporalRasterAggregationParametersFromJSONTyped(json, false); +} +export function TemporalRasterAggregationParametersFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'aggregation': AggregationFromJSON(json['aggregation']), + 'outputType': json['outputType'] == null ? undefined : RasterDataTypeFromJSON(json['outputType']), + 'window': TimeStepFromJSON(json['window']), + 'windowReference': json['windowReference'] == null ? undefined : json['windowReference'], + }; +} +export function TemporalRasterAggregationParametersToJSON(json) { + return TemporalRasterAggregationParametersToJSONTyped(json, false); +} +export function TemporalRasterAggregationParametersToJSONTyped(value, ignoreDiscriminator = false) { + if (value == null) { + return value; + } + return { + 'aggregation': AggregationToJSON(value['aggregation']), + 'outputType': RasterDataTypeToJSON(value['outputType']), + 'window': TimeStepToJSON(value['window']), + 'windowReference': value['windowReference'], + }; +} diff --git a/typescript/dist/esm/models/TimeDimension.d.ts b/typescript/dist/esm/models/TimeDimension.d.ts index 20583d11..1683c2b2 100644 --- a/typescript/dist/esm/models/TimeDimension.d.ts +++ b/typescript/dist/esm/models/TimeDimension.d.ts @@ -9,14 +9,14 @@ * https://openapi-generator.tech * Do not edit the class manually. */ -import type { TimeDimensionOneOf } from './TimeDimensionOneOf'; -import type { TimeDimensionOneOf1 } from './TimeDimensionOneOf1'; +import type { Irregular } from './Irregular'; +import type { Regular } from './Regular'; /** * @type TimeDimension * * @export */ -export type TimeDimension = TimeDimensionOneOf | TimeDimensionOneOf1; +export type TimeDimension = Irregular | Regular; export declare function TimeDimensionFromJSON(json: any): TimeDimension; export declare function TimeDimensionFromJSONTyped(json: any, ignoreDiscriminator: boolean): TimeDimension; export declare function TimeDimensionToJSON(json: any): any; diff --git a/typescript/dist/esm/models/TimeDimension.js b/typescript/dist/esm/models/TimeDimension.js index 390eebfc..c4701805 100644 --- a/typescript/dist/esm/models/TimeDimension.js +++ b/typescript/dist/esm/models/TimeDimension.js @@ -11,8 +11,8 @@ * https://openapi-generator.tech * Do not edit the class manually. */ -import { instanceOfTimeDimensionOneOf, TimeDimensionOneOfFromJSONTyped, TimeDimensionOneOfToJSON, } from './TimeDimensionOneOf'; -import { instanceOfTimeDimensionOneOf1, TimeDimensionOneOf1FromJSONTyped, TimeDimensionOneOf1ToJSON, } from './TimeDimensionOneOf1'; +import { instanceOfIrregular, IrregularFromJSONTyped, IrregularToJSON, } from './Irregular'; +import { instanceOfRegular, RegularFromJSONTyped, RegularToJSON, } from './Regular'; export function TimeDimensionFromJSON(json) { return TimeDimensionFromJSONTyped(json, false); } @@ -23,11 +23,11 @@ export function TimeDimensionFromJSONTyped(json, ignoreDiscriminator) { if (typeof json !== 'object') { return json; } - if (instanceOfTimeDimensionOneOf(json)) { - return TimeDimensionOneOfFromJSONTyped(json, true); + if (instanceOfIrregular(json)) { + return IrregularFromJSONTyped(json, true); } - if (instanceOfTimeDimensionOneOf1(json)) { - return TimeDimensionOneOf1FromJSONTyped(json, true); + if (instanceOfRegular(json)) { + return RegularFromJSONTyped(json, true); } return {}; } @@ -41,11 +41,11 @@ export function TimeDimensionToJSONTyped(value, ignoreDiscriminator = false) { if (typeof value !== 'object') { return value; } - if (instanceOfTimeDimensionOneOf(value)) { - return TimeDimensionOneOfToJSON(value); + if (instanceOfIrregular(value)) { + return IrregularToJSON(value); } - if (instanceOfTimeDimensionOneOf1(value)) { - return TimeDimensionOneOf1ToJSON(value); + if (instanceOfRegular(value)) { + return RegularToJSON(value); } return {}; } diff --git a/typescript/dist/esm/models/TimeDimensionOneOf.d.ts b/typescript/dist/esm/models/TimeDimensionOneOf.d.ts deleted file mode 100644 index 15c37f9b..00000000 --- a/typescript/dist/esm/models/TimeDimensionOneOf.d.ts +++ /dev/null @@ -1,40 +0,0 @@ -/** - * Geo Engine API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.9.0 - * Contact: dev@geoengine.de - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -import type { RegularTimeDimension } from './RegularTimeDimension'; -/** - * - * @export - * @interface TimeDimensionOneOf - */ -export interface TimeDimensionOneOf extends RegularTimeDimension { - /** - * - * @type {TimeDimensionOneOfTypeEnum} - * @memberof TimeDimensionOneOf - */ - type: TimeDimensionOneOfTypeEnum; -} -/** - * @export - */ -export declare const TimeDimensionOneOfTypeEnum: { - readonly Regular: "regular"; -}; -export type TimeDimensionOneOfTypeEnum = typeof TimeDimensionOneOfTypeEnum[keyof typeof TimeDimensionOneOfTypeEnum]; -/** - * Check if a given object implements the TimeDimensionOneOf interface. - */ -export declare function instanceOfTimeDimensionOneOf(value: object): value is TimeDimensionOneOf; -export declare function TimeDimensionOneOfFromJSON(json: any): TimeDimensionOneOf; -export declare function TimeDimensionOneOfFromJSONTyped(json: any, ignoreDiscriminator: boolean): TimeDimensionOneOf; -export declare function TimeDimensionOneOfToJSON(json: any): TimeDimensionOneOf; -export declare function TimeDimensionOneOfToJSONTyped(value?: TimeDimensionOneOf | null, ignoreDiscriminator?: boolean): any; diff --git a/typescript/dist/esm/models/TimeDimensionOneOf1.d.ts b/typescript/dist/esm/models/TimeDimensionOneOf1.d.ts deleted file mode 100644 index b52e5b93..00000000 --- a/typescript/dist/esm/models/TimeDimensionOneOf1.d.ts +++ /dev/null @@ -1,39 +0,0 @@ -/** - * Geo Engine API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.9.0 - * Contact: dev@geoengine.de - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -/** - * - * @export - * @interface TimeDimensionOneOf1 - */ -export interface TimeDimensionOneOf1 { - /** - * - * @type {TimeDimensionOneOf1TypeEnum} - * @memberof TimeDimensionOneOf1 - */ - type: TimeDimensionOneOf1TypeEnum; -} -/** - * @export - */ -export declare const TimeDimensionOneOf1TypeEnum: { - readonly Irregular: "irregular"; -}; -export type TimeDimensionOneOf1TypeEnum = typeof TimeDimensionOneOf1TypeEnum[keyof typeof TimeDimensionOneOf1TypeEnum]; -/** - * Check if a given object implements the TimeDimensionOneOf1 interface. - */ -export declare function instanceOfTimeDimensionOneOf1(value: object): value is TimeDimensionOneOf1; -export declare function TimeDimensionOneOf1FromJSON(json: any): TimeDimensionOneOf1; -export declare function TimeDimensionOneOf1FromJSONTyped(json: any, ignoreDiscriminator: boolean): TimeDimensionOneOf1; -export declare function TimeDimensionOneOf1ToJSON(json: any): TimeDimensionOneOf1; -export declare function TimeDimensionOneOf1ToJSONTyped(value?: TimeDimensionOneOf1 | null, ignoreDiscriminator?: boolean): any; diff --git a/typescript/dist/esm/models/TypedGeometry.d.ts b/typescript/dist/esm/models/TypedGeometry.d.ts index f61a352b..35678a69 100644 --- a/typescript/dist/esm/models/TypedGeometry.d.ts +++ b/typescript/dist/esm/models/TypedGeometry.d.ts @@ -9,16 +9,16 @@ * https://openapi-generator.tech * Do not edit the class manually. */ -import type { TypedGeometryOneOf } from './TypedGeometryOneOf'; -import type { TypedGeometryOneOf1 } from './TypedGeometryOneOf1'; -import type { TypedGeometryOneOf2 } from './TypedGeometryOneOf2'; -import type { TypedGeometryOneOf3 } from './TypedGeometryOneOf3'; +import type { MultiLineString1 } from './MultiLineString1'; +import type { MultiPoint1 } from './MultiPoint1'; +import type { MultiPolygon1 } from './MultiPolygon1'; +import type { NoGeometry1 } from './NoGeometry1'; /** * @type TypedGeometry * * @export */ -export type TypedGeometry = TypedGeometryOneOf | TypedGeometryOneOf1 | TypedGeometryOneOf2 | TypedGeometryOneOf3; +export type TypedGeometry = MultiLineString1 | MultiPoint1 | MultiPolygon1 | NoGeometry1; export declare function TypedGeometryFromJSON(json: any): TypedGeometry; export declare function TypedGeometryFromJSONTyped(json: any, ignoreDiscriminator: boolean): TypedGeometry; export declare function TypedGeometryToJSON(json: any): any; diff --git a/typescript/dist/esm/models/TypedGeometry.js b/typescript/dist/esm/models/TypedGeometry.js index 6d3c7a05..3626aa13 100644 --- a/typescript/dist/esm/models/TypedGeometry.js +++ b/typescript/dist/esm/models/TypedGeometry.js @@ -11,10 +11,10 @@ * https://openapi-generator.tech * Do not edit the class manually. */ -import { instanceOfTypedGeometryOneOf, TypedGeometryOneOfFromJSONTyped, TypedGeometryOneOfToJSON, } from './TypedGeometryOneOf'; -import { instanceOfTypedGeometryOneOf1, TypedGeometryOneOf1FromJSONTyped, TypedGeometryOneOf1ToJSON, } from './TypedGeometryOneOf1'; -import { instanceOfTypedGeometryOneOf2, TypedGeometryOneOf2FromJSONTyped, TypedGeometryOneOf2ToJSON, } from './TypedGeometryOneOf2'; -import { instanceOfTypedGeometryOneOf3, TypedGeometryOneOf3FromJSONTyped, TypedGeometryOneOf3ToJSON, } from './TypedGeometryOneOf3'; +import { instanceOfMultiLineString1, MultiLineString1FromJSONTyped, MultiLineString1ToJSON, } from './MultiLineString1'; +import { instanceOfMultiPoint1, MultiPoint1FromJSONTyped, MultiPoint1ToJSON, } from './MultiPoint1'; +import { instanceOfMultiPolygon1, MultiPolygon1FromJSONTyped, MultiPolygon1ToJSON, } from './MultiPolygon1'; +import { instanceOfNoGeometry1, NoGeometry1FromJSONTyped, NoGeometry1ToJSON, } from './NoGeometry1'; export function TypedGeometryFromJSON(json) { return TypedGeometryFromJSONTyped(json, false); } @@ -25,17 +25,17 @@ export function TypedGeometryFromJSONTyped(json, ignoreDiscriminator) { if (typeof json !== 'object') { return json; } - if (instanceOfTypedGeometryOneOf(json)) { - return TypedGeometryOneOfFromJSONTyped(json, true); + if (instanceOfMultiLineString1(json)) { + return MultiLineString1FromJSONTyped(json, true); } - if (instanceOfTypedGeometryOneOf1(json)) { - return TypedGeometryOneOf1FromJSONTyped(json, true); + if (instanceOfMultiPoint1(json)) { + return MultiPoint1FromJSONTyped(json, true); } - if (instanceOfTypedGeometryOneOf2(json)) { - return TypedGeometryOneOf2FromJSONTyped(json, true); + if (instanceOfMultiPolygon1(json)) { + return MultiPolygon1FromJSONTyped(json, true); } - if (instanceOfTypedGeometryOneOf3(json)) { - return TypedGeometryOneOf3FromJSONTyped(json, true); + if (instanceOfNoGeometry1(json)) { + return NoGeometry1FromJSONTyped(json, true); } return {}; } @@ -49,17 +49,17 @@ export function TypedGeometryToJSONTyped(value, ignoreDiscriminator = false) { if (typeof value !== 'object') { return value; } - if (instanceOfTypedGeometryOneOf(value)) { - return TypedGeometryOneOfToJSON(value); + if (instanceOfMultiLineString1(value)) { + return MultiLineString1ToJSON(value); } - if (instanceOfTypedGeometryOneOf1(value)) { - return TypedGeometryOneOf1ToJSON(value); + if (instanceOfMultiPoint1(value)) { + return MultiPoint1ToJSON(value); } - if (instanceOfTypedGeometryOneOf2(value)) { - return TypedGeometryOneOf2ToJSON(value); + if (instanceOfMultiPolygon1(value)) { + return MultiPolygon1ToJSON(value); } - if (instanceOfTypedGeometryOneOf3(value)) { - return TypedGeometryOneOf3ToJSON(value); + if (instanceOfNoGeometry1(value)) { + return NoGeometry1ToJSON(value); } return {}; } diff --git a/typescript/dist/esm/models/TypedGeometryOneOf.d.ts b/typescript/dist/esm/models/TypedGeometryOneOf.d.ts deleted file mode 100644 index 209d3200..00000000 --- a/typescript/dist/esm/models/TypedGeometryOneOf.d.ts +++ /dev/null @@ -1,32 +0,0 @@ -/** - * Geo Engine API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.9.0 - * Contact: dev@geoengine.de - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -/** - * - * @export - * @interface TypedGeometryOneOf - */ -export interface TypedGeometryOneOf { - /** - * - * @type {any} - * @memberof TypedGeometryOneOf - */ - data: any | null; -} -/** - * Check if a given object implements the TypedGeometryOneOf interface. - */ -export declare function instanceOfTypedGeometryOneOf(value: object): value is TypedGeometryOneOf; -export declare function TypedGeometryOneOfFromJSON(json: any): TypedGeometryOneOf; -export declare function TypedGeometryOneOfFromJSONTyped(json: any, ignoreDiscriminator: boolean): TypedGeometryOneOf; -export declare function TypedGeometryOneOfToJSON(json: any): TypedGeometryOneOf; -export declare function TypedGeometryOneOfToJSONTyped(value?: TypedGeometryOneOf | null, ignoreDiscriminator?: boolean): any; diff --git a/typescript/dist/esm/models/TypedGeometryOneOf1.d.ts b/typescript/dist/esm/models/TypedGeometryOneOf1.d.ts deleted file mode 100644 index 81b20938..00000000 --- a/typescript/dist/esm/models/TypedGeometryOneOf1.d.ts +++ /dev/null @@ -1,33 +0,0 @@ -/** - * Geo Engine API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.9.0 - * Contact: dev@geoengine.de - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -import type { MultiPoint } from './MultiPoint'; -/** - * - * @export - * @interface TypedGeometryOneOf1 - */ -export interface TypedGeometryOneOf1 { - /** - * - * @type {MultiPoint} - * @memberof TypedGeometryOneOf1 - */ - multiPoint: MultiPoint; -} -/** - * Check if a given object implements the TypedGeometryOneOf1 interface. - */ -export declare function instanceOfTypedGeometryOneOf1(value: object): value is TypedGeometryOneOf1; -export declare function TypedGeometryOneOf1FromJSON(json: any): TypedGeometryOneOf1; -export declare function TypedGeometryOneOf1FromJSONTyped(json: any, ignoreDiscriminator: boolean): TypedGeometryOneOf1; -export declare function TypedGeometryOneOf1ToJSON(json: any): TypedGeometryOneOf1; -export declare function TypedGeometryOneOf1ToJSONTyped(value?: TypedGeometryOneOf1 | null, ignoreDiscriminator?: boolean): any; diff --git a/typescript/dist/esm/models/TypedGeometryOneOf2.d.ts b/typescript/dist/esm/models/TypedGeometryOneOf2.d.ts deleted file mode 100644 index 1fec3fd6..00000000 --- a/typescript/dist/esm/models/TypedGeometryOneOf2.d.ts +++ /dev/null @@ -1,33 +0,0 @@ -/** - * Geo Engine API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.9.0 - * Contact: dev@geoengine.de - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -import type { MultiLineString } from './MultiLineString'; -/** - * - * @export - * @interface TypedGeometryOneOf2 - */ -export interface TypedGeometryOneOf2 { - /** - * - * @type {MultiLineString} - * @memberof TypedGeometryOneOf2 - */ - multiLineString: MultiLineString; -} -/** - * Check if a given object implements the TypedGeometryOneOf2 interface. - */ -export declare function instanceOfTypedGeometryOneOf2(value: object): value is TypedGeometryOneOf2; -export declare function TypedGeometryOneOf2FromJSON(json: any): TypedGeometryOneOf2; -export declare function TypedGeometryOneOf2FromJSONTyped(json: any, ignoreDiscriminator: boolean): TypedGeometryOneOf2; -export declare function TypedGeometryOneOf2ToJSON(json: any): TypedGeometryOneOf2; -export declare function TypedGeometryOneOf2ToJSONTyped(value?: TypedGeometryOneOf2 | null, ignoreDiscriminator?: boolean): any; diff --git a/typescript/dist/esm/models/TypedGeometryOneOf3.d.ts b/typescript/dist/esm/models/TypedGeometryOneOf3.d.ts deleted file mode 100644 index ddd7050d..00000000 --- a/typescript/dist/esm/models/TypedGeometryOneOf3.d.ts +++ /dev/null @@ -1,33 +0,0 @@ -/** - * Geo Engine API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.9.0 - * Contact: dev@geoengine.de - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -import type { MultiPolygon } from './MultiPolygon'; -/** - * - * @export - * @interface TypedGeometryOneOf3 - */ -export interface TypedGeometryOneOf3 { - /** - * - * @type {MultiPolygon} - * @memberof TypedGeometryOneOf3 - */ - multiPolygon: MultiPolygon; -} -/** - * Check if a given object implements the TypedGeometryOneOf3 interface. - */ -export declare function instanceOfTypedGeometryOneOf3(value: object): value is TypedGeometryOneOf3; -export declare function TypedGeometryOneOf3FromJSON(json: any): TypedGeometryOneOf3; -export declare function TypedGeometryOneOf3FromJSONTyped(json: any, ignoreDiscriminator: boolean): TypedGeometryOneOf3; -export declare function TypedGeometryOneOf3ToJSON(json: any): TypedGeometryOneOf3; -export declare function TypedGeometryOneOf3ToJSONTyped(value?: TypedGeometryOneOf3 | null, ignoreDiscriminator?: boolean): any; diff --git a/typescript/dist/esm/models/Upload.d.ts b/typescript/dist/esm/models/Upload.d.ts new file mode 100644 index 00000000..4d4518bd --- /dev/null +++ b/typescript/dist/esm/models/Upload.d.ts @@ -0,0 +1,32 @@ +/** + * Geo Engine API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface Upload + */ +export interface Upload { + /** + * + * @type {string} + * @memberof Upload + */ + upload: string; +} +/** + * Check if a given object implements the Upload interface. + */ +export declare function instanceOfUpload(value: object): value is Upload; +export declare function UploadFromJSON(json: any): Upload; +export declare function UploadFromJSONTyped(json: any, ignoreDiscriminator: boolean): Upload; +export declare function UploadToJSON(json: any): Upload; +export declare function UploadToJSONTyped(value?: Upload | null, ignoreDiscriminator?: boolean): any; diff --git a/typescript/dist/esm/models/DataPathOneOf1.js b/typescript/dist/esm/models/Upload.js similarity index 61% rename from typescript/dist/esm/models/DataPathOneOf1.js rename to typescript/dist/esm/models/Upload.js index 749acfb6..e9d00b03 100644 --- a/typescript/dist/esm/models/DataPathOneOf1.js +++ b/typescript/dist/esm/models/Upload.js @@ -12,17 +12,17 @@ * Do not edit the class manually. */ /** - * Check if a given object implements the DataPathOneOf1 interface. + * Check if a given object implements the Upload interface. */ -export function instanceOfDataPathOneOf1(value) { +export function instanceOfUpload(value) { if (!('upload' in value) || value['upload'] === undefined) return false; return true; } -export function DataPathOneOf1FromJSON(json) { - return DataPathOneOf1FromJSONTyped(json, false); +export function UploadFromJSON(json) { + return UploadFromJSONTyped(json, false); } -export function DataPathOneOf1FromJSONTyped(json, ignoreDiscriminator) { +export function UploadFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } @@ -30,10 +30,10 @@ export function DataPathOneOf1FromJSONTyped(json, ignoreDiscriminator) { 'upload': json['upload'], }; } -export function DataPathOneOf1ToJSON(json) { - return DataPathOneOf1ToJSONTyped(json, false); +export function UploadToJSON(json) { + return UploadToJSONTyped(json, false); } -export function DataPathOneOf1ToJSONTyped(value, ignoreDiscriminator = false) { +export function UploadToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } diff --git a/typescript/dist/esm/models/Values.d.ts b/typescript/dist/esm/models/Values.d.ts new file mode 100644 index 00000000..51178f33 --- /dev/null +++ b/typescript/dist/esm/models/Values.d.ts @@ -0,0 +1,33 @@ +/** + * Geo Engine API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ValuesValues } from './ValuesValues'; +/** + * + * @export + * @interface Values + */ +export interface Values { + /** + * + * @type {ValuesValues} + * @memberof Values + */ + values: ValuesValues; +} +/** + * Check if a given object implements the Values interface. + */ +export declare function instanceOfValues(value: object): value is Values; +export declare function ValuesFromJSON(json: any): Values; +export declare function ValuesFromJSONTyped(json: any, ignoreDiscriminator: boolean): Values; +export declare function ValuesToJSON(json: any): Values; +export declare function ValuesToJSONTyped(value?: Values | null, ignoreDiscriminator?: boolean): any; diff --git a/typescript/dist/esm/models/Values.js b/typescript/dist/esm/models/Values.js new file mode 100644 index 00000000..69593c18 --- /dev/null +++ b/typescript/dist/esm/models/Values.js @@ -0,0 +1,44 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { ValuesValuesFromJSON, ValuesValuesToJSON, } from './ValuesValues'; +/** + * Check if a given object implements the Values interface. + */ +export function instanceOfValues(value) { + if (!('values' in value) || value['values'] === undefined) + return false; + return true; +} +export function ValuesFromJSON(json) { + return ValuesFromJSONTyped(json, false); +} +export function ValuesFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'values': ValuesValuesFromJSON(json['values']), + }; +} +export function ValuesToJSON(json) { + return ValuesToJSONTyped(json, false); +} +export function ValuesToJSONTyped(value, ignoreDiscriminator = false) { + if (value == null) { + return value; + } + return { + 'values': ValuesValuesToJSON(value['values']), + }; +} diff --git a/typescript/dist/esm/models/ValuesValues.d.ts b/typescript/dist/esm/models/ValuesValues.d.ts new file mode 100644 index 00000000..e4493a48 --- /dev/null +++ b/typescript/dist/esm/models/ValuesValues.d.ts @@ -0,0 +1,38 @@ +/** + * Geo Engine API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface ValuesValues + */ +export interface ValuesValues { + /** + * + * @type {number} + * @memberof ValuesValues + */ + max: number; + /** + * + * @type {number} + * @memberof ValuesValues + */ + min: number; +} +/** + * Check if a given object implements the ValuesValues interface. + */ +export declare function instanceOfValuesValues(value: object): value is ValuesValues; +export declare function ValuesValuesFromJSON(json: any): ValuesValues; +export declare function ValuesValuesFromJSONTyped(json: any, ignoreDiscriminator: boolean): ValuesValues; +export declare function ValuesValuesToJSON(json: any): ValuesValues; +export declare function ValuesValuesToJSONTyped(value?: ValuesValues | null, ignoreDiscriminator?: boolean): any; diff --git a/typescript/dist/esm/models/HistogramBoundsOneOf1Values.js b/typescript/dist/esm/models/ValuesValues.js similarity index 60% rename from typescript/dist/esm/models/HistogramBoundsOneOf1Values.js rename to typescript/dist/esm/models/ValuesValues.js index a47857d7..74da99c0 100644 --- a/typescript/dist/esm/models/HistogramBoundsOneOf1Values.js +++ b/typescript/dist/esm/models/ValuesValues.js @@ -12,19 +12,19 @@ * Do not edit the class manually. */ /** - * Check if a given object implements the HistogramBoundsOneOf1Values interface. + * Check if a given object implements the ValuesValues interface. */ -export function instanceOfHistogramBoundsOneOf1Values(value) { +export function instanceOfValuesValues(value) { if (!('max' in value) || value['max'] === undefined) return false; if (!('min' in value) || value['min'] === undefined) return false; return true; } -export function HistogramBoundsOneOf1ValuesFromJSON(json) { - return HistogramBoundsOneOf1ValuesFromJSONTyped(json, false); +export function ValuesValuesFromJSON(json) { + return ValuesValuesFromJSONTyped(json, false); } -export function HistogramBoundsOneOf1ValuesFromJSONTyped(json, ignoreDiscriminator) { +export function ValuesValuesFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } @@ -33,10 +33,10 @@ export function HistogramBoundsOneOf1ValuesFromJSONTyped(json, ignoreDiscriminat 'min': json['min'], }; } -export function HistogramBoundsOneOf1ValuesToJSON(json) { - return HistogramBoundsOneOf1ValuesToJSONTyped(json, false); +export function ValuesValuesToJSON(json) { + return ValuesValuesToJSONTyped(json, false); } -export function HistogramBoundsOneOf1ValuesToJSONTyped(value, ignoreDiscriminator = false) { +export function ValuesValuesToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } diff --git a/typescript/dist/esm/models/VectorOperator.d.ts b/typescript/dist/esm/models/VectorOperator.d.ts index 3bf76dad..4234cd25 100644 --- a/typescript/dist/esm/models/VectorOperator.d.ts +++ b/typescript/dist/esm/models/VectorOperator.d.ts @@ -11,6 +11,7 @@ */ import type { MockPointSource } from './MockPointSource'; import type { RasterVectorJoin } from './RasterVectorJoin'; +import type { Reprojection } from './Reprojection'; /** * @type VectorOperator * An operator that produces vector data. @@ -20,7 +21,9 @@ export type VectorOperator = { type: 'MockPointSource'; } & MockPointSource | { type: 'RasterVectorJoin'; -} & RasterVectorJoin; +} & RasterVectorJoin | { + type: 'Reprojection'; +} & Reprojection; export declare function VectorOperatorFromJSON(json: any): VectorOperator; export declare function VectorOperatorFromJSONTyped(json: any, ignoreDiscriminator: boolean): VectorOperator; export declare function VectorOperatorToJSON(json: any): any; diff --git a/typescript/dist/esm/models/VectorOperator.js b/typescript/dist/esm/models/VectorOperator.js index a479d5d1..9b5cf098 100644 --- a/typescript/dist/esm/models/VectorOperator.js +++ b/typescript/dist/esm/models/VectorOperator.js @@ -13,6 +13,7 @@ */ import { instanceOfMockPointSource, MockPointSourceFromJSONTyped, MockPointSourceToJSON, } from './MockPointSource'; import { instanceOfRasterVectorJoin, RasterVectorJoinFromJSONTyped, RasterVectorJoinToJSON, } from './RasterVectorJoin'; +import { ReprojectionFromJSONTyped, ReprojectionToJSON, } from './Reprojection'; export function VectorOperatorFromJSON(json) { return VectorOperatorFromJSONTyped(json, false); } @@ -25,6 +26,8 @@ export function VectorOperatorFromJSONTyped(json, ignoreDiscriminator) { return Object.assign({}, MockPointSourceFromJSONTyped(json, true), { type: 'MockPointSource' }); case 'RasterVectorJoin': return Object.assign({}, RasterVectorJoinFromJSONTyped(json, true), { type: 'RasterVectorJoin' }); + case 'Reprojection': + return Object.assign({}, ReprojectionFromJSONTyped(json, true), { type: 'Reprojection' }); default: return json; } @@ -41,6 +44,8 @@ export function VectorOperatorToJSONTyped(value, ignoreDiscriminator = false) { return Object.assign({}, MockPointSourceToJSON(value), { type: 'MockPointSource' }); case 'RasterVectorJoin': return Object.assign({}, RasterVectorJoinToJSON(value), { type: 'RasterVectorJoin' }); + case 'Reprojection': + return Object.assign({}, ReprojectionToJSON(value), { type: 'Reprojection' }); default: return value; } diff --git a/typescript/dist/esm/models/Volume1.d.ts b/typescript/dist/esm/models/Volume1.d.ts new file mode 100644 index 00000000..626c0f1c --- /dev/null +++ b/typescript/dist/esm/models/Volume1.d.ts @@ -0,0 +1,32 @@ +/** + * Geo Engine API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface Volume1 + */ +export interface Volume1 { + /** + * + * @type {string} + * @memberof Volume1 + */ + volume: string; +} +/** + * Check if a given object implements the Volume1 interface. + */ +export declare function instanceOfVolume1(value: object): value is Volume1; +export declare function Volume1FromJSON(json: any): Volume1; +export declare function Volume1FromJSONTyped(json: any, ignoreDiscriminator: boolean): Volume1; +export declare function Volume1ToJSON(json: any): Volume1; +export declare function Volume1ToJSONTyped(value?: Volume1 | null, ignoreDiscriminator?: boolean): any; diff --git a/typescript/dist/esm/models/DataPathOneOf.js b/typescript/dist/esm/models/Volume1.js similarity index 62% rename from typescript/dist/esm/models/DataPathOneOf.js rename to typescript/dist/esm/models/Volume1.js index 654d38ea..04861818 100644 --- a/typescript/dist/esm/models/DataPathOneOf.js +++ b/typescript/dist/esm/models/Volume1.js @@ -12,17 +12,17 @@ * Do not edit the class manually. */ /** - * Check if a given object implements the DataPathOneOf interface. + * Check if a given object implements the Volume1 interface. */ -export function instanceOfDataPathOneOf(value) { +export function instanceOfVolume1(value) { if (!('volume' in value) || value['volume'] === undefined) return false; return true; } -export function DataPathOneOfFromJSON(json) { - return DataPathOneOfFromJSONTyped(json, false); +export function Volume1FromJSON(json) { + return Volume1FromJSONTyped(json, false); } -export function DataPathOneOfFromJSONTyped(json, ignoreDiscriminator) { +export function Volume1FromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } @@ -30,10 +30,10 @@ export function DataPathOneOfFromJSONTyped(json, ignoreDiscriminator) { 'volume': json['volume'], }; } -export function DataPathOneOfToJSON(json) { - return DataPathOneOfToJSONTyped(json, false); +export function Volume1ToJSON(json) { + return Volume1ToJSONTyped(json, false); } -export function DataPathOneOfToJSONTyped(value, ignoreDiscriminator = false) { +export function Volume1ToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } diff --git a/typescript/dist/esm/models/index.d.ts b/typescript/dist/esm/models/index.d.ts index 7733eadb..61609ffc 100644 --- a/typescript/dist/esm/models/index.d.ts +++ b/typescript/dist/esm/models/index.d.ts @@ -2,11 +2,15 @@ export * from './AddDataset'; export * from './AddLayer'; export * from './AddLayerCollection'; export * from './AddRole'; +export * from './Aggregation'; export * from './ArunaDataProviderDefinition'; export * from './AuthCodeRequestURL'; export * from './AuthCodeResponse'; export * from './AutoCreateDataset'; export * from './AxisOrder'; +export * from './BandFilter'; +export * from './BandFilterParameters'; +export * from './BandsByNameOrIndex'; export * from './BoundingBox2D'; export * from './Breakpoint'; export * from './ClassificationMeasurement'; @@ -19,13 +23,13 @@ export * from './ComputationQuota'; export * from './ContinuousMeasurement'; export * from './Coordinate2D'; export * from './CopernicusDataspaceDataProviderDefinition'; +export * from './CountAggregation'; export * from './CreateDataset'; export * from './CreateProject'; export * from './CsvHeader'; +export * from './Data1'; export * from './DataId'; export * from './DataPath'; -export * from './DataPathOneOf'; -export * from './DataPathOneOf1'; export * from './DataProviderResource'; export * from './DataUsage'; export * from './DataUsageSummary'; @@ -38,6 +42,7 @@ export * from './DatasetListing'; export * from './DatasetNameResponse'; export * from './DatasetResource'; export * from './Default'; +export * from './DeriveOutRasterSpecsSource'; export * from './DerivedColor'; export * from './DerivedNumber'; export * from './EbvPortalDataProviderDefinition'; @@ -50,8 +55,10 @@ export * from './ExternalDataId'; export * from './FeatureAggregationMethod'; export * from './FeatureDataType'; export * from './FileNotFoundHandling'; +export * from './FirstAggregation'; export * from './FormatSpecifics'; export * from './FormatSpecificsCsv'; +export * from './Fraction'; export * from './GbifDataProviderDefinition'; export * from './GdalDatasetParameters'; export * from './GdalLoadingInfoTemporalSlice'; @@ -74,15 +81,16 @@ export * from './GridBoundingBox2D'; export * from './GridIdx2D'; export * from './Histogram'; export * from './HistogramBounds'; -export * from './HistogramBoundsOneOf'; -export * from './HistogramBoundsOneOf1'; -export * from './HistogramBoundsOneOf1Values'; export * from './HistogramBuckets'; -export * from './HistogramBucketsOneOf'; -export * from './HistogramBucketsOneOf1'; export * from './HistogramParameters'; export * from './IdResponse'; export * from './InternalDataId'; +export * from './Interpolation'; +export * from './InterpolationMethod'; +export * from './InterpolationParameters'; +export * from './InterpolationResolution'; +export * from './Irregular'; +export * from './LastAggregation'; export * from './Layer'; export * from './LayerCollection'; export * from './LayerCollectionListing'; @@ -96,9 +104,12 @@ export * from './LegacyTypedOperatorOperator'; export * from './LineSymbology'; export * from './LinearGradient'; export * from './LogarithmicGradient'; +export * from './MaxAggregation'; +export * from './MeanAggregation'; export * from './Measurement'; export * from './MetaDataDefinition'; export * from './MetaDataSuggestion'; +export * from './MinAggregation'; export * from './MlModel'; export * from './MlModelInputNoDataHandling'; export * from './MlModelInputNoDataHandlingVariant'; @@ -112,14 +123,21 @@ export * from './MockDatasetDataSourceLoadingInfo'; export * from './MockMetaData'; export * from './MockPointSource'; export * from './MockPointSourceParameters'; +export * from './MultiBandGdalSource'; export * from './MultiBandRasterColorizer'; export * from './MultiLineString'; +export * from './MultiLineString1'; export * from './MultiPoint'; +export * from './MultiPoint1'; export * from './MultiPolygon'; +export * from './MultiPolygon1'; export * from './MultipleRasterOrSingleVectorOperator'; export * from './MultipleRasterOrSingleVectorSource'; +export * from './MultipleRasterSources'; export * from './Names'; export * from './NetCdfCfDataProviderDefinition'; +export * from './NoGeometry1'; +export * from './Number'; export * from './NumberParam'; export * from './OgrMetaData'; export * from './OgrSourceColumnSpec'; @@ -142,6 +160,7 @@ export * from './OperatorQuota'; export * from './OrderBy'; export * from './PaletteColorizer'; export * from './PangaeaDataProviderDefinition'; +export * from './PercentileEstimateAggregation'; export * from './Permission'; export * from './PermissionListing'; export * from './PermissionRequest'; @@ -172,12 +191,22 @@ export * from './RasterOperator'; export * from './RasterPropertiesEntryType'; export * from './RasterPropertiesKey'; export * from './RasterResultDescriptor'; +export * from './RasterStacker'; +export * from './RasterStackerParameters'; export * from './RasterStreamWebsocketResultType'; export * from './RasterSymbology'; export * from './RasterToDatasetQueryRectangle'; +export * from './RasterTypeConversion'; +export * from './RasterTypeConversionParameters'; export * from './RasterVectorJoin'; export * from './RasterVectorJoinParameters'; +export * from './Regular'; export * from './RegularTimeDimension'; +export * from './Rename'; +export * from './RenameBands'; +export * from './Reprojection'; +export * from './ReprojectionParameters'; +export * from './Resolution'; export * from './Resource'; export * from './Role'; export * from './RoleDescription'; @@ -201,6 +230,7 @@ export * from './SpatialGridDescriptor'; export * from './SpatialGridDescriptorState'; export * from './SpatialPartition2D'; export * from './SpatialReferenceSpecification'; +export * from './SquareRootChoiceRule'; export * from './StacApiRetries'; export * from './StacQueryBuffer'; export * from './StaticColor'; @@ -210,6 +240,7 @@ export * from './StatisticsParameters'; export * from './StrokeParam'; export * from './Suffix'; export * from './SuggestMetaData'; +export * from './SumAggregation'; export * from './Symbology'; export * from './TaskFilter'; export * from './TaskResponse'; @@ -220,21 +251,17 @@ export * from './TaskStatusFailed'; export * from './TaskStatusRunning'; export * from './TaskStatusWithId'; export * from './TemporalAggregationMethod'; +export * from './TemporalRasterAggregation'; +export * from './TemporalRasterAggregationParameters'; export * from './TextSymbology'; export * from './TimeDescriptor'; export * from './TimeDimension'; -export * from './TimeDimensionOneOf'; -export * from './TimeDimensionOneOf1'; export * from './TimeGranularity'; export * from './TimeInterval'; export * from './TimeReference'; export * from './TimeStep'; export * from './TypedDataProviderDefinition'; export * from './TypedGeometry'; -export * from './TypedGeometryOneOf'; -export * from './TypedGeometryOneOf1'; -export * from './TypedGeometryOneOf2'; -export * from './TypedGeometryOneOf3'; export * from './TypedOperator'; export * from './TypedPlotOperator'; export * from './TypedPlotResultDescriptor'; @@ -250,6 +277,7 @@ export * from './UpdateLayer'; export * from './UpdateLayerCollection'; export * from './UpdateProject'; export * from './UpdateQuota'; +export * from './Upload'; export * from './UploadFileLayersResponse'; export * from './UploadFilesResponse'; export * from './UsageSummaryGranularity'; @@ -257,12 +285,15 @@ export * from './UserCredentials'; export * from './UserInfo'; export * from './UserRegistration'; export * from './UserSession'; +export * from './Values'; +export * from './ValuesValues'; export * from './VecUpdate'; export * from './VectorColumnInfo'; export * from './VectorDataType'; export * from './VectorOperator'; export * from './VectorResultDescriptor'; export * from './Volume'; +export * from './Volume1'; export * from './VolumeFileLayersResponse'; export * from './WcsRequest'; export * from './WcsService'; diff --git a/typescript/dist/esm/models/index.js b/typescript/dist/esm/models/index.js index 1acc6f78..829e94e3 100644 --- a/typescript/dist/esm/models/index.js +++ b/typescript/dist/esm/models/index.js @@ -4,11 +4,15 @@ export * from './AddDataset'; export * from './AddLayer'; export * from './AddLayerCollection'; export * from './AddRole'; +export * from './Aggregation'; export * from './ArunaDataProviderDefinition'; export * from './AuthCodeRequestURL'; export * from './AuthCodeResponse'; export * from './AutoCreateDataset'; export * from './AxisOrder'; +export * from './BandFilter'; +export * from './BandFilterParameters'; +export * from './BandsByNameOrIndex'; export * from './BoundingBox2D'; export * from './Breakpoint'; export * from './ClassificationMeasurement'; @@ -21,13 +25,13 @@ export * from './ComputationQuota'; export * from './ContinuousMeasurement'; export * from './Coordinate2D'; export * from './CopernicusDataspaceDataProviderDefinition'; +export * from './CountAggregation'; export * from './CreateDataset'; export * from './CreateProject'; export * from './CsvHeader'; +export * from './Data1'; export * from './DataId'; export * from './DataPath'; -export * from './DataPathOneOf'; -export * from './DataPathOneOf1'; export * from './DataProviderResource'; export * from './DataUsage'; export * from './DataUsageSummary'; @@ -40,6 +44,7 @@ export * from './DatasetListing'; export * from './DatasetNameResponse'; export * from './DatasetResource'; export * from './Default'; +export * from './DeriveOutRasterSpecsSource'; export * from './DerivedColor'; export * from './DerivedNumber'; export * from './EbvPortalDataProviderDefinition'; @@ -52,8 +57,10 @@ export * from './ExternalDataId'; export * from './FeatureAggregationMethod'; export * from './FeatureDataType'; export * from './FileNotFoundHandling'; +export * from './FirstAggregation'; export * from './FormatSpecifics'; export * from './FormatSpecificsCsv'; +export * from './Fraction'; export * from './GbifDataProviderDefinition'; export * from './GdalDatasetParameters'; export * from './GdalLoadingInfoTemporalSlice'; @@ -76,15 +83,16 @@ export * from './GridBoundingBox2D'; export * from './GridIdx2D'; export * from './Histogram'; export * from './HistogramBounds'; -export * from './HistogramBoundsOneOf'; -export * from './HistogramBoundsOneOf1'; -export * from './HistogramBoundsOneOf1Values'; export * from './HistogramBuckets'; -export * from './HistogramBucketsOneOf'; -export * from './HistogramBucketsOneOf1'; export * from './HistogramParameters'; export * from './IdResponse'; export * from './InternalDataId'; +export * from './Interpolation'; +export * from './InterpolationMethod'; +export * from './InterpolationParameters'; +export * from './InterpolationResolution'; +export * from './Irregular'; +export * from './LastAggregation'; export * from './Layer'; export * from './LayerCollection'; export * from './LayerCollectionListing'; @@ -98,9 +106,12 @@ export * from './LegacyTypedOperatorOperator'; export * from './LineSymbology'; export * from './LinearGradient'; export * from './LogarithmicGradient'; +export * from './MaxAggregation'; +export * from './MeanAggregation'; export * from './Measurement'; export * from './MetaDataDefinition'; export * from './MetaDataSuggestion'; +export * from './MinAggregation'; export * from './MlModel'; export * from './MlModelInputNoDataHandling'; export * from './MlModelInputNoDataHandlingVariant'; @@ -114,14 +125,21 @@ export * from './MockDatasetDataSourceLoadingInfo'; export * from './MockMetaData'; export * from './MockPointSource'; export * from './MockPointSourceParameters'; +export * from './MultiBandGdalSource'; export * from './MultiBandRasterColorizer'; export * from './MultiLineString'; +export * from './MultiLineString1'; export * from './MultiPoint'; +export * from './MultiPoint1'; export * from './MultiPolygon'; +export * from './MultiPolygon1'; export * from './MultipleRasterOrSingleVectorOperator'; export * from './MultipleRasterOrSingleVectorSource'; +export * from './MultipleRasterSources'; export * from './Names'; export * from './NetCdfCfDataProviderDefinition'; +export * from './NoGeometry1'; +export * from './Number'; export * from './NumberParam'; export * from './OgrMetaData'; export * from './OgrSourceColumnSpec'; @@ -144,6 +162,7 @@ export * from './OperatorQuota'; export * from './OrderBy'; export * from './PaletteColorizer'; export * from './PangaeaDataProviderDefinition'; +export * from './PercentileEstimateAggregation'; export * from './Permission'; export * from './PermissionListing'; export * from './PermissionRequest'; @@ -174,12 +193,22 @@ export * from './RasterOperator'; export * from './RasterPropertiesEntryType'; export * from './RasterPropertiesKey'; export * from './RasterResultDescriptor'; +export * from './RasterStacker'; +export * from './RasterStackerParameters'; export * from './RasterStreamWebsocketResultType'; export * from './RasterSymbology'; export * from './RasterToDatasetQueryRectangle'; +export * from './RasterTypeConversion'; +export * from './RasterTypeConversionParameters'; export * from './RasterVectorJoin'; export * from './RasterVectorJoinParameters'; +export * from './Regular'; export * from './RegularTimeDimension'; +export * from './Rename'; +export * from './RenameBands'; +export * from './Reprojection'; +export * from './ReprojectionParameters'; +export * from './Resolution'; export * from './Resource'; export * from './Role'; export * from './RoleDescription'; @@ -203,6 +232,7 @@ export * from './SpatialGridDescriptor'; export * from './SpatialGridDescriptorState'; export * from './SpatialPartition2D'; export * from './SpatialReferenceSpecification'; +export * from './SquareRootChoiceRule'; export * from './StacApiRetries'; export * from './StacQueryBuffer'; export * from './StaticColor'; @@ -212,6 +242,7 @@ export * from './StatisticsParameters'; export * from './StrokeParam'; export * from './Suffix'; export * from './SuggestMetaData'; +export * from './SumAggregation'; export * from './Symbology'; export * from './TaskFilter'; export * from './TaskResponse'; @@ -222,21 +253,17 @@ export * from './TaskStatusFailed'; export * from './TaskStatusRunning'; export * from './TaskStatusWithId'; export * from './TemporalAggregationMethod'; +export * from './TemporalRasterAggregation'; +export * from './TemporalRasterAggregationParameters'; export * from './TextSymbology'; export * from './TimeDescriptor'; export * from './TimeDimension'; -export * from './TimeDimensionOneOf'; -export * from './TimeDimensionOneOf1'; export * from './TimeGranularity'; export * from './TimeInterval'; export * from './TimeReference'; export * from './TimeStep'; export * from './TypedDataProviderDefinition'; export * from './TypedGeometry'; -export * from './TypedGeometryOneOf'; -export * from './TypedGeometryOneOf1'; -export * from './TypedGeometryOneOf2'; -export * from './TypedGeometryOneOf3'; export * from './TypedOperator'; export * from './TypedPlotOperator'; export * from './TypedPlotResultDescriptor'; @@ -252,6 +279,7 @@ export * from './UpdateLayer'; export * from './UpdateLayerCollection'; export * from './UpdateProject'; export * from './UpdateQuota'; +export * from './Upload'; export * from './UploadFileLayersResponse'; export * from './UploadFilesResponse'; export * from './UsageSummaryGranularity'; @@ -259,12 +287,15 @@ export * from './UserCredentials'; export * from './UserInfo'; export * from './UserRegistration'; export * from './UserSession'; +export * from './Values'; +export * from './ValuesValues'; export * from './VecUpdate'; export * from './VectorColumnInfo'; export * from './VectorDataType'; export * from './VectorOperator'; export * from './VectorResultDescriptor'; export * from './Volume'; +export * from './Volume1'; export * from './VolumeFileLayersResponse'; export * from './WcsRequest'; export * from './WcsService'; diff --git a/typescript/dist/models/Aggregation.d.ts b/typescript/dist/models/Aggregation.d.ts new file mode 100644 index 00000000..ae560672 --- /dev/null +++ b/typescript/dist/models/Aggregation.d.ts @@ -0,0 +1,32 @@ +/** + * Geo Engine API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { CountAggregation } from './CountAggregation'; +import type { FirstAggregation } from './FirstAggregation'; +import type { LastAggregation } from './LastAggregation'; +import type { MaxAggregation } from './MaxAggregation'; +import type { MeanAggregation } from './MeanAggregation'; +import type { MinAggregation } from './MinAggregation'; +import type { PercentileEstimateAggregation } from './PercentileEstimateAggregation'; +import type { SumAggregation } from './SumAggregation'; +/** + * @type Aggregation + * Aggregation methods for `TemporalRasterAggregation`. + * + * Available variants are `min`, `max`, `first`, `last`, `mean`, `sum`, `count`, and `percentileEstimate`. + * Encountering NO DATA makes the aggregation result NO DATA unless `ignoreNoData` is `true`. + * @export + */ +export type Aggregation = CountAggregation | FirstAggregation | LastAggregation | MaxAggregation | MeanAggregation | MinAggregation | PercentileEstimateAggregation | SumAggregation; +export declare function AggregationFromJSON(json: any): Aggregation; +export declare function AggregationFromJSONTyped(json: any, ignoreDiscriminator: boolean): Aggregation; +export declare function AggregationToJSON(json: any): any; +export declare function AggregationToJSONTyped(value?: Aggregation | null, ignoreDiscriminator?: boolean): any; diff --git a/typescript/dist/models/Aggregation.js b/typescript/dist/models/Aggregation.js new file mode 100644 index 00000000..67adf859 --- /dev/null +++ b/typescript/dist/models/Aggregation.js @@ -0,0 +1,99 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.AggregationFromJSON = AggregationFromJSON; +exports.AggregationFromJSONTyped = AggregationFromJSONTyped; +exports.AggregationToJSON = AggregationToJSON; +exports.AggregationToJSONTyped = AggregationToJSONTyped; +const CountAggregation_1 = require("./CountAggregation"); +const FirstAggregation_1 = require("./FirstAggregation"); +const LastAggregation_1 = require("./LastAggregation"); +const MaxAggregation_1 = require("./MaxAggregation"); +const MeanAggregation_1 = require("./MeanAggregation"); +const MinAggregation_1 = require("./MinAggregation"); +const PercentileEstimateAggregation_1 = require("./PercentileEstimateAggregation"); +const SumAggregation_1 = require("./SumAggregation"); +function AggregationFromJSON(json) { + return AggregationFromJSONTyped(json, false); +} +function AggregationFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + if (typeof json !== 'object') { + return json; + } + if ((0, CountAggregation_1.instanceOfCountAggregation)(json)) { + return (0, CountAggregation_1.CountAggregationFromJSONTyped)(json, true); + } + if ((0, FirstAggregation_1.instanceOfFirstAggregation)(json)) { + return (0, FirstAggregation_1.FirstAggregationFromJSONTyped)(json, true); + } + if ((0, LastAggregation_1.instanceOfLastAggregation)(json)) { + return (0, LastAggregation_1.LastAggregationFromJSONTyped)(json, true); + } + if ((0, MaxAggregation_1.instanceOfMaxAggregation)(json)) { + return (0, MaxAggregation_1.MaxAggregationFromJSONTyped)(json, true); + } + if ((0, MeanAggregation_1.instanceOfMeanAggregation)(json)) { + return (0, MeanAggregation_1.MeanAggregationFromJSONTyped)(json, true); + } + if ((0, MinAggregation_1.instanceOfMinAggregation)(json)) { + return (0, MinAggregation_1.MinAggregationFromJSONTyped)(json, true); + } + if ((0, PercentileEstimateAggregation_1.instanceOfPercentileEstimateAggregation)(json)) { + return (0, PercentileEstimateAggregation_1.PercentileEstimateAggregationFromJSONTyped)(json, true); + } + if ((0, SumAggregation_1.instanceOfSumAggregation)(json)) { + return (0, SumAggregation_1.SumAggregationFromJSONTyped)(json, true); + } + return {}; +} +function AggregationToJSON(json) { + return AggregationToJSONTyped(json, false); +} +function AggregationToJSONTyped(value, ignoreDiscriminator = false) { + if (value == null) { + return value; + } + if (typeof value !== 'object') { + return value; + } + if ((0, CountAggregation_1.instanceOfCountAggregation)(value)) { + return (0, CountAggregation_1.CountAggregationToJSON)(value); + } + if ((0, FirstAggregation_1.instanceOfFirstAggregation)(value)) { + return (0, FirstAggregation_1.FirstAggregationToJSON)(value); + } + if ((0, LastAggregation_1.instanceOfLastAggregation)(value)) { + return (0, LastAggregation_1.LastAggregationToJSON)(value); + } + if ((0, MaxAggregation_1.instanceOfMaxAggregation)(value)) { + return (0, MaxAggregation_1.MaxAggregationToJSON)(value); + } + if ((0, MeanAggregation_1.instanceOfMeanAggregation)(value)) { + return (0, MeanAggregation_1.MeanAggregationToJSON)(value); + } + if ((0, MinAggregation_1.instanceOfMinAggregation)(value)) { + return (0, MinAggregation_1.MinAggregationToJSON)(value); + } + if ((0, PercentileEstimateAggregation_1.instanceOfPercentileEstimateAggregation)(value)) { + return (0, PercentileEstimateAggregation_1.PercentileEstimateAggregationToJSON)(value); + } + if ((0, SumAggregation_1.instanceOfSumAggregation)(value)) { + return (0, SumAggregation_1.SumAggregationToJSON)(value); + } + return {}; +} diff --git a/typescript/dist/models/BandFilter.d.ts b/typescript/dist/models/BandFilter.d.ts new file mode 100644 index 00000000..4efa461b --- /dev/null +++ b/typescript/dist/models/BandFilter.d.ts @@ -0,0 +1,64 @@ +/** + * Geo Engine API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { SingleRasterSource } from './SingleRasterSource'; +import type { BandFilterParameters } from './BandFilterParameters'; +/** + * The `BandFilter` operator selects bands from a raster source by band names or band indices. + * + * It removes all non-selected bands while preserving the original order of remaining bands. + * + * ## Inputs + * + * The `BandFilter` operator expects exactly one _raster_ input. + * + * ## Errors + * + * The operator returns an error if no bands are selected or if selected band names/indices + * cannot be mapped to existing input bands. + * @export + * @interface BandFilter + */ +export interface BandFilter { + /** + * + * @type {BandFilterParameters} + * @memberof BandFilter + */ + params: BandFilterParameters; + /** + * + * @type {SingleRasterSource} + * @memberof BandFilter + */ + sources: SingleRasterSource; + /** + * + * @type {BandFilterTypeEnum} + * @memberof BandFilter + */ + type: BandFilterTypeEnum; +} +/** + * @export + */ +export declare const BandFilterTypeEnum: { + readonly BandFilter: "BandFilter"; +}; +export type BandFilterTypeEnum = typeof BandFilterTypeEnum[keyof typeof BandFilterTypeEnum]; +/** + * Check if a given object implements the BandFilter interface. + */ +export declare function instanceOfBandFilter(value: object): value is BandFilter; +export declare function BandFilterFromJSON(json: any): BandFilter; +export declare function BandFilterFromJSONTyped(json: any, ignoreDiscriminator: boolean): BandFilter; +export declare function BandFilterToJSON(json: any): BandFilter; +export declare function BandFilterToJSONTyped(value?: BandFilter | null, ignoreDiscriminator?: boolean): any; diff --git a/typescript/dist/models/BandFilter.js b/typescript/dist/models/BandFilter.js new file mode 100644 index 00000000..1215cf79 --- /dev/null +++ b/typescript/dist/models/BandFilter.js @@ -0,0 +1,67 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.BandFilterTypeEnum = void 0; +exports.instanceOfBandFilter = instanceOfBandFilter; +exports.BandFilterFromJSON = BandFilterFromJSON; +exports.BandFilterFromJSONTyped = BandFilterFromJSONTyped; +exports.BandFilterToJSON = BandFilterToJSON; +exports.BandFilterToJSONTyped = BandFilterToJSONTyped; +const SingleRasterSource_1 = require("./SingleRasterSource"); +const BandFilterParameters_1 = require("./BandFilterParameters"); +/** + * @export + */ +exports.BandFilterTypeEnum = { + BandFilter: 'BandFilter' +}; +/** + * Check if a given object implements the BandFilter interface. + */ +function instanceOfBandFilter(value) { + if (!('params' in value) || value['params'] === undefined) + return false; + if (!('sources' in value) || value['sources'] === undefined) + return false; + if (!('type' in value) || value['type'] === undefined) + return false; + return true; +} +function BandFilterFromJSON(json) { + return BandFilterFromJSONTyped(json, false); +} +function BandFilterFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'params': (0, BandFilterParameters_1.BandFilterParametersFromJSON)(json['params']), + 'sources': (0, SingleRasterSource_1.SingleRasterSourceFromJSON)(json['sources']), + 'type': json['type'], + }; +} +function BandFilterToJSON(json) { + return BandFilterToJSONTyped(json, false); +} +function BandFilterToJSONTyped(value, ignoreDiscriminator = false) { + if (value == null) { + return value; + } + return { + 'params': (0, BandFilterParameters_1.BandFilterParametersToJSON)(value['params']), + 'sources': (0, SingleRasterSource_1.SingleRasterSourceToJSON)(value['sources']), + 'type': value['type'], + }; +} diff --git a/typescript/dist/models/BandFilterParameters.d.ts b/typescript/dist/models/BandFilterParameters.d.ts new file mode 100644 index 00000000..92f5fd6b --- /dev/null +++ b/typescript/dist/models/BandFilterParameters.d.ts @@ -0,0 +1,33 @@ +/** + * Geo Engine API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { BandsByNameOrIndex } from './BandsByNameOrIndex'; +/** + * Parameters for the `BandFilter` operator. + * @export + * @interface BandFilterParameters + */ +export interface BandFilterParameters { + /** + * Selected bands either by names (e.g. `["nir", "red"]`) or indices (e.g. `[0, 2]`). + * @type {BandsByNameOrIndex} + * @memberof BandFilterParameters + */ + bands: BandsByNameOrIndex; +} +/** + * Check if a given object implements the BandFilterParameters interface. + */ +export declare function instanceOfBandFilterParameters(value: object): value is BandFilterParameters; +export declare function BandFilterParametersFromJSON(json: any): BandFilterParameters; +export declare function BandFilterParametersFromJSONTyped(json: any, ignoreDiscriminator: boolean): BandFilterParameters; +export declare function BandFilterParametersToJSON(json: any): BandFilterParameters; +export declare function BandFilterParametersToJSONTyped(value?: BandFilterParameters | null, ignoreDiscriminator?: boolean): any; diff --git a/typescript/dist/models/BandFilterParameters.js b/typescript/dist/models/BandFilterParameters.js new file mode 100644 index 00000000..2396e0ed --- /dev/null +++ b/typescript/dist/models/BandFilterParameters.js @@ -0,0 +1,51 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfBandFilterParameters = instanceOfBandFilterParameters; +exports.BandFilterParametersFromJSON = BandFilterParametersFromJSON; +exports.BandFilterParametersFromJSONTyped = BandFilterParametersFromJSONTyped; +exports.BandFilterParametersToJSON = BandFilterParametersToJSON; +exports.BandFilterParametersToJSONTyped = BandFilterParametersToJSONTyped; +const BandsByNameOrIndex_1 = require("./BandsByNameOrIndex"); +/** + * Check if a given object implements the BandFilterParameters interface. + */ +function instanceOfBandFilterParameters(value) { + if (!('bands' in value) || value['bands'] === undefined) + return false; + return true; +} +function BandFilterParametersFromJSON(json) { + return BandFilterParametersFromJSONTyped(json, false); +} +function BandFilterParametersFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'bands': (0, BandsByNameOrIndex_1.BandsByNameOrIndexFromJSON)(json['bands']), + }; +} +function BandFilterParametersToJSON(json) { + return BandFilterParametersToJSONTyped(json, false); +} +function BandFilterParametersToJSONTyped(value, ignoreDiscriminator = false) { + if (value == null) { + return value; + } + return { + 'bands': (0, BandsByNameOrIndex_1.BandsByNameOrIndexToJSON)(value['bands']), + }; +} diff --git a/typescript/dist/models/BandsByNameOrIndex.d.ts b/typescript/dist/models/BandsByNameOrIndex.d.ts new file mode 100644 index 00000000..823a4d78 --- /dev/null +++ b/typescript/dist/models/BandsByNameOrIndex.d.ts @@ -0,0 +1,21 @@ +/** + * Geo Engine API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * @type BandsByNameOrIndex + * + * @export + */ +export type BandsByNameOrIndex = Array | Array; +export declare function BandsByNameOrIndexFromJSON(json: any): BandsByNameOrIndex; +export declare function BandsByNameOrIndexFromJSONTyped(json: any, ignoreDiscriminator: boolean): BandsByNameOrIndex; +export declare function BandsByNameOrIndexToJSON(json: any): any; +export declare function BandsByNameOrIndexToJSONTyped(value?: BandsByNameOrIndex | null, ignoreDiscriminator?: boolean): any; diff --git a/typescript/dist/models/BandsByNameOrIndex.js b/typescript/dist/models/BandsByNameOrIndex.js new file mode 100644 index 00000000..a2320e8b --- /dev/null +++ b/typescript/dist/models/BandsByNameOrIndex.js @@ -0,0 +1,57 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.BandsByNameOrIndexFromJSON = BandsByNameOrIndexFromJSON; +exports.BandsByNameOrIndexFromJSONTyped = BandsByNameOrIndexFromJSONTyped; +exports.BandsByNameOrIndexToJSON = BandsByNameOrIndexToJSON; +exports.BandsByNameOrIndexToJSONTyped = BandsByNameOrIndexToJSONTyped; +function BandsByNameOrIndexFromJSON(json) { + return BandsByNameOrIndexFromJSONTyped(json, false); +} +function BandsByNameOrIndexFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + if (Array.isArray(json)) { + if (json.every(item => typeof item === 'string')) { + return json; + } + } + if (Array.isArray(json)) { + if (json.every(item => typeof item === 'number')) { + return json; + } + } + return {}; +} +function BandsByNameOrIndexToJSON(json) { + return BandsByNameOrIndexToJSONTyped(json, false); +} +function BandsByNameOrIndexToJSONTyped(value, ignoreDiscriminator = false) { + if (value == null) { + return value; + } + if (Array.isArray(value)) { + if (value.every(item => typeof item === 'string')) { + return value; + } + } + if (Array.isArray(value)) { + if (value.every(item => typeof item === 'number')) { + return value; + } + } + return {}; +} diff --git a/typescript/dist/models/CountAggregation.d.ts b/typescript/dist/models/CountAggregation.d.ts new file mode 100644 index 00000000..aeb81771 --- /dev/null +++ b/typescript/dist/models/CountAggregation.d.ts @@ -0,0 +1,45 @@ +/** + * Geo Engine API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface CountAggregation + */ +export interface CountAggregation { + /** + * + * @type {boolean} + * @memberof CountAggregation + */ + ignoreNoData: boolean; + /** + * + * @type {CountAggregationTypeEnum} + * @memberof CountAggregation + */ + type: CountAggregationTypeEnum; +} +/** + * @export + */ +export declare const CountAggregationTypeEnum: { + readonly Count: "count"; +}; +export type CountAggregationTypeEnum = typeof CountAggregationTypeEnum[keyof typeof CountAggregationTypeEnum]; +/** + * Check if a given object implements the CountAggregation interface. + */ +export declare function instanceOfCountAggregation(value: object): value is CountAggregation; +export declare function CountAggregationFromJSON(json: any): CountAggregation; +export declare function CountAggregationFromJSONTyped(json: any, ignoreDiscriminator: boolean): CountAggregation; +export declare function CountAggregationToJSON(json: any): CountAggregation; +export declare function CountAggregationToJSONTyped(value?: CountAggregation | null, ignoreDiscriminator?: boolean): any; diff --git a/typescript/dist/models/CountAggregation.js b/typescript/dist/models/CountAggregation.js new file mode 100644 index 00000000..ca02ac4c --- /dev/null +++ b/typescript/dist/models/CountAggregation.js @@ -0,0 +1,61 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.CountAggregationTypeEnum = void 0; +exports.instanceOfCountAggregation = instanceOfCountAggregation; +exports.CountAggregationFromJSON = CountAggregationFromJSON; +exports.CountAggregationFromJSONTyped = CountAggregationFromJSONTyped; +exports.CountAggregationToJSON = CountAggregationToJSON; +exports.CountAggregationToJSONTyped = CountAggregationToJSONTyped; +/** + * @export + */ +exports.CountAggregationTypeEnum = { + Count: 'count' +}; +/** + * Check if a given object implements the CountAggregation interface. + */ +function instanceOfCountAggregation(value) { + if (!('ignoreNoData' in value) || value['ignoreNoData'] === undefined) + return false; + if (!('type' in value) || value['type'] === undefined) + return false; + return true; +} +function CountAggregationFromJSON(json) { + return CountAggregationFromJSONTyped(json, false); +} +function CountAggregationFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'ignoreNoData': json['ignoreNoData'], + 'type': json['type'], + }; +} +function CountAggregationToJSON(json) { + return CountAggregationToJSONTyped(json, false); +} +function CountAggregationToJSONTyped(value, ignoreDiscriminator = false) { + if (value == null) { + return value; + } + return { + 'ignoreNoData': value['ignoreNoData'], + 'type': value['type'], + }; +} diff --git a/typescript/dist/models/Data1.d.ts b/typescript/dist/models/Data1.d.ts new file mode 100644 index 00000000..29100b96 --- /dev/null +++ b/typescript/dist/models/Data1.d.ts @@ -0,0 +1,32 @@ +/** + * Geo Engine API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface Data1 + */ +export interface Data1 { + /** + * + * @type {any} + * @memberof Data1 + */ + data: any | null; +} +/** + * Check if a given object implements the Data1 interface. + */ +export declare function instanceOfData1(value: object): value is Data1; +export declare function Data1FromJSON(json: any): Data1; +export declare function Data1FromJSONTyped(json: any, ignoreDiscriminator: boolean): Data1; +export declare function Data1ToJSON(json: any): Data1; +export declare function Data1ToJSONTyped(value?: Data1 | null, ignoreDiscriminator?: boolean): any; diff --git a/typescript/dist/models/Data1.js b/typescript/dist/models/Data1.js new file mode 100644 index 00000000..98d2f4cf --- /dev/null +++ b/typescript/dist/models/Data1.js @@ -0,0 +1,50 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfData1 = instanceOfData1; +exports.Data1FromJSON = Data1FromJSON; +exports.Data1FromJSONTyped = Data1FromJSONTyped; +exports.Data1ToJSON = Data1ToJSON; +exports.Data1ToJSONTyped = Data1ToJSONTyped; +/** + * Check if a given object implements the Data1 interface. + */ +function instanceOfData1(value) { + if (!('data' in value) || value['data'] === undefined) + return false; + return true; +} +function Data1FromJSON(json) { + return Data1FromJSONTyped(json, false); +} +function Data1FromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'data': json['data'], + }; +} +function Data1ToJSON(json) { + return Data1ToJSONTyped(json, false); +} +function Data1ToJSONTyped(value, ignoreDiscriminator = false) { + if (value == null) { + return value; + } + return { + 'data': value['data'], + }; +} diff --git a/typescript/dist/models/DataPath.d.ts b/typescript/dist/models/DataPath.d.ts index bacdd2a0..6da2e2b2 100644 --- a/typescript/dist/models/DataPath.d.ts +++ b/typescript/dist/models/DataPath.d.ts @@ -9,14 +9,14 @@ * https://openapi-generator.tech * Do not edit the class manually. */ -import type { DataPathOneOf } from './DataPathOneOf'; -import type { DataPathOneOf1 } from './DataPathOneOf1'; +import type { Upload } from './Upload'; +import type { Volume1 } from './Volume1'; /** * @type DataPath * * @export */ -export type DataPath = DataPathOneOf | DataPathOneOf1; +export type DataPath = Upload | Volume1; export declare function DataPathFromJSON(json: any): DataPath; export declare function DataPathFromJSONTyped(json: any, ignoreDiscriminator: boolean): DataPath; export declare function DataPathToJSON(json: any): any; diff --git a/typescript/dist/models/DataPath.js b/typescript/dist/models/DataPath.js index fbf1c485..47b24e09 100644 --- a/typescript/dist/models/DataPath.js +++ b/typescript/dist/models/DataPath.js @@ -17,8 +17,8 @@ exports.DataPathFromJSON = DataPathFromJSON; exports.DataPathFromJSONTyped = DataPathFromJSONTyped; exports.DataPathToJSON = DataPathToJSON; exports.DataPathToJSONTyped = DataPathToJSONTyped; -const DataPathOneOf_1 = require("./DataPathOneOf"); -const DataPathOneOf1_1 = require("./DataPathOneOf1"); +const Upload_1 = require("./Upload"); +const Volume1_1 = require("./Volume1"); function DataPathFromJSON(json) { return DataPathFromJSONTyped(json, false); } @@ -29,11 +29,11 @@ function DataPathFromJSONTyped(json, ignoreDiscriminator) { if (typeof json !== 'object') { return json; } - if ((0, DataPathOneOf_1.instanceOfDataPathOneOf)(json)) { - return (0, DataPathOneOf_1.DataPathOneOfFromJSONTyped)(json, true); + if ((0, Upload_1.instanceOfUpload)(json)) { + return (0, Upload_1.UploadFromJSONTyped)(json, true); } - if ((0, DataPathOneOf1_1.instanceOfDataPathOneOf1)(json)) { - return (0, DataPathOneOf1_1.DataPathOneOf1FromJSONTyped)(json, true); + if ((0, Volume1_1.instanceOfVolume1)(json)) { + return (0, Volume1_1.Volume1FromJSONTyped)(json, true); } return {}; } @@ -47,11 +47,11 @@ function DataPathToJSONTyped(value, ignoreDiscriminator = false) { if (typeof value !== 'object') { return value; } - if ((0, DataPathOneOf_1.instanceOfDataPathOneOf)(value)) { - return (0, DataPathOneOf_1.DataPathOneOfToJSON)(value); + if ((0, Upload_1.instanceOfUpload)(value)) { + return (0, Upload_1.UploadToJSON)(value); } - if ((0, DataPathOneOf1_1.instanceOfDataPathOneOf1)(value)) { - return (0, DataPathOneOf1_1.DataPathOneOf1ToJSON)(value); + if ((0, Volume1_1.instanceOfVolume1)(value)) { + return (0, Volume1_1.Volume1ToJSON)(value); } return {}; } diff --git a/typescript/dist/models/DataPathOneOf.d.ts b/typescript/dist/models/DataPathOneOf.d.ts deleted file mode 100644 index 63e792fc..00000000 --- a/typescript/dist/models/DataPathOneOf.d.ts +++ /dev/null @@ -1,32 +0,0 @@ -/** - * Geo Engine API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.9.0 - * Contact: dev@geoengine.de - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -/** - * - * @export - * @interface DataPathOneOf - */ -export interface DataPathOneOf { - /** - * - * @type {string} - * @memberof DataPathOneOf - */ - volume: string; -} -/** - * Check if a given object implements the DataPathOneOf interface. - */ -export declare function instanceOfDataPathOneOf(value: object): value is DataPathOneOf; -export declare function DataPathOneOfFromJSON(json: any): DataPathOneOf; -export declare function DataPathOneOfFromJSONTyped(json: any, ignoreDiscriminator: boolean): DataPathOneOf; -export declare function DataPathOneOfToJSON(json: any): DataPathOneOf; -export declare function DataPathOneOfToJSONTyped(value?: DataPathOneOf | null, ignoreDiscriminator?: boolean): any; diff --git a/typescript/dist/models/DataPathOneOf1.d.ts b/typescript/dist/models/DataPathOneOf1.d.ts deleted file mode 100644 index b2297105..00000000 --- a/typescript/dist/models/DataPathOneOf1.d.ts +++ /dev/null @@ -1,32 +0,0 @@ -/** - * Geo Engine API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.9.0 - * Contact: dev@geoengine.de - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -/** - * - * @export - * @interface DataPathOneOf1 - */ -export interface DataPathOneOf1 { - /** - * - * @type {string} - * @memberof DataPathOneOf1 - */ - upload: string; -} -/** - * Check if a given object implements the DataPathOneOf1 interface. - */ -export declare function instanceOfDataPathOneOf1(value: object): value is DataPathOneOf1; -export declare function DataPathOneOf1FromJSON(json: any): DataPathOneOf1; -export declare function DataPathOneOf1FromJSONTyped(json: any, ignoreDiscriminator: boolean): DataPathOneOf1; -export declare function DataPathOneOf1ToJSON(json: any): DataPathOneOf1; -export declare function DataPathOneOf1ToJSONTyped(value?: DataPathOneOf1 | null, ignoreDiscriminator?: boolean): any; diff --git a/typescript/dist/models/DeriveOutRasterSpecsSource.d.ts b/typescript/dist/models/DeriveOutRasterSpecsSource.d.ts new file mode 100644 index 00000000..cc1199a1 --- /dev/null +++ b/typescript/dist/models/DeriveOutRasterSpecsSource.d.ts @@ -0,0 +1,25 @@ +/** + * Geo Engine API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + */ +export declare const DeriveOutRasterSpecsSource: { + readonly DataBounds: "dataBounds"; + readonly ProjectionBounds: "projectionBounds"; +}; +export type DeriveOutRasterSpecsSource = typeof DeriveOutRasterSpecsSource[keyof typeof DeriveOutRasterSpecsSource]; +export declare function instanceOfDeriveOutRasterSpecsSource(value: any): boolean; +export declare function DeriveOutRasterSpecsSourceFromJSON(json: any): DeriveOutRasterSpecsSource; +export declare function DeriveOutRasterSpecsSourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeriveOutRasterSpecsSource; +export declare function DeriveOutRasterSpecsSourceToJSON(value?: DeriveOutRasterSpecsSource | null): any; +export declare function DeriveOutRasterSpecsSourceToJSONTyped(value: any, ignoreDiscriminator: boolean): DeriveOutRasterSpecsSource; diff --git a/typescript/dist/models/DeriveOutRasterSpecsSource.js b/typescript/dist/models/DeriveOutRasterSpecsSource.js new file mode 100644 index 00000000..41b780ab --- /dev/null +++ b/typescript/dist/models/DeriveOutRasterSpecsSource.js @@ -0,0 +1,51 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.DeriveOutRasterSpecsSource = void 0; +exports.instanceOfDeriveOutRasterSpecsSource = instanceOfDeriveOutRasterSpecsSource; +exports.DeriveOutRasterSpecsSourceFromJSON = DeriveOutRasterSpecsSourceFromJSON; +exports.DeriveOutRasterSpecsSourceFromJSONTyped = DeriveOutRasterSpecsSourceFromJSONTyped; +exports.DeriveOutRasterSpecsSourceToJSON = DeriveOutRasterSpecsSourceToJSON; +exports.DeriveOutRasterSpecsSourceToJSONTyped = DeriveOutRasterSpecsSourceToJSONTyped; +/** + * + * @export + */ +exports.DeriveOutRasterSpecsSource = { + DataBounds: 'dataBounds', + ProjectionBounds: 'projectionBounds' +}; +function instanceOfDeriveOutRasterSpecsSource(value) { + for (const key in exports.DeriveOutRasterSpecsSource) { + if (Object.prototype.hasOwnProperty.call(exports.DeriveOutRasterSpecsSource, key)) { + if (exports.DeriveOutRasterSpecsSource[key] === value) { + return true; + } + } + } + return false; +} +function DeriveOutRasterSpecsSourceFromJSON(json) { + return DeriveOutRasterSpecsSourceFromJSONTyped(json, false); +} +function DeriveOutRasterSpecsSourceFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function DeriveOutRasterSpecsSourceToJSON(value) { + return value; +} +function DeriveOutRasterSpecsSourceToJSONTyped(value, ignoreDiscriminator) { + return value; +} diff --git a/typescript/dist/models/FirstAggregation.d.ts b/typescript/dist/models/FirstAggregation.d.ts new file mode 100644 index 00000000..ef1d7dc2 --- /dev/null +++ b/typescript/dist/models/FirstAggregation.d.ts @@ -0,0 +1,45 @@ +/** + * Geo Engine API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface FirstAggregation + */ +export interface FirstAggregation { + /** + * + * @type {boolean} + * @memberof FirstAggregation + */ + ignoreNoData: boolean; + /** + * + * @type {FirstAggregationTypeEnum} + * @memberof FirstAggregation + */ + type: FirstAggregationTypeEnum; +} +/** + * @export + */ +export declare const FirstAggregationTypeEnum: { + readonly First: "first"; +}; +export type FirstAggregationTypeEnum = typeof FirstAggregationTypeEnum[keyof typeof FirstAggregationTypeEnum]; +/** + * Check if a given object implements the FirstAggregation interface. + */ +export declare function instanceOfFirstAggregation(value: object): value is FirstAggregation; +export declare function FirstAggregationFromJSON(json: any): FirstAggregation; +export declare function FirstAggregationFromJSONTyped(json: any, ignoreDiscriminator: boolean): FirstAggregation; +export declare function FirstAggregationToJSON(json: any): FirstAggregation; +export declare function FirstAggregationToJSONTyped(value?: FirstAggregation | null, ignoreDiscriminator?: boolean): any; diff --git a/typescript/dist/models/FirstAggregation.js b/typescript/dist/models/FirstAggregation.js new file mode 100644 index 00000000..bff280a5 --- /dev/null +++ b/typescript/dist/models/FirstAggregation.js @@ -0,0 +1,61 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.FirstAggregationTypeEnum = void 0; +exports.instanceOfFirstAggregation = instanceOfFirstAggregation; +exports.FirstAggregationFromJSON = FirstAggregationFromJSON; +exports.FirstAggregationFromJSONTyped = FirstAggregationFromJSONTyped; +exports.FirstAggregationToJSON = FirstAggregationToJSON; +exports.FirstAggregationToJSONTyped = FirstAggregationToJSONTyped; +/** + * @export + */ +exports.FirstAggregationTypeEnum = { + First: 'first' +}; +/** + * Check if a given object implements the FirstAggregation interface. + */ +function instanceOfFirstAggregation(value) { + if (!('ignoreNoData' in value) || value['ignoreNoData'] === undefined) + return false; + if (!('type' in value) || value['type'] === undefined) + return false; + return true; +} +function FirstAggregationFromJSON(json) { + return FirstAggregationFromJSONTyped(json, false); +} +function FirstAggregationFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'ignoreNoData': json['ignoreNoData'], + 'type': json['type'], + }; +} +function FirstAggregationToJSON(json) { + return FirstAggregationToJSONTyped(json, false); +} +function FirstAggregationToJSONTyped(value, ignoreDiscriminator = false) { + if (value == null) { + return value; + } + return { + 'ignoreNoData': value['ignoreNoData'], + 'type': value['type'], + }; +} diff --git a/typescript/dist/models/Fraction.d.ts b/typescript/dist/models/Fraction.d.ts new file mode 100644 index 00000000..9448e9e5 --- /dev/null +++ b/typescript/dist/models/Fraction.d.ts @@ -0,0 +1,51 @@ +/** + * Geo Engine API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Upscale factor relative to input resolution (`x >= 1`, `y >= 1`). + * @export + * @interface Fraction + */ +export interface Fraction { + /** + * + * @type {FractionTypeEnum} + * @memberof Fraction + */ + type: FractionTypeEnum; + /** + * + * @type {number} + * @memberof Fraction + */ + x: number; + /** + * + * @type {number} + * @memberof Fraction + */ + y: number; +} +/** + * @export + */ +export declare const FractionTypeEnum: { + readonly Fraction: "fraction"; +}; +export type FractionTypeEnum = typeof FractionTypeEnum[keyof typeof FractionTypeEnum]; +/** + * Check if a given object implements the Fraction interface. + */ +export declare function instanceOfFraction(value: object): value is Fraction; +export declare function FractionFromJSON(json: any): Fraction; +export declare function FractionFromJSONTyped(json: any, ignoreDiscriminator: boolean): Fraction; +export declare function FractionToJSON(json: any): Fraction; +export declare function FractionToJSONTyped(value?: Fraction | null, ignoreDiscriminator?: boolean): any; diff --git a/typescript/dist/models/Fraction.js b/typescript/dist/models/Fraction.js new file mode 100644 index 00000000..5eb9f699 --- /dev/null +++ b/typescript/dist/models/Fraction.js @@ -0,0 +1,65 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.FractionTypeEnum = void 0; +exports.instanceOfFraction = instanceOfFraction; +exports.FractionFromJSON = FractionFromJSON; +exports.FractionFromJSONTyped = FractionFromJSONTyped; +exports.FractionToJSON = FractionToJSON; +exports.FractionToJSONTyped = FractionToJSONTyped; +/** + * @export + */ +exports.FractionTypeEnum = { + Fraction: 'fraction' +}; +/** + * Check if a given object implements the Fraction interface. + */ +function instanceOfFraction(value) { + if (!('type' in value) || value['type'] === undefined) + return false; + if (!('x' in value) || value['x'] === undefined) + return false; + if (!('y' in value) || value['y'] === undefined) + return false; + return true; +} +function FractionFromJSON(json) { + return FractionFromJSONTyped(json, false); +} +function FractionFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'type': json['type'], + 'x': json['x'], + 'y': json['y'], + }; +} +function FractionToJSON(json) { + return FractionToJSONTyped(json, false); +} +function FractionToJSONTyped(value, ignoreDiscriminator = false) { + if (value == null) { + return value; + } + return { + 'type': value['type'], + 'x': value['x'], + 'y': value['y'], + }; +} diff --git a/typescript/dist/models/HistogramBounds.d.ts b/typescript/dist/models/HistogramBounds.d.ts index ca63e0c0..98f9f48d 100644 --- a/typescript/dist/models/HistogramBounds.d.ts +++ b/typescript/dist/models/HistogramBounds.d.ts @@ -9,14 +9,14 @@ * https://openapi-generator.tech * Do not edit the class manually. */ -import type { HistogramBoundsOneOf } from './HistogramBoundsOneOf'; -import type { HistogramBoundsOneOf1 } from './HistogramBoundsOneOf1'; +import type { Data1 } from './Data1'; +import type { Values } from './Values'; /** * @type HistogramBounds * * @export */ -export type HistogramBounds = HistogramBoundsOneOf | HistogramBoundsOneOf1; +export type HistogramBounds = Data1 | Values; export declare function HistogramBoundsFromJSON(json: any): HistogramBounds; export declare function HistogramBoundsFromJSONTyped(json: any, ignoreDiscriminator: boolean): HistogramBounds; export declare function HistogramBoundsToJSON(json: any): any; diff --git a/typescript/dist/models/HistogramBounds.js b/typescript/dist/models/HistogramBounds.js index 8acfb50b..b4e7cc68 100644 --- a/typescript/dist/models/HistogramBounds.js +++ b/typescript/dist/models/HistogramBounds.js @@ -17,8 +17,8 @@ exports.HistogramBoundsFromJSON = HistogramBoundsFromJSON; exports.HistogramBoundsFromJSONTyped = HistogramBoundsFromJSONTyped; exports.HistogramBoundsToJSON = HistogramBoundsToJSON; exports.HistogramBoundsToJSONTyped = HistogramBoundsToJSONTyped; -const HistogramBoundsOneOf_1 = require("./HistogramBoundsOneOf"); -const HistogramBoundsOneOf1_1 = require("./HistogramBoundsOneOf1"); +const Data1_1 = require("./Data1"); +const Values_1 = require("./Values"); function HistogramBoundsFromJSON(json) { return HistogramBoundsFromJSONTyped(json, false); } @@ -29,11 +29,11 @@ function HistogramBoundsFromJSONTyped(json, ignoreDiscriminator) { if (typeof json !== 'object') { return json; } - if ((0, HistogramBoundsOneOf_1.instanceOfHistogramBoundsOneOf)(json)) { - return (0, HistogramBoundsOneOf_1.HistogramBoundsOneOfFromJSONTyped)(json, true); + if ((0, Data1_1.instanceOfData1)(json)) { + return (0, Data1_1.Data1FromJSONTyped)(json, true); } - if ((0, HistogramBoundsOneOf1_1.instanceOfHistogramBoundsOneOf1)(json)) { - return (0, HistogramBoundsOneOf1_1.HistogramBoundsOneOf1FromJSONTyped)(json, true); + if ((0, Values_1.instanceOfValues)(json)) { + return (0, Values_1.ValuesFromJSONTyped)(json, true); } return {}; } @@ -47,11 +47,11 @@ function HistogramBoundsToJSONTyped(value, ignoreDiscriminator = false) { if (typeof value !== 'object') { return value; } - if ((0, HistogramBoundsOneOf_1.instanceOfHistogramBoundsOneOf)(value)) { - return (0, HistogramBoundsOneOf_1.HistogramBoundsOneOfToJSON)(value); + if ((0, Data1_1.instanceOfData1)(value)) { + return (0, Data1_1.Data1ToJSON)(value); } - if ((0, HistogramBoundsOneOf1_1.instanceOfHistogramBoundsOneOf1)(value)) { - return (0, HistogramBoundsOneOf1_1.HistogramBoundsOneOf1ToJSON)(value); + if ((0, Values_1.instanceOfValues)(value)) { + return (0, Values_1.ValuesToJSON)(value); } return {}; } diff --git a/typescript/dist/models/HistogramBoundsOneOf.d.ts b/typescript/dist/models/HistogramBoundsOneOf.d.ts deleted file mode 100644 index ebe90a24..00000000 --- a/typescript/dist/models/HistogramBoundsOneOf.d.ts +++ /dev/null @@ -1,32 +0,0 @@ -/** - * Geo Engine API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.9.0 - * Contact: dev@geoengine.de - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -/** - * - * @export - * @interface HistogramBoundsOneOf - */ -export interface HistogramBoundsOneOf { - /** - * - * @type {any} - * @memberof HistogramBoundsOneOf - */ - data: any | null; -} -/** - * Check if a given object implements the HistogramBoundsOneOf interface. - */ -export declare function instanceOfHistogramBoundsOneOf(value: object): value is HistogramBoundsOneOf; -export declare function HistogramBoundsOneOfFromJSON(json: any): HistogramBoundsOneOf; -export declare function HistogramBoundsOneOfFromJSONTyped(json: any, ignoreDiscriminator: boolean): HistogramBoundsOneOf; -export declare function HistogramBoundsOneOfToJSON(json: any): HistogramBoundsOneOf; -export declare function HistogramBoundsOneOfToJSONTyped(value?: HistogramBoundsOneOf | null, ignoreDiscriminator?: boolean): any; diff --git a/typescript/dist/models/HistogramBoundsOneOf.js b/typescript/dist/models/HistogramBoundsOneOf.js deleted file mode 100644 index c4ffd169..00000000 --- a/typescript/dist/models/HistogramBoundsOneOf.js +++ /dev/null @@ -1,50 +0,0 @@ -"use strict"; -/* tslint:disable */ -/* eslint-disable */ -/** - * Geo Engine API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.9.0 - * Contact: dev@geoengine.de - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.instanceOfHistogramBoundsOneOf = instanceOfHistogramBoundsOneOf; -exports.HistogramBoundsOneOfFromJSON = HistogramBoundsOneOfFromJSON; -exports.HistogramBoundsOneOfFromJSONTyped = HistogramBoundsOneOfFromJSONTyped; -exports.HistogramBoundsOneOfToJSON = HistogramBoundsOneOfToJSON; -exports.HistogramBoundsOneOfToJSONTyped = HistogramBoundsOneOfToJSONTyped; -/** - * Check if a given object implements the HistogramBoundsOneOf interface. - */ -function instanceOfHistogramBoundsOneOf(value) { - if (!('data' in value) || value['data'] === undefined) - return false; - return true; -} -function HistogramBoundsOneOfFromJSON(json) { - return HistogramBoundsOneOfFromJSONTyped(json, false); -} -function HistogramBoundsOneOfFromJSONTyped(json, ignoreDiscriminator) { - if (json == null) { - return json; - } - return { - 'data': json['data'], - }; -} -function HistogramBoundsOneOfToJSON(json) { - return HistogramBoundsOneOfToJSONTyped(json, false); -} -function HistogramBoundsOneOfToJSONTyped(value, ignoreDiscriminator = false) { - if (value == null) { - return value; - } - return { - 'data': value['data'], - }; -} diff --git a/typescript/dist/models/HistogramBoundsOneOf1.d.ts b/typescript/dist/models/HistogramBoundsOneOf1.d.ts deleted file mode 100644 index 5d5af761..00000000 --- a/typescript/dist/models/HistogramBoundsOneOf1.d.ts +++ /dev/null @@ -1,33 +0,0 @@ -/** - * Geo Engine API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.9.0 - * Contact: dev@geoengine.de - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -import type { HistogramBoundsOneOf1Values } from './HistogramBoundsOneOf1Values'; -/** - * - * @export - * @interface HistogramBoundsOneOf1 - */ -export interface HistogramBoundsOneOf1 { - /** - * - * @type {HistogramBoundsOneOf1Values} - * @memberof HistogramBoundsOneOf1 - */ - values: HistogramBoundsOneOf1Values; -} -/** - * Check if a given object implements the HistogramBoundsOneOf1 interface. - */ -export declare function instanceOfHistogramBoundsOneOf1(value: object): value is HistogramBoundsOneOf1; -export declare function HistogramBoundsOneOf1FromJSON(json: any): HistogramBoundsOneOf1; -export declare function HistogramBoundsOneOf1FromJSONTyped(json: any, ignoreDiscriminator: boolean): HistogramBoundsOneOf1; -export declare function HistogramBoundsOneOf1ToJSON(json: any): HistogramBoundsOneOf1; -export declare function HistogramBoundsOneOf1ToJSONTyped(value?: HistogramBoundsOneOf1 | null, ignoreDiscriminator?: boolean): any; diff --git a/typescript/dist/models/HistogramBoundsOneOf1.js b/typescript/dist/models/HistogramBoundsOneOf1.js deleted file mode 100644 index 1cbc56c5..00000000 --- a/typescript/dist/models/HistogramBoundsOneOf1.js +++ /dev/null @@ -1,51 +0,0 @@ -"use strict"; -/* tslint:disable */ -/* eslint-disable */ -/** - * Geo Engine API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.9.0 - * Contact: dev@geoengine.de - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.instanceOfHistogramBoundsOneOf1 = instanceOfHistogramBoundsOneOf1; -exports.HistogramBoundsOneOf1FromJSON = HistogramBoundsOneOf1FromJSON; -exports.HistogramBoundsOneOf1FromJSONTyped = HistogramBoundsOneOf1FromJSONTyped; -exports.HistogramBoundsOneOf1ToJSON = HistogramBoundsOneOf1ToJSON; -exports.HistogramBoundsOneOf1ToJSONTyped = HistogramBoundsOneOf1ToJSONTyped; -const HistogramBoundsOneOf1Values_1 = require("./HistogramBoundsOneOf1Values"); -/** - * Check if a given object implements the HistogramBoundsOneOf1 interface. - */ -function instanceOfHistogramBoundsOneOf1(value) { - if (!('values' in value) || value['values'] === undefined) - return false; - return true; -} -function HistogramBoundsOneOf1FromJSON(json) { - return HistogramBoundsOneOf1FromJSONTyped(json, false); -} -function HistogramBoundsOneOf1FromJSONTyped(json, ignoreDiscriminator) { - if (json == null) { - return json; - } - return { - 'values': (0, HistogramBoundsOneOf1Values_1.HistogramBoundsOneOf1ValuesFromJSON)(json['values']), - }; -} -function HistogramBoundsOneOf1ToJSON(json) { - return HistogramBoundsOneOf1ToJSONTyped(json, false); -} -function HistogramBoundsOneOf1ToJSONTyped(value, ignoreDiscriminator = false) { - if (value == null) { - return value; - } - return { - 'values': (0, HistogramBoundsOneOf1Values_1.HistogramBoundsOneOf1ValuesToJSON)(value['values']), - }; -} diff --git a/typescript/dist/models/HistogramBoundsOneOf1Values.d.ts b/typescript/dist/models/HistogramBoundsOneOf1Values.d.ts deleted file mode 100644 index 7ecedb87..00000000 --- a/typescript/dist/models/HistogramBoundsOneOf1Values.d.ts +++ /dev/null @@ -1,38 +0,0 @@ -/** - * Geo Engine API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.9.0 - * Contact: dev@geoengine.de - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -/** - * - * @export - * @interface HistogramBoundsOneOf1Values - */ -export interface HistogramBoundsOneOf1Values { - /** - * - * @type {number} - * @memberof HistogramBoundsOneOf1Values - */ - max: number; - /** - * - * @type {number} - * @memberof HistogramBoundsOneOf1Values - */ - min: number; -} -/** - * Check if a given object implements the HistogramBoundsOneOf1Values interface. - */ -export declare function instanceOfHistogramBoundsOneOf1Values(value: object): value is HistogramBoundsOneOf1Values; -export declare function HistogramBoundsOneOf1ValuesFromJSON(json: any): HistogramBoundsOneOf1Values; -export declare function HistogramBoundsOneOf1ValuesFromJSONTyped(json: any, ignoreDiscriminator: boolean): HistogramBoundsOneOf1Values; -export declare function HistogramBoundsOneOf1ValuesToJSON(json: any): HistogramBoundsOneOf1Values; -export declare function HistogramBoundsOneOf1ValuesToJSONTyped(value?: HistogramBoundsOneOf1Values | null, ignoreDiscriminator?: boolean): any; diff --git a/typescript/dist/models/HistogramBoundsOneOf1Values.js b/typescript/dist/models/HistogramBoundsOneOf1Values.js deleted file mode 100644 index 919acad7..00000000 --- a/typescript/dist/models/HistogramBoundsOneOf1Values.js +++ /dev/null @@ -1,54 +0,0 @@ -"use strict"; -/* tslint:disable */ -/* eslint-disable */ -/** - * Geo Engine API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.9.0 - * Contact: dev@geoengine.de - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.instanceOfHistogramBoundsOneOf1Values = instanceOfHistogramBoundsOneOf1Values; -exports.HistogramBoundsOneOf1ValuesFromJSON = HistogramBoundsOneOf1ValuesFromJSON; -exports.HistogramBoundsOneOf1ValuesFromJSONTyped = HistogramBoundsOneOf1ValuesFromJSONTyped; -exports.HistogramBoundsOneOf1ValuesToJSON = HistogramBoundsOneOf1ValuesToJSON; -exports.HistogramBoundsOneOf1ValuesToJSONTyped = HistogramBoundsOneOf1ValuesToJSONTyped; -/** - * Check if a given object implements the HistogramBoundsOneOf1Values interface. - */ -function instanceOfHistogramBoundsOneOf1Values(value) { - if (!('max' in value) || value['max'] === undefined) - return false; - if (!('min' in value) || value['min'] === undefined) - return false; - return true; -} -function HistogramBoundsOneOf1ValuesFromJSON(json) { - return HistogramBoundsOneOf1ValuesFromJSONTyped(json, false); -} -function HistogramBoundsOneOf1ValuesFromJSONTyped(json, ignoreDiscriminator) { - if (json == null) { - return json; - } - return { - 'max': json['max'], - 'min': json['min'], - }; -} -function HistogramBoundsOneOf1ValuesToJSON(json) { - return HistogramBoundsOneOf1ValuesToJSONTyped(json, false); -} -function HistogramBoundsOneOf1ValuesToJSONTyped(value, ignoreDiscriminator = false) { - if (value == null) { - return value; - } - return { - 'max': value['max'], - 'min': value['min'], - }; -} diff --git a/typescript/dist/models/HistogramBuckets.d.ts b/typescript/dist/models/HistogramBuckets.d.ts index 3f4b4152..358b2818 100644 --- a/typescript/dist/models/HistogramBuckets.d.ts +++ b/typescript/dist/models/HistogramBuckets.d.ts @@ -9,14 +9,14 @@ * https://openapi-generator.tech * Do not edit the class manually. */ -import type { HistogramBucketsOneOf } from './HistogramBucketsOneOf'; -import type { HistogramBucketsOneOf1 } from './HistogramBucketsOneOf1'; +import type { Number } from './Number'; +import type { SquareRootChoiceRule } from './SquareRootChoiceRule'; /** * @type HistogramBuckets * * @export */ -export type HistogramBuckets = HistogramBucketsOneOf | HistogramBucketsOneOf1; +export type HistogramBuckets = Number | SquareRootChoiceRule; export declare function HistogramBucketsFromJSON(json: any): HistogramBuckets; export declare function HistogramBucketsFromJSONTyped(json: any, ignoreDiscriminator: boolean): HistogramBuckets; export declare function HistogramBucketsToJSON(json: any): any; diff --git a/typescript/dist/models/HistogramBuckets.js b/typescript/dist/models/HistogramBuckets.js index 4a2602ba..5be722d6 100644 --- a/typescript/dist/models/HistogramBuckets.js +++ b/typescript/dist/models/HistogramBuckets.js @@ -17,8 +17,8 @@ exports.HistogramBucketsFromJSON = HistogramBucketsFromJSON; exports.HistogramBucketsFromJSONTyped = HistogramBucketsFromJSONTyped; exports.HistogramBucketsToJSON = HistogramBucketsToJSON; exports.HistogramBucketsToJSONTyped = HistogramBucketsToJSONTyped; -const HistogramBucketsOneOf_1 = require("./HistogramBucketsOneOf"); -const HistogramBucketsOneOf1_1 = require("./HistogramBucketsOneOf1"); +const Number_1 = require("./Number"); +const SquareRootChoiceRule_1 = require("./SquareRootChoiceRule"); function HistogramBucketsFromJSON(json) { return HistogramBucketsFromJSONTyped(json, false); } @@ -29,11 +29,11 @@ function HistogramBucketsFromJSONTyped(json, ignoreDiscriminator) { if (typeof json !== 'object') { return json; } - if ((0, HistogramBucketsOneOf_1.instanceOfHistogramBucketsOneOf)(json)) { - return (0, HistogramBucketsOneOf_1.HistogramBucketsOneOfFromJSONTyped)(json, true); + if ((0, Number_1.instanceOfNumber)(json)) { + return (0, Number_1.NumberFromJSONTyped)(json, true); } - if ((0, HistogramBucketsOneOf1_1.instanceOfHistogramBucketsOneOf1)(json)) { - return (0, HistogramBucketsOneOf1_1.HistogramBucketsOneOf1FromJSONTyped)(json, true); + if ((0, SquareRootChoiceRule_1.instanceOfSquareRootChoiceRule)(json)) { + return (0, SquareRootChoiceRule_1.SquareRootChoiceRuleFromJSONTyped)(json, true); } return {}; } @@ -47,11 +47,11 @@ function HistogramBucketsToJSONTyped(value, ignoreDiscriminator = false) { if (typeof value !== 'object') { return value; } - if ((0, HistogramBucketsOneOf_1.instanceOfHistogramBucketsOneOf)(value)) { - return (0, HistogramBucketsOneOf_1.HistogramBucketsOneOfToJSON)(value); + if ((0, Number_1.instanceOfNumber)(value)) { + return (0, Number_1.NumberToJSON)(value); } - if ((0, HistogramBucketsOneOf1_1.instanceOfHistogramBucketsOneOf1)(value)) { - return (0, HistogramBucketsOneOf1_1.HistogramBucketsOneOf1ToJSON)(value); + if ((0, SquareRootChoiceRule_1.instanceOfSquareRootChoiceRule)(value)) { + return (0, SquareRootChoiceRule_1.SquareRootChoiceRuleToJSON)(value); } return {}; } diff --git a/typescript/dist/models/HistogramBucketsOneOf.d.ts b/typescript/dist/models/HistogramBucketsOneOf.d.ts deleted file mode 100644 index 10a2dfce..00000000 --- a/typescript/dist/models/HistogramBucketsOneOf.d.ts +++ /dev/null @@ -1,45 +0,0 @@ -/** - * Geo Engine API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.9.0 - * Contact: dev@geoengine.de - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -/** - * - * @export - * @interface HistogramBucketsOneOf - */ -export interface HistogramBucketsOneOf { - /** - * - * @type {HistogramBucketsOneOfTypeEnum} - * @memberof HistogramBucketsOneOf - */ - type: HistogramBucketsOneOfTypeEnum; - /** - * - * @type {number} - * @memberof HistogramBucketsOneOf - */ - value: number; -} -/** - * @export - */ -export declare const HistogramBucketsOneOfTypeEnum: { - readonly Number: "number"; -}; -export type HistogramBucketsOneOfTypeEnum = typeof HistogramBucketsOneOfTypeEnum[keyof typeof HistogramBucketsOneOfTypeEnum]; -/** - * Check if a given object implements the HistogramBucketsOneOf interface. - */ -export declare function instanceOfHistogramBucketsOneOf(value: object): value is HistogramBucketsOneOf; -export declare function HistogramBucketsOneOfFromJSON(json: any): HistogramBucketsOneOf; -export declare function HistogramBucketsOneOfFromJSONTyped(json: any, ignoreDiscriminator: boolean): HistogramBucketsOneOf; -export declare function HistogramBucketsOneOfToJSON(json: any): HistogramBucketsOneOf; -export declare function HistogramBucketsOneOfToJSONTyped(value?: HistogramBucketsOneOf | null, ignoreDiscriminator?: boolean): any; diff --git a/typescript/dist/models/HistogramBucketsOneOf1.d.ts b/typescript/dist/models/HistogramBucketsOneOf1.d.ts deleted file mode 100644 index 2698370c..00000000 --- a/typescript/dist/models/HistogramBucketsOneOf1.d.ts +++ /dev/null @@ -1,45 +0,0 @@ -/** - * Geo Engine API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.9.0 - * Contact: dev@geoengine.de - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -/** - * - * @export - * @interface HistogramBucketsOneOf1 - */ -export interface HistogramBucketsOneOf1 { - /** - * - * @type {number} - * @memberof HistogramBucketsOneOf1 - */ - maxNumberOfBuckets?: number; - /** - * - * @type {HistogramBucketsOneOf1TypeEnum} - * @memberof HistogramBucketsOneOf1 - */ - type: HistogramBucketsOneOf1TypeEnum; -} -/** - * @export - */ -export declare const HistogramBucketsOneOf1TypeEnum: { - readonly SquareRootChoiceRule: "squareRootChoiceRule"; -}; -export type HistogramBucketsOneOf1TypeEnum = typeof HistogramBucketsOneOf1TypeEnum[keyof typeof HistogramBucketsOneOf1TypeEnum]; -/** - * Check if a given object implements the HistogramBucketsOneOf1 interface. - */ -export declare function instanceOfHistogramBucketsOneOf1(value: object): value is HistogramBucketsOneOf1; -export declare function HistogramBucketsOneOf1FromJSON(json: any): HistogramBucketsOneOf1; -export declare function HistogramBucketsOneOf1FromJSONTyped(json: any, ignoreDiscriminator: boolean): HistogramBucketsOneOf1; -export declare function HistogramBucketsOneOf1ToJSON(json: any): HistogramBucketsOneOf1; -export declare function HistogramBucketsOneOf1ToJSONTyped(value?: HistogramBucketsOneOf1 | null, ignoreDiscriminator?: boolean): any; diff --git a/typescript/dist/models/Interpolation.d.ts b/typescript/dist/models/Interpolation.d.ts new file mode 100644 index 00000000..7e2c5ad7 --- /dev/null +++ b/typescript/dist/models/Interpolation.d.ts @@ -0,0 +1,60 @@ +/** + * Geo Engine API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { SingleRasterSource } from './SingleRasterSource'; +import type { InterpolationParameters } from './InterpolationParameters'; +/** + * The `Interpolation` operator increases raster resolution by interpolating values of an input raster. + * + * If queried with a resolution that is coarser than the input resolution, + * interpolation is not applicable and an error is returned. + * + * ## Inputs + * + * The `Interpolation` operator expects exactly one _raster_ input. + * @export + * @interface Interpolation + */ +export interface Interpolation { + /** + * + * @type {InterpolationParameters} + * @memberof Interpolation + */ + params: InterpolationParameters; + /** + * + * @type {SingleRasterSource} + * @memberof Interpolation + */ + sources: SingleRasterSource; + /** + * + * @type {InterpolationTypeEnum} + * @memberof Interpolation + */ + type: InterpolationTypeEnum; +} +/** + * @export + */ +export declare const InterpolationTypeEnum: { + readonly Interpolation: "Interpolation"; +}; +export type InterpolationTypeEnum = typeof InterpolationTypeEnum[keyof typeof InterpolationTypeEnum]; +/** + * Check if a given object implements the Interpolation interface. + */ +export declare function instanceOfInterpolation(value: object): value is Interpolation; +export declare function InterpolationFromJSON(json: any): Interpolation; +export declare function InterpolationFromJSONTyped(json: any, ignoreDiscriminator: boolean): Interpolation; +export declare function InterpolationToJSON(json: any): Interpolation; +export declare function InterpolationToJSONTyped(value?: Interpolation | null, ignoreDiscriminator?: boolean): any; diff --git a/typescript/dist/models/Interpolation.js b/typescript/dist/models/Interpolation.js new file mode 100644 index 00000000..8f481957 --- /dev/null +++ b/typescript/dist/models/Interpolation.js @@ -0,0 +1,67 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.InterpolationTypeEnum = void 0; +exports.instanceOfInterpolation = instanceOfInterpolation; +exports.InterpolationFromJSON = InterpolationFromJSON; +exports.InterpolationFromJSONTyped = InterpolationFromJSONTyped; +exports.InterpolationToJSON = InterpolationToJSON; +exports.InterpolationToJSONTyped = InterpolationToJSONTyped; +const SingleRasterSource_1 = require("./SingleRasterSource"); +const InterpolationParameters_1 = require("./InterpolationParameters"); +/** + * @export + */ +exports.InterpolationTypeEnum = { + Interpolation: 'Interpolation' +}; +/** + * Check if a given object implements the Interpolation interface. + */ +function instanceOfInterpolation(value) { + if (!('params' in value) || value['params'] === undefined) + return false; + if (!('sources' in value) || value['sources'] === undefined) + return false; + if (!('type' in value) || value['type'] === undefined) + return false; + return true; +} +function InterpolationFromJSON(json) { + return InterpolationFromJSONTyped(json, false); +} +function InterpolationFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'params': (0, InterpolationParameters_1.InterpolationParametersFromJSON)(json['params']), + 'sources': (0, SingleRasterSource_1.SingleRasterSourceFromJSON)(json['sources']), + 'type': json['type'], + }; +} +function InterpolationToJSON(json) { + return InterpolationToJSONTyped(json, false); +} +function InterpolationToJSONTyped(value, ignoreDiscriminator = false) { + if (value == null) { + return value; + } + return { + 'params': (0, InterpolationParameters_1.InterpolationParametersToJSON)(value['params']), + 'sources': (0, SingleRasterSource_1.SingleRasterSourceToJSON)(value['sources']), + 'type': value['type'], + }; +} diff --git a/typescript/dist/models/InterpolationMethod.d.ts b/typescript/dist/models/InterpolationMethod.d.ts new file mode 100644 index 00000000..9ddc3c5d --- /dev/null +++ b/typescript/dist/models/InterpolationMethod.d.ts @@ -0,0 +1,25 @@ +/** + * Geo Engine API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + */ +export declare const InterpolationMethod: { + readonly NearestNeighbor: "nearestNeighbor"; + readonly BiLinear: "biLinear"; +}; +export type InterpolationMethod = typeof InterpolationMethod[keyof typeof InterpolationMethod]; +export declare function instanceOfInterpolationMethod(value: any): boolean; +export declare function InterpolationMethodFromJSON(json: any): InterpolationMethod; +export declare function InterpolationMethodFromJSONTyped(json: any, ignoreDiscriminator: boolean): InterpolationMethod; +export declare function InterpolationMethodToJSON(value?: InterpolationMethod | null): any; +export declare function InterpolationMethodToJSONTyped(value: any, ignoreDiscriminator: boolean): InterpolationMethod; diff --git a/typescript/dist/models/InterpolationMethod.js b/typescript/dist/models/InterpolationMethod.js new file mode 100644 index 00000000..f3afe159 --- /dev/null +++ b/typescript/dist/models/InterpolationMethod.js @@ -0,0 +1,51 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.InterpolationMethod = void 0; +exports.instanceOfInterpolationMethod = instanceOfInterpolationMethod; +exports.InterpolationMethodFromJSON = InterpolationMethodFromJSON; +exports.InterpolationMethodFromJSONTyped = InterpolationMethodFromJSONTyped; +exports.InterpolationMethodToJSON = InterpolationMethodToJSON; +exports.InterpolationMethodToJSONTyped = InterpolationMethodToJSONTyped; +/** + * + * @export + */ +exports.InterpolationMethod = { + NearestNeighbor: 'nearestNeighbor', + BiLinear: 'biLinear' +}; +function instanceOfInterpolationMethod(value) { + for (const key in exports.InterpolationMethod) { + if (Object.prototype.hasOwnProperty.call(exports.InterpolationMethod, key)) { + if (exports.InterpolationMethod[key] === value) { + return true; + } + } + } + return false; +} +function InterpolationMethodFromJSON(json) { + return InterpolationMethodFromJSONTyped(json, false); +} +function InterpolationMethodFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function InterpolationMethodToJSON(value) { + return value; +} +function InterpolationMethodToJSONTyped(value, ignoreDiscriminator) { + return value; +} diff --git a/typescript/dist/models/InterpolationParameters.d.ts b/typescript/dist/models/InterpolationParameters.d.ts new file mode 100644 index 00000000..d96f2bc1 --- /dev/null +++ b/typescript/dist/models/InterpolationParameters.d.ts @@ -0,0 +1,47 @@ +/** + * Geo Engine API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { InterpolationMethod } from './InterpolationMethod'; +import type { Coordinate2D } from './Coordinate2D'; +import type { InterpolationResolution } from './InterpolationResolution'; +/** + * Parameters for the `Interpolation` operator. + * @export + * @interface InterpolationParameters + */ +export interface InterpolationParameters { + /** + * Interpolation method. + * @type {InterpolationMethod} + * @memberof InterpolationParameters + */ + interpolation: InterpolationMethod; + /** + * Optional reference point used to align the output grid origin. + * @type {Coordinate2D} + * @memberof InterpolationParameters + */ + outputOriginReference?: Coordinate2D | null; + /** + * Target output resolution. + * @type {InterpolationResolution} + * @memberof InterpolationParameters + */ + outputResolution: InterpolationResolution; +} +/** + * Check if a given object implements the InterpolationParameters interface. + */ +export declare function instanceOfInterpolationParameters(value: object): value is InterpolationParameters; +export declare function InterpolationParametersFromJSON(json: any): InterpolationParameters; +export declare function InterpolationParametersFromJSONTyped(json: any, ignoreDiscriminator: boolean): InterpolationParameters; +export declare function InterpolationParametersToJSON(json: any): InterpolationParameters; +export declare function InterpolationParametersToJSONTyped(value?: InterpolationParameters | null, ignoreDiscriminator?: boolean): any; diff --git a/typescript/dist/models/InterpolationParameters.js b/typescript/dist/models/InterpolationParameters.js new file mode 100644 index 00000000..8eb2814f --- /dev/null +++ b/typescript/dist/models/InterpolationParameters.js @@ -0,0 +1,59 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfInterpolationParameters = instanceOfInterpolationParameters; +exports.InterpolationParametersFromJSON = InterpolationParametersFromJSON; +exports.InterpolationParametersFromJSONTyped = InterpolationParametersFromJSONTyped; +exports.InterpolationParametersToJSON = InterpolationParametersToJSON; +exports.InterpolationParametersToJSONTyped = InterpolationParametersToJSONTyped; +const InterpolationMethod_1 = require("./InterpolationMethod"); +const Coordinate2D_1 = require("./Coordinate2D"); +const InterpolationResolution_1 = require("./InterpolationResolution"); +/** + * Check if a given object implements the InterpolationParameters interface. + */ +function instanceOfInterpolationParameters(value) { + if (!('interpolation' in value) || value['interpolation'] === undefined) + return false; + if (!('outputResolution' in value) || value['outputResolution'] === undefined) + return false; + return true; +} +function InterpolationParametersFromJSON(json) { + return InterpolationParametersFromJSONTyped(json, false); +} +function InterpolationParametersFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'interpolation': (0, InterpolationMethod_1.InterpolationMethodFromJSON)(json['interpolation']), + 'outputOriginReference': json['outputOriginReference'] == null ? undefined : (0, Coordinate2D_1.Coordinate2DFromJSON)(json['outputOriginReference']), + 'outputResolution': (0, InterpolationResolution_1.InterpolationResolutionFromJSON)(json['outputResolution']), + }; +} +function InterpolationParametersToJSON(json) { + return InterpolationParametersToJSONTyped(json, false); +} +function InterpolationParametersToJSONTyped(value, ignoreDiscriminator = false) { + if (value == null) { + return value; + } + return { + 'interpolation': (0, InterpolationMethod_1.InterpolationMethodToJSON)(value['interpolation']), + 'outputOriginReference': (0, Coordinate2D_1.Coordinate2DToJSON)(value['outputOriginReference']), + 'outputResolution': (0, InterpolationResolution_1.InterpolationResolutionToJSON)(value['outputResolution']), + }; +} diff --git a/typescript/dist/models/InterpolationResolution.d.ts b/typescript/dist/models/InterpolationResolution.d.ts new file mode 100644 index 00000000..9895a113 --- /dev/null +++ b/typescript/dist/models/InterpolationResolution.d.ts @@ -0,0 +1,23 @@ +/** + * Geo Engine API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Fraction } from './Fraction'; +import type { Resolution } from './Resolution'; +/** + * @type InterpolationResolution + * + * @export + */ +export type InterpolationResolution = Fraction | Resolution; +export declare function InterpolationResolutionFromJSON(json: any): InterpolationResolution; +export declare function InterpolationResolutionFromJSONTyped(json: any, ignoreDiscriminator: boolean): InterpolationResolution; +export declare function InterpolationResolutionToJSON(json: any): any; +export declare function InterpolationResolutionToJSONTyped(value?: InterpolationResolution | null, ignoreDiscriminator?: boolean): any; diff --git a/typescript/dist/models/InterpolationResolution.js b/typescript/dist/models/InterpolationResolution.js new file mode 100644 index 00000000..db2b66bb --- /dev/null +++ b/typescript/dist/models/InterpolationResolution.js @@ -0,0 +1,57 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.InterpolationResolutionFromJSON = InterpolationResolutionFromJSON; +exports.InterpolationResolutionFromJSONTyped = InterpolationResolutionFromJSONTyped; +exports.InterpolationResolutionToJSON = InterpolationResolutionToJSON; +exports.InterpolationResolutionToJSONTyped = InterpolationResolutionToJSONTyped; +const Fraction_1 = require("./Fraction"); +const Resolution_1 = require("./Resolution"); +function InterpolationResolutionFromJSON(json) { + return InterpolationResolutionFromJSONTyped(json, false); +} +function InterpolationResolutionFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + if (typeof json !== 'object') { + return json; + } + if ((0, Fraction_1.instanceOfFraction)(json)) { + return (0, Fraction_1.FractionFromJSONTyped)(json, true); + } + if ((0, Resolution_1.instanceOfResolution)(json)) { + return (0, Resolution_1.ResolutionFromJSONTyped)(json, true); + } + return {}; +} +function InterpolationResolutionToJSON(json) { + return InterpolationResolutionToJSONTyped(json, false); +} +function InterpolationResolutionToJSONTyped(value, ignoreDiscriminator = false) { + if (value == null) { + return value; + } + if (typeof value !== 'object') { + return value; + } + if ((0, Fraction_1.instanceOfFraction)(value)) { + return (0, Fraction_1.FractionToJSON)(value); + } + if ((0, Resolution_1.instanceOfResolution)(value)) { + return (0, Resolution_1.ResolutionToJSON)(value); + } + return {}; +} diff --git a/typescript/dist/models/Irregular.d.ts b/typescript/dist/models/Irregular.d.ts new file mode 100644 index 00000000..099ebda9 --- /dev/null +++ b/typescript/dist/models/Irregular.d.ts @@ -0,0 +1,39 @@ +/** + * Geo Engine API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface Irregular + */ +export interface Irregular { + /** + * + * @type {IrregularTypeEnum} + * @memberof Irregular + */ + type: IrregularTypeEnum; +} +/** + * @export + */ +export declare const IrregularTypeEnum: { + readonly Irregular: "irregular"; +}; +export type IrregularTypeEnum = typeof IrregularTypeEnum[keyof typeof IrregularTypeEnum]; +/** + * Check if a given object implements the Irregular interface. + */ +export declare function instanceOfIrregular(value: object): value is Irregular; +export declare function IrregularFromJSON(json: any): Irregular; +export declare function IrregularFromJSONTyped(json: any, ignoreDiscriminator: boolean): Irregular; +export declare function IrregularToJSON(json: any): Irregular; +export declare function IrregularToJSONTyped(value?: Irregular | null, ignoreDiscriminator?: boolean): any; diff --git a/typescript/dist/models/Irregular.js b/typescript/dist/models/Irregular.js new file mode 100644 index 00000000..3809c00b --- /dev/null +++ b/typescript/dist/models/Irregular.js @@ -0,0 +1,57 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.IrregularTypeEnum = void 0; +exports.instanceOfIrregular = instanceOfIrregular; +exports.IrregularFromJSON = IrregularFromJSON; +exports.IrregularFromJSONTyped = IrregularFromJSONTyped; +exports.IrregularToJSON = IrregularToJSON; +exports.IrregularToJSONTyped = IrregularToJSONTyped; +/** + * @export + */ +exports.IrregularTypeEnum = { + Irregular: 'irregular' +}; +/** + * Check if a given object implements the Irregular interface. + */ +function instanceOfIrregular(value) { + if (!('type' in value) || value['type'] === undefined) + return false; + return true; +} +function IrregularFromJSON(json) { + return IrregularFromJSONTyped(json, false); +} +function IrregularFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'type': json['type'], + }; +} +function IrregularToJSON(json) { + return IrregularToJSONTyped(json, false); +} +function IrregularToJSONTyped(value, ignoreDiscriminator = false) { + if (value == null) { + return value; + } + return { + 'type': value['type'], + }; +} diff --git a/typescript/dist/models/LastAggregation.d.ts b/typescript/dist/models/LastAggregation.d.ts new file mode 100644 index 00000000..1e693872 --- /dev/null +++ b/typescript/dist/models/LastAggregation.d.ts @@ -0,0 +1,45 @@ +/** + * Geo Engine API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface LastAggregation + */ +export interface LastAggregation { + /** + * + * @type {boolean} + * @memberof LastAggregation + */ + ignoreNoData: boolean; + /** + * + * @type {LastAggregationTypeEnum} + * @memberof LastAggregation + */ + type: LastAggregationTypeEnum; +} +/** + * @export + */ +export declare const LastAggregationTypeEnum: { + readonly Last: "last"; +}; +export type LastAggregationTypeEnum = typeof LastAggregationTypeEnum[keyof typeof LastAggregationTypeEnum]; +/** + * Check if a given object implements the LastAggregation interface. + */ +export declare function instanceOfLastAggregation(value: object): value is LastAggregation; +export declare function LastAggregationFromJSON(json: any): LastAggregation; +export declare function LastAggregationFromJSONTyped(json: any, ignoreDiscriminator: boolean): LastAggregation; +export declare function LastAggregationToJSON(json: any): LastAggregation; +export declare function LastAggregationToJSONTyped(value?: LastAggregation | null, ignoreDiscriminator?: boolean): any; diff --git a/typescript/dist/models/LastAggregation.js b/typescript/dist/models/LastAggregation.js new file mode 100644 index 00000000..0aa511b2 --- /dev/null +++ b/typescript/dist/models/LastAggregation.js @@ -0,0 +1,61 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.LastAggregationTypeEnum = void 0; +exports.instanceOfLastAggregation = instanceOfLastAggregation; +exports.LastAggregationFromJSON = LastAggregationFromJSON; +exports.LastAggregationFromJSONTyped = LastAggregationFromJSONTyped; +exports.LastAggregationToJSON = LastAggregationToJSON; +exports.LastAggregationToJSONTyped = LastAggregationToJSONTyped; +/** + * @export + */ +exports.LastAggregationTypeEnum = { + Last: 'last' +}; +/** + * Check if a given object implements the LastAggregation interface. + */ +function instanceOfLastAggregation(value) { + if (!('ignoreNoData' in value) || value['ignoreNoData'] === undefined) + return false; + if (!('type' in value) || value['type'] === undefined) + return false; + return true; +} +function LastAggregationFromJSON(json) { + return LastAggregationFromJSONTyped(json, false); +} +function LastAggregationFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'ignoreNoData': json['ignoreNoData'], + 'type': json['type'], + }; +} +function LastAggregationToJSON(json) { + return LastAggregationToJSONTyped(json, false); +} +function LastAggregationToJSONTyped(value, ignoreDiscriminator = false) { + if (value == null) { + return value; + } + return { + 'ignoreNoData': value['ignoreNoData'], + 'type': value['type'], + }; +} diff --git a/typescript/dist/models/MaxAggregation.d.ts b/typescript/dist/models/MaxAggregation.d.ts new file mode 100644 index 00000000..2e3a273a --- /dev/null +++ b/typescript/dist/models/MaxAggregation.d.ts @@ -0,0 +1,45 @@ +/** + * Geo Engine API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface MaxAggregation + */ +export interface MaxAggregation { + /** + * + * @type {boolean} + * @memberof MaxAggregation + */ + ignoreNoData: boolean; + /** + * + * @type {MaxAggregationTypeEnum} + * @memberof MaxAggregation + */ + type: MaxAggregationTypeEnum; +} +/** + * @export + */ +export declare const MaxAggregationTypeEnum: { + readonly Max: "max"; +}; +export type MaxAggregationTypeEnum = typeof MaxAggregationTypeEnum[keyof typeof MaxAggregationTypeEnum]; +/** + * Check if a given object implements the MaxAggregation interface. + */ +export declare function instanceOfMaxAggregation(value: object): value is MaxAggregation; +export declare function MaxAggregationFromJSON(json: any): MaxAggregation; +export declare function MaxAggregationFromJSONTyped(json: any, ignoreDiscriminator: boolean): MaxAggregation; +export declare function MaxAggregationToJSON(json: any): MaxAggregation; +export declare function MaxAggregationToJSONTyped(value?: MaxAggregation | null, ignoreDiscriminator?: boolean): any; diff --git a/typescript/dist/models/MaxAggregation.js b/typescript/dist/models/MaxAggregation.js new file mode 100644 index 00000000..27b035fe --- /dev/null +++ b/typescript/dist/models/MaxAggregation.js @@ -0,0 +1,61 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.MaxAggregationTypeEnum = void 0; +exports.instanceOfMaxAggregation = instanceOfMaxAggregation; +exports.MaxAggregationFromJSON = MaxAggregationFromJSON; +exports.MaxAggregationFromJSONTyped = MaxAggregationFromJSONTyped; +exports.MaxAggregationToJSON = MaxAggregationToJSON; +exports.MaxAggregationToJSONTyped = MaxAggregationToJSONTyped; +/** + * @export + */ +exports.MaxAggregationTypeEnum = { + Max: 'max' +}; +/** + * Check if a given object implements the MaxAggregation interface. + */ +function instanceOfMaxAggregation(value) { + if (!('ignoreNoData' in value) || value['ignoreNoData'] === undefined) + return false; + if (!('type' in value) || value['type'] === undefined) + return false; + return true; +} +function MaxAggregationFromJSON(json) { + return MaxAggregationFromJSONTyped(json, false); +} +function MaxAggregationFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'ignoreNoData': json['ignoreNoData'], + 'type': json['type'], + }; +} +function MaxAggregationToJSON(json) { + return MaxAggregationToJSONTyped(json, false); +} +function MaxAggregationToJSONTyped(value, ignoreDiscriminator = false) { + if (value == null) { + return value; + } + return { + 'ignoreNoData': value['ignoreNoData'], + 'type': value['type'], + }; +} diff --git a/typescript/dist/models/MeanAggregation.d.ts b/typescript/dist/models/MeanAggregation.d.ts new file mode 100644 index 00000000..736ee378 --- /dev/null +++ b/typescript/dist/models/MeanAggregation.d.ts @@ -0,0 +1,45 @@ +/** + * Geo Engine API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface MeanAggregation + */ +export interface MeanAggregation { + /** + * + * @type {boolean} + * @memberof MeanAggregation + */ + ignoreNoData: boolean; + /** + * + * @type {MeanAggregationTypeEnum} + * @memberof MeanAggregation + */ + type: MeanAggregationTypeEnum; +} +/** + * @export + */ +export declare const MeanAggregationTypeEnum: { + readonly Mean: "mean"; +}; +export type MeanAggregationTypeEnum = typeof MeanAggregationTypeEnum[keyof typeof MeanAggregationTypeEnum]; +/** + * Check if a given object implements the MeanAggregation interface. + */ +export declare function instanceOfMeanAggregation(value: object): value is MeanAggregation; +export declare function MeanAggregationFromJSON(json: any): MeanAggregation; +export declare function MeanAggregationFromJSONTyped(json: any, ignoreDiscriminator: boolean): MeanAggregation; +export declare function MeanAggregationToJSON(json: any): MeanAggregation; +export declare function MeanAggregationToJSONTyped(value?: MeanAggregation | null, ignoreDiscriminator?: boolean): any; diff --git a/typescript/dist/models/MeanAggregation.js b/typescript/dist/models/MeanAggregation.js new file mode 100644 index 00000000..1a60028c --- /dev/null +++ b/typescript/dist/models/MeanAggregation.js @@ -0,0 +1,61 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.MeanAggregationTypeEnum = void 0; +exports.instanceOfMeanAggregation = instanceOfMeanAggregation; +exports.MeanAggregationFromJSON = MeanAggregationFromJSON; +exports.MeanAggregationFromJSONTyped = MeanAggregationFromJSONTyped; +exports.MeanAggregationToJSON = MeanAggregationToJSON; +exports.MeanAggregationToJSONTyped = MeanAggregationToJSONTyped; +/** + * @export + */ +exports.MeanAggregationTypeEnum = { + Mean: 'mean' +}; +/** + * Check if a given object implements the MeanAggregation interface. + */ +function instanceOfMeanAggregation(value) { + if (!('ignoreNoData' in value) || value['ignoreNoData'] === undefined) + return false; + if (!('type' in value) || value['type'] === undefined) + return false; + return true; +} +function MeanAggregationFromJSON(json) { + return MeanAggregationFromJSONTyped(json, false); +} +function MeanAggregationFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'ignoreNoData': json['ignoreNoData'], + 'type': json['type'], + }; +} +function MeanAggregationToJSON(json) { + return MeanAggregationToJSONTyped(json, false); +} +function MeanAggregationToJSONTyped(value, ignoreDiscriminator = false) { + if (value == null) { + return value; + } + return { + 'ignoreNoData': value['ignoreNoData'], + 'type': value['type'], + }; +} diff --git a/typescript/dist/models/MinAggregation.d.ts b/typescript/dist/models/MinAggregation.d.ts new file mode 100644 index 00000000..21fe87ea --- /dev/null +++ b/typescript/dist/models/MinAggregation.d.ts @@ -0,0 +1,45 @@ +/** + * Geo Engine API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface MinAggregation + */ +export interface MinAggregation { + /** + * + * @type {boolean} + * @memberof MinAggregation + */ + ignoreNoData: boolean; + /** + * + * @type {MinAggregationTypeEnum} + * @memberof MinAggregation + */ + type: MinAggregationTypeEnum; +} +/** + * @export + */ +export declare const MinAggregationTypeEnum: { + readonly Min: "min"; +}; +export type MinAggregationTypeEnum = typeof MinAggregationTypeEnum[keyof typeof MinAggregationTypeEnum]; +/** + * Check if a given object implements the MinAggregation interface. + */ +export declare function instanceOfMinAggregation(value: object): value is MinAggregation; +export declare function MinAggregationFromJSON(json: any): MinAggregation; +export declare function MinAggregationFromJSONTyped(json: any, ignoreDiscriminator: boolean): MinAggregation; +export declare function MinAggregationToJSON(json: any): MinAggregation; +export declare function MinAggregationToJSONTyped(value?: MinAggregation | null, ignoreDiscriminator?: boolean): any; diff --git a/typescript/dist/models/MinAggregation.js b/typescript/dist/models/MinAggregation.js new file mode 100644 index 00000000..0f169c83 --- /dev/null +++ b/typescript/dist/models/MinAggregation.js @@ -0,0 +1,61 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.MinAggregationTypeEnum = void 0; +exports.instanceOfMinAggregation = instanceOfMinAggregation; +exports.MinAggregationFromJSON = MinAggregationFromJSON; +exports.MinAggregationFromJSONTyped = MinAggregationFromJSONTyped; +exports.MinAggregationToJSON = MinAggregationToJSON; +exports.MinAggregationToJSONTyped = MinAggregationToJSONTyped; +/** + * @export + */ +exports.MinAggregationTypeEnum = { + Min: 'min' +}; +/** + * Check if a given object implements the MinAggregation interface. + */ +function instanceOfMinAggregation(value) { + if (!('ignoreNoData' in value) || value['ignoreNoData'] === undefined) + return false; + if (!('type' in value) || value['type'] === undefined) + return false; + return true; +} +function MinAggregationFromJSON(json) { + return MinAggregationFromJSONTyped(json, false); +} +function MinAggregationFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'ignoreNoData': json['ignoreNoData'], + 'type': json['type'], + }; +} +function MinAggregationToJSON(json) { + return MinAggregationToJSONTyped(json, false); +} +function MinAggregationToJSONTyped(value, ignoreDiscriminator = false) { + if (value == null) { + return value; + } + return { + 'ignoreNoData': value['ignoreNoData'], + 'type': value['type'], + }; +} diff --git a/typescript/dist/models/MultiBandGdalSource.d.ts b/typescript/dist/models/MultiBandGdalSource.d.ts new file mode 100644 index 00000000..81d1ee0f --- /dev/null +++ b/typescript/dist/models/MultiBandGdalSource.d.ts @@ -0,0 +1,46 @@ +/** + * Geo Engine API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { GdalSourceParameters } from './GdalSourceParameters'; +/** + * The [`MultiBandGdalSource`] is a source operator that reads multi-band raster data using GDAL. + * @export + * @interface MultiBandGdalSource + */ +export interface MultiBandGdalSource { + /** + * + * @type {GdalSourceParameters} + * @memberof MultiBandGdalSource + */ + params: GdalSourceParameters; + /** + * + * @type {MultiBandGdalSourceTypeEnum} + * @memberof MultiBandGdalSource + */ + type: MultiBandGdalSourceTypeEnum; +} +/** + * @export + */ +export declare const MultiBandGdalSourceTypeEnum: { + readonly MultiBandGdalSource: "MultiBandGdalSource"; +}; +export type MultiBandGdalSourceTypeEnum = typeof MultiBandGdalSourceTypeEnum[keyof typeof MultiBandGdalSourceTypeEnum]; +/** + * Check if a given object implements the MultiBandGdalSource interface. + */ +export declare function instanceOfMultiBandGdalSource(value: object): value is MultiBandGdalSource; +export declare function MultiBandGdalSourceFromJSON(json: any): MultiBandGdalSource; +export declare function MultiBandGdalSourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): MultiBandGdalSource; +export declare function MultiBandGdalSourceToJSON(json: any): MultiBandGdalSource; +export declare function MultiBandGdalSourceToJSONTyped(value?: MultiBandGdalSource | null, ignoreDiscriminator?: boolean): any; diff --git a/typescript/dist/models/MultiBandGdalSource.js b/typescript/dist/models/MultiBandGdalSource.js new file mode 100644 index 00000000..da510479 --- /dev/null +++ b/typescript/dist/models/MultiBandGdalSource.js @@ -0,0 +1,62 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.MultiBandGdalSourceTypeEnum = void 0; +exports.instanceOfMultiBandGdalSource = instanceOfMultiBandGdalSource; +exports.MultiBandGdalSourceFromJSON = MultiBandGdalSourceFromJSON; +exports.MultiBandGdalSourceFromJSONTyped = MultiBandGdalSourceFromJSONTyped; +exports.MultiBandGdalSourceToJSON = MultiBandGdalSourceToJSON; +exports.MultiBandGdalSourceToJSONTyped = MultiBandGdalSourceToJSONTyped; +const GdalSourceParameters_1 = require("./GdalSourceParameters"); +/** + * @export + */ +exports.MultiBandGdalSourceTypeEnum = { + MultiBandGdalSource: 'MultiBandGdalSource' +}; +/** + * Check if a given object implements the MultiBandGdalSource interface. + */ +function instanceOfMultiBandGdalSource(value) { + if (!('params' in value) || value['params'] === undefined) + return false; + if (!('type' in value) || value['type'] === undefined) + return false; + return true; +} +function MultiBandGdalSourceFromJSON(json) { + return MultiBandGdalSourceFromJSONTyped(json, false); +} +function MultiBandGdalSourceFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'params': (0, GdalSourceParameters_1.GdalSourceParametersFromJSON)(json['params']), + 'type': json['type'], + }; +} +function MultiBandGdalSourceToJSON(json) { + return MultiBandGdalSourceToJSONTyped(json, false); +} +function MultiBandGdalSourceToJSONTyped(value, ignoreDiscriminator = false) { + if (value == null) { + return value; + } + return { + 'params': (0, GdalSourceParameters_1.GdalSourceParametersToJSON)(value['params']), + 'type': value['type'], + }; +} diff --git a/typescript/dist/models/MultiLineString1.d.ts b/typescript/dist/models/MultiLineString1.d.ts new file mode 100644 index 00000000..bdac3628 --- /dev/null +++ b/typescript/dist/models/MultiLineString1.d.ts @@ -0,0 +1,33 @@ +/** + * Geo Engine API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { MultiLineString } from './MultiLineString'; +/** + * + * @export + * @interface MultiLineString1 + */ +export interface MultiLineString1 { + /** + * + * @type {MultiLineString} + * @memberof MultiLineString1 + */ + multiLineString: MultiLineString; +} +/** + * Check if a given object implements the MultiLineString1 interface. + */ +export declare function instanceOfMultiLineString1(value: object): value is MultiLineString1; +export declare function MultiLineString1FromJSON(json: any): MultiLineString1; +export declare function MultiLineString1FromJSONTyped(json: any, ignoreDiscriminator: boolean): MultiLineString1; +export declare function MultiLineString1ToJSON(json: any): MultiLineString1; +export declare function MultiLineString1ToJSONTyped(value?: MultiLineString1 | null, ignoreDiscriminator?: boolean): any; diff --git a/typescript/dist/models/TypedGeometryOneOf2.js b/typescript/dist/models/MultiLineString1.js similarity index 55% rename from typescript/dist/models/TypedGeometryOneOf2.js rename to typescript/dist/models/MultiLineString1.js index 97848b94..772ba49a 100644 --- a/typescript/dist/models/TypedGeometryOneOf2.js +++ b/typescript/dist/models/MultiLineString1.js @@ -13,24 +13,24 @@ * Do not edit the class manually. */ Object.defineProperty(exports, "__esModule", { value: true }); -exports.instanceOfTypedGeometryOneOf2 = instanceOfTypedGeometryOneOf2; -exports.TypedGeometryOneOf2FromJSON = TypedGeometryOneOf2FromJSON; -exports.TypedGeometryOneOf2FromJSONTyped = TypedGeometryOneOf2FromJSONTyped; -exports.TypedGeometryOneOf2ToJSON = TypedGeometryOneOf2ToJSON; -exports.TypedGeometryOneOf2ToJSONTyped = TypedGeometryOneOf2ToJSONTyped; +exports.instanceOfMultiLineString1 = instanceOfMultiLineString1; +exports.MultiLineString1FromJSON = MultiLineString1FromJSON; +exports.MultiLineString1FromJSONTyped = MultiLineString1FromJSONTyped; +exports.MultiLineString1ToJSON = MultiLineString1ToJSON; +exports.MultiLineString1ToJSONTyped = MultiLineString1ToJSONTyped; const MultiLineString_1 = require("./MultiLineString"); /** - * Check if a given object implements the TypedGeometryOneOf2 interface. + * Check if a given object implements the MultiLineString1 interface. */ -function instanceOfTypedGeometryOneOf2(value) { +function instanceOfMultiLineString1(value) { if (!('multiLineString' in value) || value['multiLineString'] === undefined) return false; return true; } -function TypedGeometryOneOf2FromJSON(json) { - return TypedGeometryOneOf2FromJSONTyped(json, false); +function MultiLineString1FromJSON(json) { + return MultiLineString1FromJSONTyped(json, false); } -function TypedGeometryOneOf2FromJSONTyped(json, ignoreDiscriminator) { +function MultiLineString1FromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } @@ -38,10 +38,10 @@ function TypedGeometryOneOf2FromJSONTyped(json, ignoreDiscriminator) { 'multiLineString': (0, MultiLineString_1.MultiLineStringFromJSON)(json['MultiLineString']), }; } -function TypedGeometryOneOf2ToJSON(json) { - return TypedGeometryOneOf2ToJSONTyped(json, false); +function MultiLineString1ToJSON(json) { + return MultiLineString1ToJSONTyped(json, false); } -function TypedGeometryOneOf2ToJSONTyped(value, ignoreDiscriminator = false) { +function MultiLineString1ToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } diff --git a/typescript/dist/models/MultiPoint1.d.ts b/typescript/dist/models/MultiPoint1.d.ts new file mode 100644 index 00000000..2b106fa1 --- /dev/null +++ b/typescript/dist/models/MultiPoint1.d.ts @@ -0,0 +1,33 @@ +/** + * Geo Engine API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { MultiPoint } from './MultiPoint'; +/** + * + * @export + * @interface MultiPoint1 + */ +export interface MultiPoint1 { + /** + * + * @type {MultiPoint} + * @memberof MultiPoint1 + */ + multiPoint: MultiPoint; +} +/** + * Check if a given object implements the MultiPoint1 interface. + */ +export declare function instanceOfMultiPoint1(value: object): value is MultiPoint1; +export declare function MultiPoint1FromJSON(json: any): MultiPoint1; +export declare function MultiPoint1FromJSONTyped(json: any, ignoreDiscriminator: boolean): MultiPoint1; +export declare function MultiPoint1ToJSON(json: any): MultiPoint1; +export declare function MultiPoint1ToJSONTyped(value?: MultiPoint1 | null, ignoreDiscriminator?: boolean): any; diff --git a/typescript/dist/models/TypedGeometryOneOf1.js b/typescript/dist/models/MultiPoint1.js similarity index 54% rename from typescript/dist/models/TypedGeometryOneOf1.js rename to typescript/dist/models/MultiPoint1.js index 3b4a00fb..261a11e7 100644 --- a/typescript/dist/models/TypedGeometryOneOf1.js +++ b/typescript/dist/models/MultiPoint1.js @@ -13,24 +13,24 @@ * Do not edit the class manually. */ Object.defineProperty(exports, "__esModule", { value: true }); -exports.instanceOfTypedGeometryOneOf1 = instanceOfTypedGeometryOneOf1; -exports.TypedGeometryOneOf1FromJSON = TypedGeometryOneOf1FromJSON; -exports.TypedGeometryOneOf1FromJSONTyped = TypedGeometryOneOf1FromJSONTyped; -exports.TypedGeometryOneOf1ToJSON = TypedGeometryOneOf1ToJSON; -exports.TypedGeometryOneOf1ToJSONTyped = TypedGeometryOneOf1ToJSONTyped; +exports.instanceOfMultiPoint1 = instanceOfMultiPoint1; +exports.MultiPoint1FromJSON = MultiPoint1FromJSON; +exports.MultiPoint1FromJSONTyped = MultiPoint1FromJSONTyped; +exports.MultiPoint1ToJSON = MultiPoint1ToJSON; +exports.MultiPoint1ToJSONTyped = MultiPoint1ToJSONTyped; const MultiPoint_1 = require("./MultiPoint"); /** - * Check if a given object implements the TypedGeometryOneOf1 interface. + * Check if a given object implements the MultiPoint1 interface. */ -function instanceOfTypedGeometryOneOf1(value) { +function instanceOfMultiPoint1(value) { if (!('multiPoint' in value) || value['multiPoint'] === undefined) return false; return true; } -function TypedGeometryOneOf1FromJSON(json) { - return TypedGeometryOneOf1FromJSONTyped(json, false); +function MultiPoint1FromJSON(json) { + return MultiPoint1FromJSONTyped(json, false); } -function TypedGeometryOneOf1FromJSONTyped(json, ignoreDiscriminator) { +function MultiPoint1FromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } @@ -38,10 +38,10 @@ function TypedGeometryOneOf1FromJSONTyped(json, ignoreDiscriminator) { 'multiPoint': (0, MultiPoint_1.MultiPointFromJSON)(json['MultiPoint']), }; } -function TypedGeometryOneOf1ToJSON(json) { - return TypedGeometryOneOf1ToJSONTyped(json, false); +function MultiPoint1ToJSON(json) { + return MultiPoint1ToJSONTyped(json, false); } -function TypedGeometryOneOf1ToJSONTyped(value, ignoreDiscriminator = false) { +function MultiPoint1ToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } diff --git a/typescript/dist/models/MultiPolygon1.d.ts b/typescript/dist/models/MultiPolygon1.d.ts new file mode 100644 index 00000000..d9855ea5 --- /dev/null +++ b/typescript/dist/models/MultiPolygon1.d.ts @@ -0,0 +1,33 @@ +/** + * Geo Engine API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { MultiPolygon } from './MultiPolygon'; +/** + * + * @export + * @interface MultiPolygon1 + */ +export interface MultiPolygon1 { + /** + * + * @type {MultiPolygon} + * @memberof MultiPolygon1 + */ + multiPolygon: MultiPolygon; +} +/** + * Check if a given object implements the MultiPolygon1 interface. + */ +export declare function instanceOfMultiPolygon1(value: object): value is MultiPolygon1; +export declare function MultiPolygon1FromJSON(json: any): MultiPolygon1; +export declare function MultiPolygon1FromJSONTyped(json: any, ignoreDiscriminator: boolean): MultiPolygon1; +export declare function MultiPolygon1ToJSON(json: any): MultiPolygon1; +export declare function MultiPolygon1ToJSONTyped(value?: MultiPolygon1 | null, ignoreDiscriminator?: boolean): any; diff --git a/typescript/dist/models/TypedGeometryOneOf3.js b/typescript/dist/models/MultiPolygon1.js similarity index 54% rename from typescript/dist/models/TypedGeometryOneOf3.js rename to typescript/dist/models/MultiPolygon1.js index 820968be..2c125e5f 100644 --- a/typescript/dist/models/TypedGeometryOneOf3.js +++ b/typescript/dist/models/MultiPolygon1.js @@ -13,24 +13,24 @@ * Do not edit the class manually. */ Object.defineProperty(exports, "__esModule", { value: true }); -exports.instanceOfTypedGeometryOneOf3 = instanceOfTypedGeometryOneOf3; -exports.TypedGeometryOneOf3FromJSON = TypedGeometryOneOf3FromJSON; -exports.TypedGeometryOneOf3FromJSONTyped = TypedGeometryOneOf3FromJSONTyped; -exports.TypedGeometryOneOf3ToJSON = TypedGeometryOneOf3ToJSON; -exports.TypedGeometryOneOf3ToJSONTyped = TypedGeometryOneOf3ToJSONTyped; +exports.instanceOfMultiPolygon1 = instanceOfMultiPolygon1; +exports.MultiPolygon1FromJSON = MultiPolygon1FromJSON; +exports.MultiPolygon1FromJSONTyped = MultiPolygon1FromJSONTyped; +exports.MultiPolygon1ToJSON = MultiPolygon1ToJSON; +exports.MultiPolygon1ToJSONTyped = MultiPolygon1ToJSONTyped; const MultiPolygon_1 = require("./MultiPolygon"); /** - * Check if a given object implements the TypedGeometryOneOf3 interface. + * Check if a given object implements the MultiPolygon1 interface. */ -function instanceOfTypedGeometryOneOf3(value) { +function instanceOfMultiPolygon1(value) { if (!('multiPolygon' in value) || value['multiPolygon'] === undefined) return false; return true; } -function TypedGeometryOneOf3FromJSON(json) { - return TypedGeometryOneOf3FromJSONTyped(json, false); +function MultiPolygon1FromJSON(json) { + return MultiPolygon1FromJSONTyped(json, false); } -function TypedGeometryOneOf3FromJSONTyped(json, ignoreDiscriminator) { +function MultiPolygon1FromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } @@ -38,10 +38,10 @@ function TypedGeometryOneOf3FromJSONTyped(json, ignoreDiscriminator) { 'multiPolygon': (0, MultiPolygon_1.MultiPolygonFromJSON)(json['MultiPolygon']), }; } -function TypedGeometryOneOf3ToJSON(json) { - return TypedGeometryOneOf3ToJSONTyped(json, false); +function MultiPolygon1ToJSON(json) { + return MultiPolygon1ToJSONTyped(json, false); } -function TypedGeometryOneOf3ToJSONTyped(value, ignoreDiscriminator = false) { +function MultiPolygon1ToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } diff --git a/typescript/dist/models/MultipleRasterSources.d.ts b/typescript/dist/models/MultipleRasterSources.d.ts new file mode 100644 index 00000000..b6f97932 --- /dev/null +++ b/typescript/dist/models/MultipleRasterSources.d.ts @@ -0,0 +1,33 @@ +/** + * Geo Engine API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { RasterOperator } from './RasterOperator'; +/** + * One or more raster operators as sources for this operator. + * @export + * @interface MultipleRasterSources + */ +export interface MultipleRasterSources { + /** + * + * @type {Array} + * @memberof MultipleRasterSources + */ + rasters: Array; +} +/** + * Check if a given object implements the MultipleRasterSources interface. + */ +export declare function instanceOfMultipleRasterSources(value: object): value is MultipleRasterSources; +export declare function MultipleRasterSourcesFromJSON(json: any): MultipleRasterSources; +export declare function MultipleRasterSourcesFromJSONTyped(json: any, ignoreDiscriminator: boolean): MultipleRasterSources; +export declare function MultipleRasterSourcesToJSON(json: any): MultipleRasterSources; +export declare function MultipleRasterSourcesToJSONTyped(value?: MultipleRasterSources | null, ignoreDiscriminator?: boolean): any; diff --git a/typescript/dist/models/MultipleRasterSources.js b/typescript/dist/models/MultipleRasterSources.js new file mode 100644 index 00000000..57e5b383 --- /dev/null +++ b/typescript/dist/models/MultipleRasterSources.js @@ -0,0 +1,51 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfMultipleRasterSources = instanceOfMultipleRasterSources; +exports.MultipleRasterSourcesFromJSON = MultipleRasterSourcesFromJSON; +exports.MultipleRasterSourcesFromJSONTyped = MultipleRasterSourcesFromJSONTyped; +exports.MultipleRasterSourcesToJSON = MultipleRasterSourcesToJSON; +exports.MultipleRasterSourcesToJSONTyped = MultipleRasterSourcesToJSONTyped; +const RasterOperator_1 = require("./RasterOperator"); +/** + * Check if a given object implements the MultipleRasterSources interface. + */ +function instanceOfMultipleRasterSources(value) { + if (!('rasters' in value) || value['rasters'] === undefined) + return false; + return true; +} +function MultipleRasterSourcesFromJSON(json) { + return MultipleRasterSourcesFromJSONTyped(json, false); +} +function MultipleRasterSourcesFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'rasters': (json['rasters'].map(RasterOperator_1.RasterOperatorFromJSON)), + }; +} +function MultipleRasterSourcesToJSON(json) { + return MultipleRasterSourcesToJSONTyped(json, false); +} +function MultipleRasterSourcesToJSONTyped(value, ignoreDiscriminator = false) { + if (value == null) { + return value; + } + return { + 'rasters': (value['rasters'].map(RasterOperator_1.RasterOperatorToJSON)), + }; +} diff --git a/typescript/dist/models/NoGeometry1.d.ts b/typescript/dist/models/NoGeometry1.d.ts new file mode 100644 index 00000000..6239e974 --- /dev/null +++ b/typescript/dist/models/NoGeometry1.d.ts @@ -0,0 +1,32 @@ +/** + * Geo Engine API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface NoGeometry1 + */ +export interface NoGeometry1 { + /** + * + * @type {any} + * @memberof NoGeometry1 + */ + data: any | null; +} +/** + * Check if a given object implements the NoGeometry1 interface. + */ +export declare function instanceOfNoGeometry1(value: object): value is NoGeometry1; +export declare function NoGeometry1FromJSON(json: any): NoGeometry1; +export declare function NoGeometry1FromJSONTyped(json: any, ignoreDiscriminator: boolean): NoGeometry1; +export declare function NoGeometry1ToJSON(json: any): NoGeometry1; +export declare function NoGeometry1ToJSONTyped(value?: NoGeometry1 | null, ignoreDiscriminator?: boolean): any; diff --git a/typescript/dist/models/TypedGeometryOneOf.js b/typescript/dist/models/NoGeometry1.js similarity index 50% rename from typescript/dist/models/TypedGeometryOneOf.js rename to typescript/dist/models/NoGeometry1.js index a0d5887f..00300d33 100644 --- a/typescript/dist/models/TypedGeometryOneOf.js +++ b/typescript/dist/models/NoGeometry1.js @@ -13,23 +13,23 @@ * Do not edit the class manually. */ Object.defineProperty(exports, "__esModule", { value: true }); -exports.instanceOfTypedGeometryOneOf = instanceOfTypedGeometryOneOf; -exports.TypedGeometryOneOfFromJSON = TypedGeometryOneOfFromJSON; -exports.TypedGeometryOneOfFromJSONTyped = TypedGeometryOneOfFromJSONTyped; -exports.TypedGeometryOneOfToJSON = TypedGeometryOneOfToJSON; -exports.TypedGeometryOneOfToJSONTyped = TypedGeometryOneOfToJSONTyped; +exports.instanceOfNoGeometry1 = instanceOfNoGeometry1; +exports.NoGeometry1FromJSON = NoGeometry1FromJSON; +exports.NoGeometry1FromJSONTyped = NoGeometry1FromJSONTyped; +exports.NoGeometry1ToJSON = NoGeometry1ToJSON; +exports.NoGeometry1ToJSONTyped = NoGeometry1ToJSONTyped; /** - * Check if a given object implements the TypedGeometryOneOf interface. + * Check if a given object implements the NoGeometry1 interface. */ -function instanceOfTypedGeometryOneOf(value) { +function instanceOfNoGeometry1(value) { if (!('data' in value) || value['data'] === undefined) return false; return true; } -function TypedGeometryOneOfFromJSON(json) { - return TypedGeometryOneOfFromJSONTyped(json, false); +function NoGeometry1FromJSON(json) { + return NoGeometry1FromJSONTyped(json, false); } -function TypedGeometryOneOfFromJSONTyped(json, ignoreDiscriminator) { +function NoGeometry1FromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } @@ -37,10 +37,10 @@ function TypedGeometryOneOfFromJSONTyped(json, ignoreDiscriminator) { 'data': json['Data'], }; } -function TypedGeometryOneOfToJSON(json) { - return TypedGeometryOneOfToJSONTyped(json, false); +function NoGeometry1ToJSON(json) { + return NoGeometry1ToJSONTyped(json, false); } -function TypedGeometryOneOfToJSONTyped(value, ignoreDiscriminator = false) { +function NoGeometry1ToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } diff --git a/typescript/dist/models/Number.d.ts b/typescript/dist/models/Number.d.ts new file mode 100644 index 00000000..5c37975a --- /dev/null +++ b/typescript/dist/models/Number.d.ts @@ -0,0 +1,45 @@ +/** + * Geo Engine API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface Number + */ +export interface Number { + /** + * + * @type {NumberTypeEnum} + * @memberof Number + */ + type: NumberTypeEnum; + /** + * + * @type {number} + * @memberof Number + */ + value: number; +} +/** + * @export + */ +export declare const NumberTypeEnum: { + readonly Number: "number"; +}; +export type NumberTypeEnum = typeof NumberTypeEnum[keyof typeof NumberTypeEnum]; +/** + * Check if a given object implements the Number interface. + */ +export declare function instanceOfNumber(value: object): value is Number; +export declare function NumberFromJSON(json: any): Number; +export declare function NumberFromJSONTyped(json: any, ignoreDiscriminator: boolean): Number; +export declare function NumberToJSON(json: any): Number; +export declare function NumberToJSONTyped(value?: Number | null, ignoreDiscriminator?: boolean): any; diff --git a/typescript/dist/models/HistogramBucketsOneOf.js b/typescript/dist/models/Number.js similarity index 51% rename from typescript/dist/models/HistogramBucketsOneOf.js rename to typescript/dist/models/Number.js index f2575c75..786af976 100644 --- a/typescript/dist/models/HistogramBucketsOneOf.js +++ b/typescript/dist/models/Number.js @@ -13,32 +13,32 @@ * Do not edit the class manually. */ Object.defineProperty(exports, "__esModule", { value: true }); -exports.HistogramBucketsOneOfTypeEnum = void 0; -exports.instanceOfHistogramBucketsOneOf = instanceOfHistogramBucketsOneOf; -exports.HistogramBucketsOneOfFromJSON = HistogramBucketsOneOfFromJSON; -exports.HistogramBucketsOneOfFromJSONTyped = HistogramBucketsOneOfFromJSONTyped; -exports.HistogramBucketsOneOfToJSON = HistogramBucketsOneOfToJSON; -exports.HistogramBucketsOneOfToJSONTyped = HistogramBucketsOneOfToJSONTyped; +exports.NumberTypeEnum = void 0; +exports.instanceOfNumber = instanceOfNumber; +exports.NumberFromJSON = NumberFromJSON; +exports.NumberFromJSONTyped = NumberFromJSONTyped; +exports.NumberToJSON = NumberToJSON; +exports.NumberToJSONTyped = NumberToJSONTyped; /** * @export */ -exports.HistogramBucketsOneOfTypeEnum = { +exports.NumberTypeEnum = { Number: 'number' }; /** - * Check if a given object implements the HistogramBucketsOneOf interface. + * Check if a given object implements the Number interface. */ -function instanceOfHistogramBucketsOneOf(value) { +function instanceOfNumber(value) { if (!('type' in value) || value['type'] === undefined) return false; if (!('value' in value) || value['value'] === undefined) return false; return true; } -function HistogramBucketsOneOfFromJSON(json) { - return HistogramBucketsOneOfFromJSONTyped(json, false); +function NumberFromJSON(json) { + return NumberFromJSONTyped(json, false); } -function HistogramBucketsOneOfFromJSONTyped(json, ignoreDiscriminator) { +function NumberFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } @@ -47,10 +47,10 @@ function HistogramBucketsOneOfFromJSONTyped(json, ignoreDiscriminator) { 'value': json['value'], }; } -function HistogramBucketsOneOfToJSON(json) { - return HistogramBucketsOneOfToJSONTyped(json, false); +function NumberToJSON(json) { + return NumberToJSONTyped(json, false); } -function HistogramBucketsOneOfToJSONTyped(value, ignoreDiscriminator = false) { +function NumberToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } diff --git a/typescript/dist/models/PercentileEstimateAggregation.d.ts b/typescript/dist/models/PercentileEstimateAggregation.d.ts new file mode 100644 index 00000000..2d80820d --- /dev/null +++ b/typescript/dist/models/PercentileEstimateAggregation.d.ts @@ -0,0 +1,51 @@ +/** + * Geo Engine API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface PercentileEstimateAggregation + */ +export interface PercentileEstimateAggregation { + /** + * + * @type {boolean} + * @memberof PercentileEstimateAggregation + */ + ignoreNoData: boolean; + /** + * + * @type {number} + * @memberof PercentileEstimateAggregation + */ + percentile: number; + /** + * + * @type {PercentileEstimateAggregationTypeEnum} + * @memberof PercentileEstimateAggregation + */ + type: PercentileEstimateAggregationTypeEnum; +} +/** + * @export + */ +export declare const PercentileEstimateAggregationTypeEnum: { + readonly PercentileEstimate: "percentileEstimate"; +}; +export type PercentileEstimateAggregationTypeEnum = typeof PercentileEstimateAggregationTypeEnum[keyof typeof PercentileEstimateAggregationTypeEnum]; +/** + * Check if a given object implements the PercentileEstimateAggregation interface. + */ +export declare function instanceOfPercentileEstimateAggregation(value: object): value is PercentileEstimateAggregation; +export declare function PercentileEstimateAggregationFromJSON(json: any): PercentileEstimateAggregation; +export declare function PercentileEstimateAggregationFromJSONTyped(json: any, ignoreDiscriminator: boolean): PercentileEstimateAggregation; +export declare function PercentileEstimateAggregationToJSON(json: any): PercentileEstimateAggregation; +export declare function PercentileEstimateAggregationToJSONTyped(value?: PercentileEstimateAggregation | null, ignoreDiscriminator?: boolean): any; diff --git a/typescript/dist/models/PercentileEstimateAggregation.js b/typescript/dist/models/PercentileEstimateAggregation.js new file mode 100644 index 00000000..9c8202af --- /dev/null +++ b/typescript/dist/models/PercentileEstimateAggregation.js @@ -0,0 +1,65 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.PercentileEstimateAggregationTypeEnum = void 0; +exports.instanceOfPercentileEstimateAggregation = instanceOfPercentileEstimateAggregation; +exports.PercentileEstimateAggregationFromJSON = PercentileEstimateAggregationFromJSON; +exports.PercentileEstimateAggregationFromJSONTyped = PercentileEstimateAggregationFromJSONTyped; +exports.PercentileEstimateAggregationToJSON = PercentileEstimateAggregationToJSON; +exports.PercentileEstimateAggregationToJSONTyped = PercentileEstimateAggregationToJSONTyped; +/** + * @export + */ +exports.PercentileEstimateAggregationTypeEnum = { + PercentileEstimate: 'percentileEstimate' +}; +/** + * Check if a given object implements the PercentileEstimateAggregation interface. + */ +function instanceOfPercentileEstimateAggregation(value) { + if (!('ignoreNoData' in value) || value['ignoreNoData'] === undefined) + return false; + if (!('percentile' in value) || value['percentile'] === undefined) + return false; + if (!('type' in value) || value['type'] === undefined) + return false; + return true; +} +function PercentileEstimateAggregationFromJSON(json) { + return PercentileEstimateAggregationFromJSONTyped(json, false); +} +function PercentileEstimateAggregationFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'ignoreNoData': json['ignoreNoData'], + 'percentile': json['percentile'], + 'type': json['type'], + }; +} +function PercentileEstimateAggregationToJSON(json) { + return PercentileEstimateAggregationToJSONTyped(json, false); +} +function PercentileEstimateAggregationToJSONTyped(value, ignoreDiscriminator = false) { + if (value == null) { + return value; + } + return { + 'ignoreNoData': value['ignoreNoData'], + 'percentile': value['percentile'], + 'type': value['type'], + }; +} diff --git a/typescript/dist/models/RasterOperator.d.ts b/typescript/dist/models/RasterOperator.d.ts index 13886517..6597bdd2 100644 --- a/typescript/dist/models/RasterOperator.d.ts +++ b/typescript/dist/models/RasterOperator.d.ts @@ -9,18 +9,39 @@ * https://openapi-generator.tech * Do not edit the class manually. */ +import type { BandFilter } from './BandFilter'; import type { Expression } from './Expression'; import type { GdalSource } from './GdalSource'; +import type { Interpolation } from './Interpolation'; +import type { MultiBandGdalSource } from './MultiBandGdalSource'; +import type { RasterStacker } from './RasterStacker'; +import type { RasterTypeConversion } from './RasterTypeConversion'; +import type { Reprojection } from './Reprojection'; +import type { TemporalRasterAggregation } from './TemporalRasterAggregation'; /** * @type RasterOperator * An operator that produces raster data. * @export */ export type RasterOperator = { + type: 'BandFilter'; +} & BandFilter | { type: 'Expression'; } & Expression | { type: 'GdalSource'; -} & GdalSource; +} & GdalSource | { + type: 'Interpolation'; +} & Interpolation | { + type: 'MultiBandGdalSource'; +} & MultiBandGdalSource | { + type: 'RasterStacker'; +} & RasterStacker | { + type: 'RasterTypeConversion'; +} & RasterTypeConversion | { + type: 'Reprojection'; +} & Reprojection | { + type: 'TemporalRasterAggregation'; +} & TemporalRasterAggregation; export declare function RasterOperatorFromJSON(json: any): RasterOperator; export declare function RasterOperatorFromJSONTyped(json: any, ignoreDiscriminator: boolean): RasterOperator; export declare function RasterOperatorToJSON(json: any): any; diff --git a/typescript/dist/models/RasterOperator.js b/typescript/dist/models/RasterOperator.js index 4e976c43..8ad57ebf 100644 --- a/typescript/dist/models/RasterOperator.js +++ b/typescript/dist/models/RasterOperator.js @@ -18,8 +18,15 @@ exports.RasterOperatorFromJSONTyped = RasterOperatorFromJSONTyped; exports.RasterOperatorToJSON = RasterOperatorToJSON; exports.RasterOperatorToJSONTyped = RasterOperatorToJSONTyped; exports.instanceOfRasterOperator = instanceOfRasterOperator; +const BandFilter_1 = require("./BandFilter"); const Expression_1 = require("./Expression"); const GdalSource_1 = require("./GdalSource"); +const Interpolation_1 = require("./Interpolation"); +const MultiBandGdalSource_1 = require("./MultiBandGdalSource"); +const RasterStacker_1 = require("./RasterStacker"); +const RasterTypeConversion_1 = require("./RasterTypeConversion"); +const Reprojection_1 = require("./Reprojection"); +const TemporalRasterAggregation_1 = require("./TemporalRasterAggregation"); function RasterOperatorFromJSON(json) { return RasterOperatorFromJSONTyped(json, false); } @@ -28,10 +35,24 @@ function RasterOperatorFromJSONTyped(json, ignoreDiscriminator) { return json; } switch (json['type']) { + case 'BandFilter': + return Object.assign({}, (0, BandFilter_1.BandFilterFromJSONTyped)(json, true), { type: 'BandFilter' }); case 'Expression': return Object.assign({}, (0, Expression_1.ExpressionFromJSONTyped)(json, true), { type: 'Expression' }); case 'GdalSource': return Object.assign({}, (0, GdalSource_1.GdalSourceFromJSONTyped)(json, true), { type: 'GdalSource' }); + case 'Interpolation': + return Object.assign({}, (0, Interpolation_1.InterpolationFromJSONTyped)(json, true), { type: 'Interpolation' }); + case 'MultiBandGdalSource': + return Object.assign({}, (0, MultiBandGdalSource_1.MultiBandGdalSourceFromJSONTyped)(json, true), { type: 'MultiBandGdalSource' }); + case 'RasterStacker': + return Object.assign({}, (0, RasterStacker_1.RasterStackerFromJSONTyped)(json, true), { type: 'RasterStacker' }); + case 'RasterTypeConversion': + return Object.assign({}, (0, RasterTypeConversion_1.RasterTypeConversionFromJSONTyped)(json, true), { type: 'RasterTypeConversion' }); + case 'Reprojection': + return Object.assign({}, (0, Reprojection_1.ReprojectionFromJSONTyped)(json, true), { type: 'Reprojection' }); + case 'TemporalRasterAggregation': + return Object.assign({}, (0, TemporalRasterAggregation_1.TemporalRasterAggregationFromJSONTyped)(json, true), { type: 'TemporalRasterAggregation' }); default: return json; } @@ -44,10 +65,24 @@ function RasterOperatorToJSONTyped(value, ignoreDiscriminator = false) { return value; } switch (value['type']) { + case 'BandFilter': + return Object.assign({}, (0, BandFilter_1.BandFilterToJSON)(value), { type: 'BandFilter' }); case 'Expression': return Object.assign({}, (0, Expression_1.ExpressionToJSON)(value), { type: 'Expression' }); case 'GdalSource': return Object.assign({}, (0, GdalSource_1.GdalSourceToJSON)(value), { type: 'GdalSource' }); + case 'Interpolation': + return Object.assign({}, (0, Interpolation_1.InterpolationToJSON)(value), { type: 'Interpolation' }); + case 'MultiBandGdalSource': + return Object.assign({}, (0, MultiBandGdalSource_1.MultiBandGdalSourceToJSON)(value), { type: 'MultiBandGdalSource' }); + case 'RasterStacker': + return Object.assign({}, (0, RasterStacker_1.RasterStackerToJSON)(value), { type: 'RasterStacker' }); + case 'RasterTypeConversion': + return Object.assign({}, (0, RasterTypeConversion_1.RasterTypeConversionToJSON)(value), { type: 'RasterTypeConversion' }); + case 'Reprojection': + return Object.assign({}, (0, Reprojection_1.ReprojectionToJSON)(value), { type: 'Reprojection' }); + case 'TemporalRasterAggregation': + return Object.assign({}, (0, TemporalRasterAggregation_1.TemporalRasterAggregationToJSON)(value), { type: 'TemporalRasterAggregation' }); default: return value; } diff --git a/typescript/dist/models/RasterStacker.d.ts b/typescript/dist/models/RasterStacker.d.ts new file mode 100644 index 00000000..10960fd5 --- /dev/null +++ b/typescript/dist/models/RasterStacker.d.ts @@ -0,0 +1,63 @@ +/** + * Geo Engine API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { MultipleRasterSources } from './MultipleRasterSources'; +import type { RasterStackerParameters } from './RasterStackerParameters'; +/** + * The `RasterStacker` stacks all of its inputs into a single raster time series. + * It queries all inputs and combines them by band, space, and then time. + * + * The output raster has as many bands as the sum of all input bands. + * Tiles are automatically temporally aligned. + * + * All inputs must have the same data type and spatial reference. + * + * ## Inputs + * + * The `RasterStacker` operator expects multiple raster inputs. + * @export + * @interface RasterStacker + */ +export interface RasterStacker { + /** + * + * @type {RasterStackerParameters} + * @memberof RasterStacker + */ + params: RasterStackerParameters; + /** + * + * @type {MultipleRasterSources} + * @memberof RasterStacker + */ + sources: MultipleRasterSources; + /** + * + * @type {RasterStackerTypeEnum} + * @memberof RasterStacker + */ + type: RasterStackerTypeEnum; +} +/** + * @export + */ +export declare const RasterStackerTypeEnum: { + readonly RasterStacker: "RasterStacker"; +}; +export type RasterStackerTypeEnum = typeof RasterStackerTypeEnum[keyof typeof RasterStackerTypeEnum]; +/** + * Check if a given object implements the RasterStacker interface. + */ +export declare function instanceOfRasterStacker(value: object): value is RasterStacker; +export declare function RasterStackerFromJSON(json: any): RasterStacker; +export declare function RasterStackerFromJSONTyped(json: any, ignoreDiscriminator: boolean): RasterStacker; +export declare function RasterStackerToJSON(json: any): RasterStacker; +export declare function RasterStackerToJSONTyped(value?: RasterStacker | null, ignoreDiscriminator?: boolean): any; diff --git a/typescript/dist/models/RasterStacker.js b/typescript/dist/models/RasterStacker.js new file mode 100644 index 00000000..86097fc8 --- /dev/null +++ b/typescript/dist/models/RasterStacker.js @@ -0,0 +1,67 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.RasterStackerTypeEnum = void 0; +exports.instanceOfRasterStacker = instanceOfRasterStacker; +exports.RasterStackerFromJSON = RasterStackerFromJSON; +exports.RasterStackerFromJSONTyped = RasterStackerFromJSONTyped; +exports.RasterStackerToJSON = RasterStackerToJSON; +exports.RasterStackerToJSONTyped = RasterStackerToJSONTyped; +const MultipleRasterSources_1 = require("./MultipleRasterSources"); +const RasterStackerParameters_1 = require("./RasterStackerParameters"); +/** + * @export + */ +exports.RasterStackerTypeEnum = { + RasterStacker: 'RasterStacker' +}; +/** + * Check if a given object implements the RasterStacker interface. + */ +function instanceOfRasterStacker(value) { + if (!('params' in value) || value['params'] === undefined) + return false; + if (!('sources' in value) || value['sources'] === undefined) + return false; + if (!('type' in value) || value['type'] === undefined) + return false; + return true; +} +function RasterStackerFromJSON(json) { + return RasterStackerFromJSONTyped(json, false); +} +function RasterStackerFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'params': (0, RasterStackerParameters_1.RasterStackerParametersFromJSON)(json['params']), + 'sources': (0, MultipleRasterSources_1.MultipleRasterSourcesFromJSON)(json['sources']), + 'type': json['type'], + }; +} +function RasterStackerToJSON(json) { + return RasterStackerToJSONTyped(json, false); +} +function RasterStackerToJSONTyped(value, ignoreDiscriminator = false) { + if (value == null) { + return value; + } + return { + 'params': (0, RasterStackerParameters_1.RasterStackerParametersToJSON)(value['params']), + 'sources': (0, MultipleRasterSources_1.MultipleRasterSourcesToJSON)(value['sources']), + 'type': value['type'], + }; +} diff --git a/typescript/dist/models/RasterStackerParameters.d.ts b/typescript/dist/models/RasterStackerParameters.d.ts new file mode 100644 index 00000000..c6bad256 --- /dev/null +++ b/typescript/dist/models/RasterStackerParameters.d.ts @@ -0,0 +1,37 @@ +/** + * Geo Engine API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { RenameBands } from './RenameBands'; +/** + * Parameters for the `RasterStacker` operator. + * @export + * @interface RasterStackerParameters + */ +export interface RasterStackerParameters { + /** + * Strategy for deriving output band names. + * + * - `default`: appends ` (n)` with the smallest `n` that avoids a conflict. + * - `suffix`: appends one suffix per input. + * - `rename`: explicitly provides names for all resulting bands. + * @type {RenameBands} + * @memberof RasterStackerParameters + */ + renameBands: RenameBands; +} +/** + * Check if a given object implements the RasterStackerParameters interface. + */ +export declare function instanceOfRasterStackerParameters(value: object): value is RasterStackerParameters; +export declare function RasterStackerParametersFromJSON(json: any): RasterStackerParameters; +export declare function RasterStackerParametersFromJSONTyped(json: any, ignoreDiscriminator: boolean): RasterStackerParameters; +export declare function RasterStackerParametersToJSON(json: any): RasterStackerParameters; +export declare function RasterStackerParametersToJSONTyped(value?: RasterStackerParameters | null, ignoreDiscriminator?: boolean): any; diff --git a/typescript/dist/models/RasterStackerParameters.js b/typescript/dist/models/RasterStackerParameters.js new file mode 100644 index 00000000..aa498b0c --- /dev/null +++ b/typescript/dist/models/RasterStackerParameters.js @@ -0,0 +1,51 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfRasterStackerParameters = instanceOfRasterStackerParameters; +exports.RasterStackerParametersFromJSON = RasterStackerParametersFromJSON; +exports.RasterStackerParametersFromJSONTyped = RasterStackerParametersFromJSONTyped; +exports.RasterStackerParametersToJSON = RasterStackerParametersToJSON; +exports.RasterStackerParametersToJSONTyped = RasterStackerParametersToJSONTyped; +const RenameBands_1 = require("./RenameBands"); +/** + * Check if a given object implements the RasterStackerParameters interface. + */ +function instanceOfRasterStackerParameters(value) { + if (!('renameBands' in value) || value['renameBands'] === undefined) + return false; + return true; +} +function RasterStackerParametersFromJSON(json) { + return RasterStackerParametersFromJSONTyped(json, false); +} +function RasterStackerParametersFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'renameBands': (0, RenameBands_1.RenameBandsFromJSON)(json['renameBands']), + }; +} +function RasterStackerParametersToJSON(json) { + return RasterStackerParametersToJSONTyped(json, false); +} +function RasterStackerParametersToJSONTyped(value, ignoreDiscriminator = false) { + if (value == null) { + return value; + } + return { + 'renameBands': (0, RenameBands_1.RenameBandsToJSON)(value['renameBands']), + }; +} diff --git a/typescript/dist/models/RasterTypeConversion.d.ts b/typescript/dist/models/RasterTypeConversion.d.ts new file mode 100644 index 00000000..f414aa9c --- /dev/null +++ b/typescript/dist/models/RasterTypeConversion.d.ts @@ -0,0 +1,64 @@ +/** + * Geo Engine API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { SingleRasterSource } from './SingleRasterSource'; +import type { RasterTypeConversionParameters } from './RasterTypeConversionParameters'; +/** + * The `RasterTypeConversion` operator changes the data type of raster pixels. + * + * Applying this conversion may cause precision loss. + * For example, converting `F32` value `3.1` to `U8` results in `3`. + * + * If a value is outside of the range of the target data type, + * it is clipped to the valid range of that type. + * For example, converting `F32` value `300.0` to `U8` results in `255`. + * + * ## Inputs + * + * The `RasterTypeConversion` operator expects exactly one _raster_ input. + * @export + * @interface RasterTypeConversion + */ +export interface RasterTypeConversion { + /** + * + * @type {RasterTypeConversionParameters} + * @memberof RasterTypeConversion + */ + params: RasterTypeConversionParameters; + /** + * + * @type {SingleRasterSource} + * @memberof RasterTypeConversion + */ + sources: SingleRasterSource; + /** + * + * @type {RasterTypeConversionTypeEnum} + * @memberof RasterTypeConversion + */ + type: RasterTypeConversionTypeEnum; +} +/** + * @export + */ +export declare const RasterTypeConversionTypeEnum: { + readonly RasterTypeConversion: "RasterTypeConversion"; +}; +export type RasterTypeConversionTypeEnum = typeof RasterTypeConversionTypeEnum[keyof typeof RasterTypeConversionTypeEnum]; +/** + * Check if a given object implements the RasterTypeConversion interface. + */ +export declare function instanceOfRasterTypeConversion(value: object): value is RasterTypeConversion; +export declare function RasterTypeConversionFromJSON(json: any): RasterTypeConversion; +export declare function RasterTypeConversionFromJSONTyped(json: any, ignoreDiscriminator: boolean): RasterTypeConversion; +export declare function RasterTypeConversionToJSON(json: any): RasterTypeConversion; +export declare function RasterTypeConversionToJSONTyped(value?: RasterTypeConversion | null, ignoreDiscriminator?: boolean): any; diff --git a/typescript/dist/models/RasterTypeConversion.js b/typescript/dist/models/RasterTypeConversion.js new file mode 100644 index 00000000..c580bd20 --- /dev/null +++ b/typescript/dist/models/RasterTypeConversion.js @@ -0,0 +1,67 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.RasterTypeConversionTypeEnum = void 0; +exports.instanceOfRasterTypeConversion = instanceOfRasterTypeConversion; +exports.RasterTypeConversionFromJSON = RasterTypeConversionFromJSON; +exports.RasterTypeConversionFromJSONTyped = RasterTypeConversionFromJSONTyped; +exports.RasterTypeConversionToJSON = RasterTypeConversionToJSON; +exports.RasterTypeConversionToJSONTyped = RasterTypeConversionToJSONTyped; +const SingleRasterSource_1 = require("./SingleRasterSource"); +const RasterTypeConversionParameters_1 = require("./RasterTypeConversionParameters"); +/** + * @export + */ +exports.RasterTypeConversionTypeEnum = { + RasterTypeConversion: 'RasterTypeConversion' +}; +/** + * Check if a given object implements the RasterTypeConversion interface. + */ +function instanceOfRasterTypeConversion(value) { + if (!('params' in value) || value['params'] === undefined) + return false; + if (!('sources' in value) || value['sources'] === undefined) + return false; + if (!('type' in value) || value['type'] === undefined) + return false; + return true; +} +function RasterTypeConversionFromJSON(json) { + return RasterTypeConversionFromJSONTyped(json, false); +} +function RasterTypeConversionFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'params': (0, RasterTypeConversionParameters_1.RasterTypeConversionParametersFromJSON)(json['params']), + 'sources': (0, SingleRasterSource_1.SingleRasterSourceFromJSON)(json['sources']), + 'type': json['type'], + }; +} +function RasterTypeConversionToJSON(json) { + return RasterTypeConversionToJSONTyped(json, false); +} +function RasterTypeConversionToJSONTyped(value, ignoreDiscriminator = false) { + if (value == null) { + return value; + } + return { + 'params': (0, RasterTypeConversionParameters_1.RasterTypeConversionParametersToJSON)(value['params']), + 'sources': (0, SingleRasterSource_1.SingleRasterSourceToJSON)(value['sources']), + 'type': value['type'], + }; +} diff --git a/typescript/dist/models/RasterTypeConversionParameters.d.ts b/typescript/dist/models/RasterTypeConversionParameters.d.ts new file mode 100644 index 00000000..e3936f44 --- /dev/null +++ b/typescript/dist/models/RasterTypeConversionParameters.d.ts @@ -0,0 +1,33 @@ +/** + * Geo Engine API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { RasterDataType } from './RasterDataType'; +/** + * Parameters for the `RasterTypeConversion` operator. + * @export + * @interface RasterTypeConversionParameters + */ +export interface RasterTypeConversionParameters { + /** + * Output raster data type. + * @type {RasterDataType} + * @memberof RasterTypeConversionParameters + */ + outputDataType: RasterDataType; +} +/** + * Check if a given object implements the RasterTypeConversionParameters interface. + */ +export declare function instanceOfRasterTypeConversionParameters(value: object): value is RasterTypeConversionParameters; +export declare function RasterTypeConversionParametersFromJSON(json: any): RasterTypeConversionParameters; +export declare function RasterTypeConversionParametersFromJSONTyped(json: any, ignoreDiscriminator: boolean): RasterTypeConversionParameters; +export declare function RasterTypeConversionParametersToJSON(json: any): RasterTypeConversionParameters; +export declare function RasterTypeConversionParametersToJSONTyped(value?: RasterTypeConversionParameters | null, ignoreDiscriminator?: boolean): any; diff --git a/typescript/dist/models/RasterTypeConversionParameters.js b/typescript/dist/models/RasterTypeConversionParameters.js new file mode 100644 index 00000000..69525324 --- /dev/null +++ b/typescript/dist/models/RasterTypeConversionParameters.js @@ -0,0 +1,51 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfRasterTypeConversionParameters = instanceOfRasterTypeConversionParameters; +exports.RasterTypeConversionParametersFromJSON = RasterTypeConversionParametersFromJSON; +exports.RasterTypeConversionParametersFromJSONTyped = RasterTypeConversionParametersFromJSONTyped; +exports.RasterTypeConversionParametersToJSON = RasterTypeConversionParametersToJSON; +exports.RasterTypeConversionParametersToJSONTyped = RasterTypeConversionParametersToJSONTyped; +const RasterDataType_1 = require("./RasterDataType"); +/** + * Check if a given object implements the RasterTypeConversionParameters interface. + */ +function instanceOfRasterTypeConversionParameters(value) { + if (!('outputDataType' in value) || value['outputDataType'] === undefined) + return false; + return true; +} +function RasterTypeConversionParametersFromJSON(json) { + return RasterTypeConversionParametersFromJSONTyped(json, false); +} +function RasterTypeConversionParametersFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'outputDataType': (0, RasterDataType_1.RasterDataTypeFromJSON)(json['outputDataType']), + }; +} +function RasterTypeConversionParametersToJSON(json) { + return RasterTypeConversionParametersToJSONTyped(json, false); +} +function RasterTypeConversionParametersToJSONTyped(value, ignoreDiscriminator = false) { + if (value == null) { + return value; + } + return { + 'outputDataType': (0, RasterDataType_1.RasterDataTypeToJSON)(value['outputDataType']), + }; +} diff --git a/typescript/dist/models/Regular.d.ts b/typescript/dist/models/Regular.d.ts new file mode 100644 index 00000000..b22ba5cf --- /dev/null +++ b/typescript/dist/models/Regular.d.ts @@ -0,0 +1,40 @@ +/** + * Geo Engine API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { RegularTimeDimension } from './RegularTimeDimension'; +/** + * + * @export + * @interface Regular + */ +export interface Regular extends RegularTimeDimension { + /** + * + * @type {RegularTypeEnum} + * @memberof Regular + */ + type: RegularTypeEnum; +} +/** + * @export + */ +export declare const RegularTypeEnum: { + readonly Regular: "regular"; +}; +export type RegularTypeEnum = typeof RegularTypeEnum[keyof typeof RegularTypeEnum]; +/** + * Check if a given object implements the Regular interface. + */ +export declare function instanceOfRegular(value: object): value is Regular; +export declare function RegularFromJSON(json: any): Regular; +export declare function RegularFromJSONTyped(json: any, ignoreDiscriminator: boolean): Regular; +export declare function RegularToJSON(json: any): Regular; +export declare function RegularToJSONTyped(value?: Regular | null, ignoreDiscriminator?: boolean): any; diff --git a/typescript/dist/models/TimeDimensionOneOf.js b/typescript/dist/models/Regular.js similarity index 55% rename from typescript/dist/models/TimeDimensionOneOf.js rename to typescript/dist/models/Regular.js index 8ec4d977..11584805 100644 --- a/typescript/dist/models/TimeDimensionOneOf.js +++ b/typescript/dist/models/Regular.js @@ -13,40 +13,40 @@ * Do not edit the class manually. */ Object.defineProperty(exports, "__esModule", { value: true }); -exports.TimeDimensionOneOfTypeEnum = void 0; -exports.instanceOfTimeDimensionOneOf = instanceOfTimeDimensionOneOf; -exports.TimeDimensionOneOfFromJSON = TimeDimensionOneOfFromJSON; -exports.TimeDimensionOneOfFromJSONTyped = TimeDimensionOneOfFromJSONTyped; -exports.TimeDimensionOneOfToJSON = TimeDimensionOneOfToJSON; -exports.TimeDimensionOneOfToJSONTyped = TimeDimensionOneOfToJSONTyped; +exports.RegularTypeEnum = void 0; +exports.instanceOfRegular = instanceOfRegular; +exports.RegularFromJSON = RegularFromJSON; +exports.RegularFromJSONTyped = RegularFromJSONTyped; +exports.RegularToJSON = RegularToJSON; +exports.RegularToJSONTyped = RegularToJSONTyped; const RegularTimeDimension_1 = require("./RegularTimeDimension"); /** * @export */ -exports.TimeDimensionOneOfTypeEnum = { +exports.RegularTypeEnum = { Regular: 'regular' }; /** - * Check if a given object implements the TimeDimensionOneOf interface. + * Check if a given object implements the Regular interface. */ -function instanceOfTimeDimensionOneOf(value) { +function instanceOfRegular(value) { if (!('type' in value) || value['type'] === undefined) return false; return true; } -function TimeDimensionOneOfFromJSON(json) { - return TimeDimensionOneOfFromJSONTyped(json, false); +function RegularFromJSON(json) { + return RegularFromJSONTyped(json, false); } -function TimeDimensionOneOfFromJSONTyped(json, ignoreDiscriminator) { +function RegularFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return Object.assign(Object.assign({}, (0, RegularTimeDimension_1.RegularTimeDimensionFromJSONTyped)(json, true)), { 'type': json['type'] }); } -function TimeDimensionOneOfToJSON(json) { - return TimeDimensionOneOfToJSONTyped(json, false); +function RegularToJSON(json) { + return RegularToJSONTyped(json, false); } -function TimeDimensionOneOfToJSONTyped(value, ignoreDiscriminator = false) { +function RegularToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } diff --git a/typescript/dist/models/Rename.d.ts b/typescript/dist/models/Rename.d.ts new file mode 100644 index 00000000..9bdc276c --- /dev/null +++ b/typescript/dist/models/Rename.d.ts @@ -0,0 +1,45 @@ +/** + * Geo Engine API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface Rename + */ +export interface Rename { + /** + * + * @type {RenameTypeEnum} + * @memberof Rename + */ + type: RenameTypeEnum; + /** + * + * @type {Array} + * @memberof Rename + */ + values: Array; +} +/** + * @export + */ +export declare const RenameTypeEnum: { + readonly Rename: "rename"; +}; +export type RenameTypeEnum = typeof RenameTypeEnum[keyof typeof RenameTypeEnum]; +/** + * Check if a given object implements the Rename interface. + */ +export declare function instanceOfRename(value: object): value is Rename; +export declare function RenameFromJSON(json: any): Rename; +export declare function RenameFromJSONTyped(json: any, ignoreDiscriminator: boolean): Rename; +export declare function RenameToJSON(json: any): Rename; +export declare function RenameToJSONTyped(value?: Rename | null, ignoreDiscriminator?: boolean): any; diff --git a/typescript/dist/models/Rename.js b/typescript/dist/models/Rename.js new file mode 100644 index 00000000..93d64402 --- /dev/null +++ b/typescript/dist/models/Rename.js @@ -0,0 +1,61 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.RenameTypeEnum = void 0; +exports.instanceOfRename = instanceOfRename; +exports.RenameFromJSON = RenameFromJSON; +exports.RenameFromJSONTyped = RenameFromJSONTyped; +exports.RenameToJSON = RenameToJSON; +exports.RenameToJSONTyped = RenameToJSONTyped; +/** + * @export + */ +exports.RenameTypeEnum = { + Rename: 'rename' +}; +/** + * Check if a given object implements the Rename interface. + */ +function instanceOfRename(value) { + if (!('type' in value) || value['type'] === undefined) + return false; + if (!('values' in value) || value['values'] === undefined) + return false; + return true; +} +function RenameFromJSON(json) { + return RenameFromJSONTyped(json, false); +} +function RenameFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'type': json['type'], + 'values': json['values'], + }; +} +function RenameToJSON(json) { + return RenameToJSONTyped(json, false); +} +function RenameToJSONTyped(value, ignoreDiscriminator = false) { + if (value == null) { + return value; + } + return { + 'type': value['type'], + 'values': value['values'], + }; +} diff --git a/typescript/dist/models/RenameBands.d.ts b/typescript/dist/models/RenameBands.d.ts new file mode 100644 index 00000000..f3c1a253 --- /dev/null +++ b/typescript/dist/models/RenameBands.d.ts @@ -0,0 +1,24 @@ +/** + * Geo Engine API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Default } from './Default'; +import type { Rename } from './Rename'; +import type { Suffix } from './Suffix'; +/** + * @type RenameBands + * + * @export + */ +export type RenameBands = Default | Rename | Suffix; +export declare function RenameBandsFromJSON(json: any): RenameBands; +export declare function RenameBandsFromJSONTyped(json: any, ignoreDiscriminator: boolean): RenameBands; +export declare function RenameBandsToJSON(json: any): any; +export declare function RenameBandsToJSONTyped(value?: RenameBands | null, ignoreDiscriminator?: boolean): any; diff --git a/typescript/dist/models/RenameBands.js b/typescript/dist/models/RenameBands.js new file mode 100644 index 00000000..322f6915 --- /dev/null +++ b/typescript/dist/models/RenameBands.js @@ -0,0 +1,64 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.RenameBandsFromJSON = RenameBandsFromJSON; +exports.RenameBandsFromJSONTyped = RenameBandsFromJSONTyped; +exports.RenameBandsToJSON = RenameBandsToJSON; +exports.RenameBandsToJSONTyped = RenameBandsToJSONTyped; +const Default_1 = require("./Default"); +const Rename_1 = require("./Rename"); +const Suffix_1 = require("./Suffix"); +function RenameBandsFromJSON(json) { + return RenameBandsFromJSONTyped(json, false); +} +function RenameBandsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + if (typeof json !== 'object') { + return json; + } + if ((0, Default_1.instanceOfDefault)(json)) { + return (0, Default_1.DefaultFromJSONTyped)(json, true); + } + if ((0, Rename_1.instanceOfRename)(json)) { + return (0, Rename_1.RenameFromJSONTyped)(json, true); + } + if ((0, Suffix_1.instanceOfSuffix)(json)) { + return (0, Suffix_1.SuffixFromJSONTyped)(json, true); + } + return {}; +} +function RenameBandsToJSON(json) { + return RenameBandsToJSONTyped(json, false); +} +function RenameBandsToJSONTyped(value, ignoreDiscriminator = false) { + if (value == null) { + return value; + } + if (typeof value !== 'object') { + return value; + } + if ((0, Default_1.instanceOfDefault)(value)) { + return (0, Default_1.DefaultToJSON)(value); + } + if ((0, Rename_1.instanceOfRename)(value)) { + return (0, Rename_1.RenameToJSON)(value); + } + if ((0, Suffix_1.instanceOfSuffix)(value)) { + return (0, Suffix_1.SuffixToJSON)(value); + } + return {}; +} diff --git a/typescript/dist/models/Reprojection.d.ts b/typescript/dist/models/Reprojection.d.ts new file mode 100644 index 00000000..5f664d46 --- /dev/null +++ b/typescript/dist/models/Reprojection.d.ts @@ -0,0 +1,79 @@ +/** + * Geo Engine API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ReprojectionParameters } from './ReprojectionParameters'; +import type { SingleRasterOrVectorSource } from './SingleRasterOrVectorSource'; +/** + * The `Reprojection` operator reprojects data from one spatial reference system to another. + * It accepts exactly one input which can either be a raster or a vector data stream. + * The operator produces all data that, after reprojection, is contained in the query rectangle. + * + * ## Data Type Specifics + * + * The concrete behavior depends on the data type. + * + * ### Vector Data + * + * The operator reprojects all coordinates of the features individually. + * The result contains all features that, after reprojection, are intersected by the query rectangle. + * + * ### Raster Data + * + * To create tiles in the target projection, the operator loads corresponding tiles in the source projection. + * For each output pixel, the value of the nearest input pixel is used. + * + * If parts of a tile are outside of the source extent after projection, the operator produces NO DATA values. + * + * ## Inputs + * + * The `Reprojection` operator expects exactly one _raster_ or _vector_ input. + * + * ## Errors + * + * The operator returns an error if the target projection is unknown or if input data cannot be reprojected. + * @export + * @interface Reprojection + */ +export interface Reprojection { + /** + * + * @type {ReprojectionParameters} + * @memberof Reprojection + */ + params: ReprojectionParameters; + /** + * + * @type {SingleRasterOrVectorSource} + * @memberof Reprojection + */ + sources: SingleRasterOrVectorSource; + /** + * + * @type {ReprojectionTypeEnum} + * @memberof Reprojection + */ + type: ReprojectionTypeEnum; +} +/** + * @export + */ +export declare const ReprojectionTypeEnum: { + readonly Reprojection: "Reprojection"; +}; +export type ReprojectionTypeEnum = typeof ReprojectionTypeEnum[keyof typeof ReprojectionTypeEnum]; +/** + * Check if a given object implements the Reprojection interface. + */ +export declare function instanceOfReprojection(value: object): value is Reprojection; +export declare function ReprojectionFromJSON(json: any): Reprojection; +export declare function ReprojectionFromJSONTyped(json: any, ignoreDiscriminator: boolean): Reprojection; +export declare function ReprojectionToJSON(json: any): Reprojection; +export declare function ReprojectionToJSONTyped(value?: Reprojection | null, ignoreDiscriminator?: boolean): any; diff --git a/typescript/dist/models/Reprojection.js b/typescript/dist/models/Reprojection.js new file mode 100644 index 00000000..b267da1a --- /dev/null +++ b/typescript/dist/models/Reprojection.js @@ -0,0 +1,67 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ReprojectionTypeEnum = void 0; +exports.instanceOfReprojection = instanceOfReprojection; +exports.ReprojectionFromJSON = ReprojectionFromJSON; +exports.ReprojectionFromJSONTyped = ReprojectionFromJSONTyped; +exports.ReprojectionToJSON = ReprojectionToJSON; +exports.ReprojectionToJSONTyped = ReprojectionToJSONTyped; +const ReprojectionParameters_1 = require("./ReprojectionParameters"); +const SingleRasterOrVectorSource_1 = require("./SingleRasterOrVectorSource"); +/** + * @export + */ +exports.ReprojectionTypeEnum = { + Reprojection: 'Reprojection' +}; +/** + * Check if a given object implements the Reprojection interface. + */ +function instanceOfReprojection(value) { + if (!('params' in value) || value['params'] === undefined) + return false; + if (!('sources' in value) || value['sources'] === undefined) + return false; + if (!('type' in value) || value['type'] === undefined) + return false; + return true; +} +function ReprojectionFromJSON(json) { + return ReprojectionFromJSONTyped(json, false); +} +function ReprojectionFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'params': (0, ReprojectionParameters_1.ReprojectionParametersFromJSON)(json['params']), + 'sources': (0, SingleRasterOrVectorSource_1.SingleRasterOrVectorSourceFromJSON)(json['sources']), + 'type': json['type'], + }; +} +function ReprojectionToJSON(json) { + return ReprojectionToJSONTyped(json, false); +} +function ReprojectionToJSONTyped(value, ignoreDiscriminator = false) { + if (value == null) { + return value; + } + return { + 'params': (0, ReprojectionParameters_1.ReprojectionParametersToJSON)(value['params']), + 'sources': (0, SingleRasterOrVectorSource_1.SingleRasterOrVectorSourceToJSON)(value['sources']), + 'type': value['type'], + }; +} diff --git a/typescript/dist/models/ReprojectionParameters.d.ts b/typescript/dist/models/ReprojectionParameters.d.ts new file mode 100644 index 00000000..30b3efc6 --- /dev/null +++ b/typescript/dist/models/ReprojectionParameters.d.ts @@ -0,0 +1,42 @@ +/** + * Geo Engine API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { DeriveOutRasterSpecsSource } from './DeriveOutRasterSpecsSource'; +/** + * Parameters for the `Reprojection` operator. + * @export + * @interface ReprojectionParameters + */ +export interface ReprojectionParameters { + /** + * Controls how raster output bounds are derived. + * + * The default `projectionBounds` usually keeps a projection-aligned target grid, + * while `dataBounds` derives it directly from source data bounds. + * @type {DeriveOutRasterSpecsSource} + * @memberof ReprojectionParameters + */ + deriveOutSpec?: DeriveOutRasterSpecsSource; + /** + * Target spatial reference system. + * @type {string} + * @memberof ReprojectionParameters + */ + targetSpatialReference: string; +} +/** + * Check if a given object implements the ReprojectionParameters interface. + */ +export declare function instanceOfReprojectionParameters(value: object): value is ReprojectionParameters; +export declare function ReprojectionParametersFromJSON(json: any): ReprojectionParameters; +export declare function ReprojectionParametersFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReprojectionParameters; +export declare function ReprojectionParametersToJSON(json: any): ReprojectionParameters; +export declare function ReprojectionParametersToJSONTyped(value?: ReprojectionParameters | null, ignoreDiscriminator?: boolean): any; diff --git a/typescript/dist/models/ReprojectionParameters.js b/typescript/dist/models/ReprojectionParameters.js new file mode 100644 index 00000000..4f894ac2 --- /dev/null +++ b/typescript/dist/models/ReprojectionParameters.js @@ -0,0 +1,53 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfReprojectionParameters = instanceOfReprojectionParameters; +exports.ReprojectionParametersFromJSON = ReprojectionParametersFromJSON; +exports.ReprojectionParametersFromJSONTyped = ReprojectionParametersFromJSONTyped; +exports.ReprojectionParametersToJSON = ReprojectionParametersToJSON; +exports.ReprojectionParametersToJSONTyped = ReprojectionParametersToJSONTyped; +const DeriveOutRasterSpecsSource_1 = require("./DeriveOutRasterSpecsSource"); +/** + * Check if a given object implements the ReprojectionParameters interface. + */ +function instanceOfReprojectionParameters(value) { + if (!('targetSpatialReference' in value) || value['targetSpatialReference'] === undefined) + return false; + return true; +} +function ReprojectionParametersFromJSON(json) { + return ReprojectionParametersFromJSONTyped(json, false); +} +function ReprojectionParametersFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'deriveOutSpec': json['deriveOutSpec'] == null ? undefined : (0, DeriveOutRasterSpecsSource_1.DeriveOutRasterSpecsSourceFromJSON)(json['deriveOutSpec']), + 'targetSpatialReference': json['targetSpatialReference'], + }; +} +function ReprojectionParametersToJSON(json) { + return ReprojectionParametersToJSONTyped(json, false); +} +function ReprojectionParametersToJSONTyped(value, ignoreDiscriminator = false) { + if (value == null) { + return value; + } + return { + 'deriveOutSpec': (0, DeriveOutRasterSpecsSource_1.DeriveOutRasterSpecsSourceToJSON)(value['deriveOutSpec']), + 'targetSpatialReference': value['targetSpatialReference'], + }; +} diff --git a/typescript/dist/models/Resolution.d.ts b/typescript/dist/models/Resolution.d.ts new file mode 100644 index 00000000..e3c600e6 --- /dev/null +++ b/typescript/dist/models/Resolution.d.ts @@ -0,0 +1,51 @@ +/** + * Geo Engine API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Explicit output resolution (`x`, `y`) in target coordinates. + * @export + * @interface Resolution + */ +export interface Resolution { + /** + * + * @type {ResolutionTypeEnum} + * @memberof Resolution + */ + type: ResolutionTypeEnum; + /** + * + * @type {number} + * @memberof Resolution + */ + x: number; + /** + * + * @type {number} + * @memberof Resolution + */ + y: number; +} +/** + * @export + */ +export declare const ResolutionTypeEnum: { + readonly Resolution: "resolution"; +}; +export type ResolutionTypeEnum = typeof ResolutionTypeEnum[keyof typeof ResolutionTypeEnum]; +/** + * Check if a given object implements the Resolution interface. + */ +export declare function instanceOfResolution(value: object): value is Resolution; +export declare function ResolutionFromJSON(json: any): Resolution; +export declare function ResolutionFromJSONTyped(json: any, ignoreDiscriminator: boolean): Resolution; +export declare function ResolutionToJSON(json: any): Resolution; +export declare function ResolutionToJSONTyped(value?: Resolution | null, ignoreDiscriminator?: boolean): any; diff --git a/typescript/dist/models/Resolution.js b/typescript/dist/models/Resolution.js new file mode 100644 index 00000000..32eb03b5 --- /dev/null +++ b/typescript/dist/models/Resolution.js @@ -0,0 +1,65 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ResolutionTypeEnum = void 0; +exports.instanceOfResolution = instanceOfResolution; +exports.ResolutionFromJSON = ResolutionFromJSON; +exports.ResolutionFromJSONTyped = ResolutionFromJSONTyped; +exports.ResolutionToJSON = ResolutionToJSON; +exports.ResolutionToJSONTyped = ResolutionToJSONTyped; +/** + * @export + */ +exports.ResolutionTypeEnum = { + Resolution: 'resolution' +}; +/** + * Check if a given object implements the Resolution interface. + */ +function instanceOfResolution(value) { + if (!('type' in value) || value['type'] === undefined) + return false; + if (!('x' in value) || value['x'] === undefined) + return false; + if (!('y' in value) || value['y'] === undefined) + return false; + return true; +} +function ResolutionFromJSON(json) { + return ResolutionFromJSONTyped(json, false); +} +function ResolutionFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'type': json['type'], + 'x': json['x'], + 'y': json['y'], + }; +} +function ResolutionToJSON(json) { + return ResolutionToJSONTyped(json, false); +} +function ResolutionToJSONTyped(value, ignoreDiscriminator = false) { + if (value == null) { + return value; + } + return { + 'type': value['type'], + 'x': value['x'], + 'y': value['y'], + }; +} diff --git a/typescript/dist/models/SquareRootChoiceRule.d.ts b/typescript/dist/models/SquareRootChoiceRule.d.ts new file mode 100644 index 00000000..ccefc73d --- /dev/null +++ b/typescript/dist/models/SquareRootChoiceRule.d.ts @@ -0,0 +1,45 @@ +/** + * Geo Engine API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface SquareRootChoiceRule + */ +export interface SquareRootChoiceRule { + /** + * + * @type {number} + * @memberof SquareRootChoiceRule + */ + maxNumberOfBuckets?: number; + /** + * + * @type {SquareRootChoiceRuleTypeEnum} + * @memberof SquareRootChoiceRule + */ + type: SquareRootChoiceRuleTypeEnum; +} +/** + * @export + */ +export declare const SquareRootChoiceRuleTypeEnum: { + readonly SquareRootChoiceRule: "squareRootChoiceRule"; +}; +export type SquareRootChoiceRuleTypeEnum = typeof SquareRootChoiceRuleTypeEnum[keyof typeof SquareRootChoiceRuleTypeEnum]; +/** + * Check if a given object implements the SquareRootChoiceRule interface. + */ +export declare function instanceOfSquareRootChoiceRule(value: object): value is SquareRootChoiceRule; +export declare function SquareRootChoiceRuleFromJSON(json: any): SquareRootChoiceRule; +export declare function SquareRootChoiceRuleFromJSONTyped(json: any, ignoreDiscriminator: boolean): SquareRootChoiceRule; +export declare function SquareRootChoiceRuleToJSON(json: any): SquareRootChoiceRule; +export declare function SquareRootChoiceRuleToJSONTyped(value?: SquareRootChoiceRule | null, ignoreDiscriminator?: boolean): any; diff --git a/typescript/dist/models/HistogramBucketsOneOf1.js b/typescript/dist/models/SquareRootChoiceRule.js similarity index 52% rename from typescript/dist/models/HistogramBucketsOneOf1.js rename to typescript/dist/models/SquareRootChoiceRule.js index 23683e36..7edd6b44 100644 --- a/typescript/dist/models/HistogramBucketsOneOf1.js +++ b/typescript/dist/models/SquareRootChoiceRule.js @@ -13,30 +13,30 @@ * Do not edit the class manually. */ Object.defineProperty(exports, "__esModule", { value: true }); -exports.HistogramBucketsOneOf1TypeEnum = void 0; -exports.instanceOfHistogramBucketsOneOf1 = instanceOfHistogramBucketsOneOf1; -exports.HistogramBucketsOneOf1FromJSON = HistogramBucketsOneOf1FromJSON; -exports.HistogramBucketsOneOf1FromJSONTyped = HistogramBucketsOneOf1FromJSONTyped; -exports.HistogramBucketsOneOf1ToJSON = HistogramBucketsOneOf1ToJSON; -exports.HistogramBucketsOneOf1ToJSONTyped = HistogramBucketsOneOf1ToJSONTyped; +exports.SquareRootChoiceRuleTypeEnum = void 0; +exports.instanceOfSquareRootChoiceRule = instanceOfSquareRootChoiceRule; +exports.SquareRootChoiceRuleFromJSON = SquareRootChoiceRuleFromJSON; +exports.SquareRootChoiceRuleFromJSONTyped = SquareRootChoiceRuleFromJSONTyped; +exports.SquareRootChoiceRuleToJSON = SquareRootChoiceRuleToJSON; +exports.SquareRootChoiceRuleToJSONTyped = SquareRootChoiceRuleToJSONTyped; /** * @export */ -exports.HistogramBucketsOneOf1TypeEnum = { +exports.SquareRootChoiceRuleTypeEnum = { SquareRootChoiceRule: 'squareRootChoiceRule' }; /** - * Check if a given object implements the HistogramBucketsOneOf1 interface. + * Check if a given object implements the SquareRootChoiceRule interface. */ -function instanceOfHistogramBucketsOneOf1(value) { +function instanceOfSquareRootChoiceRule(value) { if (!('type' in value) || value['type'] === undefined) return false; return true; } -function HistogramBucketsOneOf1FromJSON(json) { - return HistogramBucketsOneOf1FromJSONTyped(json, false); +function SquareRootChoiceRuleFromJSON(json) { + return SquareRootChoiceRuleFromJSONTyped(json, false); } -function HistogramBucketsOneOf1FromJSONTyped(json, ignoreDiscriminator) { +function SquareRootChoiceRuleFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } @@ -45,10 +45,10 @@ function HistogramBucketsOneOf1FromJSONTyped(json, ignoreDiscriminator) { 'type': json['type'], }; } -function HistogramBucketsOneOf1ToJSON(json) { - return HistogramBucketsOneOf1ToJSONTyped(json, false); +function SquareRootChoiceRuleToJSON(json) { + return SquareRootChoiceRuleToJSONTyped(json, false); } -function HistogramBucketsOneOf1ToJSONTyped(value, ignoreDiscriminator = false) { +function SquareRootChoiceRuleToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } diff --git a/typescript/dist/models/SumAggregation.d.ts b/typescript/dist/models/SumAggregation.d.ts new file mode 100644 index 00000000..66f61903 --- /dev/null +++ b/typescript/dist/models/SumAggregation.d.ts @@ -0,0 +1,45 @@ +/** + * Geo Engine API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface SumAggregation + */ +export interface SumAggregation { + /** + * + * @type {boolean} + * @memberof SumAggregation + */ + ignoreNoData: boolean; + /** + * + * @type {SumAggregationTypeEnum} + * @memberof SumAggregation + */ + type: SumAggregationTypeEnum; +} +/** + * @export + */ +export declare const SumAggregationTypeEnum: { + readonly Sum: "sum"; +}; +export type SumAggregationTypeEnum = typeof SumAggregationTypeEnum[keyof typeof SumAggregationTypeEnum]; +/** + * Check if a given object implements the SumAggregation interface. + */ +export declare function instanceOfSumAggregation(value: object): value is SumAggregation; +export declare function SumAggregationFromJSON(json: any): SumAggregation; +export declare function SumAggregationFromJSONTyped(json: any, ignoreDiscriminator: boolean): SumAggregation; +export declare function SumAggregationToJSON(json: any): SumAggregation; +export declare function SumAggregationToJSONTyped(value?: SumAggregation | null, ignoreDiscriminator?: boolean): any; diff --git a/typescript/dist/models/SumAggregation.js b/typescript/dist/models/SumAggregation.js new file mode 100644 index 00000000..40843cd0 --- /dev/null +++ b/typescript/dist/models/SumAggregation.js @@ -0,0 +1,61 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.SumAggregationTypeEnum = void 0; +exports.instanceOfSumAggregation = instanceOfSumAggregation; +exports.SumAggregationFromJSON = SumAggregationFromJSON; +exports.SumAggregationFromJSONTyped = SumAggregationFromJSONTyped; +exports.SumAggregationToJSON = SumAggregationToJSON; +exports.SumAggregationToJSONTyped = SumAggregationToJSONTyped; +/** + * @export + */ +exports.SumAggregationTypeEnum = { + Sum: 'sum' +}; +/** + * Check if a given object implements the SumAggregation interface. + */ +function instanceOfSumAggregation(value) { + if (!('ignoreNoData' in value) || value['ignoreNoData'] === undefined) + return false; + if (!('type' in value) || value['type'] === undefined) + return false; + return true; +} +function SumAggregationFromJSON(json) { + return SumAggregationFromJSONTyped(json, false); +} +function SumAggregationFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'ignoreNoData': json['ignoreNoData'], + 'type': json['type'], + }; +} +function SumAggregationToJSON(json) { + return SumAggregationToJSONTyped(json, false); +} +function SumAggregationToJSONTyped(value, ignoreDiscriminator = false) { + if (value == null) { + return value; + } + return { + 'ignoreNoData': value['ignoreNoData'], + 'type': value['type'], + }; +} diff --git a/typescript/dist/models/TemporalRasterAggregation.d.ts b/typescript/dist/models/TemporalRasterAggregation.d.ts new file mode 100644 index 00000000..a4335d22 --- /dev/null +++ b/typescript/dist/models/TemporalRasterAggregation.d.ts @@ -0,0 +1,66 @@ +/** + * Geo Engine API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { TemporalRasterAggregationParameters } from './TemporalRasterAggregationParameters'; +import type { SingleRasterSource } from './SingleRasterSource'; +/** + * The `TemporalRasterAggregation` operator aggregates a raster time series into uniform time windows. + * The output starts with the first window that contains the query start and contains all windows + * that overlap the query interval. + * + * Pixel values are computed by aggregating all input rasters that contribute to the current window. + * + * ## Inputs + * + * The `TemporalRasterAggregation` operator expects exactly one _raster_ input. + * + * ## Errors + * + * If the aggregation method is `first`, `last`, or `mean` and the input raster has no NO DATA value, + * an error is returned. + * @export + * @interface TemporalRasterAggregation + */ +export interface TemporalRasterAggregation { + /** + * + * @type {TemporalRasterAggregationParameters} + * @memberof TemporalRasterAggregation + */ + params: TemporalRasterAggregationParameters; + /** + * + * @type {SingleRasterSource} + * @memberof TemporalRasterAggregation + */ + sources: SingleRasterSource; + /** + * + * @type {TemporalRasterAggregationTypeEnum} + * @memberof TemporalRasterAggregation + */ + type: TemporalRasterAggregationTypeEnum; +} +/** + * @export + */ +export declare const TemporalRasterAggregationTypeEnum: { + readonly TemporalRasterAggregation: "TemporalRasterAggregation"; +}; +export type TemporalRasterAggregationTypeEnum = typeof TemporalRasterAggregationTypeEnum[keyof typeof TemporalRasterAggregationTypeEnum]; +/** + * Check if a given object implements the TemporalRasterAggregation interface. + */ +export declare function instanceOfTemporalRasterAggregation(value: object): value is TemporalRasterAggregation; +export declare function TemporalRasterAggregationFromJSON(json: any): TemporalRasterAggregation; +export declare function TemporalRasterAggregationFromJSONTyped(json: any, ignoreDiscriminator: boolean): TemporalRasterAggregation; +export declare function TemporalRasterAggregationToJSON(json: any): TemporalRasterAggregation; +export declare function TemporalRasterAggregationToJSONTyped(value?: TemporalRasterAggregation | null, ignoreDiscriminator?: boolean): any; diff --git a/typescript/dist/models/TemporalRasterAggregation.js b/typescript/dist/models/TemporalRasterAggregation.js new file mode 100644 index 00000000..e08d72ba --- /dev/null +++ b/typescript/dist/models/TemporalRasterAggregation.js @@ -0,0 +1,67 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.TemporalRasterAggregationTypeEnum = void 0; +exports.instanceOfTemporalRasterAggregation = instanceOfTemporalRasterAggregation; +exports.TemporalRasterAggregationFromJSON = TemporalRasterAggregationFromJSON; +exports.TemporalRasterAggregationFromJSONTyped = TemporalRasterAggregationFromJSONTyped; +exports.TemporalRasterAggregationToJSON = TemporalRasterAggregationToJSON; +exports.TemporalRasterAggregationToJSONTyped = TemporalRasterAggregationToJSONTyped; +const TemporalRasterAggregationParameters_1 = require("./TemporalRasterAggregationParameters"); +const SingleRasterSource_1 = require("./SingleRasterSource"); +/** + * @export + */ +exports.TemporalRasterAggregationTypeEnum = { + TemporalRasterAggregation: 'TemporalRasterAggregation' +}; +/** + * Check if a given object implements the TemporalRasterAggregation interface. + */ +function instanceOfTemporalRasterAggregation(value) { + if (!('params' in value) || value['params'] === undefined) + return false; + if (!('sources' in value) || value['sources'] === undefined) + return false; + if (!('type' in value) || value['type'] === undefined) + return false; + return true; +} +function TemporalRasterAggregationFromJSON(json) { + return TemporalRasterAggregationFromJSONTyped(json, false); +} +function TemporalRasterAggregationFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'params': (0, TemporalRasterAggregationParameters_1.TemporalRasterAggregationParametersFromJSON)(json['params']), + 'sources': (0, SingleRasterSource_1.SingleRasterSourceFromJSON)(json['sources']), + 'type': json['type'], + }; +} +function TemporalRasterAggregationToJSON(json) { + return TemporalRasterAggregationToJSONTyped(json, false); +} +function TemporalRasterAggregationToJSONTyped(value, ignoreDiscriminator = false) { + if (value == null) { + return value; + } + return { + 'params': (0, TemporalRasterAggregationParameters_1.TemporalRasterAggregationParametersToJSON)(value['params']), + 'sources': (0, SingleRasterSource_1.SingleRasterSourceToJSON)(value['sources']), + 'type': value['type'], + }; +} diff --git a/typescript/dist/models/TemporalRasterAggregationParameters.d.ts b/typescript/dist/models/TemporalRasterAggregationParameters.d.ts new file mode 100644 index 00000000..7798ba54 --- /dev/null +++ b/typescript/dist/models/TemporalRasterAggregationParameters.d.ts @@ -0,0 +1,58 @@ +/** + * Geo Engine API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Aggregation } from './Aggregation'; +import type { TimeStep } from './TimeStep'; +import type { RasterDataType } from './RasterDataType'; +/** + * Parameters for the `TemporalRasterAggregation` operator. + * @export + * @interface TemporalRasterAggregationParameters + */ +export interface TemporalRasterAggregationParameters { + /** + * Aggregation method for values within each time window. + * + * Encountering NO DATA makes the aggregation result NO DATA unless + * `ignoreNoData` is `true` for the selected aggregation variant. + * @type {Aggregation} + * @memberof TemporalRasterAggregationParameters + */ + aggregation: Aggregation; + /** + * Optional output raster data type. + * @type {RasterDataType} + * @memberof TemporalRasterAggregationParameters + */ + outputType?: RasterDataType | null; + /** + * Window size and granularity for the output time series. + * @type {TimeStep} + * @memberof TemporalRasterAggregationParameters + */ + window: TimeStep; + /** + * Optional reference timestamp used as the anchor for window boundaries. + * + * If omitted, windows are anchored at `1970-01-01T00:00:00Z`. + * @type {number} + * @memberof TemporalRasterAggregationParameters + */ + windowReference?: number | null; +} +/** + * Check if a given object implements the TemporalRasterAggregationParameters interface. + */ +export declare function instanceOfTemporalRasterAggregationParameters(value: object): value is TemporalRasterAggregationParameters; +export declare function TemporalRasterAggregationParametersFromJSON(json: any): TemporalRasterAggregationParameters; +export declare function TemporalRasterAggregationParametersFromJSONTyped(json: any, ignoreDiscriminator: boolean): TemporalRasterAggregationParameters; +export declare function TemporalRasterAggregationParametersToJSON(json: any): TemporalRasterAggregationParameters; +export declare function TemporalRasterAggregationParametersToJSONTyped(value?: TemporalRasterAggregationParameters | null, ignoreDiscriminator?: boolean): any; diff --git a/typescript/dist/models/TemporalRasterAggregationParameters.js b/typescript/dist/models/TemporalRasterAggregationParameters.js new file mode 100644 index 00000000..e1889f3b --- /dev/null +++ b/typescript/dist/models/TemporalRasterAggregationParameters.js @@ -0,0 +1,61 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfTemporalRasterAggregationParameters = instanceOfTemporalRasterAggregationParameters; +exports.TemporalRasterAggregationParametersFromJSON = TemporalRasterAggregationParametersFromJSON; +exports.TemporalRasterAggregationParametersFromJSONTyped = TemporalRasterAggregationParametersFromJSONTyped; +exports.TemporalRasterAggregationParametersToJSON = TemporalRasterAggregationParametersToJSON; +exports.TemporalRasterAggregationParametersToJSONTyped = TemporalRasterAggregationParametersToJSONTyped; +const Aggregation_1 = require("./Aggregation"); +const TimeStep_1 = require("./TimeStep"); +const RasterDataType_1 = require("./RasterDataType"); +/** + * Check if a given object implements the TemporalRasterAggregationParameters interface. + */ +function instanceOfTemporalRasterAggregationParameters(value) { + if (!('aggregation' in value) || value['aggregation'] === undefined) + return false; + if (!('window' in value) || value['window'] === undefined) + return false; + return true; +} +function TemporalRasterAggregationParametersFromJSON(json) { + return TemporalRasterAggregationParametersFromJSONTyped(json, false); +} +function TemporalRasterAggregationParametersFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'aggregation': (0, Aggregation_1.AggregationFromJSON)(json['aggregation']), + 'outputType': json['outputType'] == null ? undefined : (0, RasterDataType_1.RasterDataTypeFromJSON)(json['outputType']), + 'window': (0, TimeStep_1.TimeStepFromJSON)(json['window']), + 'windowReference': json['windowReference'] == null ? undefined : json['windowReference'], + }; +} +function TemporalRasterAggregationParametersToJSON(json) { + return TemporalRasterAggregationParametersToJSONTyped(json, false); +} +function TemporalRasterAggregationParametersToJSONTyped(value, ignoreDiscriminator = false) { + if (value == null) { + return value; + } + return { + 'aggregation': (0, Aggregation_1.AggregationToJSON)(value['aggregation']), + 'outputType': (0, RasterDataType_1.RasterDataTypeToJSON)(value['outputType']), + 'window': (0, TimeStep_1.TimeStepToJSON)(value['window']), + 'windowReference': value['windowReference'], + }; +} diff --git a/typescript/dist/models/TimeDimension.d.ts b/typescript/dist/models/TimeDimension.d.ts index 20583d11..1683c2b2 100644 --- a/typescript/dist/models/TimeDimension.d.ts +++ b/typescript/dist/models/TimeDimension.d.ts @@ -9,14 +9,14 @@ * https://openapi-generator.tech * Do not edit the class manually. */ -import type { TimeDimensionOneOf } from './TimeDimensionOneOf'; -import type { TimeDimensionOneOf1 } from './TimeDimensionOneOf1'; +import type { Irregular } from './Irregular'; +import type { Regular } from './Regular'; /** * @type TimeDimension * * @export */ -export type TimeDimension = TimeDimensionOneOf | TimeDimensionOneOf1; +export type TimeDimension = Irregular | Regular; export declare function TimeDimensionFromJSON(json: any): TimeDimension; export declare function TimeDimensionFromJSONTyped(json: any, ignoreDiscriminator: boolean): TimeDimension; export declare function TimeDimensionToJSON(json: any): any; diff --git a/typescript/dist/models/TimeDimension.js b/typescript/dist/models/TimeDimension.js index 8baa97b4..72fda38d 100644 --- a/typescript/dist/models/TimeDimension.js +++ b/typescript/dist/models/TimeDimension.js @@ -17,8 +17,8 @@ exports.TimeDimensionFromJSON = TimeDimensionFromJSON; exports.TimeDimensionFromJSONTyped = TimeDimensionFromJSONTyped; exports.TimeDimensionToJSON = TimeDimensionToJSON; exports.TimeDimensionToJSONTyped = TimeDimensionToJSONTyped; -const TimeDimensionOneOf_1 = require("./TimeDimensionOneOf"); -const TimeDimensionOneOf1_1 = require("./TimeDimensionOneOf1"); +const Irregular_1 = require("./Irregular"); +const Regular_1 = require("./Regular"); function TimeDimensionFromJSON(json) { return TimeDimensionFromJSONTyped(json, false); } @@ -29,11 +29,11 @@ function TimeDimensionFromJSONTyped(json, ignoreDiscriminator) { if (typeof json !== 'object') { return json; } - if ((0, TimeDimensionOneOf_1.instanceOfTimeDimensionOneOf)(json)) { - return (0, TimeDimensionOneOf_1.TimeDimensionOneOfFromJSONTyped)(json, true); + if ((0, Irregular_1.instanceOfIrregular)(json)) { + return (0, Irregular_1.IrregularFromJSONTyped)(json, true); } - if ((0, TimeDimensionOneOf1_1.instanceOfTimeDimensionOneOf1)(json)) { - return (0, TimeDimensionOneOf1_1.TimeDimensionOneOf1FromJSONTyped)(json, true); + if ((0, Regular_1.instanceOfRegular)(json)) { + return (0, Regular_1.RegularFromJSONTyped)(json, true); } return {}; } @@ -47,11 +47,11 @@ function TimeDimensionToJSONTyped(value, ignoreDiscriminator = false) { if (typeof value !== 'object') { return value; } - if ((0, TimeDimensionOneOf_1.instanceOfTimeDimensionOneOf)(value)) { - return (0, TimeDimensionOneOf_1.TimeDimensionOneOfToJSON)(value); + if ((0, Irregular_1.instanceOfIrregular)(value)) { + return (0, Irregular_1.IrregularToJSON)(value); } - if ((0, TimeDimensionOneOf1_1.instanceOfTimeDimensionOneOf1)(value)) { - return (0, TimeDimensionOneOf1_1.TimeDimensionOneOf1ToJSON)(value); + if ((0, Regular_1.instanceOfRegular)(value)) { + return (0, Regular_1.RegularToJSON)(value); } return {}; } diff --git a/typescript/dist/models/TimeDimensionOneOf.d.ts b/typescript/dist/models/TimeDimensionOneOf.d.ts deleted file mode 100644 index 15c37f9b..00000000 --- a/typescript/dist/models/TimeDimensionOneOf.d.ts +++ /dev/null @@ -1,40 +0,0 @@ -/** - * Geo Engine API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.9.0 - * Contact: dev@geoengine.de - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -import type { RegularTimeDimension } from './RegularTimeDimension'; -/** - * - * @export - * @interface TimeDimensionOneOf - */ -export interface TimeDimensionOneOf extends RegularTimeDimension { - /** - * - * @type {TimeDimensionOneOfTypeEnum} - * @memberof TimeDimensionOneOf - */ - type: TimeDimensionOneOfTypeEnum; -} -/** - * @export - */ -export declare const TimeDimensionOneOfTypeEnum: { - readonly Regular: "regular"; -}; -export type TimeDimensionOneOfTypeEnum = typeof TimeDimensionOneOfTypeEnum[keyof typeof TimeDimensionOneOfTypeEnum]; -/** - * Check if a given object implements the TimeDimensionOneOf interface. - */ -export declare function instanceOfTimeDimensionOneOf(value: object): value is TimeDimensionOneOf; -export declare function TimeDimensionOneOfFromJSON(json: any): TimeDimensionOneOf; -export declare function TimeDimensionOneOfFromJSONTyped(json: any, ignoreDiscriminator: boolean): TimeDimensionOneOf; -export declare function TimeDimensionOneOfToJSON(json: any): TimeDimensionOneOf; -export declare function TimeDimensionOneOfToJSONTyped(value?: TimeDimensionOneOf | null, ignoreDiscriminator?: boolean): any; diff --git a/typescript/dist/models/TimeDimensionOneOf1.d.ts b/typescript/dist/models/TimeDimensionOneOf1.d.ts deleted file mode 100644 index b52e5b93..00000000 --- a/typescript/dist/models/TimeDimensionOneOf1.d.ts +++ /dev/null @@ -1,39 +0,0 @@ -/** - * Geo Engine API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.9.0 - * Contact: dev@geoengine.de - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -/** - * - * @export - * @interface TimeDimensionOneOf1 - */ -export interface TimeDimensionOneOf1 { - /** - * - * @type {TimeDimensionOneOf1TypeEnum} - * @memberof TimeDimensionOneOf1 - */ - type: TimeDimensionOneOf1TypeEnum; -} -/** - * @export - */ -export declare const TimeDimensionOneOf1TypeEnum: { - readonly Irregular: "irregular"; -}; -export type TimeDimensionOneOf1TypeEnum = typeof TimeDimensionOneOf1TypeEnum[keyof typeof TimeDimensionOneOf1TypeEnum]; -/** - * Check if a given object implements the TimeDimensionOneOf1 interface. - */ -export declare function instanceOfTimeDimensionOneOf1(value: object): value is TimeDimensionOneOf1; -export declare function TimeDimensionOneOf1FromJSON(json: any): TimeDimensionOneOf1; -export declare function TimeDimensionOneOf1FromJSONTyped(json: any, ignoreDiscriminator: boolean): TimeDimensionOneOf1; -export declare function TimeDimensionOneOf1ToJSON(json: any): TimeDimensionOneOf1; -export declare function TimeDimensionOneOf1ToJSONTyped(value?: TimeDimensionOneOf1 | null, ignoreDiscriminator?: boolean): any; diff --git a/typescript/dist/models/TimeDimensionOneOf1.js b/typescript/dist/models/TimeDimensionOneOf1.js deleted file mode 100644 index 1e220e1f..00000000 --- a/typescript/dist/models/TimeDimensionOneOf1.js +++ /dev/null @@ -1,57 +0,0 @@ -"use strict"; -/* tslint:disable */ -/* eslint-disable */ -/** - * Geo Engine API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.9.0 - * Contact: dev@geoengine.de - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.TimeDimensionOneOf1TypeEnum = void 0; -exports.instanceOfTimeDimensionOneOf1 = instanceOfTimeDimensionOneOf1; -exports.TimeDimensionOneOf1FromJSON = TimeDimensionOneOf1FromJSON; -exports.TimeDimensionOneOf1FromJSONTyped = TimeDimensionOneOf1FromJSONTyped; -exports.TimeDimensionOneOf1ToJSON = TimeDimensionOneOf1ToJSON; -exports.TimeDimensionOneOf1ToJSONTyped = TimeDimensionOneOf1ToJSONTyped; -/** - * @export - */ -exports.TimeDimensionOneOf1TypeEnum = { - Irregular: 'irregular' -}; -/** - * Check if a given object implements the TimeDimensionOneOf1 interface. - */ -function instanceOfTimeDimensionOneOf1(value) { - if (!('type' in value) || value['type'] === undefined) - return false; - return true; -} -function TimeDimensionOneOf1FromJSON(json) { - return TimeDimensionOneOf1FromJSONTyped(json, false); -} -function TimeDimensionOneOf1FromJSONTyped(json, ignoreDiscriminator) { - if (json == null) { - return json; - } - return { - 'type': json['type'], - }; -} -function TimeDimensionOneOf1ToJSON(json) { - return TimeDimensionOneOf1ToJSONTyped(json, false); -} -function TimeDimensionOneOf1ToJSONTyped(value, ignoreDiscriminator = false) { - if (value == null) { - return value; - } - return { - 'type': value['type'], - }; -} diff --git a/typescript/dist/models/TypedGeometry.d.ts b/typescript/dist/models/TypedGeometry.d.ts index f61a352b..35678a69 100644 --- a/typescript/dist/models/TypedGeometry.d.ts +++ b/typescript/dist/models/TypedGeometry.d.ts @@ -9,16 +9,16 @@ * https://openapi-generator.tech * Do not edit the class manually. */ -import type { TypedGeometryOneOf } from './TypedGeometryOneOf'; -import type { TypedGeometryOneOf1 } from './TypedGeometryOneOf1'; -import type { TypedGeometryOneOf2 } from './TypedGeometryOneOf2'; -import type { TypedGeometryOneOf3 } from './TypedGeometryOneOf3'; +import type { MultiLineString1 } from './MultiLineString1'; +import type { MultiPoint1 } from './MultiPoint1'; +import type { MultiPolygon1 } from './MultiPolygon1'; +import type { NoGeometry1 } from './NoGeometry1'; /** * @type TypedGeometry * * @export */ -export type TypedGeometry = TypedGeometryOneOf | TypedGeometryOneOf1 | TypedGeometryOneOf2 | TypedGeometryOneOf3; +export type TypedGeometry = MultiLineString1 | MultiPoint1 | MultiPolygon1 | NoGeometry1; export declare function TypedGeometryFromJSON(json: any): TypedGeometry; export declare function TypedGeometryFromJSONTyped(json: any, ignoreDiscriminator: boolean): TypedGeometry; export declare function TypedGeometryToJSON(json: any): any; diff --git a/typescript/dist/models/TypedGeometry.js b/typescript/dist/models/TypedGeometry.js index 7431c376..4e1464ac 100644 --- a/typescript/dist/models/TypedGeometry.js +++ b/typescript/dist/models/TypedGeometry.js @@ -17,10 +17,10 @@ exports.TypedGeometryFromJSON = TypedGeometryFromJSON; exports.TypedGeometryFromJSONTyped = TypedGeometryFromJSONTyped; exports.TypedGeometryToJSON = TypedGeometryToJSON; exports.TypedGeometryToJSONTyped = TypedGeometryToJSONTyped; -const TypedGeometryOneOf_1 = require("./TypedGeometryOneOf"); -const TypedGeometryOneOf1_1 = require("./TypedGeometryOneOf1"); -const TypedGeometryOneOf2_1 = require("./TypedGeometryOneOf2"); -const TypedGeometryOneOf3_1 = require("./TypedGeometryOneOf3"); +const MultiLineString1_1 = require("./MultiLineString1"); +const MultiPoint1_1 = require("./MultiPoint1"); +const MultiPolygon1_1 = require("./MultiPolygon1"); +const NoGeometry1_1 = require("./NoGeometry1"); function TypedGeometryFromJSON(json) { return TypedGeometryFromJSONTyped(json, false); } @@ -31,17 +31,17 @@ function TypedGeometryFromJSONTyped(json, ignoreDiscriminator) { if (typeof json !== 'object') { return json; } - if ((0, TypedGeometryOneOf_1.instanceOfTypedGeometryOneOf)(json)) { - return (0, TypedGeometryOneOf_1.TypedGeometryOneOfFromJSONTyped)(json, true); + if ((0, MultiLineString1_1.instanceOfMultiLineString1)(json)) { + return (0, MultiLineString1_1.MultiLineString1FromJSONTyped)(json, true); } - if ((0, TypedGeometryOneOf1_1.instanceOfTypedGeometryOneOf1)(json)) { - return (0, TypedGeometryOneOf1_1.TypedGeometryOneOf1FromJSONTyped)(json, true); + if ((0, MultiPoint1_1.instanceOfMultiPoint1)(json)) { + return (0, MultiPoint1_1.MultiPoint1FromJSONTyped)(json, true); } - if ((0, TypedGeometryOneOf2_1.instanceOfTypedGeometryOneOf2)(json)) { - return (0, TypedGeometryOneOf2_1.TypedGeometryOneOf2FromJSONTyped)(json, true); + if ((0, MultiPolygon1_1.instanceOfMultiPolygon1)(json)) { + return (0, MultiPolygon1_1.MultiPolygon1FromJSONTyped)(json, true); } - if ((0, TypedGeometryOneOf3_1.instanceOfTypedGeometryOneOf3)(json)) { - return (0, TypedGeometryOneOf3_1.TypedGeometryOneOf3FromJSONTyped)(json, true); + if ((0, NoGeometry1_1.instanceOfNoGeometry1)(json)) { + return (0, NoGeometry1_1.NoGeometry1FromJSONTyped)(json, true); } return {}; } @@ -55,17 +55,17 @@ function TypedGeometryToJSONTyped(value, ignoreDiscriminator = false) { if (typeof value !== 'object') { return value; } - if ((0, TypedGeometryOneOf_1.instanceOfTypedGeometryOneOf)(value)) { - return (0, TypedGeometryOneOf_1.TypedGeometryOneOfToJSON)(value); + if ((0, MultiLineString1_1.instanceOfMultiLineString1)(value)) { + return (0, MultiLineString1_1.MultiLineString1ToJSON)(value); } - if ((0, TypedGeometryOneOf1_1.instanceOfTypedGeometryOneOf1)(value)) { - return (0, TypedGeometryOneOf1_1.TypedGeometryOneOf1ToJSON)(value); + if ((0, MultiPoint1_1.instanceOfMultiPoint1)(value)) { + return (0, MultiPoint1_1.MultiPoint1ToJSON)(value); } - if ((0, TypedGeometryOneOf2_1.instanceOfTypedGeometryOneOf2)(value)) { - return (0, TypedGeometryOneOf2_1.TypedGeometryOneOf2ToJSON)(value); + if ((0, MultiPolygon1_1.instanceOfMultiPolygon1)(value)) { + return (0, MultiPolygon1_1.MultiPolygon1ToJSON)(value); } - if ((0, TypedGeometryOneOf3_1.instanceOfTypedGeometryOneOf3)(value)) { - return (0, TypedGeometryOneOf3_1.TypedGeometryOneOf3ToJSON)(value); + if ((0, NoGeometry1_1.instanceOfNoGeometry1)(value)) { + return (0, NoGeometry1_1.NoGeometry1ToJSON)(value); } return {}; } diff --git a/typescript/dist/models/TypedGeometryOneOf.d.ts b/typescript/dist/models/TypedGeometryOneOf.d.ts deleted file mode 100644 index 209d3200..00000000 --- a/typescript/dist/models/TypedGeometryOneOf.d.ts +++ /dev/null @@ -1,32 +0,0 @@ -/** - * Geo Engine API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.9.0 - * Contact: dev@geoengine.de - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -/** - * - * @export - * @interface TypedGeometryOneOf - */ -export interface TypedGeometryOneOf { - /** - * - * @type {any} - * @memberof TypedGeometryOneOf - */ - data: any | null; -} -/** - * Check if a given object implements the TypedGeometryOneOf interface. - */ -export declare function instanceOfTypedGeometryOneOf(value: object): value is TypedGeometryOneOf; -export declare function TypedGeometryOneOfFromJSON(json: any): TypedGeometryOneOf; -export declare function TypedGeometryOneOfFromJSONTyped(json: any, ignoreDiscriminator: boolean): TypedGeometryOneOf; -export declare function TypedGeometryOneOfToJSON(json: any): TypedGeometryOneOf; -export declare function TypedGeometryOneOfToJSONTyped(value?: TypedGeometryOneOf | null, ignoreDiscriminator?: boolean): any; diff --git a/typescript/dist/models/TypedGeometryOneOf1.d.ts b/typescript/dist/models/TypedGeometryOneOf1.d.ts deleted file mode 100644 index 81b20938..00000000 --- a/typescript/dist/models/TypedGeometryOneOf1.d.ts +++ /dev/null @@ -1,33 +0,0 @@ -/** - * Geo Engine API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.9.0 - * Contact: dev@geoengine.de - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -import type { MultiPoint } from './MultiPoint'; -/** - * - * @export - * @interface TypedGeometryOneOf1 - */ -export interface TypedGeometryOneOf1 { - /** - * - * @type {MultiPoint} - * @memberof TypedGeometryOneOf1 - */ - multiPoint: MultiPoint; -} -/** - * Check if a given object implements the TypedGeometryOneOf1 interface. - */ -export declare function instanceOfTypedGeometryOneOf1(value: object): value is TypedGeometryOneOf1; -export declare function TypedGeometryOneOf1FromJSON(json: any): TypedGeometryOneOf1; -export declare function TypedGeometryOneOf1FromJSONTyped(json: any, ignoreDiscriminator: boolean): TypedGeometryOneOf1; -export declare function TypedGeometryOneOf1ToJSON(json: any): TypedGeometryOneOf1; -export declare function TypedGeometryOneOf1ToJSONTyped(value?: TypedGeometryOneOf1 | null, ignoreDiscriminator?: boolean): any; diff --git a/typescript/dist/models/TypedGeometryOneOf2.d.ts b/typescript/dist/models/TypedGeometryOneOf2.d.ts deleted file mode 100644 index 1fec3fd6..00000000 --- a/typescript/dist/models/TypedGeometryOneOf2.d.ts +++ /dev/null @@ -1,33 +0,0 @@ -/** - * Geo Engine API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.9.0 - * Contact: dev@geoengine.de - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -import type { MultiLineString } from './MultiLineString'; -/** - * - * @export - * @interface TypedGeometryOneOf2 - */ -export interface TypedGeometryOneOf2 { - /** - * - * @type {MultiLineString} - * @memberof TypedGeometryOneOf2 - */ - multiLineString: MultiLineString; -} -/** - * Check if a given object implements the TypedGeometryOneOf2 interface. - */ -export declare function instanceOfTypedGeometryOneOf2(value: object): value is TypedGeometryOneOf2; -export declare function TypedGeometryOneOf2FromJSON(json: any): TypedGeometryOneOf2; -export declare function TypedGeometryOneOf2FromJSONTyped(json: any, ignoreDiscriminator: boolean): TypedGeometryOneOf2; -export declare function TypedGeometryOneOf2ToJSON(json: any): TypedGeometryOneOf2; -export declare function TypedGeometryOneOf2ToJSONTyped(value?: TypedGeometryOneOf2 | null, ignoreDiscriminator?: boolean): any; diff --git a/typescript/dist/models/TypedGeometryOneOf3.d.ts b/typescript/dist/models/TypedGeometryOneOf3.d.ts deleted file mode 100644 index ddd7050d..00000000 --- a/typescript/dist/models/TypedGeometryOneOf3.d.ts +++ /dev/null @@ -1,33 +0,0 @@ -/** - * Geo Engine API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.9.0 - * Contact: dev@geoengine.de - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -import type { MultiPolygon } from './MultiPolygon'; -/** - * - * @export - * @interface TypedGeometryOneOf3 - */ -export interface TypedGeometryOneOf3 { - /** - * - * @type {MultiPolygon} - * @memberof TypedGeometryOneOf3 - */ - multiPolygon: MultiPolygon; -} -/** - * Check if a given object implements the TypedGeometryOneOf3 interface. - */ -export declare function instanceOfTypedGeometryOneOf3(value: object): value is TypedGeometryOneOf3; -export declare function TypedGeometryOneOf3FromJSON(json: any): TypedGeometryOneOf3; -export declare function TypedGeometryOneOf3FromJSONTyped(json: any, ignoreDiscriminator: boolean): TypedGeometryOneOf3; -export declare function TypedGeometryOneOf3ToJSON(json: any): TypedGeometryOneOf3; -export declare function TypedGeometryOneOf3ToJSONTyped(value?: TypedGeometryOneOf3 | null, ignoreDiscriminator?: boolean): any; diff --git a/typescript/dist/models/Upload.d.ts b/typescript/dist/models/Upload.d.ts new file mode 100644 index 00000000..4d4518bd --- /dev/null +++ b/typescript/dist/models/Upload.d.ts @@ -0,0 +1,32 @@ +/** + * Geo Engine API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface Upload + */ +export interface Upload { + /** + * + * @type {string} + * @memberof Upload + */ + upload: string; +} +/** + * Check if a given object implements the Upload interface. + */ +export declare function instanceOfUpload(value: object): value is Upload; +export declare function UploadFromJSON(json: any): Upload; +export declare function UploadFromJSONTyped(json: any, ignoreDiscriminator: boolean): Upload; +export declare function UploadToJSON(json: any): Upload; +export declare function UploadToJSONTyped(value?: Upload | null, ignoreDiscriminator?: boolean): any; diff --git a/typescript/dist/models/DataPathOneOf1.js b/typescript/dist/models/Upload.js similarity index 53% rename from typescript/dist/models/DataPathOneOf1.js rename to typescript/dist/models/Upload.js index 7fa4b043..350f03b6 100644 --- a/typescript/dist/models/DataPathOneOf1.js +++ b/typescript/dist/models/Upload.js @@ -13,23 +13,23 @@ * Do not edit the class manually. */ Object.defineProperty(exports, "__esModule", { value: true }); -exports.instanceOfDataPathOneOf1 = instanceOfDataPathOneOf1; -exports.DataPathOneOf1FromJSON = DataPathOneOf1FromJSON; -exports.DataPathOneOf1FromJSONTyped = DataPathOneOf1FromJSONTyped; -exports.DataPathOneOf1ToJSON = DataPathOneOf1ToJSON; -exports.DataPathOneOf1ToJSONTyped = DataPathOneOf1ToJSONTyped; +exports.instanceOfUpload = instanceOfUpload; +exports.UploadFromJSON = UploadFromJSON; +exports.UploadFromJSONTyped = UploadFromJSONTyped; +exports.UploadToJSON = UploadToJSON; +exports.UploadToJSONTyped = UploadToJSONTyped; /** - * Check if a given object implements the DataPathOneOf1 interface. + * Check if a given object implements the Upload interface. */ -function instanceOfDataPathOneOf1(value) { +function instanceOfUpload(value) { if (!('upload' in value) || value['upload'] === undefined) return false; return true; } -function DataPathOneOf1FromJSON(json) { - return DataPathOneOf1FromJSONTyped(json, false); +function UploadFromJSON(json) { + return UploadFromJSONTyped(json, false); } -function DataPathOneOf1FromJSONTyped(json, ignoreDiscriminator) { +function UploadFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } @@ -37,10 +37,10 @@ function DataPathOneOf1FromJSONTyped(json, ignoreDiscriminator) { 'upload': json['upload'], }; } -function DataPathOneOf1ToJSON(json) { - return DataPathOneOf1ToJSONTyped(json, false); +function UploadToJSON(json) { + return UploadToJSONTyped(json, false); } -function DataPathOneOf1ToJSONTyped(value, ignoreDiscriminator = false) { +function UploadToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } diff --git a/typescript/dist/models/Values.d.ts b/typescript/dist/models/Values.d.ts new file mode 100644 index 00000000..51178f33 --- /dev/null +++ b/typescript/dist/models/Values.d.ts @@ -0,0 +1,33 @@ +/** + * Geo Engine API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ValuesValues } from './ValuesValues'; +/** + * + * @export + * @interface Values + */ +export interface Values { + /** + * + * @type {ValuesValues} + * @memberof Values + */ + values: ValuesValues; +} +/** + * Check if a given object implements the Values interface. + */ +export declare function instanceOfValues(value: object): value is Values; +export declare function ValuesFromJSON(json: any): Values; +export declare function ValuesFromJSONTyped(json: any, ignoreDiscriminator: boolean): Values; +export declare function ValuesToJSON(json: any): Values; +export declare function ValuesToJSONTyped(value?: Values | null, ignoreDiscriminator?: boolean): any; diff --git a/typescript/dist/models/Values.js b/typescript/dist/models/Values.js new file mode 100644 index 00000000..8ac53694 --- /dev/null +++ b/typescript/dist/models/Values.js @@ -0,0 +1,51 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfValues = instanceOfValues; +exports.ValuesFromJSON = ValuesFromJSON; +exports.ValuesFromJSONTyped = ValuesFromJSONTyped; +exports.ValuesToJSON = ValuesToJSON; +exports.ValuesToJSONTyped = ValuesToJSONTyped; +const ValuesValues_1 = require("./ValuesValues"); +/** + * Check if a given object implements the Values interface. + */ +function instanceOfValues(value) { + if (!('values' in value) || value['values'] === undefined) + return false; + return true; +} +function ValuesFromJSON(json) { + return ValuesFromJSONTyped(json, false); +} +function ValuesFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'values': (0, ValuesValues_1.ValuesValuesFromJSON)(json['values']), + }; +} +function ValuesToJSON(json) { + return ValuesToJSONTyped(json, false); +} +function ValuesToJSONTyped(value, ignoreDiscriminator = false) { + if (value == null) { + return value; + } + return { + 'values': (0, ValuesValues_1.ValuesValuesToJSON)(value['values']), + }; +} diff --git a/typescript/dist/models/ValuesValues.d.ts b/typescript/dist/models/ValuesValues.d.ts new file mode 100644 index 00000000..e4493a48 --- /dev/null +++ b/typescript/dist/models/ValuesValues.d.ts @@ -0,0 +1,38 @@ +/** + * Geo Engine API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface ValuesValues + */ +export interface ValuesValues { + /** + * + * @type {number} + * @memberof ValuesValues + */ + max: number; + /** + * + * @type {number} + * @memberof ValuesValues + */ + min: number; +} +/** + * Check if a given object implements the ValuesValues interface. + */ +export declare function instanceOfValuesValues(value: object): value is ValuesValues; +export declare function ValuesValuesFromJSON(json: any): ValuesValues; +export declare function ValuesValuesFromJSONTyped(json: any, ignoreDiscriminator: boolean): ValuesValues; +export declare function ValuesValuesToJSON(json: any): ValuesValues; +export declare function ValuesValuesToJSONTyped(value?: ValuesValues | null, ignoreDiscriminator?: boolean): any; diff --git a/typescript/dist/models/ValuesValues.js b/typescript/dist/models/ValuesValues.js new file mode 100644 index 00000000..d415fa23 --- /dev/null +++ b/typescript/dist/models/ValuesValues.js @@ -0,0 +1,54 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfValuesValues = instanceOfValuesValues; +exports.ValuesValuesFromJSON = ValuesValuesFromJSON; +exports.ValuesValuesFromJSONTyped = ValuesValuesFromJSONTyped; +exports.ValuesValuesToJSON = ValuesValuesToJSON; +exports.ValuesValuesToJSONTyped = ValuesValuesToJSONTyped; +/** + * Check if a given object implements the ValuesValues interface. + */ +function instanceOfValuesValues(value) { + if (!('max' in value) || value['max'] === undefined) + return false; + if (!('min' in value) || value['min'] === undefined) + return false; + return true; +} +function ValuesValuesFromJSON(json) { + return ValuesValuesFromJSONTyped(json, false); +} +function ValuesValuesFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'max': json['max'], + 'min': json['min'], + }; +} +function ValuesValuesToJSON(json) { + return ValuesValuesToJSONTyped(json, false); +} +function ValuesValuesToJSONTyped(value, ignoreDiscriminator = false) { + if (value == null) { + return value; + } + return { + 'max': value['max'], + 'min': value['min'], + }; +} diff --git a/typescript/dist/models/VectorOperator.d.ts b/typescript/dist/models/VectorOperator.d.ts index 3bf76dad..4234cd25 100644 --- a/typescript/dist/models/VectorOperator.d.ts +++ b/typescript/dist/models/VectorOperator.d.ts @@ -11,6 +11,7 @@ */ import type { MockPointSource } from './MockPointSource'; import type { RasterVectorJoin } from './RasterVectorJoin'; +import type { Reprojection } from './Reprojection'; /** * @type VectorOperator * An operator that produces vector data. @@ -20,7 +21,9 @@ export type VectorOperator = { type: 'MockPointSource'; } & MockPointSource | { type: 'RasterVectorJoin'; -} & RasterVectorJoin; +} & RasterVectorJoin | { + type: 'Reprojection'; +} & Reprojection; export declare function VectorOperatorFromJSON(json: any): VectorOperator; export declare function VectorOperatorFromJSONTyped(json: any, ignoreDiscriminator: boolean): VectorOperator; export declare function VectorOperatorToJSON(json: any): any; diff --git a/typescript/dist/models/VectorOperator.js b/typescript/dist/models/VectorOperator.js index 81b852cf..a973ae5e 100644 --- a/typescript/dist/models/VectorOperator.js +++ b/typescript/dist/models/VectorOperator.js @@ -20,6 +20,7 @@ exports.VectorOperatorToJSONTyped = VectorOperatorToJSONTyped; exports.instanceOfVectorOperator = instanceOfVectorOperator; const MockPointSource_1 = require("./MockPointSource"); const RasterVectorJoin_1 = require("./RasterVectorJoin"); +const Reprojection_1 = require("./Reprojection"); function VectorOperatorFromJSON(json) { return VectorOperatorFromJSONTyped(json, false); } @@ -32,6 +33,8 @@ function VectorOperatorFromJSONTyped(json, ignoreDiscriminator) { return Object.assign({}, (0, MockPointSource_1.MockPointSourceFromJSONTyped)(json, true), { type: 'MockPointSource' }); case 'RasterVectorJoin': return Object.assign({}, (0, RasterVectorJoin_1.RasterVectorJoinFromJSONTyped)(json, true), { type: 'RasterVectorJoin' }); + case 'Reprojection': + return Object.assign({}, (0, Reprojection_1.ReprojectionFromJSONTyped)(json, true), { type: 'Reprojection' }); default: return json; } @@ -48,6 +51,8 @@ function VectorOperatorToJSONTyped(value, ignoreDiscriminator = false) { return Object.assign({}, (0, MockPointSource_1.MockPointSourceToJSON)(value), { type: 'MockPointSource' }); case 'RasterVectorJoin': return Object.assign({}, (0, RasterVectorJoin_1.RasterVectorJoinToJSON)(value), { type: 'RasterVectorJoin' }); + case 'Reprojection': + return Object.assign({}, (0, Reprojection_1.ReprojectionToJSON)(value), { type: 'Reprojection' }); default: return value; } diff --git a/typescript/dist/models/Volume1.d.ts b/typescript/dist/models/Volume1.d.ts new file mode 100644 index 00000000..626c0f1c --- /dev/null +++ b/typescript/dist/models/Volume1.d.ts @@ -0,0 +1,32 @@ +/** + * Geo Engine API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface Volume1 + */ +export interface Volume1 { + /** + * + * @type {string} + * @memberof Volume1 + */ + volume: string; +} +/** + * Check if a given object implements the Volume1 interface. + */ +export declare function instanceOfVolume1(value: object): value is Volume1; +export declare function Volume1FromJSON(json: any): Volume1; +export declare function Volume1FromJSONTyped(json: any, ignoreDiscriminator: boolean): Volume1; +export declare function Volume1ToJSON(json: any): Volume1; +export declare function Volume1ToJSONTyped(value?: Volume1 | null, ignoreDiscriminator?: boolean): any; diff --git a/typescript/dist/models/DataPathOneOf.js b/typescript/dist/models/Volume1.js similarity index 53% rename from typescript/dist/models/DataPathOneOf.js rename to typescript/dist/models/Volume1.js index bea5e9e3..aeecdee3 100644 --- a/typescript/dist/models/DataPathOneOf.js +++ b/typescript/dist/models/Volume1.js @@ -13,23 +13,23 @@ * Do not edit the class manually. */ Object.defineProperty(exports, "__esModule", { value: true }); -exports.instanceOfDataPathOneOf = instanceOfDataPathOneOf; -exports.DataPathOneOfFromJSON = DataPathOneOfFromJSON; -exports.DataPathOneOfFromJSONTyped = DataPathOneOfFromJSONTyped; -exports.DataPathOneOfToJSON = DataPathOneOfToJSON; -exports.DataPathOneOfToJSONTyped = DataPathOneOfToJSONTyped; +exports.instanceOfVolume1 = instanceOfVolume1; +exports.Volume1FromJSON = Volume1FromJSON; +exports.Volume1FromJSONTyped = Volume1FromJSONTyped; +exports.Volume1ToJSON = Volume1ToJSON; +exports.Volume1ToJSONTyped = Volume1ToJSONTyped; /** - * Check if a given object implements the DataPathOneOf interface. + * Check if a given object implements the Volume1 interface. */ -function instanceOfDataPathOneOf(value) { +function instanceOfVolume1(value) { if (!('volume' in value) || value['volume'] === undefined) return false; return true; } -function DataPathOneOfFromJSON(json) { - return DataPathOneOfFromJSONTyped(json, false); +function Volume1FromJSON(json) { + return Volume1FromJSONTyped(json, false); } -function DataPathOneOfFromJSONTyped(json, ignoreDiscriminator) { +function Volume1FromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } @@ -37,10 +37,10 @@ function DataPathOneOfFromJSONTyped(json, ignoreDiscriminator) { 'volume': json['volume'], }; } -function DataPathOneOfToJSON(json) { - return DataPathOneOfToJSONTyped(json, false); +function Volume1ToJSON(json) { + return Volume1ToJSONTyped(json, false); } -function DataPathOneOfToJSONTyped(value, ignoreDiscriminator = false) { +function Volume1ToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } diff --git a/typescript/dist/models/index.d.ts b/typescript/dist/models/index.d.ts index 7733eadb..61609ffc 100644 --- a/typescript/dist/models/index.d.ts +++ b/typescript/dist/models/index.d.ts @@ -2,11 +2,15 @@ export * from './AddDataset'; export * from './AddLayer'; export * from './AddLayerCollection'; export * from './AddRole'; +export * from './Aggregation'; export * from './ArunaDataProviderDefinition'; export * from './AuthCodeRequestURL'; export * from './AuthCodeResponse'; export * from './AutoCreateDataset'; export * from './AxisOrder'; +export * from './BandFilter'; +export * from './BandFilterParameters'; +export * from './BandsByNameOrIndex'; export * from './BoundingBox2D'; export * from './Breakpoint'; export * from './ClassificationMeasurement'; @@ -19,13 +23,13 @@ export * from './ComputationQuota'; export * from './ContinuousMeasurement'; export * from './Coordinate2D'; export * from './CopernicusDataspaceDataProviderDefinition'; +export * from './CountAggregation'; export * from './CreateDataset'; export * from './CreateProject'; export * from './CsvHeader'; +export * from './Data1'; export * from './DataId'; export * from './DataPath'; -export * from './DataPathOneOf'; -export * from './DataPathOneOf1'; export * from './DataProviderResource'; export * from './DataUsage'; export * from './DataUsageSummary'; @@ -38,6 +42,7 @@ export * from './DatasetListing'; export * from './DatasetNameResponse'; export * from './DatasetResource'; export * from './Default'; +export * from './DeriveOutRasterSpecsSource'; export * from './DerivedColor'; export * from './DerivedNumber'; export * from './EbvPortalDataProviderDefinition'; @@ -50,8 +55,10 @@ export * from './ExternalDataId'; export * from './FeatureAggregationMethod'; export * from './FeatureDataType'; export * from './FileNotFoundHandling'; +export * from './FirstAggregation'; export * from './FormatSpecifics'; export * from './FormatSpecificsCsv'; +export * from './Fraction'; export * from './GbifDataProviderDefinition'; export * from './GdalDatasetParameters'; export * from './GdalLoadingInfoTemporalSlice'; @@ -74,15 +81,16 @@ export * from './GridBoundingBox2D'; export * from './GridIdx2D'; export * from './Histogram'; export * from './HistogramBounds'; -export * from './HistogramBoundsOneOf'; -export * from './HistogramBoundsOneOf1'; -export * from './HistogramBoundsOneOf1Values'; export * from './HistogramBuckets'; -export * from './HistogramBucketsOneOf'; -export * from './HistogramBucketsOneOf1'; export * from './HistogramParameters'; export * from './IdResponse'; export * from './InternalDataId'; +export * from './Interpolation'; +export * from './InterpolationMethod'; +export * from './InterpolationParameters'; +export * from './InterpolationResolution'; +export * from './Irregular'; +export * from './LastAggregation'; export * from './Layer'; export * from './LayerCollection'; export * from './LayerCollectionListing'; @@ -96,9 +104,12 @@ export * from './LegacyTypedOperatorOperator'; export * from './LineSymbology'; export * from './LinearGradient'; export * from './LogarithmicGradient'; +export * from './MaxAggregation'; +export * from './MeanAggregation'; export * from './Measurement'; export * from './MetaDataDefinition'; export * from './MetaDataSuggestion'; +export * from './MinAggregation'; export * from './MlModel'; export * from './MlModelInputNoDataHandling'; export * from './MlModelInputNoDataHandlingVariant'; @@ -112,14 +123,21 @@ export * from './MockDatasetDataSourceLoadingInfo'; export * from './MockMetaData'; export * from './MockPointSource'; export * from './MockPointSourceParameters'; +export * from './MultiBandGdalSource'; export * from './MultiBandRasterColorizer'; export * from './MultiLineString'; +export * from './MultiLineString1'; export * from './MultiPoint'; +export * from './MultiPoint1'; export * from './MultiPolygon'; +export * from './MultiPolygon1'; export * from './MultipleRasterOrSingleVectorOperator'; export * from './MultipleRasterOrSingleVectorSource'; +export * from './MultipleRasterSources'; export * from './Names'; export * from './NetCdfCfDataProviderDefinition'; +export * from './NoGeometry1'; +export * from './Number'; export * from './NumberParam'; export * from './OgrMetaData'; export * from './OgrSourceColumnSpec'; @@ -142,6 +160,7 @@ export * from './OperatorQuota'; export * from './OrderBy'; export * from './PaletteColorizer'; export * from './PangaeaDataProviderDefinition'; +export * from './PercentileEstimateAggregation'; export * from './Permission'; export * from './PermissionListing'; export * from './PermissionRequest'; @@ -172,12 +191,22 @@ export * from './RasterOperator'; export * from './RasterPropertiesEntryType'; export * from './RasterPropertiesKey'; export * from './RasterResultDescriptor'; +export * from './RasterStacker'; +export * from './RasterStackerParameters'; export * from './RasterStreamWebsocketResultType'; export * from './RasterSymbology'; export * from './RasterToDatasetQueryRectangle'; +export * from './RasterTypeConversion'; +export * from './RasterTypeConversionParameters'; export * from './RasterVectorJoin'; export * from './RasterVectorJoinParameters'; +export * from './Regular'; export * from './RegularTimeDimension'; +export * from './Rename'; +export * from './RenameBands'; +export * from './Reprojection'; +export * from './ReprojectionParameters'; +export * from './Resolution'; export * from './Resource'; export * from './Role'; export * from './RoleDescription'; @@ -201,6 +230,7 @@ export * from './SpatialGridDescriptor'; export * from './SpatialGridDescriptorState'; export * from './SpatialPartition2D'; export * from './SpatialReferenceSpecification'; +export * from './SquareRootChoiceRule'; export * from './StacApiRetries'; export * from './StacQueryBuffer'; export * from './StaticColor'; @@ -210,6 +240,7 @@ export * from './StatisticsParameters'; export * from './StrokeParam'; export * from './Suffix'; export * from './SuggestMetaData'; +export * from './SumAggregation'; export * from './Symbology'; export * from './TaskFilter'; export * from './TaskResponse'; @@ -220,21 +251,17 @@ export * from './TaskStatusFailed'; export * from './TaskStatusRunning'; export * from './TaskStatusWithId'; export * from './TemporalAggregationMethod'; +export * from './TemporalRasterAggregation'; +export * from './TemporalRasterAggregationParameters'; export * from './TextSymbology'; export * from './TimeDescriptor'; export * from './TimeDimension'; -export * from './TimeDimensionOneOf'; -export * from './TimeDimensionOneOf1'; export * from './TimeGranularity'; export * from './TimeInterval'; export * from './TimeReference'; export * from './TimeStep'; export * from './TypedDataProviderDefinition'; export * from './TypedGeometry'; -export * from './TypedGeometryOneOf'; -export * from './TypedGeometryOneOf1'; -export * from './TypedGeometryOneOf2'; -export * from './TypedGeometryOneOf3'; export * from './TypedOperator'; export * from './TypedPlotOperator'; export * from './TypedPlotResultDescriptor'; @@ -250,6 +277,7 @@ export * from './UpdateLayer'; export * from './UpdateLayerCollection'; export * from './UpdateProject'; export * from './UpdateQuota'; +export * from './Upload'; export * from './UploadFileLayersResponse'; export * from './UploadFilesResponse'; export * from './UsageSummaryGranularity'; @@ -257,12 +285,15 @@ export * from './UserCredentials'; export * from './UserInfo'; export * from './UserRegistration'; export * from './UserSession'; +export * from './Values'; +export * from './ValuesValues'; export * from './VecUpdate'; export * from './VectorColumnInfo'; export * from './VectorDataType'; export * from './VectorOperator'; export * from './VectorResultDescriptor'; export * from './Volume'; +export * from './Volume1'; export * from './VolumeFileLayersResponse'; export * from './WcsRequest'; export * from './WcsService'; diff --git a/typescript/dist/models/index.js b/typescript/dist/models/index.js index e487e8c7..5f36dd0d 100644 --- a/typescript/dist/models/index.js +++ b/typescript/dist/models/index.js @@ -20,11 +20,15 @@ __exportStar(require("./AddDataset"), exports); __exportStar(require("./AddLayer"), exports); __exportStar(require("./AddLayerCollection"), exports); __exportStar(require("./AddRole"), exports); +__exportStar(require("./Aggregation"), exports); __exportStar(require("./ArunaDataProviderDefinition"), exports); __exportStar(require("./AuthCodeRequestURL"), exports); __exportStar(require("./AuthCodeResponse"), exports); __exportStar(require("./AutoCreateDataset"), exports); __exportStar(require("./AxisOrder"), exports); +__exportStar(require("./BandFilter"), exports); +__exportStar(require("./BandFilterParameters"), exports); +__exportStar(require("./BandsByNameOrIndex"), exports); __exportStar(require("./BoundingBox2D"), exports); __exportStar(require("./Breakpoint"), exports); __exportStar(require("./ClassificationMeasurement"), exports); @@ -37,13 +41,13 @@ __exportStar(require("./ComputationQuota"), exports); __exportStar(require("./ContinuousMeasurement"), exports); __exportStar(require("./Coordinate2D"), exports); __exportStar(require("./CopernicusDataspaceDataProviderDefinition"), exports); +__exportStar(require("./CountAggregation"), exports); __exportStar(require("./CreateDataset"), exports); __exportStar(require("./CreateProject"), exports); __exportStar(require("./CsvHeader"), exports); +__exportStar(require("./Data1"), exports); __exportStar(require("./DataId"), exports); __exportStar(require("./DataPath"), exports); -__exportStar(require("./DataPathOneOf"), exports); -__exportStar(require("./DataPathOneOf1"), exports); __exportStar(require("./DataProviderResource"), exports); __exportStar(require("./DataUsage"), exports); __exportStar(require("./DataUsageSummary"), exports); @@ -56,6 +60,7 @@ __exportStar(require("./DatasetListing"), exports); __exportStar(require("./DatasetNameResponse"), exports); __exportStar(require("./DatasetResource"), exports); __exportStar(require("./Default"), exports); +__exportStar(require("./DeriveOutRasterSpecsSource"), exports); __exportStar(require("./DerivedColor"), exports); __exportStar(require("./DerivedNumber"), exports); __exportStar(require("./EbvPortalDataProviderDefinition"), exports); @@ -68,8 +73,10 @@ __exportStar(require("./ExternalDataId"), exports); __exportStar(require("./FeatureAggregationMethod"), exports); __exportStar(require("./FeatureDataType"), exports); __exportStar(require("./FileNotFoundHandling"), exports); +__exportStar(require("./FirstAggregation"), exports); __exportStar(require("./FormatSpecifics"), exports); __exportStar(require("./FormatSpecificsCsv"), exports); +__exportStar(require("./Fraction"), exports); __exportStar(require("./GbifDataProviderDefinition"), exports); __exportStar(require("./GdalDatasetParameters"), exports); __exportStar(require("./GdalLoadingInfoTemporalSlice"), exports); @@ -92,15 +99,16 @@ __exportStar(require("./GridBoundingBox2D"), exports); __exportStar(require("./GridIdx2D"), exports); __exportStar(require("./Histogram"), exports); __exportStar(require("./HistogramBounds"), exports); -__exportStar(require("./HistogramBoundsOneOf"), exports); -__exportStar(require("./HistogramBoundsOneOf1"), exports); -__exportStar(require("./HistogramBoundsOneOf1Values"), exports); __exportStar(require("./HistogramBuckets"), exports); -__exportStar(require("./HistogramBucketsOneOf"), exports); -__exportStar(require("./HistogramBucketsOneOf1"), exports); __exportStar(require("./HistogramParameters"), exports); __exportStar(require("./IdResponse"), exports); __exportStar(require("./InternalDataId"), exports); +__exportStar(require("./Interpolation"), exports); +__exportStar(require("./InterpolationMethod"), exports); +__exportStar(require("./InterpolationParameters"), exports); +__exportStar(require("./InterpolationResolution"), exports); +__exportStar(require("./Irregular"), exports); +__exportStar(require("./LastAggregation"), exports); __exportStar(require("./Layer"), exports); __exportStar(require("./LayerCollection"), exports); __exportStar(require("./LayerCollectionListing"), exports); @@ -114,9 +122,12 @@ __exportStar(require("./LegacyTypedOperatorOperator"), exports); __exportStar(require("./LineSymbology"), exports); __exportStar(require("./LinearGradient"), exports); __exportStar(require("./LogarithmicGradient"), exports); +__exportStar(require("./MaxAggregation"), exports); +__exportStar(require("./MeanAggregation"), exports); __exportStar(require("./Measurement"), exports); __exportStar(require("./MetaDataDefinition"), exports); __exportStar(require("./MetaDataSuggestion"), exports); +__exportStar(require("./MinAggregation"), exports); __exportStar(require("./MlModel"), exports); __exportStar(require("./MlModelInputNoDataHandling"), exports); __exportStar(require("./MlModelInputNoDataHandlingVariant"), exports); @@ -130,14 +141,21 @@ __exportStar(require("./MockDatasetDataSourceLoadingInfo"), exports); __exportStar(require("./MockMetaData"), exports); __exportStar(require("./MockPointSource"), exports); __exportStar(require("./MockPointSourceParameters"), exports); +__exportStar(require("./MultiBandGdalSource"), exports); __exportStar(require("./MultiBandRasterColorizer"), exports); __exportStar(require("./MultiLineString"), exports); +__exportStar(require("./MultiLineString1"), exports); __exportStar(require("./MultiPoint"), exports); +__exportStar(require("./MultiPoint1"), exports); __exportStar(require("./MultiPolygon"), exports); +__exportStar(require("./MultiPolygon1"), exports); __exportStar(require("./MultipleRasterOrSingleVectorOperator"), exports); __exportStar(require("./MultipleRasterOrSingleVectorSource"), exports); +__exportStar(require("./MultipleRasterSources"), exports); __exportStar(require("./Names"), exports); __exportStar(require("./NetCdfCfDataProviderDefinition"), exports); +__exportStar(require("./NoGeometry1"), exports); +__exportStar(require("./Number"), exports); __exportStar(require("./NumberParam"), exports); __exportStar(require("./OgrMetaData"), exports); __exportStar(require("./OgrSourceColumnSpec"), exports); @@ -160,6 +178,7 @@ __exportStar(require("./OperatorQuota"), exports); __exportStar(require("./OrderBy"), exports); __exportStar(require("./PaletteColorizer"), exports); __exportStar(require("./PangaeaDataProviderDefinition"), exports); +__exportStar(require("./PercentileEstimateAggregation"), exports); __exportStar(require("./Permission"), exports); __exportStar(require("./PermissionListing"), exports); __exportStar(require("./PermissionRequest"), exports); @@ -190,12 +209,22 @@ __exportStar(require("./RasterOperator"), exports); __exportStar(require("./RasterPropertiesEntryType"), exports); __exportStar(require("./RasterPropertiesKey"), exports); __exportStar(require("./RasterResultDescriptor"), exports); +__exportStar(require("./RasterStacker"), exports); +__exportStar(require("./RasterStackerParameters"), exports); __exportStar(require("./RasterStreamWebsocketResultType"), exports); __exportStar(require("./RasterSymbology"), exports); __exportStar(require("./RasterToDatasetQueryRectangle"), exports); +__exportStar(require("./RasterTypeConversion"), exports); +__exportStar(require("./RasterTypeConversionParameters"), exports); __exportStar(require("./RasterVectorJoin"), exports); __exportStar(require("./RasterVectorJoinParameters"), exports); +__exportStar(require("./Regular"), exports); __exportStar(require("./RegularTimeDimension"), exports); +__exportStar(require("./Rename"), exports); +__exportStar(require("./RenameBands"), exports); +__exportStar(require("./Reprojection"), exports); +__exportStar(require("./ReprojectionParameters"), exports); +__exportStar(require("./Resolution"), exports); __exportStar(require("./Resource"), exports); __exportStar(require("./Role"), exports); __exportStar(require("./RoleDescription"), exports); @@ -219,6 +248,7 @@ __exportStar(require("./SpatialGridDescriptor"), exports); __exportStar(require("./SpatialGridDescriptorState"), exports); __exportStar(require("./SpatialPartition2D"), exports); __exportStar(require("./SpatialReferenceSpecification"), exports); +__exportStar(require("./SquareRootChoiceRule"), exports); __exportStar(require("./StacApiRetries"), exports); __exportStar(require("./StacQueryBuffer"), exports); __exportStar(require("./StaticColor"), exports); @@ -228,6 +258,7 @@ __exportStar(require("./StatisticsParameters"), exports); __exportStar(require("./StrokeParam"), exports); __exportStar(require("./Suffix"), exports); __exportStar(require("./SuggestMetaData"), exports); +__exportStar(require("./SumAggregation"), exports); __exportStar(require("./Symbology"), exports); __exportStar(require("./TaskFilter"), exports); __exportStar(require("./TaskResponse"), exports); @@ -238,21 +269,17 @@ __exportStar(require("./TaskStatusFailed"), exports); __exportStar(require("./TaskStatusRunning"), exports); __exportStar(require("./TaskStatusWithId"), exports); __exportStar(require("./TemporalAggregationMethod"), exports); +__exportStar(require("./TemporalRasterAggregation"), exports); +__exportStar(require("./TemporalRasterAggregationParameters"), exports); __exportStar(require("./TextSymbology"), exports); __exportStar(require("./TimeDescriptor"), exports); __exportStar(require("./TimeDimension"), exports); -__exportStar(require("./TimeDimensionOneOf"), exports); -__exportStar(require("./TimeDimensionOneOf1"), exports); __exportStar(require("./TimeGranularity"), exports); __exportStar(require("./TimeInterval"), exports); __exportStar(require("./TimeReference"), exports); __exportStar(require("./TimeStep"), exports); __exportStar(require("./TypedDataProviderDefinition"), exports); __exportStar(require("./TypedGeometry"), exports); -__exportStar(require("./TypedGeometryOneOf"), exports); -__exportStar(require("./TypedGeometryOneOf1"), exports); -__exportStar(require("./TypedGeometryOneOf2"), exports); -__exportStar(require("./TypedGeometryOneOf3"), exports); __exportStar(require("./TypedOperator"), exports); __exportStar(require("./TypedPlotOperator"), exports); __exportStar(require("./TypedPlotResultDescriptor"), exports); @@ -268,6 +295,7 @@ __exportStar(require("./UpdateLayer"), exports); __exportStar(require("./UpdateLayerCollection"), exports); __exportStar(require("./UpdateProject"), exports); __exportStar(require("./UpdateQuota"), exports); +__exportStar(require("./Upload"), exports); __exportStar(require("./UploadFileLayersResponse"), exports); __exportStar(require("./UploadFilesResponse"), exports); __exportStar(require("./UsageSummaryGranularity"), exports); @@ -275,12 +303,15 @@ __exportStar(require("./UserCredentials"), exports); __exportStar(require("./UserInfo"), exports); __exportStar(require("./UserRegistration"), exports); __exportStar(require("./UserSession"), exports); +__exportStar(require("./Values"), exports); +__exportStar(require("./ValuesValues"), exports); __exportStar(require("./VecUpdate"), exports); __exportStar(require("./VectorColumnInfo"), exports); __exportStar(require("./VectorDataType"), exports); __exportStar(require("./VectorOperator"), exports); __exportStar(require("./VectorResultDescriptor"), exports); __exportStar(require("./Volume"), exports); +__exportStar(require("./Volume1"), exports); __exportStar(require("./VolumeFileLayersResponse"), exports); __exportStar(require("./WcsRequest"), exports); __exportStar(require("./WcsService"), exports); diff --git a/typescript/docs/Aggregation.md b/typescript/docs/Aggregation.md new file mode 100644 index 00000000..4ef1bb8e --- /dev/null +++ b/typescript/docs/Aggregation.md @@ -0,0 +1,39 @@ + +# Aggregation + +Aggregation methods for `TemporalRasterAggregation`. Available variants are `min`, `max`, `first`, `last`, `mean`, `sum`, `count`, and `percentileEstimate`. Encountering NO DATA makes the aggregation result NO DATA unless `ignoreNoData` is `true`. + +## Properties + +Name | Type +------------ | ------------- +`ignoreNoData` | boolean +`type` | string +`percentile` | number + +## Example + +```typescript +import type { Aggregation } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { + "ignoreNoData": null, + "type": null, + "percentile": null, +} satisfies Aggregation + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as Aggregation +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/BandFilter.md b/typescript/docs/BandFilter.md new file mode 100644 index 00000000..e5d50336 --- /dev/null +++ b/typescript/docs/BandFilter.md @@ -0,0 +1,39 @@ + +# BandFilter + +The `BandFilter` operator selects bands from a raster source by band names or band indices. It removes all non-selected bands while preserving the original order of remaining bands. ## Inputs The `BandFilter` operator expects exactly one _raster_ input. ## Errors The operator returns an error if no bands are selected or if selected band names/indices cannot be mapped to existing input bands. + +## Properties + +Name | Type +------------ | ------------- +`params` | [BandFilterParameters](BandFilterParameters.md) +`sources` | [SingleRasterSource](SingleRasterSource.md) +`type` | string + +## Example + +```typescript +import type { BandFilter } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { + "params": null, + "sources": null, + "type": null, +} satisfies BandFilter + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as BandFilter +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/BandFilterParameters.md b/typescript/docs/BandFilterParameters.md new file mode 100644 index 00000000..b887c061 --- /dev/null +++ b/typescript/docs/BandFilterParameters.md @@ -0,0 +1,35 @@ + +# BandFilterParameters + +Parameters for the `BandFilter` operator. + +## Properties + +Name | Type +------------ | ------------- +`bands` | [BandsByNameOrIndex](BandsByNameOrIndex.md) + +## Example + +```typescript +import type { BandFilterParameters } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { + "bands": null, +} satisfies BandFilterParameters + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as BandFilterParameters +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/BandsByNameOrIndex.md b/typescript/docs/BandsByNameOrIndex.md new file mode 100644 index 00000000..ec7c9f9a --- /dev/null +++ b/typescript/docs/BandsByNameOrIndex.md @@ -0,0 +1,32 @@ + +# BandsByNameOrIndex + + +## Properties + +Name | Type +------------ | ------------- + +## Example + +```typescript +import type { BandsByNameOrIndex } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { +} satisfies BandsByNameOrIndex + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as BandsByNameOrIndex +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/CountAggregation.md b/typescript/docs/CountAggregation.md new file mode 100644 index 00000000..ef761b1c --- /dev/null +++ b/typescript/docs/CountAggregation.md @@ -0,0 +1,36 @@ + +# CountAggregation + + +## Properties + +Name | Type +------------ | ------------- +`ignoreNoData` | boolean +`type` | string + +## Example + +```typescript +import type { CountAggregation } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { + "ignoreNoData": null, + "type": null, +} satisfies CountAggregation + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as CountAggregation +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/Data1.md b/typescript/docs/Data1.md new file mode 100644 index 00000000..de38ce0e --- /dev/null +++ b/typescript/docs/Data1.md @@ -0,0 +1,34 @@ + +# Data1 + + +## Properties + +Name | Type +------------ | ------------- +`data` | any + +## Example + +```typescript +import type { Data1 } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { + "data": null, +} satisfies Data1 + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as Data1 +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/DeriveOutRasterSpecsSource.md b/typescript/docs/DeriveOutRasterSpecsSource.md new file mode 100644 index 00000000..832ee5e5 --- /dev/null +++ b/typescript/docs/DeriveOutRasterSpecsSource.md @@ -0,0 +1,32 @@ + +# DeriveOutRasterSpecsSource + + +## Properties + +Name | Type +------------ | ------------- + +## Example + +```typescript +import type { DeriveOutRasterSpecsSource } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { +} satisfies DeriveOutRasterSpecsSource + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as DeriveOutRasterSpecsSource +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/FirstAggregation.md b/typescript/docs/FirstAggregation.md new file mode 100644 index 00000000..011ee1ba --- /dev/null +++ b/typescript/docs/FirstAggregation.md @@ -0,0 +1,36 @@ + +# FirstAggregation + + +## Properties + +Name | Type +------------ | ------------- +`ignoreNoData` | boolean +`type` | string + +## Example + +```typescript +import type { FirstAggregation } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { + "ignoreNoData": null, + "type": null, +} satisfies FirstAggregation + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as FirstAggregation +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/Fraction.md b/typescript/docs/Fraction.md new file mode 100644 index 00000000..5714ede2 --- /dev/null +++ b/typescript/docs/Fraction.md @@ -0,0 +1,39 @@ + +# Fraction + +Upscale factor relative to input resolution (`x >= 1`, `y >= 1`). + +## Properties + +Name | Type +------------ | ------------- +`type` | string +`x` | number +`y` | number + +## Example + +```typescript +import type { Fraction } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { + "type": null, + "x": null, + "y": null, +} satisfies Fraction + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as Fraction +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/HistogramBounds.md b/typescript/docs/HistogramBounds.md index d5a13d8a..82c964bf 100644 --- a/typescript/docs/HistogramBounds.md +++ b/typescript/docs/HistogramBounds.md @@ -7,7 +7,7 @@ Name | Type ------------ | ------------- `data` | any -`values` | [HistogramBoundsOneOf1Values](HistogramBoundsOneOf1Values.md) +`values` | [ValuesValues](ValuesValues.md) ## Example diff --git a/typescript/docs/Interpolation.md b/typescript/docs/Interpolation.md new file mode 100644 index 00000000..374f68bd --- /dev/null +++ b/typescript/docs/Interpolation.md @@ -0,0 +1,39 @@ + +# Interpolation + +The `Interpolation` operator increases raster resolution by interpolating values of an input raster. If queried with a resolution that is coarser than the input resolution, interpolation is not applicable and an error is returned. ## Inputs The `Interpolation` operator expects exactly one _raster_ input. + +## Properties + +Name | Type +------------ | ------------- +`params` | [InterpolationParameters](InterpolationParameters.md) +`sources` | [SingleRasterSource](SingleRasterSource.md) +`type` | string + +## Example + +```typescript +import type { Interpolation } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { + "params": null, + "sources": null, + "type": null, +} satisfies Interpolation + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as Interpolation +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/InterpolationMethod.md b/typescript/docs/InterpolationMethod.md new file mode 100644 index 00000000..bf56d195 --- /dev/null +++ b/typescript/docs/InterpolationMethod.md @@ -0,0 +1,32 @@ + +# InterpolationMethod + + +## Properties + +Name | Type +------------ | ------------- + +## Example + +```typescript +import type { InterpolationMethod } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { +} satisfies InterpolationMethod + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as InterpolationMethod +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/InterpolationParameters.md b/typescript/docs/InterpolationParameters.md new file mode 100644 index 00000000..225c6a9d --- /dev/null +++ b/typescript/docs/InterpolationParameters.md @@ -0,0 +1,39 @@ + +# InterpolationParameters + +Parameters for the `Interpolation` operator. + +## Properties + +Name | Type +------------ | ------------- +`interpolation` | [InterpolationMethod](InterpolationMethod.md) +`outputOriginReference` | [Coordinate2D](Coordinate2D.md) +`outputResolution` | [InterpolationResolution](InterpolationResolution.md) + +## Example + +```typescript +import type { InterpolationParameters } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { + "interpolation": null, + "outputOriginReference": null, + "outputResolution": null, +} satisfies InterpolationParameters + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as InterpolationParameters +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/InterpolationResolution.md b/typescript/docs/InterpolationResolution.md new file mode 100644 index 00000000..15b5f348 --- /dev/null +++ b/typescript/docs/InterpolationResolution.md @@ -0,0 +1,38 @@ + +# InterpolationResolution + + +## Properties + +Name | Type +------------ | ------------- +`type` | string +`x` | number +`y` | number + +## Example + +```typescript +import type { InterpolationResolution } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { + "type": null, + "x": null, + "y": null, +} satisfies InterpolationResolution + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as InterpolationResolution +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/Irregular.md b/typescript/docs/Irregular.md new file mode 100644 index 00000000..2f47e544 --- /dev/null +++ b/typescript/docs/Irregular.md @@ -0,0 +1,34 @@ + +# Irregular + + +## Properties + +Name | Type +------------ | ------------- +`type` | string + +## Example + +```typescript +import type { Irregular } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { + "type": null, +} satisfies Irregular + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as Irregular +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/LastAggregation.md b/typescript/docs/LastAggregation.md new file mode 100644 index 00000000..0299e3fe --- /dev/null +++ b/typescript/docs/LastAggregation.md @@ -0,0 +1,36 @@ + +# LastAggregation + + +## Properties + +Name | Type +------------ | ------------- +`ignoreNoData` | boolean +`type` | string + +## Example + +```typescript +import type { LastAggregation } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { + "ignoreNoData": null, + "type": null, +} satisfies LastAggregation + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as LastAggregation +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/MaxAggregation.md b/typescript/docs/MaxAggregation.md new file mode 100644 index 00000000..5601cc96 --- /dev/null +++ b/typescript/docs/MaxAggregation.md @@ -0,0 +1,36 @@ + +# MaxAggregation + + +## Properties + +Name | Type +------------ | ------------- +`ignoreNoData` | boolean +`type` | string + +## Example + +```typescript +import type { MaxAggregation } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { + "ignoreNoData": null, + "type": null, +} satisfies MaxAggregation + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as MaxAggregation +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/MeanAggregation.md b/typescript/docs/MeanAggregation.md new file mode 100644 index 00000000..a4d28e26 --- /dev/null +++ b/typescript/docs/MeanAggregation.md @@ -0,0 +1,36 @@ + +# MeanAggregation + + +## Properties + +Name | Type +------------ | ------------- +`ignoreNoData` | boolean +`type` | string + +## Example + +```typescript +import type { MeanAggregation } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { + "ignoreNoData": null, + "type": null, +} satisfies MeanAggregation + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as MeanAggregation +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/MinAggregation.md b/typescript/docs/MinAggregation.md new file mode 100644 index 00000000..01aad383 --- /dev/null +++ b/typescript/docs/MinAggregation.md @@ -0,0 +1,36 @@ + +# MinAggregation + + +## Properties + +Name | Type +------------ | ------------- +`ignoreNoData` | boolean +`type` | string + +## Example + +```typescript +import type { MinAggregation } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { + "ignoreNoData": null, + "type": null, +} satisfies MinAggregation + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as MinAggregation +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/MultiBandGdalSource.md b/typescript/docs/MultiBandGdalSource.md new file mode 100644 index 00000000..7fda29dd --- /dev/null +++ b/typescript/docs/MultiBandGdalSource.md @@ -0,0 +1,37 @@ + +# MultiBandGdalSource + +The [`MultiBandGdalSource`] is a source operator that reads multi-band raster data using GDAL. + +## Properties + +Name | Type +------------ | ------------- +`params` | [GdalSourceParameters](GdalSourceParameters.md) +`type` | string + +## Example + +```typescript +import type { MultiBandGdalSource } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { + "params": null, + "type": null, +} satisfies MultiBandGdalSource + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as MultiBandGdalSource +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/MultiLineString1.md b/typescript/docs/MultiLineString1.md new file mode 100644 index 00000000..fe65cf46 --- /dev/null +++ b/typescript/docs/MultiLineString1.md @@ -0,0 +1,34 @@ + +# MultiLineString1 + + +## Properties + +Name | Type +------------ | ------------- +`multiLineString` | [MultiLineString](MultiLineString.md) + +## Example + +```typescript +import type { MultiLineString1 } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { + "multiLineString": null, +} satisfies MultiLineString1 + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as MultiLineString1 +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/MultiPoint1.md b/typescript/docs/MultiPoint1.md new file mode 100644 index 00000000..37c24e1f --- /dev/null +++ b/typescript/docs/MultiPoint1.md @@ -0,0 +1,34 @@ + +# MultiPoint1 + + +## Properties + +Name | Type +------------ | ------------- +`multiPoint` | [MultiPoint](MultiPoint.md) + +## Example + +```typescript +import type { MultiPoint1 } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { + "multiPoint": null, +} satisfies MultiPoint1 + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as MultiPoint1 +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/MultiPolygon1.md b/typescript/docs/MultiPolygon1.md new file mode 100644 index 00000000..40b430a5 --- /dev/null +++ b/typescript/docs/MultiPolygon1.md @@ -0,0 +1,34 @@ + +# MultiPolygon1 + + +## Properties + +Name | Type +------------ | ------------- +`multiPolygon` | [MultiPolygon](MultiPolygon.md) + +## Example + +```typescript +import type { MultiPolygon1 } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { + "multiPolygon": null, +} satisfies MultiPolygon1 + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as MultiPolygon1 +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/MultipleRasterSources.md b/typescript/docs/MultipleRasterSources.md new file mode 100644 index 00000000..36b2ed40 --- /dev/null +++ b/typescript/docs/MultipleRasterSources.md @@ -0,0 +1,35 @@ + +# MultipleRasterSources + +One or more raster operators as sources for this operator. + +## Properties + +Name | Type +------------ | ------------- +`rasters` | [Array<RasterOperator>](RasterOperator.md) + +## Example + +```typescript +import type { MultipleRasterSources } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { + "rasters": null, +} satisfies MultipleRasterSources + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as MultipleRasterSources +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/NoGeometry1.md b/typescript/docs/NoGeometry1.md new file mode 100644 index 00000000..53827fa4 --- /dev/null +++ b/typescript/docs/NoGeometry1.md @@ -0,0 +1,34 @@ + +# NoGeometry1 + + +## Properties + +Name | Type +------------ | ------------- +`data` | any + +## Example + +```typescript +import type { NoGeometry1 } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { + "data": null, +} satisfies NoGeometry1 + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as NoGeometry1 +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/Number.md b/typescript/docs/Number.md new file mode 100644 index 00000000..ab7c2142 --- /dev/null +++ b/typescript/docs/Number.md @@ -0,0 +1,36 @@ + +# Number + + +## Properties + +Name | Type +------------ | ------------- +`type` | string +`value` | number + +## Example + +```typescript +import type { Number } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { + "type": null, + "value": null, +} satisfies Number + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as Number +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/PercentileEstimateAggregation.md b/typescript/docs/PercentileEstimateAggregation.md new file mode 100644 index 00000000..b38c97cb --- /dev/null +++ b/typescript/docs/PercentileEstimateAggregation.md @@ -0,0 +1,38 @@ + +# PercentileEstimateAggregation + + +## Properties + +Name | Type +------------ | ------------- +`ignoreNoData` | boolean +`percentile` | number +`type` | string + +## Example + +```typescript +import type { PercentileEstimateAggregation } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { + "ignoreNoData": null, + "percentile": null, + "type": null, +} satisfies PercentileEstimateAggregation + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as PercentileEstimateAggregation +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/RasterOperator.md b/typescript/docs/RasterOperator.md index 498c5c02..7be9c65c 100644 --- a/typescript/docs/RasterOperator.md +++ b/typescript/docs/RasterOperator.md @@ -7,7 +7,7 @@ An operator that produces raster data. Name | Type ------------ | ------------- -`params` | [GdalSourceParameters](GdalSourceParameters.md) +`params` | [TemporalRasterAggregationParameters](TemporalRasterAggregationParameters.md) `sources` | [SingleRasterSource](SingleRasterSource.md) `type` | string diff --git a/typescript/docs/RasterStacker.md b/typescript/docs/RasterStacker.md new file mode 100644 index 00000000..b2ce50fb --- /dev/null +++ b/typescript/docs/RasterStacker.md @@ -0,0 +1,39 @@ + +# RasterStacker + +The `RasterStacker` stacks all of its inputs into a single raster time series. It queries all inputs and combines them by band, space, and then time. The output raster has as many bands as the sum of all input bands. Tiles are automatically temporally aligned. All inputs must have the same data type and spatial reference. ## Inputs The `RasterStacker` operator expects multiple raster inputs. + +## Properties + +Name | Type +------------ | ------------- +`params` | [RasterStackerParameters](RasterStackerParameters.md) +`sources` | [MultipleRasterSources](MultipleRasterSources.md) +`type` | string + +## Example + +```typescript +import type { RasterStacker } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { + "params": null, + "sources": null, + "type": null, +} satisfies RasterStacker + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as RasterStacker +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/RasterStackerParameters.md b/typescript/docs/RasterStackerParameters.md new file mode 100644 index 00000000..18fca4ed --- /dev/null +++ b/typescript/docs/RasterStackerParameters.md @@ -0,0 +1,35 @@ + +# RasterStackerParameters + +Parameters for the `RasterStacker` operator. + +## Properties + +Name | Type +------------ | ------------- +`renameBands` | [RenameBands](RenameBands.md) + +## Example + +```typescript +import type { RasterStackerParameters } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { + "renameBands": null, +} satisfies RasterStackerParameters + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as RasterStackerParameters +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/RasterTypeConversion.md b/typescript/docs/RasterTypeConversion.md new file mode 100644 index 00000000..33aef2ea --- /dev/null +++ b/typescript/docs/RasterTypeConversion.md @@ -0,0 +1,39 @@ + +# RasterTypeConversion + +The `RasterTypeConversion` operator changes the data type of raster pixels. Applying this conversion may cause precision loss. For example, converting `F32` value `3.1` to `U8` results in `3`. If a value is outside of the range of the target data type, it is clipped to the valid range of that type. For example, converting `F32` value `300.0` to `U8` results in `255`. ## Inputs The `RasterTypeConversion` operator expects exactly one _raster_ input. + +## Properties + +Name | Type +------------ | ------------- +`params` | [RasterTypeConversionParameters](RasterTypeConversionParameters.md) +`sources` | [SingleRasterSource](SingleRasterSource.md) +`type` | string + +## Example + +```typescript +import type { RasterTypeConversion } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { + "params": null, + "sources": null, + "type": null, +} satisfies RasterTypeConversion + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as RasterTypeConversion +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/RasterTypeConversionParameters.md b/typescript/docs/RasterTypeConversionParameters.md new file mode 100644 index 00000000..f0079d2a --- /dev/null +++ b/typescript/docs/RasterTypeConversionParameters.md @@ -0,0 +1,35 @@ + +# RasterTypeConversionParameters + +Parameters for the `RasterTypeConversion` operator. + +## Properties + +Name | Type +------------ | ------------- +`outputDataType` | [RasterDataType](RasterDataType.md) + +## Example + +```typescript +import type { RasterTypeConversionParameters } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { + "outputDataType": null, +} satisfies RasterTypeConversionParameters + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as RasterTypeConversionParameters +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/Regular.md b/typescript/docs/Regular.md new file mode 100644 index 00000000..981da7a2 --- /dev/null +++ b/typescript/docs/Regular.md @@ -0,0 +1,34 @@ + +# Regular + + +## Properties + +Name | Type +------------ | ------------- +`type` | string + +## Example + +```typescript +import type { Regular } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { + "type": null, +} satisfies Regular + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as Regular +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/Rename.md b/typescript/docs/Rename.md new file mode 100644 index 00000000..29b830ed --- /dev/null +++ b/typescript/docs/Rename.md @@ -0,0 +1,36 @@ + +# Rename + + +## Properties + +Name | Type +------------ | ------------- +`type` | string +`values` | Array<string> + +## Example + +```typescript +import type { Rename } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { + "type": null, + "values": null, +} satisfies Rename + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as Rename +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/RenameBands.md b/typescript/docs/RenameBands.md new file mode 100644 index 00000000..d40b2578 --- /dev/null +++ b/typescript/docs/RenameBands.md @@ -0,0 +1,36 @@ + +# RenameBands + + +## Properties + +Name | Type +------------ | ------------- +`type` | string +`values` | Array<string> + +## Example + +```typescript +import type { RenameBands } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { + "type": null, + "values": null, +} satisfies RenameBands + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as RenameBands +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/Reprojection.md b/typescript/docs/Reprojection.md new file mode 100644 index 00000000..a0d0aa39 --- /dev/null +++ b/typescript/docs/Reprojection.md @@ -0,0 +1,39 @@ + +# Reprojection + +The `Reprojection` operator reprojects data from one spatial reference system to another. It accepts exactly one input which can either be a raster or a vector data stream. The operator produces all data that, after reprojection, is contained in the query rectangle. ## Data Type Specifics The concrete behavior depends on the data type. ### Vector Data The operator reprojects all coordinates of the features individually. The result contains all features that, after reprojection, are intersected by the query rectangle. ### Raster Data To create tiles in the target projection, the operator loads corresponding tiles in the source projection. For each output pixel, the value of the nearest input pixel is used. If parts of a tile are outside of the source extent after projection, the operator produces NO DATA values. ## Inputs The `Reprojection` operator expects exactly one _raster_ or _vector_ input. ## Errors The operator returns an error if the target projection is unknown or if input data cannot be reprojected. + +## Properties + +Name | Type +------------ | ------------- +`params` | [ReprojectionParameters](ReprojectionParameters.md) +`sources` | [SingleRasterOrVectorSource](SingleRasterOrVectorSource.md) +`type` | string + +## Example + +```typescript +import type { Reprojection } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { + "params": null, + "sources": null, + "type": null, +} satisfies Reprojection + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as Reprojection +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/ReprojectionParameters.md b/typescript/docs/ReprojectionParameters.md new file mode 100644 index 00000000..7187e06d --- /dev/null +++ b/typescript/docs/ReprojectionParameters.md @@ -0,0 +1,37 @@ + +# ReprojectionParameters + +Parameters for the `Reprojection` operator. + +## Properties + +Name | Type +------------ | ------------- +`deriveOutSpec` | [DeriveOutRasterSpecsSource](DeriveOutRasterSpecsSource.md) +`targetSpatialReference` | string + +## Example + +```typescript +import type { ReprojectionParameters } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { + "deriveOutSpec": null, + "targetSpatialReference": null, +} satisfies ReprojectionParameters + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as ReprojectionParameters +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/Resolution.md b/typescript/docs/Resolution.md new file mode 100644 index 00000000..5397e8f9 --- /dev/null +++ b/typescript/docs/Resolution.md @@ -0,0 +1,39 @@ + +# Resolution + +Explicit output resolution (`x`, `y`) in target coordinates. + +## Properties + +Name | Type +------------ | ------------- +`type` | string +`x` | number +`y` | number + +## Example + +```typescript +import type { Resolution } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { + "type": null, + "x": null, + "y": null, +} satisfies Resolution + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as Resolution +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/SingleRasterOrVectorOperator.md b/typescript/docs/SingleRasterOrVectorOperator.md index 28d60426..0b6ff510 100644 --- a/typescript/docs/SingleRasterOrVectorOperator.md +++ b/typescript/docs/SingleRasterOrVectorOperator.md @@ -7,8 +7,8 @@ It is either a set of `RasterOperator` or a single `VectorOperator` Name | Type ------------ | ------------- -`params` | [RasterVectorJoinParameters](RasterVectorJoinParameters.md) -`sources` | [SingleVectorMultipleRasterSources](SingleVectorMultipleRasterSources.md) +`params` | [ReprojectionParameters](ReprojectionParameters.md) +`sources` | [SingleRasterOrVectorSource](SingleRasterOrVectorSource.md) `type` | string ## Example diff --git a/typescript/docs/SquareRootChoiceRule.md b/typescript/docs/SquareRootChoiceRule.md new file mode 100644 index 00000000..89b09f47 --- /dev/null +++ b/typescript/docs/SquareRootChoiceRule.md @@ -0,0 +1,36 @@ + +# SquareRootChoiceRule + + +## Properties + +Name | Type +------------ | ------------- +`maxNumberOfBuckets` | number +`type` | string + +## Example + +```typescript +import type { SquareRootChoiceRule } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { + "maxNumberOfBuckets": null, + "type": null, +} satisfies SquareRootChoiceRule + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as SquareRootChoiceRule +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/SumAggregation.md b/typescript/docs/SumAggregation.md new file mode 100644 index 00000000..519b2bb4 --- /dev/null +++ b/typescript/docs/SumAggregation.md @@ -0,0 +1,36 @@ + +# SumAggregation + + +## Properties + +Name | Type +------------ | ------------- +`ignoreNoData` | boolean +`type` | string + +## Example + +```typescript +import type { SumAggregation } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { + "ignoreNoData": null, + "type": null, +} satisfies SumAggregation + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as SumAggregation +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/TemporalRasterAggregation.md b/typescript/docs/TemporalRasterAggregation.md new file mode 100644 index 00000000..9b0d9efb --- /dev/null +++ b/typescript/docs/TemporalRasterAggregation.md @@ -0,0 +1,39 @@ + +# TemporalRasterAggregation + +The `TemporalRasterAggregation` operator aggregates a raster time series into uniform time windows. The output starts with the first window that contains the query start and contains all windows that overlap the query interval. Pixel values are computed by aggregating all input rasters that contribute to the current window. ## Inputs The `TemporalRasterAggregation` operator expects exactly one _raster_ input. ## Errors If the aggregation method is `first`, `last`, or `mean` and the input raster has no NO DATA value, an error is returned. + +## Properties + +Name | Type +------------ | ------------- +`params` | [TemporalRasterAggregationParameters](TemporalRasterAggregationParameters.md) +`sources` | [SingleRasterSource](SingleRasterSource.md) +`type` | string + +## Example + +```typescript +import type { TemporalRasterAggregation } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { + "params": null, + "sources": null, + "type": null, +} satisfies TemporalRasterAggregation + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as TemporalRasterAggregation +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/TemporalRasterAggregationParameters.md b/typescript/docs/TemporalRasterAggregationParameters.md new file mode 100644 index 00000000..a9c1926c --- /dev/null +++ b/typescript/docs/TemporalRasterAggregationParameters.md @@ -0,0 +1,41 @@ + +# TemporalRasterAggregationParameters + +Parameters for the `TemporalRasterAggregation` operator. + +## Properties + +Name | Type +------------ | ------------- +`aggregation` | [Aggregation](Aggregation.md) +`outputType` | [RasterDataType](RasterDataType.md) +`window` | [TimeStep](TimeStep.md) +`windowReference` | number + +## Example + +```typescript +import type { TemporalRasterAggregationParameters } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { + "aggregation": null, + "outputType": null, + "window": null, + "windowReference": null, +} satisfies TemporalRasterAggregationParameters + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as TemporalRasterAggregationParameters +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/Upload.md b/typescript/docs/Upload.md new file mode 100644 index 00000000..4e811640 --- /dev/null +++ b/typescript/docs/Upload.md @@ -0,0 +1,34 @@ + +# Upload + + +## Properties + +Name | Type +------------ | ------------- +`upload` | string + +## Example + +```typescript +import type { Upload } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { + "upload": null, +} satisfies Upload + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as Upload +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/Values.md b/typescript/docs/Values.md new file mode 100644 index 00000000..80aa1694 --- /dev/null +++ b/typescript/docs/Values.md @@ -0,0 +1,34 @@ + +# Values + + +## Properties + +Name | Type +------------ | ------------- +`values` | [ValuesValues](ValuesValues.md) + +## Example + +```typescript +import type { Values } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { + "values": null, +} satisfies Values + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as Values +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/ValuesValues.md b/typescript/docs/ValuesValues.md new file mode 100644 index 00000000..030f02d0 --- /dev/null +++ b/typescript/docs/ValuesValues.md @@ -0,0 +1,36 @@ + +# ValuesValues + + +## Properties + +Name | Type +------------ | ------------- +`max` | number +`min` | number + +## Example + +```typescript +import type { ValuesValues } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { + "max": null, + "min": null, +} satisfies ValuesValues + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as ValuesValues +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/docs/VectorOperator.md b/typescript/docs/VectorOperator.md index a059b59f..6ec2f78a 100644 --- a/typescript/docs/VectorOperator.md +++ b/typescript/docs/VectorOperator.md @@ -7,9 +7,9 @@ An operator that produces vector data. Name | Type ------------ | ------------- -`params` | [RasterVectorJoinParameters](RasterVectorJoinParameters.md) +`params` | [ReprojectionParameters](ReprojectionParameters.md) `type` | string -`sources` | [SingleVectorMultipleRasterSources](SingleVectorMultipleRasterSources.md) +`sources` | [SingleRasterOrVectorSource](SingleRasterOrVectorSource.md) ## Example diff --git a/typescript/docs/Volume1.md b/typescript/docs/Volume1.md new file mode 100644 index 00000000..8d90fa7f --- /dev/null +++ b/typescript/docs/Volume1.md @@ -0,0 +1,34 @@ + +# Volume1 + + +## Properties + +Name | Type +------------ | ------------- +`volume` | string + +## Example + +```typescript +import type { Volume1 } from '@geoengine/openapi-client' + +// TODO: Update the object below with actual values +const example = { + "volume": null, +} satisfies Volume1 + +console.log(example) + +// Convert the instance to a JSON string +const exampleJSON: string = JSON.stringify(example) +console.log(exampleJSON) + +// Parse the JSON string back to an object +const exampleParsed = JSON.parse(exampleJSON) as Volume1 +console.log(exampleParsed) +``` + +[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) + + diff --git a/typescript/src/models/Aggregation.ts b/typescript/src/models/Aggregation.ts new file mode 100644 index 00000000..ae391a5a --- /dev/null +++ b/typescript/src/models/Aggregation.ts @@ -0,0 +1,157 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import type { CountAggregation } from './CountAggregation'; +import { + instanceOfCountAggregation, + CountAggregationFromJSON, + CountAggregationFromJSONTyped, + CountAggregationToJSON, +} from './CountAggregation'; +import type { FirstAggregation } from './FirstAggregation'; +import { + instanceOfFirstAggregation, + FirstAggregationFromJSON, + FirstAggregationFromJSONTyped, + FirstAggregationToJSON, +} from './FirstAggregation'; +import type { LastAggregation } from './LastAggregation'; +import { + instanceOfLastAggregation, + LastAggregationFromJSON, + LastAggregationFromJSONTyped, + LastAggregationToJSON, +} from './LastAggregation'; +import type { MaxAggregation } from './MaxAggregation'; +import { + instanceOfMaxAggregation, + MaxAggregationFromJSON, + MaxAggregationFromJSONTyped, + MaxAggregationToJSON, +} from './MaxAggregation'; +import type { MeanAggregation } from './MeanAggregation'; +import { + instanceOfMeanAggregation, + MeanAggregationFromJSON, + MeanAggregationFromJSONTyped, + MeanAggregationToJSON, +} from './MeanAggregation'; +import type { MinAggregation } from './MinAggregation'; +import { + instanceOfMinAggregation, + MinAggregationFromJSON, + MinAggregationFromJSONTyped, + MinAggregationToJSON, +} from './MinAggregation'; +import type { PercentileEstimateAggregation } from './PercentileEstimateAggregation'; +import { + instanceOfPercentileEstimateAggregation, + PercentileEstimateAggregationFromJSON, + PercentileEstimateAggregationFromJSONTyped, + PercentileEstimateAggregationToJSON, +} from './PercentileEstimateAggregation'; +import type { SumAggregation } from './SumAggregation'; +import { + instanceOfSumAggregation, + SumAggregationFromJSON, + SumAggregationFromJSONTyped, + SumAggregationToJSON, +} from './SumAggregation'; + +/** + * @type Aggregation + * Aggregation methods for `TemporalRasterAggregation`. + * + * Available variants are `min`, `max`, `first`, `last`, `mean`, `sum`, `count`, and `percentileEstimate`. + * Encountering NO DATA makes the aggregation result NO DATA unless `ignoreNoData` is `true`. + * @export + */ +export type Aggregation = CountAggregation | FirstAggregation | LastAggregation | MaxAggregation | MeanAggregation | MinAggregation | PercentileEstimateAggregation | SumAggregation; + +export function AggregationFromJSON(json: any): Aggregation { + return AggregationFromJSONTyped(json, false); +} + +export function AggregationFromJSONTyped(json: any, ignoreDiscriminator: boolean): Aggregation { + if (json == null) { + return json; + } + if (typeof json !== 'object') { + return json; + } + if (instanceOfCountAggregation(json)) { + return CountAggregationFromJSONTyped(json, true); + } + if (instanceOfFirstAggregation(json)) { + return FirstAggregationFromJSONTyped(json, true); + } + if (instanceOfLastAggregation(json)) { + return LastAggregationFromJSONTyped(json, true); + } + if (instanceOfMaxAggregation(json)) { + return MaxAggregationFromJSONTyped(json, true); + } + if (instanceOfMeanAggregation(json)) { + return MeanAggregationFromJSONTyped(json, true); + } + if (instanceOfMinAggregation(json)) { + return MinAggregationFromJSONTyped(json, true); + } + if (instanceOfPercentileEstimateAggregation(json)) { + return PercentileEstimateAggregationFromJSONTyped(json, true); + } + if (instanceOfSumAggregation(json)) { + return SumAggregationFromJSONTyped(json, true); + } + return {} as any; +} + +export function AggregationToJSON(json: any): any { + return AggregationToJSONTyped(json, false); +} + +export function AggregationToJSONTyped(value?: Aggregation | null, ignoreDiscriminator: boolean = false): any { + if (value == null) { + return value; + } + if (typeof value !== 'object') { + return value; + } + if (instanceOfCountAggregation(value)) { + return CountAggregationToJSON(value as CountAggregation); + } + if (instanceOfFirstAggregation(value)) { + return FirstAggregationToJSON(value as FirstAggregation); + } + if (instanceOfLastAggregation(value)) { + return LastAggregationToJSON(value as LastAggregation); + } + if (instanceOfMaxAggregation(value)) { + return MaxAggregationToJSON(value as MaxAggregation); + } + if (instanceOfMeanAggregation(value)) { + return MeanAggregationToJSON(value as MeanAggregation); + } + if (instanceOfMinAggregation(value)) { + return MinAggregationToJSON(value as MinAggregation); + } + if (instanceOfPercentileEstimateAggregation(value)) { + return PercentileEstimateAggregationToJSON(value as PercentileEstimateAggregation); + } + if (instanceOfSumAggregation(value)) { + return SumAggregationToJSON(value as SumAggregation); + } + return {}; +} + diff --git a/typescript/src/models/BandFilter.ts b/typescript/src/models/BandFilter.ts new file mode 100644 index 00000000..0e735ae1 --- /dev/null +++ b/typescript/src/models/BandFilter.ts @@ -0,0 +1,120 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +import type { SingleRasterSource } from './SingleRasterSource'; +import { + SingleRasterSourceFromJSON, + SingleRasterSourceFromJSONTyped, + SingleRasterSourceToJSON, + SingleRasterSourceToJSONTyped, +} from './SingleRasterSource'; +import type { BandFilterParameters } from './BandFilterParameters'; +import { + BandFilterParametersFromJSON, + BandFilterParametersFromJSONTyped, + BandFilterParametersToJSON, + BandFilterParametersToJSONTyped, +} from './BandFilterParameters'; + +/** + * The `BandFilter` operator selects bands from a raster source by band names or band indices. + * + * It removes all non-selected bands while preserving the original order of remaining bands. + * + * ## Inputs + * + * The `BandFilter` operator expects exactly one _raster_ input. + * + * ## Errors + * + * The operator returns an error if no bands are selected or if selected band names/indices + * cannot be mapped to existing input bands. + * @export + * @interface BandFilter + */ +export interface BandFilter { + /** + * + * @type {BandFilterParameters} + * @memberof BandFilter + */ + params: BandFilterParameters; + /** + * + * @type {SingleRasterSource} + * @memberof BandFilter + */ + sources: SingleRasterSource; + /** + * + * @type {BandFilterTypeEnum} + * @memberof BandFilter + */ + type: BandFilterTypeEnum; +} + + +/** + * @export + */ +export const BandFilterTypeEnum = { + BandFilter: 'BandFilter' +} as const; +export type BandFilterTypeEnum = typeof BandFilterTypeEnum[keyof typeof BandFilterTypeEnum]; + + +/** + * Check if a given object implements the BandFilter interface. + */ +export function instanceOfBandFilter(value: object): value is BandFilter { + if (!('params' in value) || value['params'] === undefined) return false; + if (!('sources' in value) || value['sources'] === undefined) return false; + if (!('type' in value) || value['type'] === undefined) return false; + return true; +} + +export function BandFilterFromJSON(json: any): BandFilter { + return BandFilterFromJSONTyped(json, false); +} + +export function BandFilterFromJSONTyped(json: any, ignoreDiscriminator: boolean): BandFilter { + if (json == null) { + return json; + } + return { + + 'params': BandFilterParametersFromJSON(json['params']), + 'sources': SingleRasterSourceFromJSON(json['sources']), + 'type': json['type'], + }; +} + +export function BandFilterToJSON(json: any): BandFilter { + return BandFilterToJSONTyped(json, false); +} + +export function BandFilterToJSONTyped(value?: BandFilter | null, ignoreDiscriminator: boolean = false): any { + if (value == null) { + return value; + } + + return { + + 'params': BandFilterParametersToJSON(value['params']), + 'sources': SingleRasterSourceToJSON(value['sources']), + 'type': value['type'], + }; +} + diff --git a/typescript/src/models/BandFilterParameters.ts b/typescript/src/models/BandFilterParameters.ts new file mode 100644 index 00000000..c20d42db --- /dev/null +++ b/typescript/src/models/BandFilterParameters.ts @@ -0,0 +1,74 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +import type { BandsByNameOrIndex } from './BandsByNameOrIndex'; +import { + BandsByNameOrIndexFromJSON, + BandsByNameOrIndexFromJSONTyped, + BandsByNameOrIndexToJSON, + BandsByNameOrIndexToJSONTyped, +} from './BandsByNameOrIndex'; + +/** + * Parameters for the `BandFilter` operator. + * @export + * @interface BandFilterParameters + */ +export interface BandFilterParameters { + /** + * Selected bands either by names (e.g. `["nir", "red"]`) or indices (e.g. `[0, 2]`). + * @type {BandsByNameOrIndex} + * @memberof BandFilterParameters + */ + bands: BandsByNameOrIndex; +} + +/** + * Check if a given object implements the BandFilterParameters interface. + */ +export function instanceOfBandFilterParameters(value: object): value is BandFilterParameters { + if (!('bands' in value) || value['bands'] === undefined) return false; + return true; +} + +export function BandFilterParametersFromJSON(json: any): BandFilterParameters { + return BandFilterParametersFromJSONTyped(json, false); +} + +export function BandFilterParametersFromJSONTyped(json: any, ignoreDiscriminator: boolean): BandFilterParameters { + if (json == null) { + return json; + } + return { + + 'bands': BandsByNameOrIndexFromJSON(json['bands']), + }; +} + +export function BandFilterParametersToJSON(json: any): BandFilterParameters { + return BandFilterParametersToJSONTyped(json, false); +} + +export function BandFilterParametersToJSONTyped(value?: BandFilterParameters | null, ignoreDiscriminator: boolean = false): any { + if (value == null) { + return value; + } + + return { + + 'bands': BandsByNameOrIndexToJSON(value['bands']), + }; +} + diff --git a/typescript/src/models/BandsByNameOrIndex.ts b/typescript/src/models/BandsByNameOrIndex.ts new file mode 100644 index 00000000..f5d27e75 --- /dev/null +++ b/typescript/src/models/BandsByNameOrIndex.ts @@ -0,0 +1,63 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/** + * @type BandsByNameOrIndex + * + * @export + */ +export type BandsByNameOrIndex = Array | Array; + +export function BandsByNameOrIndexFromJSON(json: any): BandsByNameOrIndex { + return BandsByNameOrIndexFromJSONTyped(json, false); +} + +export function BandsByNameOrIndexFromJSONTyped(json: any, ignoreDiscriminator: boolean): BandsByNameOrIndex { + if (json == null) { + return json; + } + if (Array.isArray(json)) { + if (json.every(item => typeof item === 'string')) { + return json; + } + } + if (Array.isArray(json)) { + if (json.every(item => typeof item === 'number')) { + return json; + } + } + return {} as any; +} + +export function BandsByNameOrIndexToJSON(json: any): any { + return BandsByNameOrIndexToJSONTyped(json, false); +} + +export function BandsByNameOrIndexToJSONTyped(value?: BandsByNameOrIndex | null, ignoreDiscriminator: boolean = false): any { + if (value == null) { + return value; + } + if (Array.isArray(value)) { + if (value.every(item => typeof item === 'string')) { + return value; + } + } + if (Array.isArray(value)) { + if (value.every(item => typeof item === 'number')) { + return value; + } + } + return {}; +} + diff --git a/typescript/src/models/CountAggregation.ts b/typescript/src/models/CountAggregation.ts new file mode 100644 index 00000000..eb642ad6 --- /dev/null +++ b/typescript/src/models/CountAggregation.ts @@ -0,0 +1,85 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface CountAggregation + */ +export interface CountAggregation { + /** + * + * @type {boolean} + * @memberof CountAggregation + */ + ignoreNoData: boolean; + /** + * + * @type {CountAggregationTypeEnum} + * @memberof CountAggregation + */ + type: CountAggregationTypeEnum; +} + + +/** + * @export + */ +export const CountAggregationTypeEnum = { + Count: 'count' +} as const; +export type CountAggregationTypeEnum = typeof CountAggregationTypeEnum[keyof typeof CountAggregationTypeEnum]; + + +/** + * Check if a given object implements the CountAggregation interface. + */ +export function instanceOfCountAggregation(value: object): value is CountAggregation { + if (!('ignoreNoData' in value) || value['ignoreNoData'] === undefined) return false; + if (!('type' in value) || value['type'] === undefined) return false; + return true; +} + +export function CountAggregationFromJSON(json: any): CountAggregation { + return CountAggregationFromJSONTyped(json, false); +} + +export function CountAggregationFromJSONTyped(json: any, ignoreDiscriminator: boolean): CountAggregation { + if (json == null) { + return json; + } + return { + + 'ignoreNoData': json['ignoreNoData'], + 'type': json['type'], + }; +} + +export function CountAggregationToJSON(json: any): CountAggregation { + return CountAggregationToJSONTyped(json, false); +} + +export function CountAggregationToJSONTyped(value?: CountAggregation | null, ignoreDiscriminator: boolean = false): any { + if (value == null) { + return value; + } + + return { + + 'ignoreNoData': value['ignoreNoData'], + 'type': value['type'], + }; +} + diff --git a/typescript/src/models/HistogramBoundsOneOf.ts b/typescript/src/models/Data1.ts similarity index 52% rename from typescript/src/models/HistogramBoundsOneOf.ts rename to typescript/src/models/Data1.ts index 4c623b2c..d3e491bf 100644 --- a/typescript/src/models/HistogramBoundsOneOf.ts +++ b/typescript/src/models/Data1.ts @@ -16,30 +16,30 @@ import { mapValues } from '../runtime'; /** * * @export - * @interface HistogramBoundsOneOf + * @interface Data1 */ -export interface HistogramBoundsOneOf { +export interface Data1 { /** * * @type {any} - * @memberof HistogramBoundsOneOf + * @memberof Data1 */ data: any | null; } /** - * Check if a given object implements the HistogramBoundsOneOf interface. + * Check if a given object implements the Data1 interface. */ -export function instanceOfHistogramBoundsOneOf(value: object): value is HistogramBoundsOneOf { +export function instanceOfData1(value: object): value is Data1 { if (!('data' in value) || value['data'] === undefined) return false; return true; } -export function HistogramBoundsOneOfFromJSON(json: any): HistogramBoundsOneOf { - return HistogramBoundsOneOfFromJSONTyped(json, false); +export function Data1FromJSON(json: any): Data1 { + return Data1FromJSONTyped(json, false); } -export function HistogramBoundsOneOfFromJSONTyped(json: any, ignoreDiscriminator: boolean): HistogramBoundsOneOf { +export function Data1FromJSONTyped(json: any, ignoreDiscriminator: boolean): Data1 { if (json == null) { return json; } @@ -49,11 +49,11 @@ export function HistogramBoundsOneOfFromJSONTyped(json: any, ignoreDiscriminator }; } -export function HistogramBoundsOneOfToJSON(json: any): HistogramBoundsOneOf { - return HistogramBoundsOneOfToJSONTyped(json, false); +export function Data1ToJSON(json: any): Data1 { + return Data1ToJSONTyped(json, false); } -export function HistogramBoundsOneOfToJSONTyped(value?: HistogramBoundsOneOf | null, ignoreDiscriminator: boolean = false): any { +export function Data1ToJSONTyped(value?: Data1 | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } diff --git a/typescript/src/models/DataPath.ts b/typescript/src/models/DataPath.ts index bd5a4d34..50f68d9a 100644 --- a/typescript/src/models/DataPath.ts +++ b/typescript/src/models/DataPath.ts @@ -12,27 +12,27 @@ * Do not edit the class manually. */ -import type { DataPathOneOf } from './DataPathOneOf'; +import type { Upload } from './Upload'; import { - instanceOfDataPathOneOf, - DataPathOneOfFromJSON, - DataPathOneOfFromJSONTyped, - DataPathOneOfToJSON, -} from './DataPathOneOf'; -import type { DataPathOneOf1 } from './DataPathOneOf1'; + instanceOfUpload, + UploadFromJSON, + UploadFromJSONTyped, + UploadToJSON, +} from './Upload'; +import type { Volume1 } from './Volume1'; import { - instanceOfDataPathOneOf1, - DataPathOneOf1FromJSON, - DataPathOneOf1FromJSONTyped, - DataPathOneOf1ToJSON, -} from './DataPathOneOf1'; + instanceOfVolume1, + Volume1FromJSON, + Volume1FromJSONTyped, + Volume1ToJSON, +} from './Volume1'; /** * @type DataPath * * @export */ -export type DataPath = DataPathOneOf | DataPathOneOf1; +export type DataPath = Upload | Volume1; export function DataPathFromJSON(json: any): DataPath { return DataPathFromJSONTyped(json, false); @@ -45,11 +45,11 @@ export function DataPathFromJSONTyped(json: any, ignoreDiscriminator: boolean): if (typeof json !== 'object') { return json; } - if (instanceOfDataPathOneOf(json)) { - return DataPathOneOfFromJSONTyped(json, true); + if (instanceOfUpload(json)) { + return UploadFromJSONTyped(json, true); } - if (instanceOfDataPathOneOf1(json)) { - return DataPathOneOf1FromJSONTyped(json, true); + if (instanceOfVolume1(json)) { + return Volume1FromJSONTyped(json, true); } return {} as any; } @@ -65,11 +65,11 @@ export function DataPathToJSONTyped(value?: DataPath | null, ignoreDiscriminator if (typeof value !== 'object') { return value; } - if (instanceOfDataPathOneOf(value)) { - return DataPathOneOfToJSON(value as DataPathOneOf); + if (instanceOfUpload(value)) { + return UploadToJSON(value as Upload); } - if (instanceOfDataPathOneOf1(value)) { - return DataPathOneOf1ToJSON(value as DataPathOneOf1); + if (instanceOfVolume1(value)) { + return Volume1ToJSON(value as Volume1); } return {}; } diff --git a/typescript/src/models/DeriveOutRasterSpecsSource.ts b/typescript/src/models/DeriveOutRasterSpecsSource.ts new file mode 100644 index 00000000..606389c5 --- /dev/null +++ b/typescript/src/models/DeriveOutRasterSpecsSource.ts @@ -0,0 +1,53 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +/** + * + * @export + */ +export const DeriveOutRasterSpecsSource = { + DataBounds: 'dataBounds', + ProjectionBounds: 'projectionBounds' +} as const; +export type DeriveOutRasterSpecsSource = typeof DeriveOutRasterSpecsSource[keyof typeof DeriveOutRasterSpecsSource]; + + +export function instanceOfDeriveOutRasterSpecsSource(value: any): boolean { + for (const key in DeriveOutRasterSpecsSource) { + if (Object.prototype.hasOwnProperty.call(DeriveOutRasterSpecsSource, key)) { + if (DeriveOutRasterSpecsSource[key as keyof typeof DeriveOutRasterSpecsSource] === value) { + return true; + } + } + } + return false; +} + +export function DeriveOutRasterSpecsSourceFromJSON(json: any): DeriveOutRasterSpecsSource { + return DeriveOutRasterSpecsSourceFromJSONTyped(json, false); +} + +export function DeriveOutRasterSpecsSourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeriveOutRasterSpecsSource { + return json as DeriveOutRasterSpecsSource; +} + +export function DeriveOutRasterSpecsSourceToJSON(value?: DeriveOutRasterSpecsSource | null): any { + return value as any; +} + +export function DeriveOutRasterSpecsSourceToJSONTyped(value: any, ignoreDiscriminator: boolean): DeriveOutRasterSpecsSource { + return value as DeriveOutRasterSpecsSource; +} + diff --git a/typescript/src/models/FirstAggregation.ts b/typescript/src/models/FirstAggregation.ts new file mode 100644 index 00000000..cf99b4de --- /dev/null +++ b/typescript/src/models/FirstAggregation.ts @@ -0,0 +1,85 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface FirstAggregation + */ +export interface FirstAggregation { + /** + * + * @type {boolean} + * @memberof FirstAggregation + */ + ignoreNoData: boolean; + /** + * + * @type {FirstAggregationTypeEnum} + * @memberof FirstAggregation + */ + type: FirstAggregationTypeEnum; +} + + +/** + * @export + */ +export const FirstAggregationTypeEnum = { + First: 'first' +} as const; +export type FirstAggregationTypeEnum = typeof FirstAggregationTypeEnum[keyof typeof FirstAggregationTypeEnum]; + + +/** + * Check if a given object implements the FirstAggregation interface. + */ +export function instanceOfFirstAggregation(value: object): value is FirstAggregation { + if (!('ignoreNoData' in value) || value['ignoreNoData'] === undefined) return false; + if (!('type' in value) || value['type'] === undefined) return false; + return true; +} + +export function FirstAggregationFromJSON(json: any): FirstAggregation { + return FirstAggregationFromJSONTyped(json, false); +} + +export function FirstAggregationFromJSONTyped(json: any, ignoreDiscriminator: boolean): FirstAggregation { + if (json == null) { + return json; + } + return { + + 'ignoreNoData': json['ignoreNoData'], + 'type': json['type'], + }; +} + +export function FirstAggregationToJSON(json: any): FirstAggregation { + return FirstAggregationToJSONTyped(json, false); +} + +export function FirstAggregationToJSONTyped(value?: FirstAggregation | null, ignoreDiscriminator: boolean = false): any { + if (value == null) { + return value; + } + + return { + + 'ignoreNoData': value['ignoreNoData'], + 'type': value['type'], + }; +} + diff --git a/typescript/src/models/Fraction.ts b/typescript/src/models/Fraction.ts new file mode 100644 index 00000000..4644c378 --- /dev/null +++ b/typescript/src/models/Fraction.ts @@ -0,0 +1,94 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * Upscale factor relative to input resolution (`x >= 1`, `y >= 1`). + * @export + * @interface Fraction + */ +export interface Fraction { + /** + * + * @type {FractionTypeEnum} + * @memberof Fraction + */ + type: FractionTypeEnum; + /** + * + * @type {number} + * @memberof Fraction + */ + x: number; + /** + * + * @type {number} + * @memberof Fraction + */ + y: number; +} + + +/** + * @export + */ +export const FractionTypeEnum = { + Fraction: 'fraction' +} as const; +export type FractionTypeEnum = typeof FractionTypeEnum[keyof typeof FractionTypeEnum]; + + +/** + * Check if a given object implements the Fraction interface. + */ +export function instanceOfFraction(value: object): value is Fraction { + if (!('type' in value) || value['type'] === undefined) return false; + if (!('x' in value) || value['x'] === undefined) return false; + if (!('y' in value) || value['y'] === undefined) return false; + return true; +} + +export function FractionFromJSON(json: any): Fraction { + return FractionFromJSONTyped(json, false); +} + +export function FractionFromJSONTyped(json: any, ignoreDiscriminator: boolean): Fraction { + if (json == null) { + return json; + } + return { + + 'type': json['type'], + 'x': json['x'], + 'y': json['y'], + }; +} + +export function FractionToJSON(json: any): Fraction { + return FractionToJSONTyped(json, false); +} + +export function FractionToJSONTyped(value?: Fraction | null, ignoreDiscriminator: boolean = false): any { + if (value == null) { + return value; + } + + return { + + 'type': value['type'], + 'x': value['x'], + 'y': value['y'], + }; +} + diff --git a/typescript/src/models/HistogramBounds.ts b/typescript/src/models/HistogramBounds.ts index fa215ab1..af29016e 100644 --- a/typescript/src/models/HistogramBounds.ts +++ b/typescript/src/models/HistogramBounds.ts @@ -12,27 +12,27 @@ * Do not edit the class manually. */ -import type { HistogramBoundsOneOf } from './HistogramBoundsOneOf'; +import type { Data1 } from './Data1'; import { - instanceOfHistogramBoundsOneOf, - HistogramBoundsOneOfFromJSON, - HistogramBoundsOneOfFromJSONTyped, - HistogramBoundsOneOfToJSON, -} from './HistogramBoundsOneOf'; -import type { HistogramBoundsOneOf1 } from './HistogramBoundsOneOf1'; + instanceOfData1, + Data1FromJSON, + Data1FromJSONTyped, + Data1ToJSON, +} from './Data1'; +import type { Values } from './Values'; import { - instanceOfHistogramBoundsOneOf1, - HistogramBoundsOneOf1FromJSON, - HistogramBoundsOneOf1FromJSONTyped, - HistogramBoundsOneOf1ToJSON, -} from './HistogramBoundsOneOf1'; + instanceOfValues, + ValuesFromJSON, + ValuesFromJSONTyped, + ValuesToJSON, +} from './Values'; /** * @type HistogramBounds * * @export */ -export type HistogramBounds = HistogramBoundsOneOf | HistogramBoundsOneOf1; +export type HistogramBounds = Data1 | Values; export function HistogramBoundsFromJSON(json: any): HistogramBounds { return HistogramBoundsFromJSONTyped(json, false); @@ -45,11 +45,11 @@ export function HistogramBoundsFromJSONTyped(json: any, ignoreDiscriminator: boo if (typeof json !== 'object') { return json; } - if (instanceOfHistogramBoundsOneOf(json)) { - return HistogramBoundsOneOfFromJSONTyped(json, true); + if (instanceOfData1(json)) { + return Data1FromJSONTyped(json, true); } - if (instanceOfHistogramBoundsOneOf1(json)) { - return HistogramBoundsOneOf1FromJSONTyped(json, true); + if (instanceOfValues(json)) { + return ValuesFromJSONTyped(json, true); } return {} as any; } @@ -65,11 +65,11 @@ export function HistogramBoundsToJSONTyped(value?: HistogramBounds | null, ignor if (typeof value !== 'object') { return value; } - if (instanceOfHistogramBoundsOneOf(value)) { - return HistogramBoundsOneOfToJSON(value as HistogramBoundsOneOf); + if (instanceOfData1(value)) { + return Data1ToJSON(value as Data1); } - if (instanceOfHistogramBoundsOneOf1(value)) { - return HistogramBoundsOneOf1ToJSON(value as HistogramBoundsOneOf1); + if (instanceOfValues(value)) { + return ValuesToJSON(value as Values); } return {}; } diff --git a/typescript/src/models/HistogramBoundsOneOf1.ts b/typescript/src/models/HistogramBoundsOneOf1.ts deleted file mode 100644 index 689b8956..00000000 --- a/typescript/src/models/HistogramBoundsOneOf1.ts +++ /dev/null @@ -1,74 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Geo Engine API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.9.0 - * Contact: dev@geoengine.de - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { mapValues } from '../runtime'; -import type { HistogramBoundsOneOf1Values } from './HistogramBoundsOneOf1Values'; -import { - HistogramBoundsOneOf1ValuesFromJSON, - HistogramBoundsOneOf1ValuesFromJSONTyped, - HistogramBoundsOneOf1ValuesToJSON, - HistogramBoundsOneOf1ValuesToJSONTyped, -} from './HistogramBoundsOneOf1Values'; - -/** - * - * @export - * @interface HistogramBoundsOneOf1 - */ -export interface HistogramBoundsOneOf1 { - /** - * - * @type {HistogramBoundsOneOf1Values} - * @memberof HistogramBoundsOneOf1 - */ - values: HistogramBoundsOneOf1Values; -} - -/** - * Check if a given object implements the HistogramBoundsOneOf1 interface. - */ -export function instanceOfHistogramBoundsOneOf1(value: object): value is HistogramBoundsOneOf1 { - if (!('values' in value) || value['values'] === undefined) return false; - return true; -} - -export function HistogramBoundsOneOf1FromJSON(json: any): HistogramBoundsOneOf1 { - return HistogramBoundsOneOf1FromJSONTyped(json, false); -} - -export function HistogramBoundsOneOf1FromJSONTyped(json: any, ignoreDiscriminator: boolean): HistogramBoundsOneOf1 { - if (json == null) { - return json; - } - return { - - 'values': HistogramBoundsOneOf1ValuesFromJSON(json['values']), - }; -} - -export function HistogramBoundsOneOf1ToJSON(json: any): HistogramBoundsOneOf1 { - return HistogramBoundsOneOf1ToJSONTyped(json, false); -} - -export function HistogramBoundsOneOf1ToJSONTyped(value?: HistogramBoundsOneOf1 | null, ignoreDiscriminator: boolean = false): any { - if (value == null) { - return value; - } - - return { - - 'values': HistogramBoundsOneOf1ValuesToJSON(value['values']), - }; -} - diff --git a/typescript/src/models/HistogramBuckets.ts b/typescript/src/models/HistogramBuckets.ts index a62bfa4e..a197be13 100644 --- a/typescript/src/models/HistogramBuckets.ts +++ b/typescript/src/models/HistogramBuckets.ts @@ -12,27 +12,27 @@ * Do not edit the class manually. */ -import type { HistogramBucketsOneOf } from './HistogramBucketsOneOf'; +import type { Number } from './Number'; import { - instanceOfHistogramBucketsOneOf, - HistogramBucketsOneOfFromJSON, - HistogramBucketsOneOfFromJSONTyped, - HistogramBucketsOneOfToJSON, -} from './HistogramBucketsOneOf'; -import type { HistogramBucketsOneOf1 } from './HistogramBucketsOneOf1'; + instanceOfNumber, + NumberFromJSON, + NumberFromJSONTyped, + NumberToJSON, +} from './Number'; +import type { SquareRootChoiceRule } from './SquareRootChoiceRule'; import { - instanceOfHistogramBucketsOneOf1, - HistogramBucketsOneOf1FromJSON, - HistogramBucketsOneOf1FromJSONTyped, - HistogramBucketsOneOf1ToJSON, -} from './HistogramBucketsOneOf1'; + instanceOfSquareRootChoiceRule, + SquareRootChoiceRuleFromJSON, + SquareRootChoiceRuleFromJSONTyped, + SquareRootChoiceRuleToJSON, +} from './SquareRootChoiceRule'; /** * @type HistogramBuckets * * @export */ -export type HistogramBuckets = HistogramBucketsOneOf | HistogramBucketsOneOf1; +export type HistogramBuckets = Number | SquareRootChoiceRule; export function HistogramBucketsFromJSON(json: any): HistogramBuckets { return HistogramBucketsFromJSONTyped(json, false); @@ -45,11 +45,11 @@ export function HistogramBucketsFromJSONTyped(json: any, ignoreDiscriminator: bo if (typeof json !== 'object') { return json; } - if (instanceOfHistogramBucketsOneOf(json)) { - return HistogramBucketsOneOfFromJSONTyped(json, true); + if (instanceOfNumber(json)) { + return NumberFromJSONTyped(json, true); } - if (instanceOfHistogramBucketsOneOf1(json)) { - return HistogramBucketsOneOf1FromJSONTyped(json, true); + if (instanceOfSquareRootChoiceRule(json)) { + return SquareRootChoiceRuleFromJSONTyped(json, true); } return {} as any; } @@ -65,11 +65,11 @@ export function HistogramBucketsToJSONTyped(value?: HistogramBuckets | null, ign if (typeof value !== 'object') { return value; } - if (instanceOfHistogramBucketsOneOf(value)) { - return HistogramBucketsOneOfToJSON(value as HistogramBucketsOneOf); + if (instanceOfNumber(value)) { + return NumberToJSON(value as Number); } - if (instanceOfHistogramBucketsOneOf1(value)) { - return HistogramBucketsOneOf1ToJSON(value as HistogramBucketsOneOf1); + if (instanceOfSquareRootChoiceRule(value)) { + return SquareRootChoiceRuleToJSON(value as SquareRootChoiceRule); } return {}; } diff --git a/typescript/src/models/HistogramBucketsOneOf.ts b/typescript/src/models/HistogramBucketsOneOf.ts deleted file mode 100644 index 6e57252d..00000000 --- a/typescript/src/models/HistogramBucketsOneOf.ts +++ /dev/null @@ -1,85 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Geo Engine API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.9.0 - * Contact: dev@geoengine.de - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { mapValues } from '../runtime'; -/** - * - * @export - * @interface HistogramBucketsOneOf - */ -export interface HistogramBucketsOneOf { - /** - * - * @type {HistogramBucketsOneOfTypeEnum} - * @memberof HistogramBucketsOneOf - */ - type: HistogramBucketsOneOfTypeEnum; - /** - * - * @type {number} - * @memberof HistogramBucketsOneOf - */ - value: number; -} - - -/** - * @export - */ -export const HistogramBucketsOneOfTypeEnum = { - Number: 'number' -} as const; -export type HistogramBucketsOneOfTypeEnum = typeof HistogramBucketsOneOfTypeEnum[keyof typeof HistogramBucketsOneOfTypeEnum]; - - -/** - * Check if a given object implements the HistogramBucketsOneOf interface. - */ -export function instanceOfHistogramBucketsOneOf(value: object): value is HistogramBucketsOneOf { - if (!('type' in value) || value['type'] === undefined) return false; - if (!('value' in value) || value['value'] === undefined) return false; - return true; -} - -export function HistogramBucketsOneOfFromJSON(json: any): HistogramBucketsOneOf { - return HistogramBucketsOneOfFromJSONTyped(json, false); -} - -export function HistogramBucketsOneOfFromJSONTyped(json: any, ignoreDiscriminator: boolean): HistogramBucketsOneOf { - if (json == null) { - return json; - } - return { - - 'type': json['type'], - 'value': json['value'], - }; -} - -export function HistogramBucketsOneOfToJSON(json: any): HistogramBucketsOneOf { - return HistogramBucketsOneOfToJSONTyped(json, false); -} - -export function HistogramBucketsOneOfToJSONTyped(value?: HistogramBucketsOneOf | null, ignoreDiscriminator: boolean = false): any { - if (value == null) { - return value; - } - - return { - - 'type': value['type'], - 'value': value['value'], - }; -} - diff --git a/typescript/src/models/Interpolation.ts b/typescript/src/models/Interpolation.ts new file mode 100644 index 00000000..68715d24 --- /dev/null +++ b/typescript/src/models/Interpolation.ts @@ -0,0 +1,116 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +import type { SingleRasterSource } from './SingleRasterSource'; +import { + SingleRasterSourceFromJSON, + SingleRasterSourceFromJSONTyped, + SingleRasterSourceToJSON, + SingleRasterSourceToJSONTyped, +} from './SingleRasterSource'; +import type { InterpolationParameters } from './InterpolationParameters'; +import { + InterpolationParametersFromJSON, + InterpolationParametersFromJSONTyped, + InterpolationParametersToJSON, + InterpolationParametersToJSONTyped, +} from './InterpolationParameters'; + +/** + * The `Interpolation` operator increases raster resolution by interpolating values of an input raster. + * + * If queried with a resolution that is coarser than the input resolution, + * interpolation is not applicable and an error is returned. + * + * ## Inputs + * + * The `Interpolation` operator expects exactly one _raster_ input. + * @export + * @interface Interpolation + */ +export interface Interpolation { + /** + * + * @type {InterpolationParameters} + * @memberof Interpolation + */ + params: InterpolationParameters; + /** + * + * @type {SingleRasterSource} + * @memberof Interpolation + */ + sources: SingleRasterSource; + /** + * + * @type {InterpolationTypeEnum} + * @memberof Interpolation + */ + type: InterpolationTypeEnum; +} + + +/** + * @export + */ +export const InterpolationTypeEnum = { + Interpolation: 'Interpolation' +} as const; +export type InterpolationTypeEnum = typeof InterpolationTypeEnum[keyof typeof InterpolationTypeEnum]; + + +/** + * Check if a given object implements the Interpolation interface. + */ +export function instanceOfInterpolation(value: object): value is Interpolation { + if (!('params' in value) || value['params'] === undefined) return false; + if (!('sources' in value) || value['sources'] === undefined) return false; + if (!('type' in value) || value['type'] === undefined) return false; + return true; +} + +export function InterpolationFromJSON(json: any): Interpolation { + return InterpolationFromJSONTyped(json, false); +} + +export function InterpolationFromJSONTyped(json: any, ignoreDiscriminator: boolean): Interpolation { + if (json == null) { + return json; + } + return { + + 'params': InterpolationParametersFromJSON(json['params']), + 'sources': SingleRasterSourceFromJSON(json['sources']), + 'type': json['type'], + }; +} + +export function InterpolationToJSON(json: any): Interpolation { + return InterpolationToJSONTyped(json, false); +} + +export function InterpolationToJSONTyped(value?: Interpolation | null, ignoreDiscriminator: boolean = false): any { + if (value == null) { + return value; + } + + return { + + 'params': InterpolationParametersToJSON(value['params']), + 'sources': SingleRasterSourceToJSON(value['sources']), + 'type': value['type'], + }; +} + diff --git a/typescript/src/models/InterpolationMethod.ts b/typescript/src/models/InterpolationMethod.ts new file mode 100644 index 00000000..c90d7bb1 --- /dev/null +++ b/typescript/src/models/InterpolationMethod.ts @@ -0,0 +1,53 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +/** + * + * @export + */ +export const InterpolationMethod = { + NearestNeighbor: 'nearestNeighbor', + BiLinear: 'biLinear' +} as const; +export type InterpolationMethod = typeof InterpolationMethod[keyof typeof InterpolationMethod]; + + +export function instanceOfInterpolationMethod(value: any): boolean { + for (const key in InterpolationMethod) { + if (Object.prototype.hasOwnProperty.call(InterpolationMethod, key)) { + if (InterpolationMethod[key as keyof typeof InterpolationMethod] === value) { + return true; + } + } + } + return false; +} + +export function InterpolationMethodFromJSON(json: any): InterpolationMethod { + return InterpolationMethodFromJSONTyped(json, false); +} + +export function InterpolationMethodFromJSONTyped(json: any, ignoreDiscriminator: boolean): InterpolationMethod { + return json as InterpolationMethod; +} + +export function InterpolationMethodToJSON(value?: InterpolationMethod | null): any { + return value as any; +} + +export function InterpolationMethodToJSONTyped(value: any, ignoreDiscriminator: boolean): InterpolationMethod { + return value as InterpolationMethod; +} + diff --git a/typescript/src/models/InterpolationParameters.ts b/typescript/src/models/InterpolationParameters.ts new file mode 100644 index 00000000..5fee2909 --- /dev/null +++ b/typescript/src/models/InterpolationParameters.ts @@ -0,0 +1,107 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +import type { InterpolationMethod } from './InterpolationMethod'; +import { + InterpolationMethodFromJSON, + InterpolationMethodFromJSONTyped, + InterpolationMethodToJSON, + InterpolationMethodToJSONTyped, +} from './InterpolationMethod'; +import type { Coordinate2D } from './Coordinate2D'; +import { + Coordinate2DFromJSON, + Coordinate2DFromJSONTyped, + Coordinate2DToJSON, + Coordinate2DToJSONTyped, +} from './Coordinate2D'; +import type { InterpolationResolution } from './InterpolationResolution'; +import { + InterpolationResolutionFromJSON, + InterpolationResolutionFromJSONTyped, + InterpolationResolutionToJSON, + InterpolationResolutionToJSONTyped, +} from './InterpolationResolution'; + +/** + * Parameters for the `Interpolation` operator. + * @export + * @interface InterpolationParameters + */ +export interface InterpolationParameters { + /** + * Interpolation method. + * @type {InterpolationMethod} + * @memberof InterpolationParameters + */ + interpolation: InterpolationMethod; + /** + * Optional reference point used to align the output grid origin. + * @type {Coordinate2D} + * @memberof InterpolationParameters + */ + outputOriginReference?: Coordinate2D | null; + /** + * Target output resolution. + * @type {InterpolationResolution} + * @memberof InterpolationParameters + */ + outputResolution: InterpolationResolution; +} + + + +/** + * Check if a given object implements the InterpolationParameters interface. + */ +export function instanceOfInterpolationParameters(value: object): value is InterpolationParameters { + if (!('interpolation' in value) || value['interpolation'] === undefined) return false; + if (!('outputResolution' in value) || value['outputResolution'] === undefined) return false; + return true; +} + +export function InterpolationParametersFromJSON(json: any): InterpolationParameters { + return InterpolationParametersFromJSONTyped(json, false); +} + +export function InterpolationParametersFromJSONTyped(json: any, ignoreDiscriminator: boolean): InterpolationParameters { + if (json == null) { + return json; + } + return { + + 'interpolation': InterpolationMethodFromJSON(json['interpolation']), + 'outputOriginReference': json['outputOriginReference'] == null ? undefined : Coordinate2DFromJSON(json['outputOriginReference']), + 'outputResolution': InterpolationResolutionFromJSON(json['outputResolution']), + }; +} + +export function InterpolationParametersToJSON(json: any): InterpolationParameters { + return InterpolationParametersToJSONTyped(json, false); +} + +export function InterpolationParametersToJSONTyped(value?: InterpolationParameters | null, ignoreDiscriminator: boolean = false): any { + if (value == null) { + return value; + } + + return { + + 'interpolation': InterpolationMethodToJSON(value['interpolation']), + 'outputOriginReference': Coordinate2DToJSON(value['outputOriginReference']), + 'outputResolution': InterpolationResolutionToJSON(value['outputResolution']), + }; +} + diff --git a/typescript/src/models/InterpolationResolution.ts b/typescript/src/models/InterpolationResolution.ts new file mode 100644 index 00000000..a2a44ccc --- /dev/null +++ b/typescript/src/models/InterpolationResolution.ts @@ -0,0 +1,76 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import type { Fraction } from './Fraction'; +import { + instanceOfFraction, + FractionFromJSON, + FractionFromJSONTyped, + FractionToJSON, +} from './Fraction'; +import type { Resolution } from './Resolution'; +import { + instanceOfResolution, + ResolutionFromJSON, + ResolutionFromJSONTyped, + ResolutionToJSON, +} from './Resolution'; + +/** + * @type InterpolationResolution + * + * @export + */ +export type InterpolationResolution = Fraction | Resolution; + +export function InterpolationResolutionFromJSON(json: any): InterpolationResolution { + return InterpolationResolutionFromJSONTyped(json, false); +} + +export function InterpolationResolutionFromJSONTyped(json: any, ignoreDiscriminator: boolean): InterpolationResolution { + if (json == null) { + return json; + } + if (typeof json !== 'object') { + return json; + } + if (instanceOfFraction(json)) { + return FractionFromJSONTyped(json, true); + } + if (instanceOfResolution(json)) { + return ResolutionFromJSONTyped(json, true); + } + return {} as any; +} + +export function InterpolationResolutionToJSON(json: any): any { + return InterpolationResolutionToJSONTyped(json, false); +} + +export function InterpolationResolutionToJSONTyped(value?: InterpolationResolution | null, ignoreDiscriminator: boolean = false): any { + if (value == null) { + return value; + } + if (typeof value !== 'object') { + return value; + } + if (instanceOfFraction(value)) { + return FractionToJSON(value as Fraction); + } + if (instanceOfResolution(value)) { + return ResolutionToJSON(value as Resolution); + } + return {}; +} + diff --git a/typescript/src/models/Irregular.ts b/typescript/src/models/Irregular.ts new file mode 100644 index 00000000..150fcca8 --- /dev/null +++ b/typescript/src/models/Irregular.ts @@ -0,0 +1,76 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface Irregular + */ +export interface Irregular { + /** + * + * @type {IrregularTypeEnum} + * @memberof Irregular + */ + type: IrregularTypeEnum; +} + + +/** + * @export + */ +export const IrregularTypeEnum = { + Irregular: 'irregular' +} as const; +export type IrregularTypeEnum = typeof IrregularTypeEnum[keyof typeof IrregularTypeEnum]; + + +/** + * Check if a given object implements the Irregular interface. + */ +export function instanceOfIrregular(value: object): value is Irregular { + if (!('type' in value) || value['type'] === undefined) return false; + return true; +} + +export function IrregularFromJSON(json: any): Irregular { + return IrregularFromJSONTyped(json, false); +} + +export function IrregularFromJSONTyped(json: any, ignoreDiscriminator: boolean): Irregular { + if (json == null) { + return json; + } + return { + + 'type': json['type'], + }; +} + +export function IrregularToJSON(json: any): Irregular { + return IrregularToJSONTyped(json, false); +} + +export function IrregularToJSONTyped(value?: Irregular | null, ignoreDiscriminator: boolean = false): any { + if (value == null) { + return value; + } + + return { + + 'type': value['type'], + }; +} + diff --git a/typescript/src/models/LastAggregation.ts b/typescript/src/models/LastAggregation.ts new file mode 100644 index 00000000..8cabe27c --- /dev/null +++ b/typescript/src/models/LastAggregation.ts @@ -0,0 +1,85 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface LastAggregation + */ +export interface LastAggregation { + /** + * + * @type {boolean} + * @memberof LastAggregation + */ + ignoreNoData: boolean; + /** + * + * @type {LastAggregationTypeEnum} + * @memberof LastAggregation + */ + type: LastAggregationTypeEnum; +} + + +/** + * @export + */ +export const LastAggregationTypeEnum = { + Last: 'last' +} as const; +export type LastAggregationTypeEnum = typeof LastAggregationTypeEnum[keyof typeof LastAggregationTypeEnum]; + + +/** + * Check if a given object implements the LastAggregation interface. + */ +export function instanceOfLastAggregation(value: object): value is LastAggregation { + if (!('ignoreNoData' in value) || value['ignoreNoData'] === undefined) return false; + if (!('type' in value) || value['type'] === undefined) return false; + return true; +} + +export function LastAggregationFromJSON(json: any): LastAggregation { + return LastAggregationFromJSONTyped(json, false); +} + +export function LastAggregationFromJSONTyped(json: any, ignoreDiscriminator: boolean): LastAggregation { + if (json == null) { + return json; + } + return { + + 'ignoreNoData': json['ignoreNoData'], + 'type': json['type'], + }; +} + +export function LastAggregationToJSON(json: any): LastAggregation { + return LastAggregationToJSONTyped(json, false); +} + +export function LastAggregationToJSONTyped(value?: LastAggregation | null, ignoreDiscriminator: boolean = false): any { + if (value == null) { + return value; + } + + return { + + 'ignoreNoData': value['ignoreNoData'], + 'type': value['type'], + }; +} + diff --git a/typescript/src/models/MaxAggregation.ts b/typescript/src/models/MaxAggregation.ts new file mode 100644 index 00000000..d60a673e --- /dev/null +++ b/typescript/src/models/MaxAggregation.ts @@ -0,0 +1,85 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface MaxAggregation + */ +export interface MaxAggregation { + /** + * + * @type {boolean} + * @memberof MaxAggregation + */ + ignoreNoData: boolean; + /** + * + * @type {MaxAggregationTypeEnum} + * @memberof MaxAggregation + */ + type: MaxAggregationTypeEnum; +} + + +/** + * @export + */ +export const MaxAggregationTypeEnum = { + Max: 'max' +} as const; +export type MaxAggregationTypeEnum = typeof MaxAggregationTypeEnum[keyof typeof MaxAggregationTypeEnum]; + + +/** + * Check if a given object implements the MaxAggregation interface. + */ +export function instanceOfMaxAggregation(value: object): value is MaxAggregation { + if (!('ignoreNoData' in value) || value['ignoreNoData'] === undefined) return false; + if (!('type' in value) || value['type'] === undefined) return false; + return true; +} + +export function MaxAggregationFromJSON(json: any): MaxAggregation { + return MaxAggregationFromJSONTyped(json, false); +} + +export function MaxAggregationFromJSONTyped(json: any, ignoreDiscriminator: boolean): MaxAggregation { + if (json == null) { + return json; + } + return { + + 'ignoreNoData': json['ignoreNoData'], + 'type': json['type'], + }; +} + +export function MaxAggregationToJSON(json: any): MaxAggregation { + return MaxAggregationToJSONTyped(json, false); +} + +export function MaxAggregationToJSONTyped(value?: MaxAggregation | null, ignoreDiscriminator: boolean = false): any { + if (value == null) { + return value; + } + + return { + + 'ignoreNoData': value['ignoreNoData'], + 'type': value['type'], + }; +} + diff --git a/typescript/src/models/MeanAggregation.ts b/typescript/src/models/MeanAggregation.ts new file mode 100644 index 00000000..702202bb --- /dev/null +++ b/typescript/src/models/MeanAggregation.ts @@ -0,0 +1,85 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface MeanAggregation + */ +export interface MeanAggregation { + /** + * + * @type {boolean} + * @memberof MeanAggregation + */ + ignoreNoData: boolean; + /** + * + * @type {MeanAggregationTypeEnum} + * @memberof MeanAggregation + */ + type: MeanAggregationTypeEnum; +} + + +/** + * @export + */ +export const MeanAggregationTypeEnum = { + Mean: 'mean' +} as const; +export type MeanAggregationTypeEnum = typeof MeanAggregationTypeEnum[keyof typeof MeanAggregationTypeEnum]; + + +/** + * Check if a given object implements the MeanAggregation interface. + */ +export function instanceOfMeanAggregation(value: object): value is MeanAggregation { + if (!('ignoreNoData' in value) || value['ignoreNoData'] === undefined) return false; + if (!('type' in value) || value['type'] === undefined) return false; + return true; +} + +export function MeanAggregationFromJSON(json: any): MeanAggregation { + return MeanAggregationFromJSONTyped(json, false); +} + +export function MeanAggregationFromJSONTyped(json: any, ignoreDiscriminator: boolean): MeanAggregation { + if (json == null) { + return json; + } + return { + + 'ignoreNoData': json['ignoreNoData'], + 'type': json['type'], + }; +} + +export function MeanAggregationToJSON(json: any): MeanAggregation { + return MeanAggregationToJSONTyped(json, false); +} + +export function MeanAggregationToJSONTyped(value?: MeanAggregation | null, ignoreDiscriminator: boolean = false): any { + if (value == null) { + return value; + } + + return { + + 'ignoreNoData': value['ignoreNoData'], + 'type': value['type'], + }; +} + diff --git a/typescript/src/models/MinAggregation.ts b/typescript/src/models/MinAggregation.ts new file mode 100644 index 00000000..ddafb553 --- /dev/null +++ b/typescript/src/models/MinAggregation.ts @@ -0,0 +1,85 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface MinAggregation + */ +export interface MinAggregation { + /** + * + * @type {boolean} + * @memberof MinAggregation + */ + ignoreNoData: boolean; + /** + * + * @type {MinAggregationTypeEnum} + * @memberof MinAggregation + */ + type: MinAggregationTypeEnum; +} + + +/** + * @export + */ +export const MinAggregationTypeEnum = { + Min: 'min' +} as const; +export type MinAggregationTypeEnum = typeof MinAggregationTypeEnum[keyof typeof MinAggregationTypeEnum]; + + +/** + * Check if a given object implements the MinAggregation interface. + */ +export function instanceOfMinAggregation(value: object): value is MinAggregation { + if (!('ignoreNoData' in value) || value['ignoreNoData'] === undefined) return false; + if (!('type' in value) || value['type'] === undefined) return false; + return true; +} + +export function MinAggregationFromJSON(json: any): MinAggregation { + return MinAggregationFromJSONTyped(json, false); +} + +export function MinAggregationFromJSONTyped(json: any, ignoreDiscriminator: boolean): MinAggregation { + if (json == null) { + return json; + } + return { + + 'ignoreNoData': json['ignoreNoData'], + 'type': json['type'], + }; +} + +export function MinAggregationToJSON(json: any): MinAggregation { + return MinAggregationToJSONTyped(json, false); +} + +export function MinAggregationToJSONTyped(value?: MinAggregation | null, ignoreDiscriminator: boolean = false): any { + if (value == null) { + return value; + } + + return { + + 'ignoreNoData': value['ignoreNoData'], + 'type': value['type'], + }; +} + diff --git a/typescript/src/models/MultiBandGdalSource.ts b/typescript/src/models/MultiBandGdalSource.ts new file mode 100644 index 00000000..feb4b8f4 --- /dev/null +++ b/typescript/src/models/MultiBandGdalSource.ts @@ -0,0 +1,93 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +import type { GdalSourceParameters } from './GdalSourceParameters'; +import { + GdalSourceParametersFromJSON, + GdalSourceParametersFromJSONTyped, + GdalSourceParametersToJSON, + GdalSourceParametersToJSONTyped, +} from './GdalSourceParameters'; + +/** + * The [`MultiBandGdalSource`] is a source operator that reads multi-band raster data using GDAL. + * @export + * @interface MultiBandGdalSource + */ +export interface MultiBandGdalSource { + /** + * + * @type {GdalSourceParameters} + * @memberof MultiBandGdalSource + */ + params: GdalSourceParameters; + /** + * + * @type {MultiBandGdalSourceTypeEnum} + * @memberof MultiBandGdalSource + */ + type: MultiBandGdalSourceTypeEnum; +} + + +/** + * @export + */ +export const MultiBandGdalSourceTypeEnum = { + MultiBandGdalSource: 'MultiBandGdalSource' +} as const; +export type MultiBandGdalSourceTypeEnum = typeof MultiBandGdalSourceTypeEnum[keyof typeof MultiBandGdalSourceTypeEnum]; + + +/** + * Check if a given object implements the MultiBandGdalSource interface. + */ +export function instanceOfMultiBandGdalSource(value: object): value is MultiBandGdalSource { + if (!('params' in value) || value['params'] === undefined) return false; + if (!('type' in value) || value['type'] === undefined) return false; + return true; +} + +export function MultiBandGdalSourceFromJSON(json: any): MultiBandGdalSource { + return MultiBandGdalSourceFromJSONTyped(json, false); +} + +export function MultiBandGdalSourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): MultiBandGdalSource { + if (json == null) { + return json; + } + return { + + 'params': GdalSourceParametersFromJSON(json['params']), + 'type': json['type'], + }; +} + +export function MultiBandGdalSourceToJSON(json: any): MultiBandGdalSource { + return MultiBandGdalSourceToJSONTyped(json, false); +} + +export function MultiBandGdalSourceToJSONTyped(value?: MultiBandGdalSource | null, ignoreDiscriminator: boolean = false): any { + if (value == null) { + return value; + } + + return { + + 'params': GdalSourceParametersToJSON(value['params']), + 'type': value['type'], + }; +} + diff --git a/typescript/src/models/TypedGeometryOneOf2.ts b/typescript/src/models/MultiLineString1.ts similarity index 61% rename from typescript/src/models/TypedGeometryOneOf2.ts rename to typescript/src/models/MultiLineString1.ts index 884fd062..9052878c 100644 --- a/typescript/src/models/TypedGeometryOneOf2.ts +++ b/typescript/src/models/MultiLineString1.ts @@ -24,30 +24,30 @@ import { /** * * @export - * @interface TypedGeometryOneOf2 + * @interface MultiLineString1 */ -export interface TypedGeometryOneOf2 { +export interface MultiLineString1 { /** * * @type {MultiLineString} - * @memberof TypedGeometryOneOf2 + * @memberof MultiLineString1 */ multiLineString: MultiLineString; } /** - * Check if a given object implements the TypedGeometryOneOf2 interface. + * Check if a given object implements the MultiLineString1 interface. */ -export function instanceOfTypedGeometryOneOf2(value: object): value is TypedGeometryOneOf2 { +export function instanceOfMultiLineString1(value: object): value is MultiLineString1 { if (!('multiLineString' in value) || value['multiLineString'] === undefined) return false; return true; } -export function TypedGeometryOneOf2FromJSON(json: any): TypedGeometryOneOf2 { - return TypedGeometryOneOf2FromJSONTyped(json, false); +export function MultiLineString1FromJSON(json: any): MultiLineString1 { + return MultiLineString1FromJSONTyped(json, false); } -export function TypedGeometryOneOf2FromJSONTyped(json: any, ignoreDiscriminator: boolean): TypedGeometryOneOf2 { +export function MultiLineString1FromJSONTyped(json: any, ignoreDiscriminator: boolean): MultiLineString1 { if (json == null) { return json; } @@ -57,11 +57,11 @@ export function TypedGeometryOneOf2FromJSONTyped(json: any, ignoreDiscriminator: }; } -export function TypedGeometryOneOf2ToJSON(json: any): TypedGeometryOneOf2 { - return TypedGeometryOneOf2ToJSONTyped(json, false); +export function MultiLineString1ToJSON(json: any): MultiLineString1 { + return MultiLineString1ToJSONTyped(json, false); } -export function TypedGeometryOneOf2ToJSONTyped(value?: TypedGeometryOneOf2 | null, ignoreDiscriminator: boolean = false): any { +export function MultiLineString1ToJSONTyped(value?: MultiLineString1 | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } diff --git a/typescript/src/models/TypedGeometryOneOf1.ts b/typescript/src/models/MultiPoint1.ts similarity index 59% rename from typescript/src/models/TypedGeometryOneOf1.ts rename to typescript/src/models/MultiPoint1.ts index 03b68c5f..59879079 100644 --- a/typescript/src/models/TypedGeometryOneOf1.ts +++ b/typescript/src/models/MultiPoint1.ts @@ -24,30 +24,30 @@ import { /** * * @export - * @interface TypedGeometryOneOf1 + * @interface MultiPoint1 */ -export interface TypedGeometryOneOf1 { +export interface MultiPoint1 { /** * * @type {MultiPoint} - * @memberof TypedGeometryOneOf1 + * @memberof MultiPoint1 */ multiPoint: MultiPoint; } /** - * Check if a given object implements the TypedGeometryOneOf1 interface. + * Check if a given object implements the MultiPoint1 interface. */ -export function instanceOfTypedGeometryOneOf1(value: object): value is TypedGeometryOneOf1 { +export function instanceOfMultiPoint1(value: object): value is MultiPoint1 { if (!('multiPoint' in value) || value['multiPoint'] === undefined) return false; return true; } -export function TypedGeometryOneOf1FromJSON(json: any): TypedGeometryOneOf1 { - return TypedGeometryOneOf1FromJSONTyped(json, false); +export function MultiPoint1FromJSON(json: any): MultiPoint1 { + return MultiPoint1FromJSONTyped(json, false); } -export function TypedGeometryOneOf1FromJSONTyped(json: any, ignoreDiscriminator: boolean): TypedGeometryOneOf1 { +export function MultiPoint1FromJSONTyped(json: any, ignoreDiscriminator: boolean): MultiPoint1 { if (json == null) { return json; } @@ -57,11 +57,11 @@ export function TypedGeometryOneOf1FromJSONTyped(json: any, ignoreDiscriminator: }; } -export function TypedGeometryOneOf1ToJSON(json: any): TypedGeometryOneOf1 { - return TypedGeometryOneOf1ToJSONTyped(json, false); +export function MultiPoint1ToJSON(json: any): MultiPoint1 { + return MultiPoint1ToJSONTyped(json, false); } -export function TypedGeometryOneOf1ToJSONTyped(value?: TypedGeometryOneOf1 | null, ignoreDiscriminator: boolean = false): any { +export function MultiPoint1ToJSONTyped(value?: MultiPoint1 | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } diff --git a/typescript/src/models/TypedGeometryOneOf3.ts b/typescript/src/models/MultiPolygon1.ts similarity index 60% rename from typescript/src/models/TypedGeometryOneOf3.ts rename to typescript/src/models/MultiPolygon1.ts index 7ec26ab0..783408c5 100644 --- a/typescript/src/models/TypedGeometryOneOf3.ts +++ b/typescript/src/models/MultiPolygon1.ts @@ -24,30 +24,30 @@ import { /** * * @export - * @interface TypedGeometryOneOf3 + * @interface MultiPolygon1 */ -export interface TypedGeometryOneOf3 { +export interface MultiPolygon1 { /** * * @type {MultiPolygon} - * @memberof TypedGeometryOneOf3 + * @memberof MultiPolygon1 */ multiPolygon: MultiPolygon; } /** - * Check if a given object implements the TypedGeometryOneOf3 interface. + * Check if a given object implements the MultiPolygon1 interface. */ -export function instanceOfTypedGeometryOneOf3(value: object): value is TypedGeometryOneOf3 { +export function instanceOfMultiPolygon1(value: object): value is MultiPolygon1 { if (!('multiPolygon' in value) || value['multiPolygon'] === undefined) return false; return true; } -export function TypedGeometryOneOf3FromJSON(json: any): TypedGeometryOneOf3 { - return TypedGeometryOneOf3FromJSONTyped(json, false); +export function MultiPolygon1FromJSON(json: any): MultiPolygon1 { + return MultiPolygon1FromJSONTyped(json, false); } -export function TypedGeometryOneOf3FromJSONTyped(json: any, ignoreDiscriminator: boolean): TypedGeometryOneOf3 { +export function MultiPolygon1FromJSONTyped(json: any, ignoreDiscriminator: boolean): MultiPolygon1 { if (json == null) { return json; } @@ -57,11 +57,11 @@ export function TypedGeometryOneOf3FromJSONTyped(json: any, ignoreDiscriminator: }; } -export function TypedGeometryOneOf3ToJSON(json: any): TypedGeometryOneOf3 { - return TypedGeometryOneOf3ToJSONTyped(json, false); +export function MultiPolygon1ToJSON(json: any): MultiPolygon1 { + return MultiPolygon1ToJSONTyped(json, false); } -export function TypedGeometryOneOf3ToJSONTyped(value?: TypedGeometryOneOf3 | null, ignoreDiscriminator: boolean = false): any { +export function MultiPolygon1ToJSONTyped(value?: MultiPolygon1 | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } diff --git a/typescript/src/models/MultipleRasterSources.ts b/typescript/src/models/MultipleRasterSources.ts new file mode 100644 index 00000000..cf271e92 --- /dev/null +++ b/typescript/src/models/MultipleRasterSources.ts @@ -0,0 +1,74 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +import type { RasterOperator } from './RasterOperator'; +import { + RasterOperatorFromJSON, + RasterOperatorFromJSONTyped, + RasterOperatorToJSON, + RasterOperatorToJSONTyped, +} from './RasterOperator'; + +/** + * One or more raster operators as sources for this operator. + * @export + * @interface MultipleRasterSources + */ +export interface MultipleRasterSources { + /** + * + * @type {Array} + * @memberof MultipleRasterSources + */ + rasters: Array; +} + +/** + * Check if a given object implements the MultipleRasterSources interface. + */ +export function instanceOfMultipleRasterSources(value: object): value is MultipleRasterSources { + if (!('rasters' in value) || value['rasters'] === undefined) return false; + return true; +} + +export function MultipleRasterSourcesFromJSON(json: any): MultipleRasterSources { + return MultipleRasterSourcesFromJSONTyped(json, false); +} + +export function MultipleRasterSourcesFromJSONTyped(json: any, ignoreDiscriminator: boolean): MultipleRasterSources { + if (json == null) { + return json; + } + return { + + 'rasters': ((json['rasters'] as Array).map(RasterOperatorFromJSON)), + }; +} + +export function MultipleRasterSourcesToJSON(json: any): MultipleRasterSources { + return MultipleRasterSourcesToJSONTyped(json, false); +} + +export function MultipleRasterSourcesToJSONTyped(value?: MultipleRasterSources | null, ignoreDiscriminator: boolean = false): any { + if (value == null) { + return value; + } + + return { + + 'rasters': ((value['rasters'] as Array).map(RasterOperatorToJSON)), + }; +} + diff --git a/typescript/src/models/TypedGeometryOneOf.ts b/typescript/src/models/NoGeometry1.ts similarity index 53% rename from typescript/src/models/TypedGeometryOneOf.ts rename to typescript/src/models/NoGeometry1.ts index e1fc304d..5cd25895 100644 --- a/typescript/src/models/TypedGeometryOneOf.ts +++ b/typescript/src/models/NoGeometry1.ts @@ -16,30 +16,30 @@ import { mapValues } from '../runtime'; /** * * @export - * @interface TypedGeometryOneOf + * @interface NoGeometry1 */ -export interface TypedGeometryOneOf { +export interface NoGeometry1 { /** * * @type {any} - * @memberof TypedGeometryOneOf + * @memberof NoGeometry1 */ data: any | null; } /** - * Check if a given object implements the TypedGeometryOneOf interface. + * Check if a given object implements the NoGeometry1 interface. */ -export function instanceOfTypedGeometryOneOf(value: object): value is TypedGeometryOneOf { +export function instanceOfNoGeometry1(value: object): value is NoGeometry1 { if (!('data' in value) || value['data'] === undefined) return false; return true; } -export function TypedGeometryOneOfFromJSON(json: any): TypedGeometryOneOf { - return TypedGeometryOneOfFromJSONTyped(json, false); +export function NoGeometry1FromJSON(json: any): NoGeometry1 { + return NoGeometry1FromJSONTyped(json, false); } -export function TypedGeometryOneOfFromJSONTyped(json: any, ignoreDiscriminator: boolean): TypedGeometryOneOf { +export function NoGeometry1FromJSONTyped(json: any, ignoreDiscriminator: boolean): NoGeometry1 { if (json == null) { return json; } @@ -49,11 +49,11 @@ export function TypedGeometryOneOfFromJSONTyped(json: any, ignoreDiscriminator: }; } -export function TypedGeometryOneOfToJSON(json: any): TypedGeometryOneOf { - return TypedGeometryOneOfToJSONTyped(json, false); +export function NoGeometry1ToJSON(json: any): NoGeometry1 { + return NoGeometry1ToJSONTyped(json, false); } -export function TypedGeometryOneOfToJSONTyped(value?: TypedGeometryOneOf | null, ignoreDiscriminator: boolean = false): any { +export function NoGeometry1ToJSONTyped(value?: NoGeometry1 | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } diff --git a/typescript/src/models/Number.ts b/typescript/src/models/Number.ts new file mode 100644 index 00000000..1bd448d2 --- /dev/null +++ b/typescript/src/models/Number.ts @@ -0,0 +1,85 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface Number + */ +export interface Number { + /** + * + * @type {NumberTypeEnum} + * @memberof Number + */ + type: NumberTypeEnum; + /** + * + * @type {number} + * @memberof Number + */ + value: number; +} + + +/** + * @export + */ +export const NumberTypeEnum = { + Number: 'number' +} as const; +export type NumberTypeEnum = typeof NumberTypeEnum[keyof typeof NumberTypeEnum]; + + +/** + * Check if a given object implements the Number interface. + */ +export function instanceOfNumber(value: object): value is Number { + if (!('type' in value) || value['type'] === undefined) return false; + if (!('value' in value) || value['value'] === undefined) return false; + return true; +} + +export function NumberFromJSON(json: any): Number { + return NumberFromJSONTyped(json, false); +} + +export function NumberFromJSONTyped(json: any, ignoreDiscriminator: boolean): Number { + if (json == null) { + return json; + } + return { + + 'type': json['type'], + 'value': json['value'], + }; +} + +export function NumberToJSON(json: any): Number { + return NumberToJSONTyped(json, false); +} + +export function NumberToJSONTyped(value?: Number | null, ignoreDiscriminator: boolean = false): any { + if (value == null) { + return value; + } + + return { + + 'type': value['type'], + 'value': value['value'], + }; +} + diff --git a/typescript/src/models/PercentileEstimateAggregation.ts b/typescript/src/models/PercentileEstimateAggregation.ts new file mode 100644 index 00000000..a44ac80e --- /dev/null +++ b/typescript/src/models/PercentileEstimateAggregation.ts @@ -0,0 +1,94 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface PercentileEstimateAggregation + */ +export interface PercentileEstimateAggregation { + /** + * + * @type {boolean} + * @memberof PercentileEstimateAggregation + */ + ignoreNoData: boolean; + /** + * + * @type {number} + * @memberof PercentileEstimateAggregation + */ + percentile: number; + /** + * + * @type {PercentileEstimateAggregationTypeEnum} + * @memberof PercentileEstimateAggregation + */ + type: PercentileEstimateAggregationTypeEnum; +} + + +/** + * @export + */ +export const PercentileEstimateAggregationTypeEnum = { + PercentileEstimate: 'percentileEstimate' +} as const; +export type PercentileEstimateAggregationTypeEnum = typeof PercentileEstimateAggregationTypeEnum[keyof typeof PercentileEstimateAggregationTypeEnum]; + + +/** + * Check if a given object implements the PercentileEstimateAggregation interface. + */ +export function instanceOfPercentileEstimateAggregation(value: object): value is PercentileEstimateAggregation { + if (!('ignoreNoData' in value) || value['ignoreNoData'] === undefined) return false; + if (!('percentile' in value) || value['percentile'] === undefined) return false; + if (!('type' in value) || value['type'] === undefined) return false; + return true; +} + +export function PercentileEstimateAggregationFromJSON(json: any): PercentileEstimateAggregation { + return PercentileEstimateAggregationFromJSONTyped(json, false); +} + +export function PercentileEstimateAggregationFromJSONTyped(json: any, ignoreDiscriminator: boolean): PercentileEstimateAggregation { + if (json == null) { + return json; + } + return { + + 'ignoreNoData': json['ignoreNoData'], + 'percentile': json['percentile'], + 'type': json['type'], + }; +} + +export function PercentileEstimateAggregationToJSON(json: any): PercentileEstimateAggregation { + return PercentileEstimateAggregationToJSONTyped(json, false); +} + +export function PercentileEstimateAggregationToJSONTyped(value?: PercentileEstimateAggregation | null, ignoreDiscriminator: boolean = false): any { + if (value == null) { + return value; + } + + return { + + 'ignoreNoData': value['ignoreNoData'], + 'percentile': value['percentile'], + 'type': value['type'], + }; +} + diff --git a/typescript/src/models/RasterOperator.ts b/typescript/src/models/RasterOperator.ts index 9f68050b..8a247841 100644 --- a/typescript/src/models/RasterOperator.ts +++ b/typescript/src/models/RasterOperator.ts @@ -12,6 +12,13 @@ * Do not edit the class manually. */ +import type { BandFilter } from './BandFilter'; +import { + instanceOfBandFilter, + BandFilterFromJSON, + BandFilterFromJSONTyped, + BandFilterToJSON, +} from './BandFilter'; import type { Expression } from './Expression'; import { instanceOfExpression, @@ -26,13 +33,55 @@ import { GdalSourceFromJSONTyped, GdalSourceToJSON, } from './GdalSource'; +import type { Interpolation } from './Interpolation'; +import { + instanceOfInterpolation, + InterpolationFromJSON, + InterpolationFromJSONTyped, + InterpolationToJSON, +} from './Interpolation'; +import type { MultiBandGdalSource } from './MultiBandGdalSource'; +import { + instanceOfMultiBandGdalSource, + MultiBandGdalSourceFromJSON, + MultiBandGdalSourceFromJSONTyped, + MultiBandGdalSourceToJSON, +} from './MultiBandGdalSource'; +import type { RasterStacker } from './RasterStacker'; +import { + instanceOfRasterStacker, + RasterStackerFromJSON, + RasterStackerFromJSONTyped, + RasterStackerToJSON, +} from './RasterStacker'; +import type { RasterTypeConversion } from './RasterTypeConversion'; +import { + instanceOfRasterTypeConversion, + RasterTypeConversionFromJSON, + RasterTypeConversionFromJSONTyped, + RasterTypeConversionToJSON, +} from './RasterTypeConversion'; +import type { Reprojection } from './Reprojection'; +import { + instanceOfReprojection, + ReprojectionFromJSON, + ReprojectionFromJSONTyped, + ReprojectionToJSON, +} from './Reprojection'; +import type { TemporalRasterAggregation } from './TemporalRasterAggregation'; +import { + instanceOfTemporalRasterAggregation, + TemporalRasterAggregationFromJSON, + TemporalRasterAggregationFromJSONTyped, + TemporalRasterAggregationToJSON, +} from './TemporalRasterAggregation'; /** * @type RasterOperator * An operator that produces raster data. * @export */ -export type RasterOperator = { type: 'Expression' } & Expression | { type: 'GdalSource' } & GdalSource; +export type RasterOperator = { type: 'BandFilter' } & BandFilter | { type: 'Expression' } & Expression | { type: 'GdalSource' } & GdalSource | { type: 'Interpolation' } & Interpolation | { type: 'MultiBandGdalSource' } & MultiBandGdalSource | { type: 'RasterStacker' } & RasterStacker | { type: 'RasterTypeConversion' } & RasterTypeConversion | { type: 'Reprojection' } & Reprojection | { type: 'TemporalRasterAggregation' } & TemporalRasterAggregation; export function RasterOperatorFromJSON(json: any): RasterOperator { return RasterOperatorFromJSONTyped(json, false); @@ -43,10 +92,24 @@ export function RasterOperatorFromJSONTyped(json: any, ignoreDiscriminator: bool return json; } switch (json['type']) { + case 'BandFilter': + return Object.assign({}, BandFilterFromJSONTyped(json, true), { type: 'BandFilter' } as const); case 'Expression': return Object.assign({}, ExpressionFromJSONTyped(json, true), { type: 'Expression' } as const); case 'GdalSource': return Object.assign({}, GdalSourceFromJSONTyped(json, true), { type: 'GdalSource' } as const); + case 'Interpolation': + return Object.assign({}, InterpolationFromJSONTyped(json, true), { type: 'Interpolation' } as const); + case 'MultiBandGdalSource': + return Object.assign({}, MultiBandGdalSourceFromJSONTyped(json, true), { type: 'MultiBandGdalSource' } as const); + case 'RasterStacker': + return Object.assign({}, RasterStackerFromJSONTyped(json, true), { type: 'RasterStacker' } as const); + case 'RasterTypeConversion': + return Object.assign({}, RasterTypeConversionFromJSONTyped(json, true), { type: 'RasterTypeConversion' } as const); + case 'Reprojection': + return Object.assign({}, ReprojectionFromJSONTyped(json, true), { type: 'Reprojection' } as const); + case 'TemporalRasterAggregation': + return Object.assign({}, TemporalRasterAggregationFromJSONTyped(json, true), { type: 'TemporalRasterAggregation' } as const); default: return json; } @@ -61,10 +124,24 @@ export function RasterOperatorToJSONTyped(value?: RasterOperator | null, ignoreD return value; } switch (value['type']) { + case 'BandFilter': + return Object.assign({}, BandFilterToJSON(value), { type: 'BandFilter' } as const); case 'Expression': return Object.assign({}, ExpressionToJSON(value), { type: 'Expression' } as const); case 'GdalSource': return Object.assign({}, GdalSourceToJSON(value), { type: 'GdalSource' } as const); + case 'Interpolation': + return Object.assign({}, InterpolationToJSON(value), { type: 'Interpolation' } as const); + case 'MultiBandGdalSource': + return Object.assign({}, MultiBandGdalSourceToJSON(value), { type: 'MultiBandGdalSource' } as const); + case 'RasterStacker': + return Object.assign({}, RasterStackerToJSON(value), { type: 'RasterStacker' } as const); + case 'RasterTypeConversion': + return Object.assign({}, RasterTypeConversionToJSON(value), { type: 'RasterTypeConversion' } as const); + case 'Reprojection': + return Object.assign({}, ReprojectionToJSON(value), { type: 'Reprojection' } as const); + case 'TemporalRasterAggregation': + return Object.assign({}, TemporalRasterAggregationToJSON(value), { type: 'TemporalRasterAggregation' } as const); default: return value; } diff --git a/typescript/src/models/RasterStacker.ts b/typescript/src/models/RasterStacker.ts new file mode 100644 index 00000000..83559144 --- /dev/null +++ b/typescript/src/models/RasterStacker.ts @@ -0,0 +1,119 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +import type { MultipleRasterSources } from './MultipleRasterSources'; +import { + MultipleRasterSourcesFromJSON, + MultipleRasterSourcesFromJSONTyped, + MultipleRasterSourcesToJSON, + MultipleRasterSourcesToJSONTyped, +} from './MultipleRasterSources'; +import type { RasterStackerParameters } from './RasterStackerParameters'; +import { + RasterStackerParametersFromJSON, + RasterStackerParametersFromJSONTyped, + RasterStackerParametersToJSON, + RasterStackerParametersToJSONTyped, +} from './RasterStackerParameters'; + +/** + * The `RasterStacker` stacks all of its inputs into a single raster time series. + * It queries all inputs and combines them by band, space, and then time. + * + * The output raster has as many bands as the sum of all input bands. + * Tiles are automatically temporally aligned. + * + * All inputs must have the same data type and spatial reference. + * + * ## Inputs + * + * The `RasterStacker` operator expects multiple raster inputs. + * @export + * @interface RasterStacker + */ +export interface RasterStacker { + /** + * + * @type {RasterStackerParameters} + * @memberof RasterStacker + */ + params: RasterStackerParameters; + /** + * + * @type {MultipleRasterSources} + * @memberof RasterStacker + */ + sources: MultipleRasterSources; + /** + * + * @type {RasterStackerTypeEnum} + * @memberof RasterStacker + */ + type: RasterStackerTypeEnum; +} + + +/** + * @export + */ +export const RasterStackerTypeEnum = { + RasterStacker: 'RasterStacker' +} as const; +export type RasterStackerTypeEnum = typeof RasterStackerTypeEnum[keyof typeof RasterStackerTypeEnum]; + + +/** + * Check if a given object implements the RasterStacker interface. + */ +export function instanceOfRasterStacker(value: object): value is RasterStacker { + if (!('params' in value) || value['params'] === undefined) return false; + if (!('sources' in value) || value['sources'] === undefined) return false; + if (!('type' in value) || value['type'] === undefined) return false; + return true; +} + +export function RasterStackerFromJSON(json: any): RasterStacker { + return RasterStackerFromJSONTyped(json, false); +} + +export function RasterStackerFromJSONTyped(json: any, ignoreDiscriminator: boolean): RasterStacker { + if (json == null) { + return json; + } + return { + + 'params': RasterStackerParametersFromJSON(json['params']), + 'sources': MultipleRasterSourcesFromJSON(json['sources']), + 'type': json['type'], + }; +} + +export function RasterStackerToJSON(json: any): RasterStacker { + return RasterStackerToJSONTyped(json, false); +} + +export function RasterStackerToJSONTyped(value?: RasterStacker | null, ignoreDiscriminator: boolean = false): any { + if (value == null) { + return value; + } + + return { + + 'params': RasterStackerParametersToJSON(value['params']), + 'sources': MultipleRasterSourcesToJSON(value['sources']), + 'type': value['type'], + }; +} + diff --git a/typescript/src/models/RasterStackerParameters.ts b/typescript/src/models/RasterStackerParameters.ts new file mode 100644 index 00000000..863e1ad6 --- /dev/null +++ b/typescript/src/models/RasterStackerParameters.ts @@ -0,0 +1,78 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +import type { RenameBands } from './RenameBands'; +import { + RenameBandsFromJSON, + RenameBandsFromJSONTyped, + RenameBandsToJSON, + RenameBandsToJSONTyped, +} from './RenameBands'; + +/** + * Parameters for the `RasterStacker` operator. + * @export + * @interface RasterStackerParameters + */ +export interface RasterStackerParameters { + /** + * Strategy for deriving output band names. + * + * - `default`: appends ` (n)` with the smallest `n` that avoids a conflict. + * - `suffix`: appends one suffix per input. + * - `rename`: explicitly provides names for all resulting bands. + * @type {RenameBands} + * @memberof RasterStackerParameters + */ + renameBands: RenameBands; +} + +/** + * Check if a given object implements the RasterStackerParameters interface. + */ +export function instanceOfRasterStackerParameters(value: object): value is RasterStackerParameters { + if (!('renameBands' in value) || value['renameBands'] === undefined) return false; + return true; +} + +export function RasterStackerParametersFromJSON(json: any): RasterStackerParameters { + return RasterStackerParametersFromJSONTyped(json, false); +} + +export function RasterStackerParametersFromJSONTyped(json: any, ignoreDiscriminator: boolean): RasterStackerParameters { + if (json == null) { + return json; + } + return { + + 'renameBands': RenameBandsFromJSON(json['renameBands']), + }; +} + +export function RasterStackerParametersToJSON(json: any): RasterStackerParameters { + return RasterStackerParametersToJSONTyped(json, false); +} + +export function RasterStackerParametersToJSONTyped(value?: RasterStackerParameters | null, ignoreDiscriminator: boolean = false): any { + if (value == null) { + return value; + } + + return { + + 'renameBands': RenameBandsToJSON(value['renameBands']), + }; +} + diff --git a/typescript/src/models/RasterTypeConversion.ts b/typescript/src/models/RasterTypeConversion.ts new file mode 100644 index 00000000..ac113b67 --- /dev/null +++ b/typescript/src/models/RasterTypeConversion.ts @@ -0,0 +1,120 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +import type { SingleRasterSource } from './SingleRasterSource'; +import { + SingleRasterSourceFromJSON, + SingleRasterSourceFromJSONTyped, + SingleRasterSourceToJSON, + SingleRasterSourceToJSONTyped, +} from './SingleRasterSource'; +import type { RasterTypeConversionParameters } from './RasterTypeConversionParameters'; +import { + RasterTypeConversionParametersFromJSON, + RasterTypeConversionParametersFromJSONTyped, + RasterTypeConversionParametersToJSON, + RasterTypeConversionParametersToJSONTyped, +} from './RasterTypeConversionParameters'; + +/** + * The `RasterTypeConversion` operator changes the data type of raster pixels. + * + * Applying this conversion may cause precision loss. + * For example, converting `F32` value `3.1` to `U8` results in `3`. + * + * If a value is outside of the range of the target data type, + * it is clipped to the valid range of that type. + * For example, converting `F32` value `300.0` to `U8` results in `255`. + * + * ## Inputs + * + * The `RasterTypeConversion` operator expects exactly one _raster_ input. + * @export + * @interface RasterTypeConversion + */ +export interface RasterTypeConversion { + /** + * + * @type {RasterTypeConversionParameters} + * @memberof RasterTypeConversion + */ + params: RasterTypeConversionParameters; + /** + * + * @type {SingleRasterSource} + * @memberof RasterTypeConversion + */ + sources: SingleRasterSource; + /** + * + * @type {RasterTypeConversionTypeEnum} + * @memberof RasterTypeConversion + */ + type: RasterTypeConversionTypeEnum; +} + + +/** + * @export + */ +export const RasterTypeConversionTypeEnum = { + RasterTypeConversion: 'RasterTypeConversion' +} as const; +export type RasterTypeConversionTypeEnum = typeof RasterTypeConversionTypeEnum[keyof typeof RasterTypeConversionTypeEnum]; + + +/** + * Check if a given object implements the RasterTypeConversion interface. + */ +export function instanceOfRasterTypeConversion(value: object): value is RasterTypeConversion { + if (!('params' in value) || value['params'] === undefined) return false; + if (!('sources' in value) || value['sources'] === undefined) return false; + if (!('type' in value) || value['type'] === undefined) return false; + return true; +} + +export function RasterTypeConversionFromJSON(json: any): RasterTypeConversion { + return RasterTypeConversionFromJSONTyped(json, false); +} + +export function RasterTypeConversionFromJSONTyped(json: any, ignoreDiscriminator: boolean): RasterTypeConversion { + if (json == null) { + return json; + } + return { + + 'params': RasterTypeConversionParametersFromJSON(json['params']), + 'sources': SingleRasterSourceFromJSON(json['sources']), + 'type': json['type'], + }; +} + +export function RasterTypeConversionToJSON(json: any): RasterTypeConversion { + return RasterTypeConversionToJSONTyped(json, false); +} + +export function RasterTypeConversionToJSONTyped(value?: RasterTypeConversion | null, ignoreDiscriminator: boolean = false): any { + if (value == null) { + return value; + } + + return { + + 'params': RasterTypeConversionParametersToJSON(value['params']), + 'sources': SingleRasterSourceToJSON(value['sources']), + 'type': value['type'], + }; +} + diff --git a/typescript/src/models/RasterTypeConversionParameters.ts b/typescript/src/models/RasterTypeConversionParameters.ts new file mode 100644 index 00000000..7b335721 --- /dev/null +++ b/typescript/src/models/RasterTypeConversionParameters.ts @@ -0,0 +1,76 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +import type { RasterDataType } from './RasterDataType'; +import { + RasterDataTypeFromJSON, + RasterDataTypeFromJSONTyped, + RasterDataTypeToJSON, + RasterDataTypeToJSONTyped, +} from './RasterDataType'; + +/** + * Parameters for the `RasterTypeConversion` operator. + * @export + * @interface RasterTypeConversionParameters + */ +export interface RasterTypeConversionParameters { + /** + * Output raster data type. + * @type {RasterDataType} + * @memberof RasterTypeConversionParameters + */ + outputDataType: RasterDataType; +} + + + +/** + * Check if a given object implements the RasterTypeConversionParameters interface. + */ +export function instanceOfRasterTypeConversionParameters(value: object): value is RasterTypeConversionParameters { + if (!('outputDataType' in value) || value['outputDataType'] === undefined) return false; + return true; +} + +export function RasterTypeConversionParametersFromJSON(json: any): RasterTypeConversionParameters { + return RasterTypeConversionParametersFromJSONTyped(json, false); +} + +export function RasterTypeConversionParametersFromJSONTyped(json: any, ignoreDiscriminator: boolean): RasterTypeConversionParameters { + if (json == null) { + return json; + } + return { + + 'outputDataType': RasterDataTypeFromJSON(json['outputDataType']), + }; +} + +export function RasterTypeConversionParametersToJSON(json: any): RasterTypeConversionParameters { + return RasterTypeConversionParametersToJSONTyped(json, false); +} + +export function RasterTypeConversionParametersToJSONTyped(value?: RasterTypeConversionParameters | null, ignoreDiscriminator: boolean = false): any { + if (value == null) { + return value; + } + + return { + + 'outputDataType': RasterDataTypeToJSON(value['outputDataType']), + }; +} + diff --git a/typescript/src/models/TimeDimensionOneOf.ts b/typescript/src/models/Regular.ts similarity index 57% rename from typescript/src/models/TimeDimensionOneOf.ts rename to typescript/src/models/Regular.ts index 4093ece3..4ef1e828 100644 --- a/typescript/src/models/TimeDimensionOneOf.ts +++ b/typescript/src/models/Regular.ts @@ -31,40 +31,40 @@ import { /** * * @export - * @interface TimeDimensionOneOf + * @interface Regular */ -export interface TimeDimensionOneOf extends RegularTimeDimension { +export interface Regular extends RegularTimeDimension { /** * - * @type {TimeDimensionOneOfTypeEnum} - * @memberof TimeDimensionOneOf + * @type {RegularTypeEnum} + * @memberof Regular */ - type: TimeDimensionOneOfTypeEnum; + type: RegularTypeEnum; } /** * @export */ -export const TimeDimensionOneOfTypeEnum = { +export const RegularTypeEnum = { Regular: 'regular' } as const; -export type TimeDimensionOneOfTypeEnum = typeof TimeDimensionOneOfTypeEnum[keyof typeof TimeDimensionOneOfTypeEnum]; +export type RegularTypeEnum = typeof RegularTypeEnum[keyof typeof RegularTypeEnum]; /** - * Check if a given object implements the TimeDimensionOneOf interface. + * Check if a given object implements the Regular interface. */ -export function instanceOfTimeDimensionOneOf(value: object): value is TimeDimensionOneOf { +export function instanceOfRegular(value: object): value is Regular { if (!('type' in value) || value['type'] === undefined) return false; return true; } -export function TimeDimensionOneOfFromJSON(json: any): TimeDimensionOneOf { - return TimeDimensionOneOfFromJSONTyped(json, false); +export function RegularFromJSON(json: any): Regular { + return RegularFromJSONTyped(json, false); } -export function TimeDimensionOneOfFromJSONTyped(json: any, ignoreDiscriminator: boolean): TimeDimensionOneOf { +export function RegularFromJSONTyped(json: any, ignoreDiscriminator: boolean): Regular { if (json == null) { return json; } @@ -74,11 +74,11 @@ export function TimeDimensionOneOfFromJSONTyped(json: any, ignoreDiscriminator: }; } -export function TimeDimensionOneOfToJSON(json: any): TimeDimensionOneOf { - return TimeDimensionOneOfToJSONTyped(json, false); +export function RegularToJSON(json: any): Regular { + return RegularToJSONTyped(json, false); } -export function TimeDimensionOneOfToJSONTyped(value?: TimeDimensionOneOf | null, ignoreDiscriminator: boolean = false): any { +export function RegularToJSONTyped(value?: Regular | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } diff --git a/typescript/src/models/Rename.ts b/typescript/src/models/Rename.ts new file mode 100644 index 00000000..abf78c7f --- /dev/null +++ b/typescript/src/models/Rename.ts @@ -0,0 +1,85 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface Rename + */ +export interface Rename { + /** + * + * @type {RenameTypeEnum} + * @memberof Rename + */ + type: RenameTypeEnum; + /** + * + * @type {Array} + * @memberof Rename + */ + values: Array; +} + + +/** + * @export + */ +export const RenameTypeEnum = { + Rename: 'rename' +} as const; +export type RenameTypeEnum = typeof RenameTypeEnum[keyof typeof RenameTypeEnum]; + + +/** + * Check if a given object implements the Rename interface. + */ +export function instanceOfRename(value: object): value is Rename { + if (!('type' in value) || value['type'] === undefined) return false; + if (!('values' in value) || value['values'] === undefined) return false; + return true; +} + +export function RenameFromJSON(json: any): Rename { + return RenameFromJSONTyped(json, false); +} + +export function RenameFromJSONTyped(json: any, ignoreDiscriminator: boolean): Rename { + if (json == null) { + return json; + } + return { + + 'type': json['type'], + 'values': json['values'], + }; +} + +export function RenameToJSON(json: any): Rename { + return RenameToJSONTyped(json, false); +} + +export function RenameToJSONTyped(value?: Rename | null, ignoreDiscriminator: boolean = false): any { + if (value == null) { + return value; + } + + return { + + 'type': value['type'], + 'values': value['values'], + }; +} + diff --git a/typescript/src/models/RenameBands.ts b/typescript/src/models/RenameBands.ts new file mode 100644 index 00000000..e6cf951d --- /dev/null +++ b/typescript/src/models/RenameBands.ts @@ -0,0 +1,89 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import type { Default } from './Default'; +import { + instanceOfDefault, + DefaultFromJSON, + DefaultFromJSONTyped, + DefaultToJSON, +} from './Default'; +import type { Rename } from './Rename'; +import { + instanceOfRename, + RenameFromJSON, + RenameFromJSONTyped, + RenameToJSON, +} from './Rename'; +import type { Suffix } from './Suffix'; +import { + instanceOfSuffix, + SuffixFromJSON, + SuffixFromJSONTyped, + SuffixToJSON, +} from './Suffix'; + +/** + * @type RenameBands + * + * @export + */ +export type RenameBands = Default | Rename | Suffix; + +export function RenameBandsFromJSON(json: any): RenameBands { + return RenameBandsFromJSONTyped(json, false); +} + +export function RenameBandsFromJSONTyped(json: any, ignoreDiscriminator: boolean): RenameBands { + if (json == null) { + return json; + } + if (typeof json !== 'object') { + return json; + } + if (instanceOfDefault(json)) { + return DefaultFromJSONTyped(json, true); + } + if (instanceOfRename(json)) { + return RenameFromJSONTyped(json, true); + } + if (instanceOfSuffix(json)) { + return SuffixFromJSONTyped(json, true); + } + return {} as any; +} + +export function RenameBandsToJSON(json: any): any { + return RenameBandsToJSONTyped(json, false); +} + +export function RenameBandsToJSONTyped(value?: RenameBands | null, ignoreDiscriminator: boolean = false): any { + if (value == null) { + return value; + } + if (typeof value !== 'object') { + return value; + } + if (instanceOfDefault(value)) { + return DefaultToJSON(value as Default); + } + if (instanceOfRename(value)) { + return RenameToJSON(value as Rename); + } + if (instanceOfSuffix(value)) { + return SuffixToJSON(value as Suffix); + } + return {}; +} + diff --git a/typescript/src/models/Reprojection.ts b/typescript/src/models/Reprojection.ts new file mode 100644 index 00000000..808f2300 --- /dev/null +++ b/typescript/src/models/Reprojection.ts @@ -0,0 +1,135 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +import type { ReprojectionParameters } from './ReprojectionParameters'; +import { + ReprojectionParametersFromJSON, + ReprojectionParametersFromJSONTyped, + ReprojectionParametersToJSON, + ReprojectionParametersToJSONTyped, +} from './ReprojectionParameters'; +import type { SingleRasterOrVectorSource } from './SingleRasterOrVectorSource'; +import { + SingleRasterOrVectorSourceFromJSON, + SingleRasterOrVectorSourceFromJSONTyped, + SingleRasterOrVectorSourceToJSON, + SingleRasterOrVectorSourceToJSONTyped, +} from './SingleRasterOrVectorSource'; + +/** + * The `Reprojection` operator reprojects data from one spatial reference system to another. + * It accepts exactly one input which can either be a raster or a vector data stream. + * The operator produces all data that, after reprojection, is contained in the query rectangle. + * + * ## Data Type Specifics + * + * The concrete behavior depends on the data type. + * + * ### Vector Data + * + * The operator reprojects all coordinates of the features individually. + * The result contains all features that, after reprojection, are intersected by the query rectangle. + * + * ### Raster Data + * + * To create tiles in the target projection, the operator loads corresponding tiles in the source projection. + * For each output pixel, the value of the nearest input pixel is used. + * + * If parts of a tile are outside of the source extent after projection, the operator produces NO DATA values. + * + * ## Inputs + * + * The `Reprojection` operator expects exactly one _raster_ or _vector_ input. + * + * ## Errors + * + * The operator returns an error if the target projection is unknown or if input data cannot be reprojected. + * @export + * @interface Reprojection + */ +export interface Reprojection { + /** + * + * @type {ReprojectionParameters} + * @memberof Reprojection + */ + params: ReprojectionParameters; + /** + * + * @type {SingleRasterOrVectorSource} + * @memberof Reprojection + */ + sources: SingleRasterOrVectorSource; + /** + * + * @type {ReprojectionTypeEnum} + * @memberof Reprojection + */ + type: ReprojectionTypeEnum; +} + + +/** + * @export + */ +export const ReprojectionTypeEnum = { + Reprojection: 'Reprojection' +} as const; +export type ReprojectionTypeEnum = typeof ReprojectionTypeEnum[keyof typeof ReprojectionTypeEnum]; + + +/** + * Check if a given object implements the Reprojection interface. + */ +export function instanceOfReprojection(value: object): value is Reprojection { + if (!('params' in value) || value['params'] === undefined) return false; + if (!('sources' in value) || value['sources'] === undefined) return false; + if (!('type' in value) || value['type'] === undefined) return false; + return true; +} + +export function ReprojectionFromJSON(json: any): Reprojection { + return ReprojectionFromJSONTyped(json, false); +} + +export function ReprojectionFromJSONTyped(json: any, ignoreDiscriminator: boolean): Reprojection { + if (json == null) { + return json; + } + return { + + 'params': ReprojectionParametersFromJSON(json['params']), + 'sources': SingleRasterOrVectorSourceFromJSON(json['sources']), + 'type': json['type'], + }; +} + +export function ReprojectionToJSON(json: any): Reprojection { + return ReprojectionToJSONTyped(json, false); +} + +export function ReprojectionToJSONTyped(value?: Reprojection | null, ignoreDiscriminator: boolean = false): any { + if (value == null) { + return value; + } + + return { + + 'params': ReprojectionParametersToJSON(value['params']), + 'sources': SingleRasterOrVectorSourceToJSON(value['sources']), + 'type': value['type'], + }; +} + diff --git a/typescript/src/models/ReprojectionParameters.ts b/typescript/src/models/ReprojectionParameters.ts new file mode 100644 index 00000000..b8c10e2a --- /dev/null +++ b/typescript/src/models/ReprojectionParameters.ts @@ -0,0 +1,87 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +import type { DeriveOutRasterSpecsSource } from './DeriveOutRasterSpecsSource'; +import { + DeriveOutRasterSpecsSourceFromJSON, + DeriveOutRasterSpecsSourceFromJSONTyped, + DeriveOutRasterSpecsSourceToJSON, + DeriveOutRasterSpecsSourceToJSONTyped, +} from './DeriveOutRasterSpecsSource'; + +/** + * Parameters for the `Reprojection` operator. + * @export + * @interface ReprojectionParameters + */ +export interface ReprojectionParameters { + /** + * Controls how raster output bounds are derived. + * + * The default `projectionBounds` usually keeps a projection-aligned target grid, + * while `dataBounds` derives it directly from source data bounds. + * @type {DeriveOutRasterSpecsSource} + * @memberof ReprojectionParameters + */ + deriveOutSpec?: DeriveOutRasterSpecsSource; + /** + * Target spatial reference system. + * @type {string} + * @memberof ReprojectionParameters + */ + targetSpatialReference: string; +} + + + +/** + * Check if a given object implements the ReprojectionParameters interface. + */ +export function instanceOfReprojectionParameters(value: object): value is ReprojectionParameters { + if (!('targetSpatialReference' in value) || value['targetSpatialReference'] === undefined) return false; + return true; +} + +export function ReprojectionParametersFromJSON(json: any): ReprojectionParameters { + return ReprojectionParametersFromJSONTyped(json, false); +} + +export function ReprojectionParametersFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReprojectionParameters { + if (json == null) { + return json; + } + return { + + 'deriveOutSpec': json['deriveOutSpec'] == null ? undefined : DeriveOutRasterSpecsSourceFromJSON(json['deriveOutSpec']), + 'targetSpatialReference': json['targetSpatialReference'], + }; +} + +export function ReprojectionParametersToJSON(json: any): ReprojectionParameters { + return ReprojectionParametersToJSONTyped(json, false); +} + +export function ReprojectionParametersToJSONTyped(value?: ReprojectionParameters | null, ignoreDiscriminator: boolean = false): any { + if (value == null) { + return value; + } + + return { + + 'deriveOutSpec': DeriveOutRasterSpecsSourceToJSON(value['deriveOutSpec']), + 'targetSpatialReference': value['targetSpatialReference'], + }; +} + diff --git a/typescript/src/models/Resolution.ts b/typescript/src/models/Resolution.ts new file mode 100644 index 00000000..fd4cbe34 --- /dev/null +++ b/typescript/src/models/Resolution.ts @@ -0,0 +1,94 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * Explicit output resolution (`x`, `y`) in target coordinates. + * @export + * @interface Resolution + */ +export interface Resolution { + /** + * + * @type {ResolutionTypeEnum} + * @memberof Resolution + */ + type: ResolutionTypeEnum; + /** + * + * @type {number} + * @memberof Resolution + */ + x: number; + /** + * + * @type {number} + * @memberof Resolution + */ + y: number; +} + + +/** + * @export + */ +export const ResolutionTypeEnum = { + Resolution: 'resolution' +} as const; +export type ResolutionTypeEnum = typeof ResolutionTypeEnum[keyof typeof ResolutionTypeEnum]; + + +/** + * Check if a given object implements the Resolution interface. + */ +export function instanceOfResolution(value: object): value is Resolution { + if (!('type' in value) || value['type'] === undefined) return false; + if (!('x' in value) || value['x'] === undefined) return false; + if (!('y' in value) || value['y'] === undefined) return false; + return true; +} + +export function ResolutionFromJSON(json: any): Resolution { + return ResolutionFromJSONTyped(json, false); +} + +export function ResolutionFromJSONTyped(json: any, ignoreDiscriminator: boolean): Resolution { + if (json == null) { + return json; + } + return { + + 'type': json['type'], + 'x': json['x'], + 'y': json['y'], + }; +} + +export function ResolutionToJSON(json: any): Resolution { + return ResolutionToJSONTyped(json, false); +} + +export function ResolutionToJSONTyped(value?: Resolution | null, ignoreDiscriminator: boolean = false): any { + if (value == null) { + return value; + } + + return { + + 'type': value['type'], + 'x': value['x'], + 'y': value['y'], + }; +} + diff --git a/typescript/src/models/HistogramBucketsOneOf1.ts b/typescript/src/models/SquareRootChoiceRule.ts similarity index 50% rename from typescript/src/models/HistogramBucketsOneOf1.ts rename to typescript/src/models/SquareRootChoiceRule.ts index a8a4ea18..81b2048e 100644 --- a/typescript/src/models/HistogramBucketsOneOf1.ts +++ b/typescript/src/models/SquareRootChoiceRule.ts @@ -16,46 +16,46 @@ import { mapValues } from '../runtime'; /** * * @export - * @interface HistogramBucketsOneOf1 + * @interface SquareRootChoiceRule */ -export interface HistogramBucketsOneOf1 { +export interface SquareRootChoiceRule { /** * * @type {number} - * @memberof HistogramBucketsOneOf1 + * @memberof SquareRootChoiceRule */ maxNumberOfBuckets?: number; /** * - * @type {HistogramBucketsOneOf1TypeEnum} - * @memberof HistogramBucketsOneOf1 + * @type {SquareRootChoiceRuleTypeEnum} + * @memberof SquareRootChoiceRule */ - type: HistogramBucketsOneOf1TypeEnum; + type: SquareRootChoiceRuleTypeEnum; } /** * @export */ -export const HistogramBucketsOneOf1TypeEnum = { +export const SquareRootChoiceRuleTypeEnum = { SquareRootChoiceRule: 'squareRootChoiceRule' } as const; -export type HistogramBucketsOneOf1TypeEnum = typeof HistogramBucketsOneOf1TypeEnum[keyof typeof HistogramBucketsOneOf1TypeEnum]; +export type SquareRootChoiceRuleTypeEnum = typeof SquareRootChoiceRuleTypeEnum[keyof typeof SquareRootChoiceRuleTypeEnum]; /** - * Check if a given object implements the HistogramBucketsOneOf1 interface. + * Check if a given object implements the SquareRootChoiceRule interface. */ -export function instanceOfHistogramBucketsOneOf1(value: object): value is HistogramBucketsOneOf1 { +export function instanceOfSquareRootChoiceRule(value: object): value is SquareRootChoiceRule { if (!('type' in value) || value['type'] === undefined) return false; return true; } -export function HistogramBucketsOneOf1FromJSON(json: any): HistogramBucketsOneOf1 { - return HistogramBucketsOneOf1FromJSONTyped(json, false); +export function SquareRootChoiceRuleFromJSON(json: any): SquareRootChoiceRule { + return SquareRootChoiceRuleFromJSONTyped(json, false); } -export function HistogramBucketsOneOf1FromJSONTyped(json: any, ignoreDiscriminator: boolean): HistogramBucketsOneOf1 { +export function SquareRootChoiceRuleFromJSONTyped(json: any, ignoreDiscriminator: boolean): SquareRootChoiceRule { if (json == null) { return json; } @@ -66,11 +66,11 @@ export function HistogramBucketsOneOf1FromJSONTyped(json: any, ignoreDiscriminat }; } -export function HistogramBucketsOneOf1ToJSON(json: any): HistogramBucketsOneOf1 { - return HistogramBucketsOneOf1ToJSONTyped(json, false); +export function SquareRootChoiceRuleToJSON(json: any): SquareRootChoiceRule { + return SquareRootChoiceRuleToJSONTyped(json, false); } -export function HistogramBucketsOneOf1ToJSONTyped(value?: HistogramBucketsOneOf1 | null, ignoreDiscriminator: boolean = false): any { +export function SquareRootChoiceRuleToJSONTyped(value?: SquareRootChoiceRule | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } diff --git a/typescript/src/models/SumAggregation.ts b/typescript/src/models/SumAggregation.ts new file mode 100644 index 00000000..cf803bf0 --- /dev/null +++ b/typescript/src/models/SumAggregation.ts @@ -0,0 +1,85 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface SumAggregation + */ +export interface SumAggregation { + /** + * + * @type {boolean} + * @memberof SumAggregation + */ + ignoreNoData: boolean; + /** + * + * @type {SumAggregationTypeEnum} + * @memberof SumAggregation + */ + type: SumAggregationTypeEnum; +} + + +/** + * @export + */ +export const SumAggregationTypeEnum = { + Sum: 'sum' +} as const; +export type SumAggregationTypeEnum = typeof SumAggregationTypeEnum[keyof typeof SumAggregationTypeEnum]; + + +/** + * Check if a given object implements the SumAggregation interface. + */ +export function instanceOfSumAggregation(value: object): value is SumAggregation { + if (!('ignoreNoData' in value) || value['ignoreNoData'] === undefined) return false; + if (!('type' in value) || value['type'] === undefined) return false; + return true; +} + +export function SumAggregationFromJSON(json: any): SumAggregation { + return SumAggregationFromJSONTyped(json, false); +} + +export function SumAggregationFromJSONTyped(json: any, ignoreDiscriminator: boolean): SumAggregation { + if (json == null) { + return json; + } + return { + + 'ignoreNoData': json['ignoreNoData'], + 'type': json['type'], + }; +} + +export function SumAggregationToJSON(json: any): SumAggregation { + return SumAggregationToJSONTyped(json, false); +} + +export function SumAggregationToJSONTyped(value?: SumAggregation | null, ignoreDiscriminator: boolean = false): any { + if (value == null) { + return value; + } + + return { + + 'ignoreNoData': value['ignoreNoData'], + 'type': value['type'], + }; +} + diff --git a/typescript/src/models/TemporalRasterAggregation.ts b/typescript/src/models/TemporalRasterAggregation.ts new file mode 100644 index 00000000..29c03d9b --- /dev/null +++ b/typescript/src/models/TemporalRasterAggregation.ts @@ -0,0 +1,122 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +import type { TemporalRasterAggregationParameters } from './TemporalRasterAggregationParameters'; +import { + TemporalRasterAggregationParametersFromJSON, + TemporalRasterAggregationParametersFromJSONTyped, + TemporalRasterAggregationParametersToJSON, + TemporalRasterAggregationParametersToJSONTyped, +} from './TemporalRasterAggregationParameters'; +import type { SingleRasterSource } from './SingleRasterSource'; +import { + SingleRasterSourceFromJSON, + SingleRasterSourceFromJSONTyped, + SingleRasterSourceToJSON, + SingleRasterSourceToJSONTyped, +} from './SingleRasterSource'; + +/** + * The `TemporalRasterAggregation` operator aggregates a raster time series into uniform time windows. + * The output starts with the first window that contains the query start and contains all windows + * that overlap the query interval. + * + * Pixel values are computed by aggregating all input rasters that contribute to the current window. + * + * ## Inputs + * + * The `TemporalRasterAggregation` operator expects exactly one _raster_ input. + * + * ## Errors + * + * If the aggregation method is `first`, `last`, or `mean` and the input raster has no NO DATA value, + * an error is returned. + * @export + * @interface TemporalRasterAggregation + */ +export interface TemporalRasterAggregation { + /** + * + * @type {TemporalRasterAggregationParameters} + * @memberof TemporalRasterAggregation + */ + params: TemporalRasterAggregationParameters; + /** + * + * @type {SingleRasterSource} + * @memberof TemporalRasterAggregation + */ + sources: SingleRasterSource; + /** + * + * @type {TemporalRasterAggregationTypeEnum} + * @memberof TemporalRasterAggregation + */ + type: TemporalRasterAggregationTypeEnum; +} + + +/** + * @export + */ +export const TemporalRasterAggregationTypeEnum = { + TemporalRasterAggregation: 'TemporalRasterAggregation' +} as const; +export type TemporalRasterAggregationTypeEnum = typeof TemporalRasterAggregationTypeEnum[keyof typeof TemporalRasterAggregationTypeEnum]; + + +/** + * Check if a given object implements the TemporalRasterAggregation interface. + */ +export function instanceOfTemporalRasterAggregation(value: object): value is TemporalRasterAggregation { + if (!('params' in value) || value['params'] === undefined) return false; + if (!('sources' in value) || value['sources'] === undefined) return false; + if (!('type' in value) || value['type'] === undefined) return false; + return true; +} + +export function TemporalRasterAggregationFromJSON(json: any): TemporalRasterAggregation { + return TemporalRasterAggregationFromJSONTyped(json, false); +} + +export function TemporalRasterAggregationFromJSONTyped(json: any, ignoreDiscriminator: boolean): TemporalRasterAggregation { + if (json == null) { + return json; + } + return { + + 'params': TemporalRasterAggregationParametersFromJSON(json['params']), + 'sources': SingleRasterSourceFromJSON(json['sources']), + 'type': json['type'], + }; +} + +export function TemporalRasterAggregationToJSON(json: any): TemporalRasterAggregation { + return TemporalRasterAggregationToJSONTyped(json, false); +} + +export function TemporalRasterAggregationToJSONTyped(value?: TemporalRasterAggregation | null, ignoreDiscriminator: boolean = false): any { + if (value == null) { + return value; + } + + return { + + 'params': TemporalRasterAggregationParametersToJSON(value['params']), + 'sources': SingleRasterSourceToJSON(value['sources']), + 'type': value['type'], + }; +} + diff --git a/typescript/src/models/TemporalRasterAggregationParameters.ts b/typescript/src/models/TemporalRasterAggregationParameters.ts new file mode 100644 index 00000000..6816215f --- /dev/null +++ b/typescript/src/models/TemporalRasterAggregationParameters.ts @@ -0,0 +1,120 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +import type { Aggregation } from './Aggregation'; +import { + AggregationFromJSON, + AggregationFromJSONTyped, + AggregationToJSON, + AggregationToJSONTyped, +} from './Aggregation'; +import type { TimeStep } from './TimeStep'; +import { + TimeStepFromJSON, + TimeStepFromJSONTyped, + TimeStepToJSON, + TimeStepToJSONTyped, +} from './TimeStep'; +import type { RasterDataType } from './RasterDataType'; +import { + RasterDataTypeFromJSON, + RasterDataTypeFromJSONTyped, + RasterDataTypeToJSON, + RasterDataTypeToJSONTyped, +} from './RasterDataType'; + +/** + * Parameters for the `TemporalRasterAggregation` operator. + * @export + * @interface TemporalRasterAggregationParameters + */ +export interface TemporalRasterAggregationParameters { + /** + * Aggregation method for values within each time window. + * + * Encountering NO DATA makes the aggregation result NO DATA unless + * `ignoreNoData` is `true` for the selected aggregation variant. + * @type {Aggregation} + * @memberof TemporalRasterAggregationParameters + */ + aggregation: Aggregation; + /** + * Optional output raster data type. + * @type {RasterDataType} + * @memberof TemporalRasterAggregationParameters + */ + outputType?: RasterDataType | null; + /** + * Window size and granularity for the output time series. + * @type {TimeStep} + * @memberof TemporalRasterAggregationParameters + */ + window: TimeStep; + /** + * Optional reference timestamp used as the anchor for window boundaries. + * + * If omitted, windows are anchored at `1970-01-01T00:00:00Z`. + * @type {number} + * @memberof TemporalRasterAggregationParameters + */ + windowReference?: number | null; +} + + + +/** + * Check if a given object implements the TemporalRasterAggregationParameters interface. + */ +export function instanceOfTemporalRasterAggregationParameters(value: object): value is TemporalRasterAggregationParameters { + if (!('aggregation' in value) || value['aggregation'] === undefined) return false; + if (!('window' in value) || value['window'] === undefined) return false; + return true; +} + +export function TemporalRasterAggregationParametersFromJSON(json: any): TemporalRasterAggregationParameters { + return TemporalRasterAggregationParametersFromJSONTyped(json, false); +} + +export function TemporalRasterAggregationParametersFromJSONTyped(json: any, ignoreDiscriminator: boolean): TemporalRasterAggregationParameters { + if (json == null) { + return json; + } + return { + + 'aggregation': AggregationFromJSON(json['aggregation']), + 'outputType': json['outputType'] == null ? undefined : RasterDataTypeFromJSON(json['outputType']), + 'window': TimeStepFromJSON(json['window']), + 'windowReference': json['windowReference'] == null ? undefined : json['windowReference'], + }; +} + +export function TemporalRasterAggregationParametersToJSON(json: any): TemporalRasterAggregationParameters { + return TemporalRasterAggregationParametersToJSONTyped(json, false); +} + +export function TemporalRasterAggregationParametersToJSONTyped(value?: TemporalRasterAggregationParameters | null, ignoreDiscriminator: boolean = false): any { + if (value == null) { + return value; + } + + return { + + 'aggregation': AggregationToJSON(value['aggregation']), + 'outputType': RasterDataTypeToJSON(value['outputType']), + 'window': TimeStepToJSON(value['window']), + 'windowReference': value['windowReference'], + }; +} + diff --git a/typescript/src/models/TimeDimension.ts b/typescript/src/models/TimeDimension.ts index a61cc5fa..d91c3f84 100644 --- a/typescript/src/models/TimeDimension.ts +++ b/typescript/src/models/TimeDimension.ts @@ -12,27 +12,27 @@ * Do not edit the class manually. */ -import type { TimeDimensionOneOf } from './TimeDimensionOneOf'; +import type { Irregular } from './Irregular'; import { - instanceOfTimeDimensionOneOf, - TimeDimensionOneOfFromJSON, - TimeDimensionOneOfFromJSONTyped, - TimeDimensionOneOfToJSON, -} from './TimeDimensionOneOf'; -import type { TimeDimensionOneOf1 } from './TimeDimensionOneOf1'; + instanceOfIrregular, + IrregularFromJSON, + IrregularFromJSONTyped, + IrregularToJSON, +} from './Irregular'; +import type { Regular } from './Regular'; import { - instanceOfTimeDimensionOneOf1, - TimeDimensionOneOf1FromJSON, - TimeDimensionOneOf1FromJSONTyped, - TimeDimensionOneOf1ToJSON, -} from './TimeDimensionOneOf1'; + instanceOfRegular, + RegularFromJSON, + RegularFromJSONTyped, + RegularToJSON, +} from './Regular'; /** * @type TimeDimension * * @export */ -export type TimeDimension = TimeDimensionOneOf | TimeDimensionOneOf1; +export type TimeDimension = Irregular | Regular; export function TimeDimensionFromJSON(json: any): TimeDimension { return TimeDimensionFromJSONTyped(json, false); @@ -45,11 +45,11 @@ export function TimeDimensionFromJSONTyped(json: any, ignoreDiscriminator: boole if (typeof json !== 'object') { return json; } - if (instanceOfTimeDimensionOneOf(json)) { - return TimeDimensionOneOfFromJSONTyped(json, true); + if (instanceOfIrregular(json)) { + return IrregularFromJSONTyped(json, true); } - if (instanceOfTimeDimensionOneOf1(json)) { - return TimeDimensionOneOf1FromJSONTyped(json, true); + if (instanceOfRegular(json)) { + return RegularFromJSONTyped(json, true); } return {} as any; } @@ -65,11 +65,11 @@ export function TimeDimensionToJSONTyped(value?: TimeDimension | null, ignoreDis if (typeof value !== 'object') { return value; } - if (instanceOfTimeDimensionOneOf(value)) { - return TimeDimensionOneOfToJSON(value as TimeDimensionOneOf); + if (instanceOfIrregular(value)) { + return IrregularToJSON(value as Irregular); } - if (instanceOfTimeDimensionOneOf1(value)) { - return TimeDimensionOneOf1ToJSON(value as TimeDimensionOneOf1); + if (instanceOfRegular(value)) { + return RegularToJSON(value as Regular); } return {}; } diff --git a/typescript/src/models/TimeDimensionOneOf1.ts b/typescript/src/models/TimeDimensionOneOf1.ts deleted file mode 100644 index 0bb68c09..00000000 --- a/typescript/src/models/TimeDimensionOneOf1.ts +++ /dev/null @@ -1,76 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Geo Engine API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.9.0 - * Contact: dev@geoengine.de - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { mapValues } from '../runtime'; -/** - * - * @export - * @interface TimeDimensionOneOf1 - */ -export interface TimeDimensionOneOf1 { - /** - * - * @type {TimeDimensionOneOf1TypeEnum} - * @memberof TimeDimensionOneOf1 - */ - type: TimeDimensionOneOf1TypeEnum; -} - - -/** - * @export - */ -export const TimeDimensionOneOf1TypeEnum = { - Irregular: 'irregular' -} as const; -export type TimeDimensionOneOf1TypeEnum = typeof TimeDimensionOneOf1TypeEnum[keyof typeof TimeDimensionOneOf1TypeEnum]; - - -/** - * Check if a given object implements the TimeDimensionOneOf1 interface. - */ -export function instanceOfTimeDimensionOneOf1(value: object): value is TimeDimensionOneOf1 { - if (!('type' in value) || value['type'] === undefined) return false; - return true; -} - -export function TimeDimensionOneOf1FromJSON(json: any): TimeDimensionOneOf1 { - return TimeDimensionOneOf1FromJSONTyped(json, false); -} - -export function TimeDimensionOneOf1FromJSONTyped(json: any, ignoreDiscriminator: boolean): TimeDimensionOneOf1 { - if (json == null) { - return json; - } - return { - - 'type': json['type'], - }; -} - -export function TimeDimensionOneOf1ToJSON(json: any): TimeDimensionOneOf1 { - return TimeDimensionOneOf1ToJSONTyped(json, false); -} - -export function TimeDimensionOneOf1ToJSONTyped(value?: TimeDimensionOneOf1 | null, ignoreDiscriminator: boolean = false): any { - if (value == null) { - return value; - } - - return { - - 'type': value['type'], - }; -} - diff --git a/typescript/src/models/TypedGeometry.ts b/typescript/src/models/TypedGeometry.ts index 0984c7b0..6886f2d4 100644 --- a/typescript/src/models/TypedGeometry.ts +++ b/typescript/src/models/TypedGeometry.ts @@ -12,41 +12,41 @@ * Do not edit the class manually. */ -import type { TypedGeometryOneOf } from './TypedGeometryOneOf'; +import type { MultiLineString1 } from './MultiLineString1'; import { - instanceOfTypedGeometryOneOf, - TypedGeometryOneOfFromJSON, - TypedGeometryOneOfFromJSONTyped, - TypedGeometryOneOfToJSON, -} from './TypedGeometryOneOf'; -import type { TypedGeometryOneOf1 } from './TypedGeometryOneOf1'; + instanceOfMultiLineString1, + MultiLineString1FromJSON, + MultiLineString1FromJSONTyped, + MultiLineString1ToJSON, +} from './MultiLineString1'; +import type { MultiPoint1 } from './MultiPoint1'; import { - instanceOfTypedGeometryOneOf1, - TypedGeometryOneOf1FromJSON, - TypedGeometryOneOf1FromJSONTyped, - TypedGeometryOneOf1ToJSON, -} from './TypedGeometryOneOf1'; -import type { TypedGeometryOneOf2 } from './TypedGeometryOneOf2'; + instanceOfMultiPoint1, + MultiPoint1FromJSON, + MultiPoint1FromJSONTyped, + MultiPoint1ToJSON, +} from './MultiPoint1'; +import type { MultiPolygon1 } from './MultiPolygon1'; import { - instanceOfTypedGeometryOneOf2, - TypedGeometryOneOf2FromJSON, - TypedGeometryOneOf2FromJSONTyped, - TypedGeometryOneOf2ToJSON, -} from './TypedGeometryOneOf2'; -import type { TypedGeometryOneOf3 } from './TypedGeometryOneOf3'; + instanceOfMultiPolygon1, + MultiPolygon1FromJSON, + MultiPolygon1FromJSONTyped, + MultiPolygon1ToJSON, +} from './MultiPolygon1'; +import type { NoGeometry1 } from './NoGeometry1'; import { - instanceOfTypedGeometryOneOf3, - TypedGeometryOneOf3FromJSON, - TypedGeometryOneOf3FromJSONTyped, - TypedGeometryOneOf3ToJSON, -} from './TypedGeometryOneOf3'; + instanceOfNoGeometry1, + NoGeometry1FromJSON, + NoGeometry1FromJSONTyped, + NoGeometry1ToJSON, +} from './NoGeometry1'; /** * @type TypedGeometry * * @export */ -export type TypedGeometry = TypedGeometryOneOf | TypedGeometryOneOf1 | TypedGeometryOneOf2 | TypedGeometryOneOf3; +export type TypedGeometry = MultiLineString1 | MultiPoint1 | MultiPolygon1 | NoGeometry1; export function TypedGeometryFromJSON(json: any): TypedGeometry { return TypedGeometryFromJSONTyped(json, false); @@ -59,17 +59,17 @@ export function TypedGeometryFromJSONTyped(json: any, ignoreDiscriminator: boole if (typeof json !== 'object') { return json; } - if (instanceOfTypedGeometryOneOf(json)) { - return TypedGeometryOneOfFromJSONTyped(json, true); + if (instanceOfMultiLineString1(json)) { + return MultiLineString1FromJSONTyped(json, true); } - if (instanceOfTypedGeometryOneOf1(json)) { - return TypedGeometryOneOf1FromJSONTyped(json, true); + if (instanceOfMultiPoint1(json)) { + return MultiPoint1FromJSONTyped(json, true); } - if (instanceOfTypedGeometryOneOf2(json)) { - return TypedGeometryOneOf2FromJSONTyped(json, true); + if (instanceOfMultiPolygon1(json)) { + return MultiPolygon1FromJSONTyped(json, true); } - if (instanceOfTypedGeometryOneOf3(json)) { - return TypedGeometryOneOf3FromJSONTyped(json, true); + if (instanceOfNoGeometry1(json)) { + return NoGeometry1FromJSONTyped(json, true); } return {} as any; } @@ -85,17 +85,17 @@ export function TypedGeometryToJSONTyped(value?: TypedGeometry | null, ignoreDis if (typeof value !== 'object') { return value; } - if (instanceOfTypedGeometryOneOf(value)) { - return TypedGeometryOneOfToJSON(value as TypedGeometryOneOf); + if (instanceOfMultiLineString1(value)) { + return MultiLineString1ToJSON(value as MultiLineString1); } - if (instanceOfTypedGeometryOneOf1(value)) { - return TypedGeometryOneOf1ToJSON(value as TypedGeometryOneOf1); + if (instanceOfMultiPoint1(value)) { + return MultiPoint1ToJSON(value as MultiPoint1); } - if (instanceOfTypedGeometryOneOf2(value)) { - return TypedGeometryOneOf2ToJSON(value as TypedGeometryOneOf2); + if (instanceOfMultiPolygon1(value)) { + return MultiPolygon1ToJSON(value as MultiPolygon1); } - if (instanceOfTypedGeometryOneOf3(value)) { - return TypedGeometryOneOf3ToJSON(value as TypedGeometryOneOf3); + if (instanceOfNoGeometry1(value)) { + return NoGeometry1ToJSON(value as NoGeometry1); } return {}; } diff --git a/typescript/src/models/DataPathOneOf1.ts b/typescript/src/models/Upload.ts similarity index 56% rename from typescript/src/models/DataPathOneOf1.ts rename to typescript/src/models/Upload.ts index 0ece5549..ce55ef10 100644 --- a/typescript/src/models/DataPathOneOf1.ts +++ b/typescript/src/models/Upload.ts @@ -16,30 +16,30 @@ import { mapValues } from '../runtime'; /** * * @export - * @interface DataPathOneOf1 + * @interface Upload */ -export interface DataPathOneOf1 { +export interface Upload { /** * * @type {string} - * @memberof DataPathOneOf1 + * @memberof Upload */ upload: string; } /** - * Check if a given object implements the DataPathOneOf1 interface. + * Check if a given object implements the Upload interface. */ -export function instanceOfDataPathOneOf1(value: object): value is DataPathOneOf1 { +export function instanceOfUpload(value: object): value is Upload { if (!('upload' in value) || value['upload'] === undefined) return false; return true; } -export function DataPathOneOf1FromJSON(json: any): DataPathOneOf1 { - return DataPathOneOf1FromJSONTyped(json, false); +export function UploadFromJSON(json: any): Upload { + return UploadFromJSONTyped(json, false); } -export function DataPathOneOf1FromJSONTyped(json: any, ignoreDiscriminator: boolean): DataPathOneOf1 { +export function UploadFromJSONTyped(json: any, ignoreDiscriminator: boolean): Upload { if (json == null) { return json; } @@ -49,11 +49,11 @@ export function DataPathOneOf1FromJSONTyped(json: any, ignoreDiscriminator: bool }; } -export function DataPathOneOf1ToJSON(json: any): DataPathOneOf1 { - return DataPathOneOf1ToJSONTyped(json, false); +export function UploadToJSON(json: any): Upload { + return UploadToJSONTyped(json, false); } -export function DataPathOneOf1ToJSONTyped(value?: DataPathOneOf1 | null, ignoreDiscriminator: boolean = false): any { +export function UploadToJSONTyped(value?: Upload | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } diff --git a/typescript/src/models/Values.ts b/typescript/src/models/Values.ts new file mode 100644 index 00000000..8fae85ee --- /dev/null +++ b/typescript/src/models/Values.ts @@ -0,0 +1,74 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +import type { ValuesValues } from './ValuesValues'; +import { + ValuesValuesFromJSON, + ValuesValuesFromJSONTyped, + ValuesValuesToJSON, + ValuesValuesToJSONTyped, +} from './ValuesValues'; + +/** + * + * @export + * @interface Values + */ +export interface Values { + /** + * + * @type {ValuesValues} + * @memberof Values + */ + values: ValuesValues; +} + +/** + * Check if a given object implements the Values interface. + */ +export function instanceOfValues(value: object): value is Values { + if (!('values' in value) || value['values'] === undefined) return false; + return true; +} + +export function ValuesFromJSON(json: any): Values { + return ValuesFromJSONTyped(json, false); +} + +export function ValuesFromJSONTyped(json: any, ignoreDiscriminator: boolean): Values { + if (json == null) { + return json; + } + return { + + 'values': ValuesValuesFromJSON(json['values']), + }; +} + +export function ValuesToJSON(json: any): Values { + return ValuesToJSONTyped(json, false); +} + +export function ValuesToJSONTyped(value?: Values | null, ignoreDiscriminator: boolean = false): any { + if (value == null) { + return value; + } + + return { + + 'values': ValuesValuesToJSON(value['values']), + }; +} + diff --git a/typescript/src/models/HistogramBoundsOneOf1Values.ts b/typescript/src/models/ValuesValues.ts similarity index 52% rename from typescript/src/models/HistogramBoundsOneOf1Values.ts rename to typescript/src/models/ValuesValues.ts index 3327e50c..098600d5 100644 --- a/typescript/src/models/HistogramBoundsOneOf1Values.ts +++ b/typescript/src/models/ValuesValues.ts @@ -16,37 +16,37 @@ import { mapValues } from '../runtime'; /** * * @export - * @interface HistogramBoundsOneOf1Values + * @interface ValuesValues */ -export interface HistogramBoundsOneOf1Values { +export interface ValuesValues { /** * * @type {number} - * @memberof HistogramBoundsOneOf1Values + * @memberof ValuesValues */ max: number; /** * * @type {number} - * @memberof HistogramBoundsOneOf1Values + * @memberof ValuesValues */ min: number; } /** - * Check if a given object implements the HistogramBoundsOneOf1Values interface. + * Check if a given object implements the ValuesValues interface. */ -export function instanceOfHistogramBoundsOneOf1Values(value: object): value is HistogramBoundsOneOf1Values { +export function instanceOfValuesValues(value: object): value is ValuesValues { if (!('max' in value) || value['max'] === undefined) return false; if (!('min' in value) || value['min'] === undefined) return false; return true; } -export function HistogramBoundsOneOf1ValuesFromJSON(json: any): HistogramBoundsOneOf1Values { - return HistogramBoundsOneOf1ValuesFromJSONTyped(json, false); +export function ValuesValuesFromJSON(json: any): ValuesValues { + return ValuesValuesFromJSONTyped(json, false); } -export function HistogramBoundsOneOf1ValuesFromJSONTyped(json: any, ignoreDiscriminator: boolean): HistogramBoundsOneOf1Values { +export function ValuesValuesFromJSONTyped(json: any, ignoreDiscriminator: boolean): ValuesValues { if (json == null) { return json; } @@ -57,11 +57,11 @@ export function HistogramBoundsOneOf1ValuesFromJSONTyped(json: any, ignoreDiscri }; } -export function HistogramBoundsOneOf1ValuesToJSON(json: any): HistogramBoundsOneOf1Values { - return HistogramBoundsOneOf1ValuesToJSONTyped(json, false); +export function ValuesValuesToJSON(json: any): ValuesValues { + return ValuesValuesToJSONTyped(json, false); } -export function HistogramBoundsOneOf1ValuesToJSONTyped(value?: HistogramBoundsOneOf1Values | null, ignoreDiscriminator: boolean = false): any { +export function ValuesValuesToJSONTyped(value?: ValuesValues | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } diff --git a/typescript/src/models/VectorOperator.ts b/typescript/src/models/VectorOperator.ts index 531e1404..875f6b66 100644 --- a/typescript/src/models/VectorOperator.ts +++ b/typescript/src/models/VectorOperator.ts @@ -26,13 +26,20 @@ import { RasterVectorJoinFromJSONTyped, RasterVectorJoinToJSON, } from './RasterVectorJoin'; +import type { Reprojection } from './Reprojection'; +import { + instanceOfReprojection, + ReprojectionFromJSON, + ReprojectionFromJSONTyped, + ReprojectionToJSON, +} from './Reprojection'; /** * @type VectorOperator * An operator that produces vector data. * @export */ -export type VectorOperator = { type: 'MockPointSource' } & MockPointSource | { type: 'RasterVectorJoin' } & RasterVectorJoin; +export type VectorOperator = { type: 'MockPointSource' } & MockPointSource | { type: 'RasterVectorJoin' } & RasterVectorJoin | { type: 'Reprojection' } & Reprojection; export function VectorOperatorFromJSON(json: any): VectorOperator { return VectorOperatorFromJSONTyped(json, false); @@ -47,6 +54,8 @@ export function VectorOperatorFromJSONTyped(json: any, ignoreDiscriminator: bool return Object.assign({}, MockPointSourceFromJSONTyped(json, true), { type: 'MockPointSource' } as const); case 'RasterVectorJoin': return Object.assign({}, RasterVectorJoinFromJSONTyped(json, true), { type: 'RasterVectorJoin' } as const); + case 'Reprojection': + return Object.assign({}, ReprojectionFromJSONTyped(json, true), { type: 'Reprojection' } as const); default: return json; } @@ -65,6 +74,8 @@ export function VectorOperatorToJSONTyped(value?: VectorOperator | null, ignoreD return Object.assign({}, MockPointSourceToJSON(value), { type: 'MockPointSource' } as const); case 'RasterVectorJoin': return Object.assign({}, RasterVectorJoinToJSON(value), { type: 'RasterVectorJoin' } as const); + case 'Reprojection': + return Object.assign({}, ReprojectionToJSON(value), { type: 'Reprojection' } as const); default: return value; } diff --git a/typescript/src/models/DataPathOneOf.ts b/typescript/src/models/Volume1.ts similarity index 56% rename from typescript/src/models/DataPathOneOf.ts rename to typescript/src/models/Volume1.ts index 5d3ae2d6..87f85a8a 100644 --- a/typescript/src/models/DataPathOneOf.ts +++ b/typescript/src/models/Volume1.ts @@ -16,30 +16,30 @@ import { mapValues } from '../runtime'; /** * * @export - * @interface DataPathOneOf + * @interface Volume1 */ -export interface DataPathOneOf { +export interface Volume1 { /** * * @type {string} - * @memberof DataPathOneOf + * @memberof Volume1 */ volume: string; } /** - * Check if a given object implements the DataPathOneOf interface. + * Check if a given object implements the Volume1 interface. */ -export function instanceOfDataPathOneOf(value: object): value is DataPathOneOf { +export function instanceOfVolume1(value: object): value is Volume1 { if (!('volume' in value) || value['volume'] === undefined) return false; return true; } -export function DataPathOneOfFromJSON(json: any): DataPathOneOf { - return DataPathOneOfFromJSONTyped(json, false); +export function Volume1FromJSON(json: any): Volume1 { + return Volume1FromJSONTyped(json, false); } -export function DataPathOneOfFromJSONTyped(json: any, ignoreDiscriminator: boolean): DataPathOneOf { +export function Volume1FromJSONTyped(json: any, ignoreDiscriminator: boolean): Volume1 { if (json == null) { return json; } @@ -49,11 +49,11 @@ export function DataPathOneOfFromJSONTyped(json: any, ignoreDiscriminator: boole }; } -export function DataPathOneOfToJSON(json: any): DataPathOneOf { - return DataPathOneOfToJSONTyped(json, false); +export function Volume1ToJSON(json: any): Volume1 { + return Volume1ToJSONTyped(json, false); } -export function DataPathOneOfToJSONTyped(value?: DataPathOneOf | null, ignoreDiscriminator: boolean = false): any { +export function Volume1ToJSONTyped(value?: Volume1 | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } diff --git a/typescript/src/models/index.ts b/typescript/src/models/index.ts index 1acc6f78..829e94e3 100644 --- a/typescript/src/models/index.ts +++ b/typescript/src/models/index.ts @@ -4,11 +4,15 @@ export * from './AddDataset'; export * from './AddLayer'; export * from './AddLayerCollection'; export * from './AddRole'; +export * from './Aggregation'; export * from './ArunaDataProviderDefinition'; export * from './AuthCodeRequestURL'; export * from './AuthCodeResponse'; export * from './AutoCreateDataset'; export * from './AxisOrder'; +export * from './BandFilter'; +export * from './BandFilterParameters'; +export * from './BandsByNameOrIndex'; export * from './BoundingBox2D'; export * from './Breakpoint'; export * from './ClassificationMeasurement'; @@ -21,13 +25,13 @@ export * from './ComputationQuota'; export * from './ContinuousMeasurement'; export * from './Coordinate2D'; export * from './CopernicusDataspaceDataProviderDefinition'; +export * from './CountAggregation'; export * from './CreateDataset'; export * from './CreateProject'; export * from './CsvHeader'; +export * from './Data1'; export * from './DataId'; export * from './DataPath'; -export * from './DataPathOneOf'; -export * from './DataPathOneOf1'; export * from './DataProviderResource'; export * from './DataUsage'; export * from './DataUsageSummary'; @@ -40,6 +44,7 @@ export * from './DatasetListing'; export * from './DatasetNameResponse'; export * from './DatasetResource'; export * from './Default'; +export * from './DeriveOutRasterSpecsSource'; export * from './DerivedColor'; export * from './DerivedNumber'; export * from './EbvPortalDataProviderDefinition'; @@ -52,8 +57,10 @@ export * from './ExternalDataId'; export * from './FeatureAggregationMethod'; export * from './FeatureDataType'; export * from './FileNotFoundHandling'; +export * from './FirstAggregation'; export * from './FormatSpecifics'; export * from './FormatSpecificsCsv'; +export * from './Fraction'; export * from './GbifDataProviderDefinition'; export * from './GdalDatasetParameters'; export * from './GdalLoadingInfoTemporalSlice'; @@ -76,15 +83,16 @@ export * from './GridBoundingBox2D'; export * from './GridIdx2D'; export * from './Histogram'; export * from './HistogramBounds'; -export * from './HistogramBoundsOneOf'; -export * from './HistogramBoundsOneOf1'; -export * from './HistogramBoundsOneOf1Values'; export * from './HistogramBuckets'; -export * from './HistogramBucketsOneOf'; -export * from './HistogramBucketsOneOf1'; export * from './HistogramParameters'; export * from './IdResponse'; export * from './InternalDataId'; +export * from './Interpolation'; +export * from './InterpolationMethod'; +export * from './InterpolationParameters'; +export * from './InterpolationResolution'; +export * from './Irregular'; +export * from './LastAggregation'; export * from './Layer'; export * from './LayerCollection'; export * from './LayerCollectionListing'; @@ -98,9 +106,12 @@ export * from './LegacyTypedOperatorOperator'; export * from './LineSymbology'; export * from './LinearGradient'; export * from './LogarithmicGradient'; +export * from './MaxAggregation'; +export * from './MeanAggregation'; export * from './Measurement'; export * from './MetaDataDefinition'; export * from './MetaDataSuggestion'; +export * from './MinAggregation'; export * from './MlModel'; export * from './MlModelInputNoDataHandling'; export * from './MlModelInputNoDataHandlingVariant'; @@ -114,14 +125,21 @@ export * from './MockDatasetDataSourceLoadingInfo'; export * from './MockMetaData'; export * from './MockPointSource'; export * from './MockPointSourceParameters'; +export * from './MultiBandGdalSource'; export * from './MultiBandRasterColorizer'; export * from './MultiLineString'; +export * from './MultiLineString1'; export * from './MultiPoint'; +export * from './MultiPoint1'; export * from './MultiPolygon'; +export * from './MultiPolygon1'; export * from './MultipleRasterOrSingleVectorOperator'; export * from './MultipleRasterOrSingleVectorSource'; +export * from './MultipleRasterSources'; export * from './Names'; export * from './NetCdfCfDataProviderDefinition'; +export * from './NoGeometry1'; +export * from './Number'; export * from './NumberParam'; export * from './OgrMetaData'; export * from './OgrSourceColumnSpec'; @@ -144,6 +162,7 @@ export * from './OperatorQuota'; export * from './OrderBy'; export * from './PaletteColorizer'; export * from './PangaeaDataProviderDefinition'; +export * from './PercentileEstimateAggregation'; export * from './Permission'; export * from './PermissionListing'; export * from './PermissionRequest'; @@ -174,12 +193,22 @@ export * from './RasterOperator'; export * from './RasterPropertiesEntryType'; export * from './RasterPropertiesKey'; export * from './RasterResultDescriptor'; +export * from './RasterStacker'; +export * from './RasterStackerParameters'; export * from './RasterStreamWebsocketResultType'; export * from './RasterSymbology'; export * from './RasterToDatasetQueryRectangle'; +export * from './RasterTypeConversion'; +export * from './RasterTypeConversionParameters'; export * from './RasterVectorJoin'; export * from './RasterVectorJoinParameters'; +export * from './Regular'; export * from './RegularTimeDimension'; +export * from './Rename'; +export * from './RenameBands'; +export * from './Reprojection'; +export * from './ReprojectionParameters'; +export * from './Resolution'; export * from './Resource'; export * from './Role'; export * from './RoleDescription'; @@ -203,6 +232,7 @@ export * from './SpatialGridDescriptor'; export * from './SpatialGridDescriptorState'; export * from './SpatialPartition2D'; export * from './SpatialReferenceSpecification'; +export * from './SquareRootChoiceRule'; export * from './StacApiRetries'; export * from './StacQueryBuffer'; export * from './StaticColor'; @@ -212,6 +242,7 @@ export * from './StatisticsParameters'; export * from './StrokeParam'; export * from './Suffix'; export * from './SuggestMetaData'; +export * from './SumAggregation'; export * from './Symbology'; export * from './TaskFilter'; export * from './TaskResponse'; @@ -222,21 +253,17 @@ export * from './TaskStatusFailed'; export * from './TaskStatusRunning'; export * from './TaskStatusWithId'; export * from './TemporalAggregationMethod'; +export * from './TemporalRasterAggregation'; +export * from './TemporalRasterAggregationParameters'; export * from './TextSymbology'; export * from './TimeDescriptor'; export * from './TimeDimension'; -export * from './TimeDimensionOneOf'; -export * from './TimeDimensionOneOf1'; export * from './TimeGranularity'; export * from './TimeInterval'; export * from './TimeReference'; export * from './TimeStep'; export * from './TypedDataProviderDefinition'; export * from './TypedGeometry'; -export * from './TypedGeometryOneOf'; -export * from './TypedGeometryOneOf1'; -export * from './TypedGeometryOneOf2'; -export * from './TypedGeometryOneOf3'; export * from './TypedOperator'; export * from './TypedPlotOperator'; export * from './TypedPlotResultDescriptor'; @@ -252,6 +279,7 @@ export * from './UpdateLayer'; export * from './UpdateLayerCollection'; export * from './UpdateProject'; export * from './UpdateQuota'; +export * from './Upload'; export * from './UploadFileLayersResponse'; export * from './UploadFilesResponse'; export * from './UsageSummaryGranularity'; @@ -259,12 +287,15 @@ export * from './UserCredentials'; export * from './UserInfo'; export * from './UserRegistration'; export * from './UserSession'; +export * from './Values'; +export * from './ValuesValues'; export * from './VecUpdate'; export * from './VectorColumnInfo'; export * from './VectorDataType'; export * from './VectorOperator'; export * from './VectorResultDescriptor'; export * from './Volume'; +export * from './Volume1'; export * from './VolumeFileLayersResponse'; export * from './WcsRequest'; export * from './WcsService'; From e48da0b9b1bedee707f4e73da29ab48cbc3326e1 Mon Sep 17 00:00:00 2001 From: Michael Mattig Date: Thu, 9 Apr 2026 15:55:53 +0000 Subject: [PATCH 2/2] fix degenerated enum names OneOf --- .generation/input/openapi.json | 247 ++-- .generation/post-process/typescript.py | 9 + justfile | 25 +- package-lock.json | 1283 +++++++++++++++++ python/.openapi-generator/FILES | 72 +- python/README.md | 24 +- python/geoengine_openapi_client/__init__.py | 48 +- .../models/__init__.py | 24 +- .../geoengine_openapi_client/models/data.py | 37 + .../models/data_path.py | 48 +- .../models/{upload.py => data_path_upload.py} | 8 +- .../{volume1.py => data_path_volume.py} | 8 +- .../models/histogram.py | 6 +- .../models/histogram_bounds.py | 48 +- ...s_values.py => histogram_bounds_values.py} | 8 +- .../models/histogram_buckets.py | 66 +- ...{number.py => histogram_buckets_number.py} | 8 +- ...togram_buckets_square_root_choice_rule.py} | 8 +- .../models/histogram_parameters.py | 8 +- .../models/ogr_source.py | 101 ++ .../{data1.py => ogr_source_parameters.py} | 22 +- .../single_raster_or_vector_operator.py | 5 + ...s.py => single_vector_or_raster_source.py} | 22 +- .../models/typed_geometry.py | 80 +- ...py => typed_geometry_multi_line_string.py} | 8 +- ...oint1.py => typed_geometry_multi_point.py} | 8 +- ...on1.py => typed_geometry_multi_polygon.py} | 8 +- ...etry1.py => typed_geometry_no_geometry.py} | 8 +- .../models/vector_operator.py | 39 +- python/test/test_data.py | 34 + ...est_upload.py => test_data_path_upload.py} | 22 +- ...st_volume1.py => test_data_path_volume.py} | 22 +- python/test/test_histogram.py | 12 +- python/test/test_histogram_bounds.py | 12 +- ...ues.py => test_histogram_bounds_values.py} | 22 +- ...er.py => test_histogram_buckets_number.py} | 22 +- ...togram_buckets_square_root_choice_rule.py} | 22 +- python/test/test_histogram_parameters.py | 4 +- python/test/test_ogr_source.py | 63 + ...etry1.py => test_ogr_source_parameters.py} | 29 +- .../test_single_vector_or_raster_source.py | 53 + ... test_typed_geometry_multi_line_string.py} | 22 +- ....py => test_typed_geometry_multi_point.py} | 22 +- ...y => test_typed_geometry_multi_polygon.py} | 22 +- ....py => test_typed_geometry_no_geometry.py} | 22 +- python/test/test_values.py | 57 - rust/.openapi-generator/FILES | 48 +- rust/README.md | 24 +- rust/docs/{Upload.md => Data.md} | 11 +- rust/docs/DataPath.md | 4 +- .../{DataPathOneOf1.md => DataPathUpload.md} | 2 +- rust/docs/{Volume1.md => DataPathVolume.md} | 2 +- rust/docs/Histogram.md | 2 +- rust/docs/HistogramBounds.md | 4 +- rust/docs/HistogramBoundsOneOf1.md | 11 - rust/docs/HistogramBoundsOneOf1Values.md | 12 - ...luesValues.md => HistogramBoundsValues.md} | 2 +- rust/docs/HistogramBuckets.md | 4 +- ...ketsOneOf.md => HistogramBucketsNumber.md} | 2 +- ...> HistogramBucketsSquareRootChoiceRule.md} | 2 +- rust/docs/HistogramParameters.md | 4 +- rust/docs/NoGeometry1.md | 11 - rust/docs/Number.md | 12 - .../{HistogramBoundsOneOf.md => OgrSource.md} | 5 +- rust/docs/OgrSourceParameters.md | 12 + ...OneOf.md => SingleVectorOrRasterSource.md} | 4 +- rust/docs/SquareRootChoiceRule.md | 12 - rust/docs/TimeDimensionOneOf.md | 13 - rust/docs/TimeDimensionOneOf1.md | 11 - rust/docs/TypedGeometry.md | 8 +- ...ng1.md => TypedGeometryMultiLineString.md} | 2 +- ...tiPoint1.md => TypedGeometryMultiPoint.md} | 2 +- ...lygon1.md => TypedGeometryMultiPolygon.md} | 2 +- .../{Data1.md => TypedGeometryNoGeometry.md} | 2 +- rust/docs/TypedGeometryOneOf.md | 11 - rust/docs/TypedGeometryOneOf1.md | 11 - rust/docs/TypedGeometryOneOf2.md | 11 - rust/docs/TypedGeometryOneOf3.md | 11 - rust/docs/TypedOperatorOneOf.md | 12 - rust/docs/TypedOperatorOneOf1.md | 12 - rust/docs/TypedOperatorOneOf2.md | 12 - rust/docs/Values.md | 11 - .../{time_dimension_one_of_1.rs => data.rs} | 30 +- rust/src/models/data_1.rs | 27 - rust/src/models/data_path.rs | 6 +- rust/src/models/data_path_one_of.rs | 27 - ...a_path_one_of_1.rs => data_path_upload.rs} | 8 +- .../{volume_1.rs => data_path_volume.rs} | 8 +- rust/src/models/histogram.rs | 4 +- rust/src/models/histogram_bounds.rs | 6 +- rust/src/models/histogram_bounds_one_of.rs | 27 - rust/src/models/histogram_bounds_one_of_1.rs | 27 - .../histogram_bounds_one_of_1_values.rs | 30 - ...s_values.rs => histogram_bounds_values.rs} | 8 +- rust/src/models/histogram_buckets.rs | 21 +- ..._one_of.rs => histogram_buckets_number.rs} | 8 +- ...togram_buckets_square_root_choice_rule.rs} | 8 +- rust/src/models/histogram_parameters.rs | 12 +- rust/src/models/mod.rs | 48 +- rust/src/models/multi_line_string_1.rs | 27 - rust/src/models/multi_point_1.rs | 27 - rust/src/models/multi_polygon_1.rs | 27 - rust/src/models/no_geometry_1.rs | 27 - rust/src/models/number.rs | 42 - rust/src/models/ogr_source.rs | 44 + rust/src/models/ogr_source_parameters.rs | 34 + .../models/single_vector_or_raster_source.rs | 29 + rust/src/models/square_root_choice_rule.rs | 42 - rust/src/models/time_dimension_one_of.rs | 45 - rust/src/models/typed_geometry.rs | 10 +- ...rs => typed_geometry_multi_line_string.rs} | 8 +- ..._of_1.rs => typed_geometry_multi_point.rs} | 8 +- ...f_3.rs => typed_geometry_multi_polygon.rs} | 8 +- ...ne_of.rs => typed_geometry_no_geometry.rs} | 8 +- rust/src/models/typed_operator_one_of.rs | 42 - rust/src/models/typed_operator_one_of_1.rs | 42 - rust/src/models/typed_operator_one_of_2.rs | 42 - rust/src/models/upload.rs | 27 - rust/src/models/values.rs | 27 - rust/src/models/vector_operator.rs | 2 + typescript/README.md | 24 +- .../src/models/HistogramBounds.ts.diff | 11 + .../src/models/VectorOperator.ts.diff | 2 +- typescript/dist/esm/models/Data.d.ts | 24 + typescript/dist/esm/models/Data.js | 42 + typescript/dist/esm/models/Data1.d.ts | 32 - typescript/dist/esm/models/Data1.js | 43 - typescript/dist/esm/models/DataPath.d.ts | 6 +- typescript/dist/esm/models/DataPath.js | 20 +- .../dist/esm/models/DataPathUpload.d.ts | 32 + .../models/{Upload.js => DataPathUpload.js} | 16 +- .../dist/esm/models/DataPathVolume.d.ts | 32 + .../models/{Volume1.js => DataPathVolume.js} | 16 +- typescript/dist/esm/models/Histogram.d.ts | 6 +- typescript/dist/esm/models/Histogram.js | 6 +- .../dist/esm/models/HistogramBounds.d.ts | 6 +- typescript/dist/esm/models/HistogramBounds.js | 20 +- .../esm/models/HistogramBoundsValues.d.ts | 38 + ...luesValues.js => HistogramBoundsValues.js} | 16 +- .../dist/esm/models/HistogramBuckets.d.ts | 10 +- .../dist/esm/models/HistogramBuckets.js | 36 +- .../esm/models/HistogramBucketsNumber.d.ts | 45 + .../{Number.js => HistogramBucketsNumber.js} | 18 +- .../HistogramBucketsSquareRootChoiceRule.d.ts | 45 + ...> HistogramBucketsSquareRootChoiceRule.js} | 18 +- .../dist/esm/models/HistogramParameters.d.ts | 15 +- .../dist/esm/models/HistogramParameters.js | 8 +- .../dist/esm/models/MultiLineString1.d.ts | 33 - typescript/dist/esm/models/MultiPoint1.d.ts | 33 - typescript/dist/esm/models/MultiPolygon1.d.ts | 33 - typescript/dist/esm/models/NoGeometry1.d.ts | 32 - typescript/dist/esm/models/Number.d.ts | 45 - typescript/dist/esm/models/OgrSource.d.ts | 52 + typescript/dist/esm/models/OgrSource.js | 54 + .../dist/esm/models/OgrSourceParameters.d.ts | 38 + .../models/OgrSourceParameters.js} | 25 +- .../models/SingleVectorOrRasterSource.d.ts | 33 + .../esm/models/SingleVectorOrRasterSource.js | 44 + .../dist/esm/models/SquareRootChoiceRule.d.ts | 45 - typescript/dist/esm/models/TypedGeometry.d.ts | 10 +- typescript/dist/esm/models/TypedGeometry.js | 40 +- .../models/TypedGeometryMultiLineString.d.ts | 33 + ...ng1.js => TypedGeometryMultiLineString.js} | 16 +- .../esm/models/TypedGeometryMultiPoint.d.ts | 33 + ...tiPoint1.js => TypedGeometryMultiPoint.js} | 16 +- .../esm/models/TypedGeometryMultiPolygon.d.ts | 33 + ...lygon1.js => TypedGeometryMultiPolygon.js} | 16 +- .../esm/models/TypedGeometryNoGeometry.d.ts | 32 + ...eometry1.js => TypedGeometryNoGeometry.js} | 16 +- typescript/dist/esm/models/Upload.d.ts | 32 - typescript/dist/esm/models/Values.d.ts | 33 - typescript/dist/esm/models/Values.js | 44 - typescript/dist/esm/models/ValuesValues.d.ts | 38 - .../dist/esm/models/VectorOperator.d.ts | 3 + typescript/dist/esm/models/VectorOperator.js | 5 + typescript/dist/esm/models/Volume1.d.ts | 32 - typescript/dist/esm/models/index.d.ts | 24 +- typescript/dist/esm/models/index.js | 24 +- typescript/dist/models/Data.d.ts | 24 + typescript/dist/models/Data.js | 50 + typescript/dist/models/Data1.d.ts | 32 - typescript/dist/models/DataPath.d.ts | 6 +- typescript/dist/models/DataPath.js | 20 +- typescript/dist/models/DataPathUpload.d.ts | 32 + .../models/{Upload.js => DataPathUpload.js} | 26 +- typescript/dist/models/DataPathVolume.d.ts | 32 + .../models/{Volume1.js => DataPathVolume.js} | 26 +- typescript/dist/models/Histogram.d.ts | 6 +- typescript/dist/models/Histogram.js | 6 +- typescript/dist/models/HistogramBounds.d.ts | 6 +- typescript/dist/models/HistogramBounds.js | 20 +- .../dist/models/HistogramBoundsValues.d.ts | 38 + ...luesValues.js => HistogramBoundsValues.js} | 26 +- typescript/dist/models/HistogramBuckets.d.ts | 10 +- typescript/dist/models/HistogramBuckets.js | 36 +- .../dist/models/HistogramBucketsNumber.d.ts | 45 + .../{Number.js => HistogramBucketsNumber.js} | 30 +- .../HistogramBucketsSquareRootChoiceRule.d.ts | 45 + .../HistogramBucketsSquareRootChoiceRule.js | 59 + .../dist/models/HistogramParameters.d.ts | 15 +- typescript/dist/models/HistogramParameters.js | 8 +- typescript/dist/models/MultiLineString1.d.ts | 33 - typescript/dist/models/MultiPoint1.d.ts | 33 - typescript/dist/models/MultiPolygon1.d.ts | 33 - typescript/dist/models/NoGeometry1.d.ts | 32 - typescript/dist/models/NoGeometry1.js | 50 - typescript/dist/models/Number.d.ts | 45 - typescript/dist/models/OgrSource.d.ts | 52 + typescript/dist/models/OgrSource.js | 62 + .../dist/models/OgrSourceParameters.d.ts | 38 + typescript/dist/models/OgrSourceParameters.js | 52 + .../models/SingleVectorOrRasterSource.d.ts | 33 + .../dist/models/SingleVectorOrRasterSource.js | 51 + .../dist/models/SquareRootChoiceRule.d.ts | 45 - .../dist/models/SquareRootChoiceRule.js | 59 - typescript/dist/models/TypedGeometry.d.ts | 10 +- typescript/dist/models/TypedGeometry.js | 40 +- .../models/TypedGeometryMultiLineString.d.ts | 33 + ...ng1.js => TypedGeometryMultiLineString.js} | 26 +- .../dist/models/TypedGeometryMultiPoint.d.ts | 33 + ...tiPoint1.js => TypedGeometryMultiPoint.js} | 26 +- .../models/TypedGeometryMultiPolygon.d.ts | 33 + ...lygon1.js => TypedGeometryMultiPolygon.js} | 26 +- .../dist/models/TypedGeometryNoGeometry.d.ts | 32 + .../dist/models/TypedGeometryNoGeometry.js | 50 + typescript/dist/models/Upload.d.ts | 32 - typescript/dist/models/Values.d.ts | 33 - typescript/dist/models/Values.js | 51 - typescript/dist/models/ValuesValues.d.ts | 38 - typescript/dist/models/VectorOperator.d.ts | 3 + typescript/dist/models/VectorOperator.js | 5 + typescript/dist/models/Volume1.d.ts | 32 - typescript/dist/models/index.d.ts | 24 +- typescript/dist/models/index.js | 24 +- typescript/docs/AddDatasetTile.md | 42 - typescript/docs/{Data1.md => Data.md} | 10 +- .../docs/{Upload.md => DataPathUpload.md} | 8 +- .../{DataPathOneOf.md => DataPathVolume.md} | 8 +- typescript/docs/GdalDatasetGeoTransform.md | 38 - typescript/docs/Histogram.md | 2 +- typescript/docs/HistogramBounds.md | 8 +- typescript/docs/HistogramBoundsOneOf1.md | 34 - ...eOf1Values.md => HistogramBoundsValues.md} | 8 +- ...ketsOneOf.md => HistogramBucketsNumber.md} | 8 +- ...> HistogramBucketsSquareRootChoiceRule.md} | 8 +- typescript/docs/HistogramParameters.md | 4 +- typescript/docs/Number.md | 36 - ...{TypedOperatorOperator.md => OgrSource.md} | 13 +- ...mBoundsOneOf.md => OgrSourceParameters.md} | 13 +- typescript/docs/PermissionListOptions.md | 36 - typescript/docs/ProvenanceOutput.md | 36 - .../docs/RasterDatasetFromWorkflowResult.md | 37 - ...neOf1.md => SingleVectorOrRasterSource.md} | 13 +- typescript/docs/SpatialReferenceAuthority.md | 33 - typescript/docs/SpatialResolution.md | 37 - typescript/docs/SquareRootChoiceRule.md | 36 - typescript/docs/TaskAbortOptions.md | 34 - typescript/docs/TaskListOptions.md | 38 - typescript/docs/TimeDimensionOneOf.md | 34 - typescript/docs/TimeDimensionOneOf1.md | 34 - ...ng1.md => TypedGeometryMultiLineString.md} | 8 +- ...tiPoint1.md => TypedGeometryMultiPoint.md} | 8 +- ...lygon1.md => TypedGeometryMultiPolygon.md} | 8 +- ...eometry1.md => TypedGeometryNoGeometry.md} | 8 +- typescript/docs/TypedGeometryOneOf.md | 34 - typescript/docs/TypedGeometryOneOf1.md | 34 - typescript/docs/TypedGeometryOneOf2.md | 34 - typescript/docs/TypedGeometryOneOf3.md | 34 - typescript/docs/TypedOperatorOneOf.md | 36 - typescript/docs/TypedOperatorOneOf1.md | 36 - typescript/docs/TypedOperatorOneOf2.md | 36 - typescript/docs/Values.md | 34 - typescript/docs/ValuesValues.md | 36 - typescript/docs/Volume1.md | 34 - typescript/docs/WcsBoundingbox.md | 36 - typescript/package.json | 3 +- typescript/src/models/Data.ts | 52 + typescript/src/models/Data1.ts | 66 - typescript/src/models/DataPath.ts | 42 +- .../models/{Upload.ts => DataPathUpload.ts} | 22 +- .../models/{Volume1.ts => DataPathVolume.ts} | 22 +- typescript/src/models/Histogram.ts | 22 +- typescript/src/models/HistogramBounds.ts | 42 +- ...luesValues.ts => HistogramBoundsValues.ts} | 24 +- typescript/src/models/HistogramBuckets.ts | 58 +- .../src/models/HistogramBucketsNumber.ts | 85 ++ .../HistogramBucketsSquareRootChoiceRule.ts | 84 ++ typescript/src/models/HistogramParameters.ts | 21 +- typescript/src/models/Number.ts | 85 -- typescript/src/models/OgrSource.ts | 99 ++ typescript/src/models/OgrSourceParameters.ts | 74 + .../src/models/SingleVectorOrRasterSource.ts | 74 + typescript/src/models/SquareRootChoiceRule.ts | 84 -- typescript/src/models/TypedGeometry.ts | 82 +- ...ng1.ts => TypedGeometryMultiLineString.ts} | 22 +- ...tiPoint1.ts => TypedGeometryMultiPoint.ts} | 22 +- ...lygon1.ts => TypedGeometryMultiPolygon.ts} | 22 +- ...eometry1.ts => TypedGeometryNoGeometry.ts} | 22 +- typescript/src/models/Values.ts | 74 - typescript/src/models/VectorOperator.ts | 13 +- typescript/src/models/index.ts | 24 +- 301 files changed, 5121 insertions(+), 4386 deletions(-) create mode 100644 package-lock.json create mode 100644 python/geoengine_openapi_client/models/data.py rename python/geoengine_openapi_client/models/{upload.py => data_path_upload.py} (92%) rename python/geoengine_openapi_client/models/{volume1.py => data_path_volume.py} (92%) rename python/geoengine_openapi_client/models/{values_values.py => histogram_bounds_values.py} (91%) rename python/geoengine_openapi_client/models/{number.py => histogram_buckets_number.py} (92%) rename python/geoengine_openapi_client/models/{square_root_choice_rule.py => histogram_buckets_square_root_choice_rule.py} (91%) create mode 100644 python/geoengine_openapi_client/models/ogr_source.py rename python/geoengine_openapi_client/models/{data1.py => ogr_source_parameters.py} (70%) rename python/geoengine_openapi_client/models/{values.py => single_vector_or_raster_source.py} (76%) rename python/geoengine_openapi_client/models/{multi_line_string1.py => typed_geometry_multi_line_string.py} (91%) rename python/geoengine_openapi_client/models/{multi_point1.py => typed_geometry_multi_point.py} (92%) rename python/geoengine_openapi_client/models/{multi_polygon1.py => typed_geometry_multi_polygon.py} (92%) rename python/geoengine_openapi_client/models/{no_geometry1.py => typed_geometry_no_geometry.py} (92%) create mode 100644 python/test/test_data.py rename python/test/{test_upload.py => test_data_path_upload.py} (65%) rename python/test/{test_volume1.py => test_data_path_volume.py} (65%) rename python/test/{test_values_values.py => test_histogram_bounds_values.py} (63%) rename python/test/{test_number.py => test_histogram_buckets_number.py} (63%) rename python/test/{test_square_root_choice_rule.py => test_histogram_buckets_square_root_choice_rule.py} (57%) create mode 100644 python/test/test_ogr_source.py rename python/test/{test_no_geometry1.py => test_ogr_source_parameters.py} (56%) create mode 100644 python/test/test_single_vector_or_raster_source.py rename python/test/{test_multi_line_string1.py => test_typed_geometry_multi_line_string.py} (71%) rename python/test/{test_multi_point1.py => test_typed_geometry_multi_point.py} (71%) rename python/test/{test_multi_polygon1.py => test_typed_geometry_multi_polygon.py} (74%) rename python/test/{test_data1.py => test_typed_geometry_no_geometry.py} (61%) delete mode 100644 python/test/test_values.py rename rust/docs/{Upload.md => Data.md} (52%) rename rust/docs/{DataPathOneOf1.md => DataPathUpload.md} (94%) rename rust/docs/{Volume1.md => DataPathVolume.md} (94%) delete mode 100644 rust/docs/HistogramBoundsOneOf1.md delete mode 100644 rust/docs/HistogramBoundsOneOf1Values.md rename rust/docs/{ValuesValues.md => HistogramBoundsValues.md} (93%) rename rust/docs/{HistogramBucketsOneOf.md => HistogramBucketsNumber.md} (93%) rename rust/docs/{HistogramBucketsOneOf1.md => HistogramBucketsSquareRootChoiceRule.md} (90%) delete mode 100644 rust/docs/NoGeometry1.md delete mode 100644 rust/docs/Number.md rename rust/docs/{HistogramBoundsOneOf.md => OgrSource.md} (67%) create mode 100644 rust/docs/OgrSourceParameters.md rename rust/docs/{DataPathOneOf.md => SingleVectorOrRasterSource.md} (69%) delete mode 100644 rust/docs/SquareRootChoiceRule.md delete mode 100644 rust/docs/TimeDimensionOneOf.md delete mode 100644 rust/docs/TimeDimensionOneOf1.md rename rust/docs/{MultiLineString1.md => TypedGeometryMultiLineString.md} (91%) rename rust/docs/{MultiPoint1.md => TypedGeometryMultiPoint.md} (92%) rename rust/docs/{MultiPolygon1.md => TypedGeometryMultiPolygon.md} (92%) rename rust/docs/{Data1.md => TypedGeometryNoGeometry.md} (92%) delete mode 100644 rust/docs/TypedGeometryOneOf.md delete mode 100644 rust/docs/TypedGeometryOneOf1.md delete mode 100644 rust/docs/TypedGeometryOneOf2.md delete mode 100644 rust/docs/TypedGeometryOneOf3.md delete mode 100644 rust/docs/TypedOperatorOneOf.md delete mode 100644 rust/docs/TypedOperatorOneOf1.md delete mode 100644 rust/docs/TypedOperatorOneOf2.md delete mode 100644 rust/docs/Values.md rename rust/src/models/{time_dimension_one_of_1.rs => data.rs} (51%) delete mode 100644 rust/src/models/data_1.rs delete mode 100644 rust/src/models/data_path_one_of.rs rename rust/src/models/{data_path_one_of_1.rs => data_path_upload.rs} (79%) rename rust/src/models/{volume_1.rs => data_path_volume.rs} (79%) delete mode 100644 rust/src/models/histogram_bounds_one_of.rs delete mode 100644 rust/src/models/histogram_bounds_one_of_1.rs delete mode 100644 rust/src/models/histogram_bounds_one_of_1_values.rs rename rust/src/models/{values_values.rs => histogram_bounds_values.rs} (77%) rename rust/src/models/{histogram_buckets_one_of.rs => histogram_buckets_number.rs} (82%) rename rust/src/models/{histogram_buckets_one_of_1.rs => histogram_buckets_square_root_choice_rule.rs} (81%) delete mode 100644 rust/src/models/multi_line_string_1.rs delete mode 100644 rust/src/models/multi_point_1.rs delete mode 100644 rust/src/models/multi_polygon_1.rs delete mode 100644 rust/src/models/no_geometry_1.rs delete mode 100644 rust/src/models/number.rs create mode 100644 rust/src/models/ogr_source.rs create mode 100644 rust/src/models/ogr_source_parameters.rs create mode 100644 rust/src/models/single_vector_or_raster_source.rs delete mode 100644 rust/src/models/square_root_choice_rule.rs delete mode 100644 rust/src/models/time_dimension_one_of.rs rename rust/src/models/{typed_geometry_one_of_2.rs => typed_geometry_multi_line_string.rs} (81%) rename rust/src/models/{typed_geometry_one_of_1.rs => typed_geometry_multi_point.rs} (84%) rename rust/src/models/{typed_geometry_one_of_3.rs => typed_geometry_multi_polygon.rs} (82%) rename rust/src/models/{typed_geometry_one_of.rs => typed_geometry_no_geometry.rs} (84%) delete mode 100644 rust/src/models/typed_operator_one_of.rs delete mode 100644 rust/src/models/typed_operator_one_of_1.rs delete mode 100644 rust/src/models/typed_operator_one_of_2.rs delete mode 100644 rust/src/models/upload.rs delete mode 100644 rust/src/models/values.rs create mode 100644 typescript/diffs/typescript/src/models/HistogramBounds.ts.diff create mode 100644 typescript/dist/esm/models/Data.d.ts create mode 100644 typescript/dist/esm/models/Data.js delete mode 100644 typescript/dist/esm/models/Data1.d.ts delete mode 100644 typescript/dist/esm/models/Data1.js create mode 100644 typescript/dist/esm/models/DataPathUpload.d.ts rename typescript/dist/esm/models/{Upload.js => DataPathUpload.js} (61%) create mode 100644 typescript/dist/esm/models/DataPathVolume.d.ts rename typescript/dist/esm/models/{Volume1.js => DataPathVolume.js} (61%) create mode 100644 typescript/dist/esm/models/HistogramBoundsValues.d.ts rename typescript/dist/esm/models/{ValuesValues.js => HistogramBoundsValues.js} (62%) create mode 100644 typescript/dist/esm/models/HistogramBucketsNumber.d.ts rename typescript/dist/esm/models/{Number.js => HistogramBucketsNumber.js} (61%) create mode 100644 typescript/dist/esm/models/HistogramBucketsSquareRootChoiceRule.d.ts rename typescript/dist/esm/models/{SquareRootChoiceRule.js => HistogramBucketsSquareRootChoiceRule.js} (58%) delete mode 100644 typescript/dist/esm/models/MultiLineString1.d.ts delete mode 100644 typescript/dist/esm/models/MultiPoint1.d.ts delete mode 100644 typescript/dist/esm/models/MultiPolygon1.d.ts delete mode 100644 typescript/dist/esm/models/NoGeometry1.d.ts delete mode 100644 typescript/dist/esm/models/Number.d.ts create mode 100644 typescript/dist/esm/models/OgrSource.d.ts create mode 100644 typescript/dist/esm/models/OgrSource.js create mode 100644 typescript/dist/esm/models/OgrSourceParameters.d.ts rename typescript/dist/{models/Data1.js => esm/models/OgrSourceParameters.js} (52%) create mode 100644 typescript/dist/esm/models/SingleVectorOrRasterSource.d.ts create mode 100644 typescript/dist/esm/models/SingleVectorOrRasterSource.js delete mode 100644 typescript/dist/esm/models/SquareRootChoiceRule.d.ts create mode 100644 typescript/dist/esm/models/TypedGeometryMultiLineString.d.ts rename typescript/dist/esm/models/{MultiLineString1.js => TypedGeometryMultiLineString.js} (61%) create mode 100644 typescript/dist/esm/models/TypedGeometryMultiPoint.d.ts rename typescript/dist/esm/models/{MultiPoint1.js => TypedGeometryMultiPoint.js} (62%) create mode 100644 typescript/dist/esm/models/TypedGeometryMultiPolygon.d.ts rename typescript/dist/esm/models/{MultiPolygon1.js => TypedGeometryMultiPolygon.js} (62%) create mode 100644 typescript/dist/esm/models/TypedGeometryNoGeometry.d.ts rename typescript/dist/esm/models/{NoGeometry1.js => TypedGeometryNoGeometry.js} (57%) delete mode 100644 typescript/dist/esm/models/Upload.d.ts delete mode 100644 typescript/dist/esm/models/Values.d.ts delete mode 100644 typescript/dist/esm/models/Values.js delete mode 100644 typescript/dist/esm/models/ValuesValues.d.ts delete mode 100644 typescript/dist/esm/models/Volume1.d.ts create mode 100644 typescript/dist/models/Data.d.ts create mode 100644 typescript/dist/models/Data.js delete mode 100644 typescript/dist/models/Data1.d.ts create mode 100644 typescript/dist/models/DataPathUpload.d.ts rename typescript/dist/models/{Upload.js => DataPathUpload.js} (53%) create mode 100644 typescript/dist/models/DataPathVolume.d.ts rename typescript/dist/models/{Volume1.js => DataPathVolume.js} (53%) create mode 100644 typescript/dist/models/HistogramBoundsValues.d.ts rename typescript/dist/models/{ValuesValues.js => HistogramBoundsValues.js} (52%) create mode 100644 typescript/dist/models/HistogramBucketsNumber.d.ts rename typescript/dist/models/{Number.js => HistogramBucketsNumber.js} (51%) create mode 100644 typescript/dist/models/HistogramBucketsSquareRootChoiceRule.d.ts create mode 100644 typescript/dist/models/HistogramBucketsSquareRootChoiceRule.js delete mode 100644 typescript/dist/models/MultiLineString1.d.ts delete mode 100644 typescript/dist/models/MultiPoint1.d.ts delete mode 100644 typescript/dist/models/MultiPolygon1.d.ts delete mode 100644 typescript/dist/models/NoGeometry1.d.ts delete mode 100644 typescript/dist/models/NoGeometry1.js delete mode 100644 typescript/dist/models/Number.d.ts create mode 100644 typescript/dist/models/OgrSource.d.ts create mode 100644 typescript/dist/models/OgrSource.js create mode 100644 typescript/dist/models/OgrSourceParameters.d.ts create mode 100644 typescript/dist/models/OgrSourceParameters.js create mode 100644 typescript/dist/models/SingleVectorOrRasterSource.d.ts create mode 100644 typescript/dist/models/SingleVectorOrRasterSource.js delete mode 100644 typescript/dist/models/SquareRootChoiceRule.d.ts delete mode 100644 typescript/dist/models/SquareRootChoiceRule.js create mode 100644 typescript/dist/models/TypedGeometryMultiLineString.d.ts rename typescript/dist/models/{MultiLineString1.js => TypedGeometryMultiLineString.js} (51%) create mode 100644 typescript/dist/models/TypedGeometryMultiPoint.d.ts rename typescript/dist/models/{MultiPoint1.js => TypedGeometryMultiPoint.js} (52%) create mode 100644 typescript/dist/models/TypedGeometryMultiPolygon.d.ts rename typescript/dist/models/{MultiPolygon1.js => TypedGeometryMultiPolygon.js} (51%) create mode 100644 typescript/dist/models/TypedGeometryNoGeometry.d.ts create mode 100644 typescript/dist/models/TypedGeometryNoGeometry.js delete mode 100644 typescript/dist/models/Upload.d.ts delete mode 100644 typescript/dist/models/Values.d.ts delete mode 100644 typescript/dist/models/Values.js delete mode 100644 typescript/dist/models/ValuesValues.d.ts delete mode 100644 typescript/dist/models/Volume1.d.ts delete mode 100644 typescript/docs/AddDatasetTile.md rename typescript/docs/{Data1.md => Data.md} (75%) rename typescript/docs/{Upload.md => DataPathUpload.md} (76%) rename typescript/docs/{DataPathOneOf.md => DataPathVolume.md} (76%) delete mode 100644 typescript/docs/GdalDatasetGeoTransform.md delete mode 100644 typescript/docs/HistogramBoundsOneOf1.md rename typescript/docs/{HistogramBoundsOneOf1Values.md => HistogramBoundsValues.md} (80%) rename typescript/docs/{HistogramBucketsOneOf.md => HistogramBucketsNumber.md} (82%) rename typescript/docs/{HistogramBucketsOneOf1.md => HistogramBucketsSquareRootChoiceRule.md} (77%) delete mode 100644 typescript/docs/Number.md rename typescript/docs/{TypedOperatorOperator.md => OgrSource.md} (56%) rename typescript/docs/{HistogramBoundsOneOf.md => OgrSourceParameters.md} (62%) delete mode 100644 typescript/docs/PermissionListOptions.md delete mode 100644 typescript/docs/ProvenanceOutput.md delete mode 100644 typescript/docs/RasterDatasetFromWorkflowResult.md rename typescript/docs/{DataPathOneOf1.md => SingleVectorOrRasterSource.md} (56%) delete mode 100644 typescript/docs/SpatialReferenceAuthority.md delete mode 100644 typescript/docs/SpatialResolution.md delete mode 100644 typescript/docs/SquareRootChoiceRule.md delete mode 100644 typescript/docs/TaskAbortOptions.md delete mode 100644 typescript/docs/TaskListOptions.md delete mode 100644 typescript/docs/TimeDimensionOneOf.md delete mode 100644 typescript/docs/TimeDimensionOneOf1.md rename typescript/docs/{MultiLineString1.md => TypedGeometryMultiLineString.md} (72%) rename typescript/docs/{MultiPoint1.md => TypedGeometryMultiPoint.md} (73%) rename typescript/docs/{MultiPolygon1.md => TypedGeometryMultiPolygon.md} (73%) rename typescript/docs/{NoGeometry1.md => TypedGeometryNoGeometry.md} (72%) delete mode 100644 typescript/docs/TypedGeometryOneOf.md delete mode 100644 typescript/docs/TypedGeometryOneOf1.md delete mode 100644 typescript/docs/TypedGeometryOneOf2.md delete mode 100644 typescript/docs/TypedGeometryOneOf3.md delete mode 100644 typescript/docs/TypedOperatorOneOf.md delete mode 100644 typescript/docs/TypedOperatorOneOf1.md delete mode 100644 typescript/docs/TypedOperatorOneOf2.md delete mode 100644 typescript/docs/Values.md delete mode 100644 typescript/docs/ValuesValues.md delete mode 100644 typescript/docs/Volume1.md delete mode 100644 typescript/docs/WcsBoundingbox.md create mode 100644 typescript/src/models/Data.ts delete mode 100644 typescript/src/models/Data1.ts rename typescript/src/models/{Upload.ts => DataPathUpload.ts} (56%) rename typescript/src/models/{Volume1.ts => DataPathVolume.ts} (56%) rename typescript/src/models/{ValuesValues.ts => HistogramBoundsValues.ts} (55%) create mode 100644 typescript/src/models/HistogramBucketsNumber.ts create mode 100644 typescript/src/models/HistogramBucketsSquareRootChoiceRule.ts delete mode 100644 typescript/src/models/Number.ts create mode 100644 typescript/src/models/OgrSource.ts create mode 100644 typescript/src/models/OgrSourceParameters.ts create mode 100644 typescript/src/models/SingleVectorOrRasterSource.ts delete mode 100644 typescript/src/models/SquareRootChoiceRule.ts rename typescript/src/models/{MultiLineString1.ts => TypedGeometryMultiLineString.ts} (57%) rename typescript/src/models/{MultiPoint1.ts => TypedGeometryMultiPoint.ts} (57%) rename typescript/src/models/{MultiPolygon1.ts => TypedGeometryMultiPolygon.ts} (57%) rename typescript/src/models/{NoGeometry1.ts => TypedGeometryNoGeometry.ts} (51%) delete mode 100644 typescript/src/models/Values.ts diff --git a/.generation/input/openapi.json b/.generation/input/openapi.json index d4e3507f..cd5757ff 100644 --- a/.generation/input/openapi.json +++ b/.generation/input/openapi.json @@ -6106,7 +6106,10 @@ ] }, "Data": { - "default": null + "type": "string", + "enum": [ + "data" + ] }, "DataId": { "oneOf": [ @@ -6130,7 +6133,7 @@ "oneOf": [ { "type": "object", - "title": "Volume", + "title": "DataPathVolume", "required": [ "volume" ], @@ -6142,7 +6145,7 @@ }, { "type": "object", - "title": "Upload", + "title": "DataPathUpload", "required": [ "upload" ], @@ -7440,7 +7443,7 @@ "$ref": "#/components/schemas/HistogramParameters" }, "sources": { - "$ref": "#/components/schemas/SingleRasterOrVectorSource" + "$ref": "#/components/schemas/SingleVectorOrRasterSource" }, "type": { "type": "string", @@ -7478,114 +7481,110 @@ "HistogramBounds": { "oneOf": [ { - "type": "object", - "title": "Data", - "required": [ - "data" - ], - "properties": { - "data": { - "$ref": "#/components/schemas/Data" - } - } + "$ref": "#/components/schemas/Data" }, { - "type": "object", - "title": "Values", - "required": [ - "values" - ], - "properties": { - "values": { - "type": "object", - "required": [ - "min", - "max" - ], - "properties": { - "max": { - "type": "number", - "format": "double" - }, - "min": { - "type": "number", - "format": "double" - } - } - } - } + "$ref": "#/components/schemas/HistogramBoundsValues" } ] }, + "HistogramBoundsValues": { + "type": "object", + "required": [ + "min", + "max" + ], + "properties": { + "max": { + "type": "number", + "format": "double" + }, + "min": { + "type": "number", + "format": "double" + } + } + }, "HistogramBuckets": { "oneOf": [ { - "type": "object", - "title": "Number", - "required": [ - "value", - "type" - ], - "properties": { - "type": { - "type": "string", - "enum": [ - "number" - ] - }, - "value": { - "type": "integer", - "format": "int32", - "minimum": 0 - } - } + "$ref": "#/components/schemas/HistogramBucketsNumber" }, { - "type": "object", - "title": "SquareRootChoiceRule", - "required": [ - "type" - ], - "properties": { - "maxNumberOfBuckets": { - "type": "integer", - "format": "int32", - "minimum": 0 - }, - "type": { - "type": "string", - "enum": [ - "squareRootChoiceRule" - ] - } - } + "$ref": "#/components/schemas/HistogramBucketsSquareRootChoiceRule" } - ] + ], + "discriminator": { + "propertyName": "type", + "mapping": { + "number": "#/components/schemas/HistogramBucketsNumber", + "squareRootChoiceRule": "#/components/schemas/HistogramBucketsSquareRootChoiceRule" + } + } + }, + "HistogramBucketsNumber": { + "type": "object", + "required": [ + "type", + "value" + ], + "properties": { + "type": { + "type": "string", + "enum": [ + "number" + ] + }, + "value": { + "type": "integer", + "format": "int32", + "minimum": 0 + } + } + }, + "HistogramBucketsSquareRootChoiceRule": { + "type": "object", + "required": [ + "type" + ], + "properties": { + "maxNumberOfBuckets": { + "type": "integer", + "format": "int32", + "minimum": 0 + }, + "type": { + "type": "string", + "enum": [ + "squareRootChoiceRule" + ] + } + } }, "HistogramParameters": { "type": "object", "description": "The parameter spec for `Histogram`", "required": [ - "attributeName", + "columnName", "bounds", "buckets" ], "properties": { - "attributeName": { - "type": "string", - "description": "Name of the (numeric) vector attribute or raster band to compute the histogram on.", - "examples": [ - "temperature" - ] - }, "bounds": { "$ref": "#/components/schemas/HistogramBounds", - "description": "If `data`, it computes the bounds of the underlying data. If `values`, one can specify custom bounds." + "description": "If `data`, it computes the bounds of the underlying data.\nIf `{ \"min\": ..., \"max\": ... }`, one can specify custom bounds." }, "buckets": { "$ref": "#/components/schemas/HistogramBuckets", "description": "The number of buckets. The value can be specified or calculated." }, + "columnName": { + "type": "string", + "description": "Name of the (numeric) vector attribute or raster band to compute the histogram on.", + "examples": [ + "temperature" + ] + }, "interactive": { "type": "boolean", "description": "Flag, if the histogram should have user interactions for a range selection. It is `false` by default.", @@ -8774,6 +8773,34 @@ } } }, + "OgrSource": { + "type": "object", + "title": "OGR Source", + "description": "The [`OgrSource`] is a source operator that reads vector data using OGR (part of GDAL).\nThe counterpart for raster data is the [`GdalSource`].\n\n## Errors\n\nIf the given dataset does not exist or is not readable, an error is thrown.\n", + "required": [ + "type", + "params" + ], + "properties": { + "params": { + "$ref": "#/components/schemas/OgrSourceParameters" + }, + "type": { + "type": "string", + "enum": [ + "OgrSource" + ] + } + }, + "examples": [ + { + "type": "OgrSource", + "params": { + "data": "ndvi" + } + } + ] + }, "OgrSourceColumnSpec": { "type": "object", "required": [ @@ -9114,6 +9141,32 @@ "abort" ] }, + "OgrSourceParameters": { + "type": "object", + "description": "Parameters for the [`OgrSource`] operator.", + "required": [ + "data" + ], + "properties": { + "attributeProjection": { + "type": [ + "array", + "null" + ], + "items": { + "type": "string" + }, + "description": "*Optional*: list of attributes to include. When `None`, all attributes are included." + }, + "data": { + "type": "string", + "description": "Dataset name or identifier to be loaded.", + "examples": [ + "ndvi" + ] + } + } + }, "OgrSourceTimeFormat": { "oneOf": [ { @@ -10662,6 +10715,18 @@ } } }, + "SingleVectorOrRasterSource": { + "type": "object", + "description": "A single vector or raster operator as source for this operator, keyed as \"vector\" in JSON.", + "required": [ + "vector" + ], + "properties": { + "vector": { + "$ref": "#/components/schemas/SingleRasterOrVectorOperator" + } + } + }, "SpatialBoundsDerive": { "oneOf": [ { @@ -11533,7 +11598,7 @@ "oneOf": [ { "type": "object", - "title": "NoGeometry", + "title": "TypedGeometryNoGeometry", "required": [ "Data" ], @@ -11545,7 +11610,7 @@ }, { "type": "object", - "title": "MultiPoint", + "title": "TypedGeometryMultiPoint", "required": [ "MultiPoint" ], @@ -11557,7 +11622,7 @@ }, { "type": "object", - "title": "MultiLineString", + "title": "TypedGeometryMultiLineString", "required": [ "MultiLineString" ], @@ -11569,7 +11634,7 @@ }, { "type": "object", - "title": "MultiPolygon", + "title": "TypedGeometryMultiPolygon", "required": [ "MultiPolygon" ], @@ -12181,6 +12246,9 @@ { "$ref": "#/components/schemas/MockPointSource" }, + { + "$ref": "#/components/schemas/OgrSource" + }, { "$ref": "#/components/schemas/RasterVectorJoin" }, @@ -12193,6 +12261,7 @@ "propertyName": "type", "mapping": { "MockPointSource": "#/components/schemas/MockPointSource", + "OgrSource": "#/components/schemas/OgrSource", "RasterVectorJoin": "#/components/schemas/RasterVectorJoin", "Reprojection": "#/components/schemas/Reprojection" } diff --git a/.generation/post-process/typescript.py b/.generation/post-process/typescript.py index e8bb39f0..76db114c 100755 --- a/.generation/post-process/typescript.py +++ b/.generation/post-process/typescript.py @@ -20,6 +20,7 @@ def file_modifications() -> Generator[tuple[Path, FileModifier], None, None]: yield Path("models/TaskStatusWithId.ts"), task_status_with_id_ts yield Path("models/VecUpdate.ts"), vec_update_ts yield Path("models/TypedOperator.ts"), typed_operator_ts + yield Path("models/HistogramBounds.ts"), histogram_bounds_ts yield Path("runtime.ts"), runtime_ts @@ -173,5 +174,13 @@ def vec_update_ts(file_contents: list[str]) -> Generator[str, None, None]: yield line +def histogram_bounds_ts(file_contents: list[str]) -> Generator[str, None, None]: + """Fix TS2352 in HistogramBoundsToJSONTyped for Data | object oneOf.""" + for line in file_contents: + yield line.replace( + "DataToJSON(value as Data)", "DataToJSON(value as unknown as Data)" + ) + + if __name__ == "__main__": main() diff --git a/justfile b/justfile index 49def7ad..2ad0dc50 100644 --- a/justfile +++ b/justfile @@ -9,13 +9,9 @@ _default: _clear: @-clear - # Build all API clients by executing the build steps for each language. [group('build')] -build: _clear \ - _build-python-preprocess _build-rust-preprocess _build-typescript-preprocess \ - _build_call \ - _build-python-postprocess _build-rust-postprocess _build-typescript-postprocess +build: _clear _build-python-preprocess _build-rust-preprocess _build-typescript-preprocess _build_call _build-python-postprocess _build-rust-postprocess _build-typescript-postprocess _build_call generator="": {{ OPENAPI_GENERATOR_CLI }} generate {{ if generator == "" { "" } else { "--generator-key " + generator } }} @@ -43,12 +39,13 @@ _build-python-postprocess: # Build the API clients for TypeScript by generating code with the OpenAPI Generator and applying post-processing steps. Also install npm dependencies and set up .gitignore. [group('build')] -build-typescript: _clear (_build_call "typescript") _build-typescript-postprocess +build-typescript: _clear _build-typescript-preprocess (_build_call "typescript") _build-typescript-postprocess # Remove some directories because they are not be overwritten by the generator. _build-typescript-preprocess: rm -rf \ typescript/src \ + typescript/docs \ typescript/dist \ typescript/node_modules \ typescript/diffs @@ -69,6 +66,9 @@ build-rust: _clear _build-rust-preprocess (_build_call "rust") _build-rust-postp _build-rust-preprocess: rm -rf \ + rust/src/apis \ + rust/src/models \ + rust/docs \ rust/diffs _build-rust-postprocess: @@ -85,7 +85,8 @@ lint-openapi-spec: _clear --recommend # Generate the OpenAPI Generator configuration files from the config.ini. -[group('config'), script("python3")] +[group('config')] +[script("python3")] update-generator-configs: import configparser import json @@ -122,8 +123,8 @@ update-generator-configs: print("Generated OpenAPI Generator configuration for TypeScript, Python, and Rust.") # Update the backend commit in the config.ini and increment the version. -[group('config')] [arg("backendCommit", long="backendCommit", help="The commit hash of the backend for which to fetch the OpenAPI specification.")] +[group('config')] update-config backendCommit: _clear (_update-config backendCommit) update-generator-configs (fetch-openapi-spec backendCommit) lint-openapi-spec [script("python3")] @@ -153,8 +154,8 @@ _update-config backendCommit: print(f"Updated {INI_FILE} with backendCommit={config['input']['backendCommit']} and version={config['general']['version']}.") # Fetch the OpenAPI specification for the given backend commit from the Geo Engine repository and save it to the input directory. -[group('config')] [arg("backendCommit", long="backendCommit", help="The commit hash of the backend for which to fetch the OpenAPI specification.")] +[group('config')] fetch-openapi-spec backendCommit: @echo "Fetching OpenAPI specification for backend commit {{ backendCommit }}…" curl \ @@ -181,11 +182,11 @@ test: _clear test-python test-rust test-typescript test-python: _clear #!/usr/bin/env bash python3 -m venv .venv && source .venv/bin/activate || source .venv/bin/activate - + python -m pip install --upgrade pip if [ -f requirements.txt ]; then pip install -r requirements.txt; fi if [ -f test-requirements.txt ]; then pip install -r test-requirements.txt; fi - + pytest [group('test')] @@ -198,4 +199,4 @@ test-rust: _clear [working-directory("typescript")] test-typescript: _clear npm install - npm run build \ No newline at end of file + npm run build diff --git a/package-lock.json b/package-lock.json new file mode 100644 index 00000000..4638d76c --- /dev/null +++ b/package-lock.json @@ -0,0 +1,1283 @@ +{ + "name": "@geoengine/openapi-client-dev", + "lockfileVersion": 3, + "requires": true, + "packages": { + "": { + "name": "@geoengine/openapi-client-dev", + "workspaces": [ + "typescript" + ] + }, + "node_modules/@emnapi/core": { + "version": "1.9.2", + "resolved": "https://registry.npmjs.org/@emnapi/core/-/core-1.9.2.tgz", + "integrity": "sha512-UC+ZhH3XtczQYfOlu3lNEkdW/p4dsJ1r/bP7H8+rhao3TTTMO1ATq/4DdIi23XuGoFY+Cz0JmCbdVl0hz9jZcA==", + "dev": true, + "license": "MIT", + "optional": true, + "dependencies": { + "@emnapi/wasi-threads": "1.2.1", + "tslib": "^2.4.0" + } + }, + "node_modules/@emnapi/runtime": { + "version": "1.9.2", + "resolved": "https://registry.npmjs.org/@emnapi/runtime/-/runtime-1.9.2.tgz", + "integrity": "sha512-3U4+MIWHImeyu1wnmVygh5WlgfYDtyf0k8AbLhMFxOipihf6nrWC4syIm/SwEeec0mNSafiiNnMJwbza/Is6Lw==", + "dev": true, + "license": "MIT", + "optional": true, + "dependencies": { + "tslib": "^2.4.0" + } + }, + "node_modules/@emnapi/wasi-threads": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/@emnapi/wasi-threads/-/wasi-threads-1.2.1.tgz", + "integrity": "sha512-uTII7OYF+/Mes/MrcIOYp5yOtSMLBWSIoLPpcgwipoiKbli6k322tcoFsxoIIxPDqW01SQGAgko4EzZi2BNv2w==", + "dev": true, + "license": "MIT", + "optional": true, + "dependencies": { + "tslib": "^2.4.0" + } + }, + "node_modules/@geoengine/openapi-client": { + "resolved": "typescript", + "link": true + }, + "node_modules/@jridgewell/sourcemap-codec": { + "version": "1.5.5", + "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.5.tgz", + "integrity": "sha512-cYQ9310grqxueWbl+WuIUIaiUaDcj7WOq5fVhEljNVgRfOUhY9fy2zTvfoqWsnebh8Sl70VScFbICvJnLKB0Og==", + "dev": true, + "license": "MIT" + }, + "node_modules/@napi-rs/wasm-runtime": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/@napi-rs/wasm-runtime/-/wasm-runtime-1.1.3.tgz", + "integrity": "sha512-xK9sGVbJWYb08+mTJt3/YV24WxvxpXcXtP6B172paPZ+Ts69Re9dAr7lKwJoeIx8OoeuimEiRZ7umkiUVClmmQ==", + "dev": true, + "license": "MIT", + "optional": true, + "dependencies": { + "@tybys/wasm-util": "^0.10.1" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/Brooooooklyn" + }, + "peerDependencies": { + "@emnapi/core": "^1.7.1", + "@emnapi/runtime": "^1.7.1" + } + }, + "node_modules/@oxc-project/types": { + "version": "0.124.0", + "resolved": "https://registry.npmjs.org/@oxc-project/types/-/types-0.124.0.tgz", + "integrity": "sha512-VBFWMTBvHxS11Z5Lvlr3IWgrwhMTXV+Md+EQF0Xf60+wAdsGFTBx7X7K/hP4pi8N7dcm1RvcHwDxZ16Qx8keUg==", + "dev": true, + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/Boshen" + } + }, + "node_modules/@rolldown/binding-android-arm64": { + "version": "1.0.0-rc.15", + "resolved": "https://registry.npmjs.org/@rolldown/binding-android-arm64/-/binding-android-arm64-1.0.0-rc.15.tgz", + "integrity": "sha512-YYe6aWruPZDtHNpwu7+qAHEMbQ/yRl6atqb/AhznLTnD3UY99Q1jE7ihLSahNWkF4EqRPVC4SiR4O0UkLK02tA==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-darwin-arm64": { + "version": "1.0.0-rc.15", + "resolved": "https://registry.npmjs.org/@rolldown/binding-darwin-arm64/-/binding-darwin-arm64-1.0.0-rc.15.tgz", + "integrity": "sha512-oArR/ig8wNTPYsXL+Mzhs0oxhxfuHRfG7Ikw7jXsw8mYOtk71W0OkF2VEVh699pdmzjPQsTjlD1JIOoHkLP1Fg==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-darwin-x64": { + "version": "1.0.0-rc.15", + "resolved": "https://registry.npmjs.org/@rolldown/binding-darwin-x64/-/binding-darwin-x64-1.0.0-rc.15.tgz", + "integrity": "sha512-YzeVqOqjPYvUbJSWJ4EDL8ahbmsIXQpgL3JVipmN+MX0XnXMeWomLN3Fb+nwCmP/jfyqte5I3XRSm7OfQrbyxw==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-freebsd-x64": { + "version": "1.0.0-rc.15", + "resolved": "https://registry.npmjs.org/@rolldown/binding-freebsd-x64/-/binding-freebsd-x64-1.0.0-rc.15.tgz", + "integrity": "sha512-9Erhx956jeQ0nNTyif1+QWAXDRD38ZNjr//bSHrt6wDwB+QkAfl2q6Mn1k6OBPerznjRmbM10lgRb1Pli4xZPw==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-linux-arm-gnueabihf": { + "version": "1.0.0-rc.15", + "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-arm-gnueabihf/-/binding-linux-arm-gnueabihf-1.0.0-rc.15.tgz", + "integrity": "sha512-cVwk0w8QbZJGTnP/AHQBs5yNwmpgGYStL88t4UIaqcvYJWBfS0s3oqVLZPwsPU6M0zlW4GqjP0Zq5MnAGwFeGA==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-linux-arm64-gnu": { + "version": "1.0.0-rc.15", + "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-arm64-gnu/-/binding-linux-arm64-gnu-1.0.0-rc.15.tgz", + "integrity": "sha512-eBZ/u8iAK9SoHGanqe/jrPnY0JvBN6iXbVOsbO38mbz+ZJsaobExAm1Iu+rxa4S1l2FjG0qEZn4Rc6X8n+9M+w==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-linux-arm64-musl": { + "version": "1.0.0-rc.15", + "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-arm64-musl/-/binding-linux-arm64-musl-1.0.0-rc.15.tgz", + "integrity": "sha512-ZvRYMGrAklV9PEkgt4LQM6MjQX2P58HPAuecwYObY2DhS2t35R0I810bKi0wmaYORt6m/2Sm+Z+nFgb0WhXNcQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-linux-ppc64-gnu": { + "version": "1.0.0-rc.15", + "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-ppc64-gnu/-/binding-linux-ppc64-gnu-1.0.0-rc.15.tgz", + "integrity": "sha512-VDpgGBzgfg5hLg+uBpCLoFG5kVvEyafmfxGUV0UHLcL5irxAK7PKNeC2MwClgk6ZAiNhmo9FLhRYgvMmedLtnQ==", + "cpu": [ + "ppc64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-linux-s390x-gnu": { + "version": "1.0.0-rc.15", + "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-s390x-gnu/-/binding-linux-s390x-gnu-1.0.0-rc.15.tgz", + "integrity": "sha512-y1uXY3qQWCzcPgRJATPSOUP4tCemh4uBdY7e3EZbVwCJTY3gLJWnQABgeUetvED+bt1FQ01OeZwvhLS2bpNrAQ==", + "cpu": [ + "s390x" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-linux-x64-gnu": { + "version": "1.0.0-rc.15", + "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-x64-gnu/-/binding-linux-x64-gnu-1.0.0-rc.15.tgz", + "integrity": "sha512-023bTPBod7J3Y/4fzAN6QtpkSABR0rigtrwaP+qSEabUh5zf6ELr9Nc7GujaROuPY3uwdSIXWrvhn1KxOvurWA==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-linux-x64-musl": { + "version": "1.0.0-rc.15", + "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-x64-musl/-/binding-linux-x64-musl-1.0.0-rc.15.tgz", + "integrity": "sha512-witB2O0/hU4CgfOOKUoeFgQ4GktPi1eEbAhaLAIpgD6+ZnhcPkUtPsoKKHRzmOoWPZue46IThdSgdo4XneOLYw==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-openharmony-arm64": { + "version": "1.0.0-rc.15", + "resolved": "https://registry.npmjs.org/@rolldown/binding-openharmony-arm64/-/binding-openharmony-arm64-1.0.0-rc.15.tgz", + "integrity": "sha512-UCL68NJ0Ud5zRipXZE9dF5PmirzJE4E4BCIOOssEnM7wLDsxjc6Qb0sGDxTNRTP53I6MZpygyCpY8Aa8sPfKPg==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "openharmony" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-wasm32-wasi": { + "version": "1.0.0-rc.15", + "resolved": "https://registry.npmjs.org/@rolldown/binding-wasm32-wasi/-/binding-wasm32-wasi-1.0.0-rc.15.tgz", + "integrity": "sha512-ApLruZq/ig+nhaE7OJm4lDjayUnOHVUa77zGeqnqZ9pn0ovdVbbNPerVibLXDmWeUZXjIYIT8V3xkT58Rm9u5Q==", + "cpu": [ + "wasm32" + ], + "dev": true, + "license": "MIT", + "optional": true, + "dependencies": { + "@emnapi/core": "1.9.2", + "@emnapi/runtime": "1.9.2", + "@napi-rs/wasm-runtime": "^1.1.3" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/@rolldown/binding-win32-arm64-msvc": { + "version": "1.0.0-rc.15", + "resolved": "https://registry.npmjs.org/@rolldown/binding-win32-arm64-msvc/-/binding-win32-arm64-msvc-1.0.0-rc.15.tgz", + "integrity": "sha512-KmoUoU7HnN+Si5YWJigfTws1jz1bKBYDQKdbLspz0UaqjjFkddHsqorgiW1mxcAj88lYUE6NC/zJNwT+SloqtA==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-win32-x64-msvc": { + "version": "1.0.0-rc.15", + "resolved": "https://registry.npmjs.org/@rolldown/binding-win32-x64-msvc/-/binding-win32-x64-msvc-1.0.0-rc.15.tgz", + "integrity": "sha512-3P2A8L+x75qavWLe/Dll3EYBJLQmtkJN8rfh+U/eR3MqMgL/h98PhYI+JFfXuDPgPeCB7iZAKiqii5vqOvnA0g==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/pluginutils": { + "version": "1.0.0-rc.15", + "resolved": "https://registry.npmjs.org/@rolldown/pluginutils/-/pluginutils-1.0.0-rc.15.tgz", + "integrity": "sha512-UromN0peaE53IaBRe9W7CjrZgXl90fqGpK+mIZbA3qSTeYqg3pqpROBdIPvOG3F5ereDHNwoHBI2e50n1BDr1g==", + "dev": true, + "license": "MIT" + }, + "node_modules/@standard-schema/spec": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@standard-schema/spec/-/spec-1.1.0.tgz", + "integrity": "sha512-l2aFy5jALhniG5HgqrD6jXLi/rUWrKvqN/qJx6yoJsgKhblVd+iqqU4RCXavm/jPityDo5TCvKMnpjKnOriy0w==", + "dev": true, + "license": "MIT" + }, + "node_modules/@tybys/wasm-util": { + "version": "0.10.1", + "resolved": "https://registry.npmjs.org/@tybys/wasm-util/-/wasm-util-0.10.1.tgz", + "integrity": "sha512-9tTaPJLSiejZKx+Bmog4uSubteqTvFrVrURwkmHixBo0G4seD0zUxp98E1DzUBJxLQ3NPwXrGKDiVjwx/DpPsg==", + "dev": true, + "license": "MIT", + "optional": true, + "dependencies": { + "tslib": "^2.4.0" + } + }, + "node_modules/@types/chai": { + "version": "5.2.3", + "resolved": "https://registry.npmjs.org/@types/chai/-/chai-5.2.3.tgz", + "integrity": "sha512-Mw558oeA9fFbv65/y4mHtXDs9bPnFMZAL/jxdPFUpOHHIXX91mcgEHbS5Lahr+pwZFR8A7GQleRWeI6cGFC2UA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/deep-eql": "*", + "assertion-error": "^2.0.1" + } + }, + "node_modules/@types/deep-eql": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/@types/deep-eql/-/deep-eql-4.0.2.tgz", + "integrity": "sha512-c9h9dVVMigMPc4bwTvC5dxqtqJZwQPePsWjPlpSOnojbor6pGqdk541lfA7AqFQr5pB1BRdq0juY9db81BwyFw==", + "dev": true, + "license": "MIT" + }, + "node_modules/@types/estree": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.8.tgz", + "integrity": "sha512-dWHzHa2WqEXI/O1E9OjrocMTKJl2mSrEolh1Iomrv6U+JuNwaHXsXx9bLu5gG7BUWFIN0skIQJQ/L1rIex4X6w==", + "dev": true, + "license": "MIT" + }, + "node_modules/@vitest/expect": { + "version": "4.1.4", + "resolved": "https://registry.npmjs.org/@vitest/expect/-/expect-4.1.4.tgz", + "integrity": "sha512-iPBpra+VDuXmBFI3FMKHSFXp3Gx5HfmSCE8X67Dn+bwephCnQCaB7qWK2ldHa+8ncN8hJU8VTMcxjPpyMkUjww==", + "dev": true, + "license": "MIT", + "dependencies": { + "@standard-schema/spec": "^1.1.0", + "@types/chai": "^5.2.2", + "@vitest/spy": "4.1.4", + "@vitest/utils": "4.1.4", + "chai": "^6.2.2", + "tinyrainbow": "^3.1.0" + }, + "funding": { + "url": "https://opencollective.com/vitest" + } + }, + "node_modules/@vitest/mocker": { + "version": "4.1.4", + "resolved": "https://registry.npmjs.org/@vitest/mocker/-/mocker-4.1.4.tgz", + "integrity": "sha512-R9HTZBhW6yCSGbGQnDnH3QHfJxokKN4KB+Yvk9Q1le7eQNYwiCyKxmLmurSpFy6BzJanSLuEUDrD+j97Q+ZLPg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@vitest/spy": "4.1.4", + "estree-walker": "^3.0.3", + "magic-string": "^0.30.21" + }, + "funding": { + "url": "https://opencollective.com/vitest" + }, + "peerDependencies": { + "msw": "^2.4.9", + "vite": "^6.0.0 || ^7.0.0 || ^8.0.0" + }, + "peerDependenciesMeta": { + "msw": { + "optional": true + }, + "vite": { + "optional": true + } + } + }, + "node_modules/@vitest/pretty-format": { + "version": "4.1.4", + "resolved": "https://registry.npmjs.org/@vitest/pretty-format/-/pretty-format-4.1.4.tgz", + "integrity": "sha512-ddmDHU0gjEUyEVLxtZa7xamrpIefdEETu3nZjWtHeZX4QxqJ7tRxSteHVXJOcr8jhiLoGAhkK4WJ3WqBpjx42A==", + "dev": true, + "license": "MIT", + "dependencies": { + "tinyrainbow": "^3.1.0" + }, + "funding": { + "url": "https://opencollective.com/vitest" + } + }, + "node_modules/@vitest/runner": { + "version": "4.1.4", + "resolved": "https://registry.npmjs.org/@vitest/runner/-/runner-4.1.4.tgz", + "integrity": "sha512-xTp7VZ5aXP5ZJrn15UtJUWlx6qXLnGtF6jNxHepdPHpMfz/aVPx+htHtgcAL2mDXJgKhpoo2e9/hVJsIeFbytQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@vitest/utils": "4.1.4", + "pathe": "^2.0.3" + }, + "funding": { + "url": "https://opencollective.com/vitest" + } + }, + "node_modules/@vitest/snapshot": { + "version": "4.1.4", + "resolved": "https://registry.npmjs.org/@vitest/snapshot/-/snapshot-4.1.4.tgz", + "integrity": "sha512-MCjCFgaS8aZz+m5nTcEcgk/xhWv0rEH4Yl53PPlMXOZ1/Ka2VcZU6CJ+MgYCZbcJvzGhQRjVrGQNZqkGPttIKw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@vitest/pretty-format": "4.1.4", + "@vitest/utils": "4.1.4", + "magic-string": "^0.30.21", + "pathe": "^2.0.3" + }, + "funding": { + "url": "https://opencollective.com/vitest" + } + }, + "node_modules/@vitest/spy": { + "version": "4.1.4", + "resolved": "https://registry.npmjs.org/@vitest/spy/-/spy-4.1.4.tgz", + "integrity": "sha512-XxNdAsKW7C+FLydqFJLb5KhJtl3PGCMmYwFRfhvIgxJvLSXhhVI1zM8f1qD3Zg7RCjTSzDVyct6sghs9UEgBEQ==", + "dev": true, + "license": "MIT", + "funding": { + "url": "https://opencollective.com/vitest" + } + }, + "node_modules/@vitest/utils": { + "version": "4.1.4", + "resolved": "https://registry.npmjs.org/@vitest/utils/-/utils-4.1.4.tgz", + "integrity": "sha512-13QMT+eysM5uVGa1rG4kegGYNp6cnQcsTc67ELFbhNLQO+vgsygtYJx2khvdt4gVQqSSpC/KT5FZZxUpP3Oatw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@vitest/pretty-format": "4.1.4", + "convert-source-map": "^2.0.0", + "tinyrainbow": "^3.1.0" + }, + "funding": { + "url": "https://opencollective.com/vitest" + } + }, + "node_modules/assertion-error": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/assertion-error/-/assertion-error-2.0.1.tgz", + "integrity": "sha512-Izi8RQcffqCeNVgFigKli1ssklIbpHnCYc6AknXGYoB6grJqyeby7jv12JUQgmTAnIDnbck1uxksT4dzN3PWBA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=12" + } + }, + "node_modules/chai": { + "version": "6.2.2", + "resolved": "https://registry.npmjs.org/chai/-/chai-6.2.2.tgz", + "integrity": "sha512-NUPRluOfOiTKBKvWPtSD4PhFvWCqOi0BGStNWs57X9js7XGTprSmFoz5F0tWhR4WPjNeR9jXqdC7/UpSJTnlRg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=18" + } + }, + "node_modules/convert-source-map": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-2.0.0.tgz", + "integrity": "sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==", + "dev": true, + "license": "MIT" + }, + "node_modules/detect-libc": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-2.1.2.tgz", + "integrity": "sha512-Btj2BOOO83o3WyH59e8MgXsxEQVcarkUOpEYrubB0urwnN10yQ364rsiByU11nZlqWYZm05i/of7io4mzihBtQ==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": ">=8" + } + }, + "node_modules/es-module-lexer": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/es-module-lexer/-/es-module-lexer-2.0.0.tgz", + "integrity": "sha512-5POEcUuZybH7IdmGsD8wlf0AI55wMecM9rVBTI/qEAy2c1kTOm3DjFYjrBdI2K3BaJjJYfYFeRtM0t9ssnRuxw==", + "dev": true, + "license": "MIT" + }, + "node_modules/estree-walker": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-3.0.3.tgz", + "integrity": "sha512-7RUKfXgSMMkzt6ZuXmqapOurLGPPfgj6l9uRZ7lRGolvk0y2yocc35LdcxKC5PQZdn2DMqioAQ2NoWcrTKmm6g==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/estree": "^1.0.0" + } + }, + "node_modules/expect-type": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/expect-type/-/expect-type-1.3.0.tgz", + "integrity": "sha512-knvyeauYhqjOYvQ66MznSMs83wmHrCycNEN6Ao+2AeYEfxUIkuiVxdEa1qlGEPK+We3n0THiDciYSsCcgW/DoA==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": ">=12.0.0" + } + }, + "node_modules/fdir": { + "version": "6.5.0", + "resolved": "https://registry.npmjs.org/fdir/-/fdir-6.5.0.tgz", + "integrity": "sha512-tIbYtZbucOs0BRGqPJkshJUYdL+SDH7dVM8gjy+ERp3WAUjLEFJE+02kanyHtwjWOnwrKYBiwAmM0p4kLJAnXg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=12.0.0" + }, + "peerDependencies": { + "picomatch": "^3 || ^4" + }, + "peerDependenciesMeta": { + "picomatch": { + "optional": true + } + } + }, + "node_modules/fsevents": { + "version": "2.3.3", + "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz", + "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==", + "dev": true, + "hasInstallScript": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": "^8.16.0 || ^10.6.0 || >=11.0.0" + } + }, + "node_modules/lightningcss": { + "version": "1.32.0", + "resolved": "https://registry.npmjs.org/lightningcss/-/lightningcss-1.32.0.tgz", + "integrity": "sha512-NXYBzinNrblfraPGyrbPoD19C1h9lfI/1mzgWYvXUTe414Gz/X1FD2XBZSZM7rRTrMA8JL3OtAaGifrIKhQ5yQ==", + "dev": true, + "license": "MPL-2.0", + "dependencies": { + "detect-libc": "^2.0.3" + }, + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + }, + "optionalDependencies": { + "lightningcss-android-arm64": "1.32.0", + "lightningcss-darwin-arm64": "1.32.0", + "lightningcss-darwin-x64": "1.32.0", + "lightningcss-freebsd-x64": "1.32.0", + "lightningcss-linux-arm-gnueabihf": "1.32.0", + "lightningcss-linux-arm64-gnu": "1.32.0", + "lightningcss-linux-arm64-musl": "1.32.0", + "lightningcss-linux-x64-gnu": "1.32.0", + "lightningcss-linux-x64-musl": "1.32.0", + "lightningcss-win32-arm64-msvc": "1.32.0", + "lightningcss-win32-x64-msvc": "1.32.0" + } + }, + "node_modules/lightningcss-android-arm64": { + "version": "1.32.0", + "resolved": "https://registry.npmjs.org/lightningcss-android-arm64/-/lightningcss-android-arm64-1.32.0.tgz", + "integrity": "sha512-YK7/ClTt4kAK0vo6w3X+Pnm0D2cf2vPHbhOXdoNti1Ga0al1P4TBZhwjATvjNwLEBCnKvjJc2jQgHXH0NEwlAg==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MPL-2.0", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-darwin-arm64": { + "version": "1.32.0", + "resolved": "https://registry.npmjs.org/lightningcss-darwin-arm64/-/lightningcss-darwin-arm64-1.32.0.tgz", + "integrity": "sha512-RzeG9Ju5bag2Bv1/lwlVJvBE3q6TtXskdZLLCyfg5pt+HLz9BqlICO7LZM7VHNTTn/5PRhHFBSjk5lc4cmscPQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MPL-2.0", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-darwin-x64": { + "version": "1.32.0", + "resolved": "https://registry.npmjs.org/lightningcss-darwin-x64/-/lightningcss-darwin-x64-1.32.0.tgz", + "integrity": "sha512-U+QsBp2m/s2wqpUYT/6wnlagdZbtZdndSmut/NJqlCcMLTWp5muCrID+K5UJ6jqD2BFshejCYXniPDbNh73V8w==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MPL-2.0", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-freebsd-x64": { + "version": "1.32.0", + "resolved": "https://registry.npmjs.org/lightningcss-freebsd-x64/-/lightningcss-freebsd-x64-1.32.0.tgz", + "integrity": "sha512-JCTigedEksZk3tHTTthnMdVfGf61Fky8Ji2E4YjUTEQX14xiy/lTzXnu1vwiZe3bYe0q+SpsSH/CTeDXK6WHig==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MPL-2.0", + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-linux-arm-gnueabihf": { + "version": "1.32.0", + "resolved": "https://registry.npmjs.org/lightningcss-linux-arm-gnueabihf/-/lightningcss-linux-arm-gnueabihf-1.32.0.tgz", + "integrity": "sha512-x6rnnpRa2GL0zQOkt6rts3YDPzduLpWvwAF6EMhXFVZXD4tPrBkEFqzGowzCsIWsPjqSK+tyNEODUBXeeVHSkw==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MPL-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-linux-arm64-gnu": { + "version": "1.32.0", + "resolved": "https://registry.npmjs.org/lightningcss-linux-arm64-gnu/-/lightningcss-linux-arm64-gnu-1.32.0.tgz", + "integrity": "sha512-0nnMyoyOLRJXfbMOilaSRcLH3Jw5z9HDNGfT/gwCPgaDjnx0i8w7vBzFLFR1f6CMLKF8gVbebmkUN3fa/kQJpQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MPL-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-linux-arm64-musl": { + "version": "1.32.0", + "resolved": "https://registry.npmjs.org/lightningcss-linux-arm64-musl/-/lightningcss-linux-arm64-musl-1.32.0.tgz", + "integrity": "sha512-UpQkoenr4UJEzgVIYpI80lDFvRmPVg6oqboNHfoH4CQIfNA+HOrZ7Mo7KZP02dC6LjghPQJeBsvXhJod/wnIBg==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MPL-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-linux-x64-gnu": { + "version": "1.32.0", + "resolved": "https://registry.npmjs.org/lightningcss-linux-x64-gnu/-/lightningcss-linux-x64-gnu-1.32.0.tgz", + "integrity": "sha512-V7Qr52IhZmdKPVr+Vtw8o+WLsQJYCTd8loIfpDaMRWGUZfBOYEJeyJIkqGIDMZPwPx24pUMfwSxxI8phr/MbOA==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MPL-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-linux-x64-musl": { + "version": "1.32.0", + "resolved": "https://registry.npmjs.org/lightningcss-linux-x64-musl/-/lightningcss-linux-x64-musl-1.32.0.tgz", + "integrity": "sha512-bYcLp+Vb0awsiXg/80uCRezCYHNg1/l3mt0gzHnWV9XP1W5sKa5/TCdGWaR/zBM2PeF/HbsQv/j2URNOiVuxWg==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MPL-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-win32-arm64-msvc": { + "version": "1.32.0", + "resolved": "https://registry.npmjs.org/lightningcss-win32-arm64-msvc/-/lightningcss-win32-arm64-msvc-1.32.0.tgz", + "integrity": "sha512-8SbC8BR40pS6baCM8sbtYDSwEVQd4JlFTOlaD3gWGHfThTcABnNDBda6eTZeqbofalIJhFx0qKzgHJmcPTnGdw==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MPL-2.0", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-win32-x64-msvc": { + "version": "1.32.0", + "resolved": "https://registry.npmjs.org/lightningcss-win32-x64-msvc/-/lightningcss-win32-x64-msvc-1.32.0.tgz", + "integrity": "sha512-Amq9B/SoZYdDi1kFrojnoqPLxYhQ4Wo5XiL8EVJrVsB8ARoC1PWW6VGtT0WKCemjy8aC+louJnjS7U18x3b06Q==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MPL-2.0", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/magic-string": { + "version": "0.30.21", + "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.30.21.tgz", + "integrity": "sha512-vd2F4YUyEXKGcLHoq+TEyCjxueSeHnFxyyjNp80yg0XV4vUhnDer/lvvlqM/arB5bXQN5K2/3oinyCRyx8T2CQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jridgewell/sourcemap-codec": "^1.5.5" + } + }, + "node_modules/nanoid": { + "version": "3.3.11", + "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.11.tgz", + "integrity": "sha512-N8SpfPUnUp1bK+PMYW8qSWdl9U+wwNWI4QKxOYDy9JAro3WMX7p2OeVRF9v+347pnakNevPmiHhNmZ2HbFA76w==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "MIT", + "bin": { + "nanoid": "bin/nanoid.cjs" + }, + "engines": { + "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1" + } + }, + "node_modules/obug": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/obug/-/obug-2.1.1.tgz", + "integrity": "sha512-uTqF9MuPraAQ+IsnPf366RG4cP9RtUi7MLO1N3KEc+wb0a6yKpeL0lmk2IB1jY5KHPAlTc6T/JRdC/YqxHNwkQ==", + "dev": true, + "funding": [ + "https://github.com/sponsors/sxzz", + "https://opencollective.com/debug" + ], + "license": "MIT" + }, + "node_modules/pathe": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/pathe/-/pathe-2.0.3.tgz", + "integrity": "sha512-WUjGcAqP1gQacoQe+OBJsFA7Ld4DyXuUIjZ5cc75cLHvJ7dtNsTugphxIADwspS+AraAUePCKrSVtPLFj/F88w==", + "dev": true, + "license": "MIT" + }, + "node_modules/picocolors": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz", + "integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==", + "dev": true, + "license": "ISC" + }, + "node_modules/picomatch": { + "version": "4.0.4", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.4.tgz", + "integrity": "sha512-QP88BAKvMam/3NxH6vj2o21R6MjxZUAd6nlwAS/pnGvN9IVLocLHxGYIzFhg6fUQ+5th6P4dv4eW9jX3DSIj7A==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/jonschlinkert" + } + }, + "node_modules/postcss": { + "version": "8.5.9", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.5.9.tgz", + "integrity": "sha512-7a70Nsot+EMX9fFU3064K/kdHWZqGVY+BADLyXc8Dfv+mTLLVl6JzJpPaCZ2kQL9gIJvKXSLMHhqdRRjwQeFtw==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/postcss" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "MIT", + "dependencies": { + "nanoid": "^3.3.11", + "picocolors": "^1.1.1", + "source-map-js": "^1.2.1" + }, + "engines": { + "node": "^10 || ^12 || >=14" + } + }, + "node_modules/rolldown": { + "version": "1.0.0-rc.15", + "resolved": "https://registry.npmjs.org/rolldown/-/rolldown-1.0.0-rc.15.tgz", + "integrity": "sha512-Ff31guA5zT6WjnGp0SXw76X6hzGRk/OQq2hE+1lcDe+lJdHSgnSX6nK3erbONHyCbpSj9a9E+uX/OvytZoWp2g==", + "dev": true, + "license": "MIT", + "dependencies": { + "@oxc-project/types": "=0.124.0", + "@rolldown/pluginutils": "1.0.0-rc.15" + }, + "bin": { + "rolldown": "bin/cli.mjs" + }, + "engines": { + "node": "^20.19.0 || >=22.12.0" + }, + "optionalDependencies": { + "@rolldown/binding-android-arm64": "1.0.0-rc.15", + "@rolldown/binding-darwin-arm64": "1.0.0-rc.15", + "@rolldown/binding-darwin-x64": "1.0.0-rc.15", + "@rolldown/binding-freebsd-x64": "1.0.0-rc.15", + "@rolldown/binding-linux-arm-gnueabihf": "1.0.0-rc.15", + "@rolldown/binding-linux-arm64-gnu": "1.0.0-rc.15", + "@rolldown/binding-linux-arm64-musl": "1.0.0-rc.15", + "@rolldown/binding-linux-ppc64-gnu": "1.0.0-rc.15", + "@rolldown/binding-linux-s390x-gnu": "1.0.0-rc.15", + "@rolldown/binding-linux-x64-gnu": "1.0.0-rc.15", + "@rolldown/binding-linux-x64-musl": "1.0.0-rc.15", + "@rolldown/binding-openharmony-arm64": "1.0.0-rc.15", + "@rolldown/binding-wasm32-wasi": "1.0.0-rc.15", + "@rolldown/binding-win32-arm64-msvc": "1.0.0-rc.15", + "@rolldown/binding-win32-x64-msvc": "1.0.0-rc.15" + } + }, + "node_modules/siginfo": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/siginfo/-/siginfo-2.0.0.tgz", + "integrity": "sha512-ybx0WO1/8bSBLEWXZvEd7gMW3Sn3JFlW3TvX1nREbDLRNQNaeNN8WK0meBwPdAaOI7TtRRRJn/Es1zhrrCHu7g==", + "dev": true, + "license": "ISC" + }, + "node_modules/source-map-js": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.1.tgz", + "integrity": "sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA==", + "dev": true, + "license": "BSD-3-Clause", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/stackback": { + "version": "0.0.2", + "resolved": "https://registry.npmjs.org/stackback/-/stackback-0.0.2.tgz", + "integrity": "sha512-1XMJE5fQo1jGH6Y/7ebnwPOBEkIEnT4QF32d5R1+VXdXveM0IBMJt8zfaxX1P3QhVwrYe+576+jkANtSS2mBbw==", + "dev": true, + "license": "MIT" + }, + "node_modules/std-env": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/std-env/-/std-env-4.0.0.tgz", + "integrity": "sha512-zUMPtQ/HBY3/50VbpkupYHbRroTRZJPRLvreamgErJVys0ceuzMkD44J/QjqhHjOzK42GQ3QZIeFG1OYfOtKqQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/tinybench": { + "version": "2.9.0", + "resolved": "https://registry.npmjs.org/tinybench/-/tinybench-2.9.0.tgz", + "integrity": "sha512-0+DUvqWMValLmha6lr4kD8iAMK1HzV0/aKnCtWb9v9641TnP/MFb7Pc2bxoxQjTXAErryXVgUOfv2YqNllqGeg==", + "dev": true, + "license": "MIT" + }, + "node_modules/tinyexec": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/tinyexec/-/tinyexec-1.1.1.tgz", + "integrity": "sha512-VKS/ZaQhhkKFMANmAOhhXVoIfBXblQxGX1myCQ2faQrfmobMftXeJPcZGp0gS07ocvGJWDLZGyOZDadDBqYIJg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=18" + } + }, + "node_modules/tinyglobby": { + "version": "0.2.16", + "resolved": "https://registry.npmjs.org/tinyglobby/-/tinyglobby-0.2.16.tgz", + "integrity": "sha512-pn99VhoACYR8nFHhxqix+uvsbXineAasWm5ojXoN8xEwK5Kd3/TrhNn1wByuD52UxWRLy8pu+kRMniEi6Eq9Zg==", + "dev": true, + "license": "MIT", + "dependencies": { + "fdir": "^6.5.0", + "picomatch": "^4.0.4" + }, + "engines": { + "node": ">=12.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/SuperchupuDev" + } + }, + "node_modules/tinyrainbow": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/tinyrainbow/-/tinyrainbow-3.1.0.tgz", + "integrity": "sha512-Bf+ILmBgretUrdJxzXM0SgXLZ3XfiaUuOj/IKQHuTXip+05Xn+uyEYdVg0kYDipTBcLrCVyUzAPz7QmArb0mmw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/tslib": { + "version": "2.8.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.8.1.tgz", + "integrity": "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==", + "dev": true, + "license": "0BSD", + "optional": true + }, + "node_modules/typescript": { + "version": "5.9.3", + "dev": true, + "license": "Apache-2.0", + "bin": { + "tsc": "bin/tsc", + "tsserver": "bin/tsserver" + }, + "engines": { + "node": ">=14.17" + } + }, + "node_modules/vite": { + "version": "8.0.8", + "resolved": "https://registry.npmjs.org/vite/-/vite-8.0.8.tgz", + "integrity": "sha512-dbU7/iLVa8KZALJyLOBOQ88nOXtNG8vxKuOT4I2mD+Ya70KPceF4IAmDsmU0h1Qsn5bPrvsY9HJstCRh3hG6Uw==", + "dev": true, + "license": "MIT", + "dependencies": { + "lightningcss": "^1.32.0", + "picomatch": "^4.0.4", + "postcss": "^8.5.8", + "rolldown": "1.0.0-rc.15", + "tinyglobby": "^0.2.15" + }, + "bin": { + "vite": "bin/vite.js" + }, + "engines": { + "node": "^20.19.0 || >=22.12.0" + }, + "funding": { + "url": "https://github.com/vitejs/vite?sponsor=1" + }, + "optionalDependencies": { + "fsevents": "~2.3.3" + }, + "peerDependencies": { + "@types/node": "^20.19.0 || >=22.12.0", + "@vitejs/devtools": "^0.1.0", + "esbuild": "^0.27.0 || ^0.28.0", + "jiti": ">=1.21.0", + "less": "^4.0.0", + "sass": "^1.70.0", + "sass-embedded": "^1.70.0", + "stylus": ">=0.54.8", + "sugarss": "^5.0.0", + "terser": "^5.16.0", + "tsx": "^4.8.1", + "yaml": "^2.4.2" + }, + "peerDependenciesMeta": { + "@types/node": { + "optional": true + }, + "@vitejs/devtools": { + "optional": true + }, + "esbuild": { + "optional": true + }, + "jiti": { + "optional": true + }, + "less": { + "optional": true + }, + "sass": { + "optional": true + }, + "sass-embedded": { + "optional": true + }, + "stylus": { + "optional": true + }, + "sugarss": { + "optional": true + }, + "terser": { + "optional": true + }, + "tsx": { + "optional": true + }, + "yaml": { + "optional": true + } + } + }, + "node_modules/vitest": { + "version": "4.1.4", + "resolved": "https://registry.npmjs.org/vitest/-/vitest-4.1.4.tgz", + "integrity": "sha512-tFuJqTxKb8AvfyqMfnavXdzfy3h3sWZRWwfluGbkeR7n0HUev+FmNgZ8SDrRBTVrVCjgH5cA21qGbCffMNtWvg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@vitest/expect": "4.1.4", + "@vitest/mocker": "4.1.4", + "@vitest/pretty-format": "4.1.4", + "@vitest/runner": "4.1.4", + "@vitest/snapshot": "4.1.4", + "@vitest/spy": "4.1.4", + "@vitest/utils": "4.1.4", + "es-module-lexer": "^2.0.0", + "expect-type": "^1.3.0", + "magic-string": "^0.30.21", + "obug": "^2.1.1", + "pathe": "^2.0.3", + "picomatch": "^4.0.3", + "std-env": "^4.0.0-rc.1", + "tinybench": "^2.9.0", + "tinyexec": "^1.0.2", + "tinyglobby": "^0.2.15", + "tinyrainbow": "^3.1.0", + "vite": "^6.0.0 || ^7.0.0 || ^8.0.0", + "why-is-node-running": "^2.3.0" + }, + "bin": { + "vitest": "vitest.mjs" + }, + "engines": { + "node": "^20.0.0 || ^22.0.0 || >=24.0.0" + }, + "funding": { + "url": "https://opencollective.com/vitest" + }, + "peerDependencies": { + "@edge-runtime/vm": "*", + "@opentelemetry/api": "^1.9.0", + "@types/node": "^20.0.0 || ^22.0.0 || >=24.0.0", + "@vitest/browser-playwright": "4.1.4", + "@vitest/browser-preview": "4.1.4", + "@vitest/browser-webdriverio": "4.1.4", + "@vitest/coverage-istanbul": "4.1.4", + "@vitest/coverage-v8": "4.1.4", + "@vitest/ui": "4.1.4", + "happy-dom": "*", + "jsdom": "*", + "vite": "^6.0.0 || ^7.0.0 || ^8.0.0" + }, + "peerDependenciesMeta": { + "@edge-runtime/vm": { + "optional": true + }, + "@opentelemetry/api": { + "optional": true + }, + "@types/node": { + "optional": true + }, + "@vitest/browser-playwright": { + "optional": true + }, + "@vitest/browser-preview": { + "optional": true + }, + "@vitest/browser-webdriverio": { + "optional": true + }, + "@vitest/coverage-istanbul": { + "optional": true + }, + "@vitest/coverage-v8": { + "optional": true + }, + "@vitest/ui": { + "optional": true + }, + "happy-dom": { + "optional": true + }, + "jsdom": { + "optional": true + }, + "vite": { + "optional": false + } + } + }, + "node_modules/why-is-node-running": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/why-is-node-running/-/why-is-node-running-2.3.0.tgz", + "integrity": "sha512-hUrmaWBdVDcxvYqnyh09zunKzROWjbZTiNy8dBEjkS7ehEDQibXJ7XvlmtbwuTclUiIyN+CyXQD4Vmko8fNm8w==", + "dev": true, + "license": "MIT", + "dependencies": { + "siginfo": "^2.0.0", + "stackback": "0.0.2" + }, + "bin": { + "why-is-node-running": "cli.js" + }, + "engines": { + "node": ">=8" + } + }, + "typescript": { + "name": "@geoengine/openapi-client", + "version": "0.0.33", + "devDependencies": { + "typescript": "^4.0 || ^5.0", + "vitest": "^4.1.4" + } + } + } +} diff --git a/python/.openapi-generator/FILES b/python/.openapi-generator/FILES index ed1af5f7..cd50a171 100644 --- a/python/.openapi-generator/FILES +++ b/python/.openapi-generator/FILES @@ -32,9 +32,11 @@ docs/CountAggregation.md docs/CreateDataset.md docs/CreateProject.md docs/CsvHeader.md -docs/Data1.md +docs/Data.md docs/DataId.md docs/DataPath.md +docs/DataPathUpload.md +docs/DataPathVolume.md docs/DataProviderResource.md docs/DataUsage.md docs/DataUsageSummary.md @@ -88,7 +90,10 @@ docs/GridBoundingBox2D.md docs/GridIdx2D.md docs/Histogram.md docs/HistogramBounds.md +docs/HistogramBoundsValues.md docs/HistogramBuckets.md +docs/HistogramBucketsNumber.md +docs/HistogramBucketsSquareRootChoiceRule.md docs/HistogramParameters.md docs/IdResponse.md docs/InternalDataId.md @@ -135,23 +140,19 @@ docs/MockPointSourceParameters.md docs/MultiBandGdalSource.md docs/MultiBandRasterColorizer.md docs/MultiLineString.md -docs/MultiLineString1.md docs/MultiPoint.md -docs/MultiPoint1.md docs/MultiPolygon.md -docs/MultiPolygon1.md docs/MultipleRasterOrSingleVectorOperator.md docs/MultipleRasterOrSingleVectorSource.md docs/MultipleRasterSources.md docs/Names.md docs/NetCdfCfDataProviderDefinition.md -docs/NoGeometry1.md -docs/Number.md docs/NumberParam.md docs/OGCWCSApi.md docs/OGCWFSApi.md docs/OGCWMSApi.md docs/OgrMetaData.md +docs/OgrSource.md docs/OgrSourceColumnSpec.md docs/OgrSourceDataset.md docs/OgrSourceDatasetTimeType.md @@ -164,6 +165,7 @@ docs/OgrSourceDurationSpecInfinite.md docs/OgrSourceDurationSpecValue.md docs/OgrSourceDurationSpecZero.md docs/OgrSourceErrorSpec.md +docs/OgrSourceParameters.md docs/OgrSourceTimeFormat.md docs/OgrSourceTimeFormatAuto.md docs/OgrSourceTimeFormatCustom.md @@ -237,6 +239,7 @@ docs/SingleRasterOrVectorOperator.md docs/SingleRasterOrVectorSource.md docs/SingleRasterSource.md docs/SingleVectorMultipleRasterSources.md +docs/SingleVectorOrRasterSource.md docs/SpatialBoundsDerive.md docs/SpatialBoundsDeriveBounds.md docs/SpatialBoundsDeriveDerive.md @@ -247,7 +250,6 @@ docs/SpatialGridDescriptorState.md docs/SpatialPartition2D.md docs/SpatialReferenceSpecification.md docs/SpatialReferencesApi.md -docs/SquareRootChoiceRule.md docs/StacApiRetries.md docs/StacQueryBuffer.md docs/StaticColor.md @@ -280,6 +282,10 @@ docs/TimeReference.md docs/TimeStep.md docs/TypedDataProviderDefinition.md docs/TypedGeometry.md +docs/TypedGeometryMultiLineString.md +docs/TypedGeometryMultiPoint.md +docs/TypedGeometryMultiPolygon.md +docs/TypedGeometryNoGeometry.md docs/TypedOperator.md docs/TypedPlotOperator.md docs/TypedPlotResultDescriptor.md @@ -295,7 +301,6 @@ docs/UpdateLayer.md docs/UpdateLayerCollection.md docs/UpdateProject.md docs/UpdateQuota.md -docs/Upload.md docs/UploadFileLayersResponse.md docs/UploadFilesResponse.md docs/UploadsApi.md @@ -305,15 +310,12 @@ docs/UserCredentials.md docs/UserInfo.md docs/UserRegistration.md docs/UserSession.md -docs/Values.md -docs/ValuesValues.md docs/VecUpdate.md docs/VectorColumnInfo.md docs/VectorDataType.md docs/VectorOperator.md docs/VectorResultDescriptor.md docs/Volume.md -docs/Volume1.md docs/VolumeFileLayersResponse.md docs/WcsRequest.md docs/WcsService.md @@ -381,9 +383,11 @@ geoengine_openapi_client/models/count_aggregation.py geoengine_openapi_client/models/create_dataset.py geoengine_openapi_client/models/create_project.py geoengine_openapi_client/models/csv_header.py -geoengine_openapi_client/models/data1.py +geoengine_openapi_client/models/data.py geoengine_openapi_client/models/data_id.py geoengine_openapi_client/models/data_path.py +geoengine_openapi_client/models/data_path_upload.py +geoengine_openapi_client/models/data_path_volume.py geoengine_openapi_client/models/data_provider_resource.py geoengine_openapi_client/models/data_usage.py geoengine_openapi_client/models/data_usage_summary.py @@ -435,7 +439,10 @@ geoengine_openapi_client/models/grid_bounding_box2_d.py geoengine_openapi_client/models/grid_idx2_d.py geoengine_openapi_client/models/histogram.py geoengine_openapi_client/models/histogram_bounds.py +geoengine_openapi_client/models/histogram_bounds_values.py geoengine_openapi_client/models/histogram_buckets.py +geoengine_openapi_client/models/histogram_buckets_number.py +geoengine_openapi_client/models/histogram_buckets_square_root_choice_rule.py geoengine_openapi_client/models/histogram_parameters.py geoengine_openapi_client/models/id_response.py geoengine_openapi_client/models/internal_data_id.py @@ -480,20 +487,16 @@ geoengine_openapi_client/models/mock_point_source_parameters.py geoengine_openapi_client/models/multi_band_gdal_source.py geoengine_openapi_client/models/multi_band_raster_colorizer.py geoengine_openapi_client/models/multi_line_string.py -geoengine_openapi_client/models/multi_line_string1.py geoengine_openapi_client/models/multi_point.py -geoengine_openapi_client/models/multi_point1.py geoengine_openapi_client/models/multi_polygon.py -geoengine_openapi_client/models/multi_polygon1.py geoengine_openapi_client/models/multiple_raster_or_single_vector_operator.py geoengine_openapi_client/models/multiple_raster_or_single_vector_source.py geoengine_openapi_client/models/multiple_raster_sources.py geoengine_openapi_client/models/names.py geoengine_openapi_client/models/net_cdf_cf_data_provider_definition.py -geoengine_openapi_client/models/no_geometry1.py -geoengine_openapi_client/models/number.py geoengine_openapi_client/models/number_param.py geoengine_openapi_client/models/ogr_meta_data.py +geoengine_openapi_client/models/ogr_source.py geoengine_openapi_client/models/ogr_source_column_spec.py geoengine_openapi_client/models/ogr_source_dataset.py geoengine_openapi_client/models/ogr_source_dataset_time_type.py @@ -506,6 +509,7 @@ geoengine_openapi_client/models/ogr_source_duration_spec_infinite.py geoengine_openapi_client/models/ogr_source_duration_spec_value.py geoengine_openapi_client/models/ogr_source_duration_spec_zero.py geoengine_openapi_client/models/ogr_source_error_spec.py +geoengine_openapi_client/models/ogr_source_parameters.py geoengine_openapi_client/models/ogr_source_time_format.py geoengine_openapi_client/models/ogr_source_time_format_auto.py geoengine_openapi_client/models/ogr_source_time_format_custom.py @@ -574,6 +578,7 @@ geoengine_openapi_client/models/single_raster_or_vector_operator.py geoengine_openapi_client/models/single_raster_or_vector_source.py geoengine_openapi_client/models/single_raster_source.py geoengine_openapi_client/models/single_vector_multiple_raster_sources.py +geoengine_openapi_client/models/single_vector_or_raster_source.py geoengine_openapi_client/models/spatial_bounds_derive.py geoengine_openapi_client/models/spatial_bounds_derive_bounds.py geoengine_openapi_client/models/spatial_bounds_derive_derive.py @@ -583,7 +588,6 @@ geoengine_openapi_client/models/spatial_grid_descriptor.py geoengine_openapi_client/models/spatial_grid_descriptor_state.py geoengine_openapi_client/models/spatial_partition2_d.py geoengine_openapi_client/models/spatial_reference_specification.py -geoengine_openapi_client/models/square_root_choice_rule.py geoengine_openapi_client/models/st_rectangle.py geoengine_openapi_client/models/stac_api_retries.py geoengine_openapi_client/models/stac_query_buffer.py @@ -616,6 +620,10 @@ geoengine_openapi_client/models/time_reference.py geoengine_openapi_client/models/time_step.py geoengine_openapi_client/models/typed_data_provider_definition.py geoengine_openapi_client/models/typed_geometry.py +geoengine_openapi_client/models/typed_geometry_multi_line_string.py +geoengine_openapi_client/models/typed_geometry_multi_point.py +geoengine_openapi_client/models/typed_geometry_multi_polygon.py +geoengine_openapi_client/models/typed_geometry_no_geometry.py geoengine_openapi_client/models/typed_operator.py geoengine_openapi_client/models/typed_plot_operator.py geoengine_openapi_client/models/typed_plot_result_descriptor.py @@ -631,7 +639,6 @@ geoengine_openapi_client/models/update_layer.py geoengine_openapi_client/models/update_layer_collection.py geoengine_openapi_client/models/update_project.py geoengine_openapi_client/models/update_quota.py -geoengine_openapi_client/models/upload.py geoengine_openapi_client/models/upload_file_layers_response.py geoengine_openapi_client/models/upload_files_response.py geoengine_openapi_client/models/usage_summary_granularity.py @@ -639,15 +646,12 @@ geoengine_openapi_client/models/user_credentials.py geoengine_openapi_client/models/user_info.py geoengine_openapi_client/models/user_registration.py geoengine_openapi_client/models/user_session.py -geoengine_openapi_client/models/values.py -geoengine_openapi_client/models/values_values.py geoengine_openapi_client/models/vec_update.py geoengine_openapi_client/models/vector_column_info.py geoengine_openapi_client/models/vector_data_type.py geoengine_openapi_client/models/vector_operator.py geoengine_openapi_client/models/vector_result_descriptor.py geoengine_openapi_client/models/volume.py -geoengine_openapi_client/models/volume1.py geoengine_openapi_client/models/volume_file_layers_response.py geoengine_openapi_client/models/wcs_request.py geoengine_openapi_client/models/wcs_service.py @@ -700,9 +704,11 @@ test/test_count_aggregation.py test/test_create_dataset.py test/test_create_project.py test/test_csv_header.py -test/test_data1.py +test/test_data.py test/test_data_id.py test/test_data_path.py +test/test_data_path_upload.py +test/test_data_path_volume.py test/test_data_provider_resource.py test/test_data_usage.py test/test_data_usage_summary.py @@ -756,7 +762,10 @@ test/test_grid_bounding_box2_d.py test/test_grid_idx2_d.py test/test_histogram.py test/test_histogram_bounds.py +test/test_histogram_bounds_values.py test/test_histogram_buckets.py +test/test_histogram_buckets_number.py +test/test_histogram_buckets_square_root_choice_rule.py test/test_histogram_parameters.py test/test_id_response.py test/test_internal_data_id.py @@ -803,23 +812,19 @@ test/test_mock_point_source_parameters.py test/test_multi_band_gdal_source.py test/test_multi_band_raster_colorizer.py test/test_multi_line_string.py -test/test_multi_line_string1.py test/test_multi_point.py -test/test_multi_point1.py test/test_multi_polygon.py -test/test_multi_polygon1.py test/test_multiple_raster_or_single_vector_operator.py test/test_multiple_raster_or_single_vector_source.py test/test_multiple_raster_sources.py test/test_names.py test/test_net_cdf_cf_data_provider_definition.py -test/test_no_geometry1.py -test/test_number.py test/test_number_param.py test/test_ogcwcs_api.py test/test_ogcwfs_api.py test/test_ogcwms_api.py test/test_ogr_meta_data.py +test/test_ogr_source.py test/test_ogr_source_column_spec.py test/test_ogr_source_dataset.py test/test_ogr_source_dataset_time_type.py @@ -832,6 +837,7 @@ test/test_ogr_source_duration_spec_infinite.py test/test_ogr_source_duration_spec_value.py test/test_ogr_source_duration_spec_zero.py test/test_ogr_source_error_spec.py +test/test_ogr_source_parameters.py test/test_ogr_source_time_format.py test/test_ogr_source_time_format_auto.py test/test_ogr_source_time_format_custom.py @@ -904,6 +910,7 @@ test/test_single_raster_or_vector_operator.py test/test_single_raster_or_vector_source.py test/test_single_raster_source.py test/test_single_vector_multiple_raster_sources.py +test/test_single_vector_or_raster_source.py test/test_spatial_bounds_derive.py test/test_spatial_bounds_derive_bounds.py test/test_spatial_bounds_derive_derive.py @@ -914,7 +921,6 @@ test/test_spatial_grid_descriptor_state.py test/test_spatial_partition2_d.py test/test_spatial_reference_specification.py test/test_spatial_references_api.py -test/test_square_root_choice_rule.py test/test_st_rectangle.py test/test_stac_api_retries.py test/test_stac_query_buffer.py @@ -948,6 +954,10 @@ test/test_time_reference.py test/test_time_step.py test/test_typed_data_provider_definition.py test/test_typed_geometry.py +test/test_typed_geometry_multi_line_string.py +test/test_typed_geometry_multi_point.py +test/test_typed_geometry_multi_polygon.py +test/test_typed_geometry_no_geometry.py test/test_typed_operator.py test/test_typed_plot_operator.py test/test_typed_plot_result_descriptor.py @@ -963,7 +973,6 @@ test/test_update_layer.py test/test_update_layer_collection.py test/test_update_project.py test/test_update_quota.py -test/test_upload.py test/test_upload_file_layers_response.py test/test_upload_files_response.py test/test_uploads_api.py @@ -973,15 +982,12 @@ test/test_user_credentials.py test/test_user_info.py test/test_user_registration.py test/test_user_session.py -test/test_values.py -test/test_values_values.py test/test_vec_update.py test/test_vector_column_info.py test/test_vector_data_type.py test/test_vector_operator.py test/test_vector_result_descriptor.py test/test_volume.py -test/test_volume1.py test/test_volume_file_layers_response.py test/test_wcs_request.py test/test_wcs_service.py diff --git a/python/README.md b/python/README.md index c795fe13..b94b44fe 100644 --- a/python/README.md +++ b/python/README.md @@ -218,9 +218,11 @@ Class | Method | HTTP request | Description - [CreateDataset](docs/CreateDataset.md) - [CreateProject](docs/CreateProject.md) - [CsvHeader](docs/CsvHeader.md) - - [Data1](docs/Data1.md) + - [Data](docs/Data.md) - [DataId](docs/DataId.md) - [DataPath](docs/DataPath.md) + - [DataPathUpload](docs/DataPathUpload.md) + - [DataPathVolume](docs/DataPathVolume.md) - [DataProviderResource](docs/DataProviderResource.md) - [DataUsage](docs/DataUsage.md) - [DataUsageSummary](docs/DataUsageSummary.md) @@ -272,7 +274,10 @@ Class | Method | HTTP request | Description - [GridIdx2D](docs/GridIdx2D.md) - [Histogram](docs/Histogram.md) - [HistogramBounds](docs/HistogramBounds.md) + - [HistogramBoundsValues](docs/HistogramBoundsValues.md) - [HistogramBuckets](docs/HistogramBuckets.md) + - [HistogramBucketsNumber](docs/HistogramBucketsNumber.md) + - [HistogramBucketsSquareRootChoiceRule](docs/HistogramBucketsSquareRootChoiceRule.md) - [HistogramParameters](docs/HistogramParameters.md) - [IdResponse](docs/IdResponse.md) - [InternalDataId](docs/InternalDataId.md) @@ -317,20 +322,16 @@ Class | Method | HTTP request | Description - [MultiBandGdalSource](docs/MultiBandGdalSource.md) - [MultiBandRasterColorizer](docs/MultiBandRasterColorizer.md) - [MultiLineString](docs/MultiLineString.md) - - [MultiLineString1](docs/MultiLineString1.md) - [MultiPoint](docs/MultiPoint.md) - - [MultiPoint1](docs/MultiPoint1.md) - [MultiPolygon](docs/MultiPolygon.md) - - [MultiPolygon1](docs/MultiPolygon1.md) - [MultipleRasterOrSingleVectorOperator](docs/MultipleRasterOrSingleVectorOperator.md) - [MultipleRasterOrSingleVectorSource](docs/MultipleRasterOrSingleVectorSource.md) - [MultipleRasterSources](docs/MultipleRasterSources.md) - [Names](docs/Names.md) - [NetCdfCfDataProviderDefinition](docs/NetCdfCfDataProviderDefinition.md) - - [NoGeometry1](docs/NoGeometry1.md) - - [Number](docs/Number.md) - [NumberParam](docs/NumberParam.md) - [OgrMetaData](docs/OgrMetaData.md) + - [OgrSource](docs/OgrSource.md) - [OgrSourceColumnSpec](docs/OgrSourceColumnSpec.md) - [OgrSourceDataset](docs/OgrSourceDataset.md) - [OgrSourceDatasetTimeType](docs/OgrSourceDatasetTimeType.md) @@ -343,6 +344,7 @@ Class | Method | HTTP request | Description - [OgrSourceDurationSpecValue](docs/OgrSourceDurationSpecValue.md) - [OgrSourceDurationSpecZero](docs/OgrSourceDurationSpecZero.md) - [OgrSourceErrorSpec](docs/OgrSourceErrorSpec.md) + - [OgrSourceParameters](docs/OgrSourceParameters.md) - [OgrSourceTimeFormat](docs/OgrSourceTimeFormat.md) - [OgrSourceTimeFormatAuto](docs/OgrSourceTimeFormatAuto.md) - [OgrSourceTimeFormatCustom](docs/OgrSourceTimeFormatCustom.md) @@ -412,6 +414,7 @@ Class | Method | HTTP request | Description - [SingleRasterOrVectorSource](docs/SingleRasterOrVectorSource.md) - [SingleRasterSource](docs/SingleRasterSource.md) - [SingleVectorMultipleRasterSources](docs/SingleVectorMultipleRasterSources.md) + - [SingleVectorOrRasterSource](docs/SingleVectorOrRasterSource.md) - [SpatialBoundsDerive](docs/SpatialBoundsDerive.md) - [SpatialBoundsDeriveBounds](docs/SpatialBoundsDeriveBounds.md) - [SpatialBoundsDeriveDerive](docs/SpatialBoundsDeriveDerive.md) @@ -421,7 +424,6 @@ Class | Method | HTTP request | Description - [SpatialGridDescriptorState](docs/SpatialGridDescriptorState.md) - [SpatialPartition2D](docs/SpatialPartition2D.md) - [SpatialReferenceSpecification](docs/SpatialReferenceSpecification.md) - - [SquareRootChoiceRule](docs/SquareRootChoiceRule.md) - [StacApiRetries](docs/StacApiRetries.md) - [StacQueryBuffer](docs/StacQueryBuffer.md) - [StaticColor](docs/StaticColor.md) @@ -453,6 +455,10 @@ Class | Method | HTTP request | Description - [TimeStep](docs/TimeStep.md) - [TypedDataProviderDefinition](docs/TypedDataProviderDefinition.md) - [TypedGeometry](docs/TypedGeometry.md) + - [TypedGeometryMultiLineString](docs/TypedGeometryMultiLineString.md) + - [TypedGeometryMultiPoint](docs/TypedGeometryMultiPoint.md) + - [TypedGeometryMultiPolygon](docs/TypedGeometryMultiPolygon.md) + - [TypedGeometryNoGeometry](docs/TypedGeometryNoGeometry.md) - [TypedOperator](docs/TypedOperator.md) - [TypedPlotOperator](docs/TypedPlotOperator.md) - [TypedPlotResultDescriptor](docs/TypedPlotResultDescriptor.md) @@ -468,7 +474,6 @@ Class | Method | HTTP request | Description - [UpdateLayerCollection](docs/UpdateLayerCollection.md) - [UpdateProject](docs/UpdateProject.md) - [UpdateQuota](docs/UpdateQuota.md) - - [Upload](docs/Upload.md) - [UploadFileLayersResponse](docs/UploadFileLayersResponse.md) - [UploadFilesResponse](docs/UploadFilesResponse.md) - [UsageSummaryGranularity](docs/UsageSummaryGranularity.md) @@ -476,15 +481,12 @@ Class | Method | HTTP request | Description - [UserInfo](docs/UserInfo.md) - [UserRegistration](docs/UserRegistration.md) - [UserSession](docs/UserSession.md) - - [Values](docs/Values.md) - - [ValuesValues](docs/ValuesValues.md) - [VecUpdate](docs/VecUpdate.md) - [VectorColumnInfo](docs/VectorColumnInfo.md) - [VectorDataType](docs/VectorDataType.md) - [VectorOperator](docs/VectorOperator.md) - [VectorResultDescriptor](docs/VectorResultDescriptor.md) - [Volume](docs/Volume.md) - - [Volume1](docs/Volume1.md) - [VolumeFileLayersResponse](docs/VolumeFileLayersResponse.md) - [WcsRequest](docs/WcsRequest.md) - [WcsService](docs/WcsService.md) diff --git a/python/geoengine_openapi_client/__init__.py b/python/geoengine_openapi_client/__init__.py index 7d8e1ebd..1bc188a6 100644 --- a/python/geoengine_openapi_client/__init__.py +++ b/python/geoengine_openapi_client/__init__.py @@ -73,9 +73,11 @@ "CreateDataset", "CreateProject", "CsvHeader", - "Data1", + "Data", "DataId", "DataPath", + "DataPathUpload", + "DataPathVolume", "DataProviderResource", "DataUsage", "DataUsageSummary", @@ -127,7 +129,10 @@ "GridIdx2D", "Histogram", "HistogramBounds", + "HistogramBoundsValues", "HistogramBuckets", + "HistogramBucketsNumber", + "HistogramBucketsSquareRootChoiceRule", "HistogramParameters", "IdResponse", "InternalDataId", @@ -172,20 +177,16 @@ "MultiBandGdalSource", "MultiBandRasterColorizer", "MultiLineString", - "MultiLineString1", "MultiPoint", - "MultiPoint1", "MultiPolygon", - "MultiPolygon1", "MultipleRasterOrSingleVectorOperator", "MultipleRasterOrSingleVectorSource", "MultipleRasterSources", "Names", "NetCdfCfDataProviderDefinition", - "NoGeometry1", - "Number", "NumberParam", "OgrMetaData", + "OgrSource", "OgrSourceColumnSpec", "OgrSourceDataset", "OgrSourceDatasetTimeType", @@ -198,6 +199,7 @@ "OgrSourceDurationSpecValue", "OgrSourceDurationSpecZero", "OgrSourceErrorSpec", + "OgrSourceParameters", "OgrSourceTimeFormat", "OgrSourceTimeFormatAuto", "OgrSourceTimeFormatCustom", @@ -267,6 +269,7 @@ "SingleRasterOrVectorSource", "SingleRasterSource", "SingleVectorMultipleRasterSources", + "SingleVectorOrRasterSource", "SpatialBoundsDerive", "SpatialBoundsDeriveBounds", "SpatialBoundsDeriveDerive", @@ -276,7 +279,6 @@ "SpatialGridDescriptorState", "SpatialPartition2D", "SpatialReferenceSpecification", - "SquareRootChoiceRule", "StacApiRetries", "StacQueryBuffer", "StaticColor", @@ -308,6 +310,10 @@ "TimeStep", "TypedDataProviderDefinition", "TypedGeometry", + "TypedGeometryMultiLineString", + "TypedGeometryMultiPoint", + "TypedGeometryMultiPolygon", + "TypedGeometryNoGeometry", "TypedOperator", "TypedPlotOperator", "TypedPlotResultDescriptor", @@ -323,7 +329,6 @@ "UpdateLayerCollection", "UpdateProject", "UpdateQuota", - "Upload", "UploadFileLayersResponse", "UploadFilesResponse", "UsageSummaryGranularity", @@ -331,15 +336,12 @@ "UserInfo", "UserRegistration", "UserSession", - "Values", - "ValuesValues", "VecUpdate", "VectorColumnInfo", "VectorDataType", "VectorOperator", "VectorResultDescriptor", "Volume", - "Volume1", "VolumeFileLayersResponse", "WcsRequest", "WcsService", @@ -415,9 +417,11 @@ from geoengine_openapi_client.models.create_dataset import CreateDataset as CreateDataset from geoengine_openapi_client.models.create_project import CreateProject as CreateProject from geoengine_openapi_client.models.csv_header import CsvHeader as CsvHeader -from geoengine_openapi_client.models.data1 import Data1 as Data1 +from geoengine_openapi_client.models.data import Data as Data from geoengine_openapi_client.models.data_id import DataId as DataId from geoengine_openapi_client.models.data_path import DataPath as DataPath +from geoengine_openapi_client.models.data_path_upload import DataPathUpload as DataPathUpload +from geoengine_openapi_client.models.data_path_volume import DataPathVolume as DataPathVolume from geoengine_openapi_client.models.data_provider_resource import DataProviderResource as DataProviderResource from geoengine_openapi_client.models.data_usage import DataUsage as DataUsage from geoengine_openapi_client.models.data_usage_summary import DataUsageSummary as DataUsageSummary @@ -469,7 +473,10 @@ from geoengine_openapi_client.models.grid_idx2_d import GridIdx2D as GridIdx2D from geoengine_openapi_client.models.histogram import Histogram as Histogram from geoengine_openapi_client.models.histogram_bounds import HistogramBounds as HistogramBounds +from geoengine_openapi_client.models.histogram_bounds_values import HistogramBoundsValues as HistogramBoundsValues from geoengine_openapi_client.models.histogram_buckets import HistogramBuckets as HistogramBuckets +from geoengine_openapi_client.models.histogram_buckets_number import HistogramBucketsNumber as HistogramBucketsNumber +from geoengine_openapi_client.models.histogram_buckets_square_root_choice_rule import HistogramBucketsSquareRootChoiceRule as HistogramBucketsSquareRootChoiceRule from geoengine_openapi_client.models.histogram_parameters import HistogramParameters as HistogramParameters from geoengine_openapi_client.models.id_response import IdResponse as IdResponse from geoengine_openapi_client.models.internal_data_id import InternalDataId as InternalDataId @@ -514,20 +521,16 @@ from geoengine_openapi_client.models.multi_band_gdal_source import MultiBandGdalSource as MultiBandGdalSource from geoengine_openapi_client.models.multi_band_raster_colorizer import MultiBandRasterColorizer as MultiBandRasterColorizer from geoengine_openapi_client.models.multi_line_string import MultiLineString as MultiLineString -from geoengine_openapi_client.models.multi_line_string1 import MultiLineString1 as MultiLineString1 from geoengine_openapi_client.models.multi_point import MultiPoint as MultiPoint -from geoengine_openapi_client.models.multi_point1 import MultiPoint1 as MultiPoint1 from geoengine_openapi_client.models.multi_polygon import MultiPolygon as MultiPolygon -from geoengine_openapi_client.models.multi_polygon1 import MultiPolygon1 as MultiPolygon1 from geoengine_openapi_client.models.multiple_raster_or_single_vector_operator import MultipleRasterOrSingleVectorOperator as MultipleRasterOrSingleVectorOperator from geoengine_openapi_client.models.multiple_raster_or_single_vector_source import MultipleRasterOrSingleVectorSource as MultipleRasterOrSingleVectorSource from geoengine_openapi_client.models.multiple_raster_sources import MultipleRasterSources as MultipleRasterSources from geoengine_openapi_client.models.names import Names as Names from geoengine_openapi_client.models.net_cdf_cf_data_provider_definition import NetCdfCfDataProviderDefinition as NetCdfCfDataProviderDefinition -from geoengine_openapi_client.models.no_geometry1 import NoGeometry1 as NoGeometry1 -from geoengine_openapi_client.models.number import Number as Number from geoengine_openapi_client.models.number_param import NumberParam as NumberParam from geoengine_openapi_client.models.ogr_meta_data import OgrMetaData as OgrMetaData +from geoengine_openapi_client.models.ogr_source import OgrSource as OgrSource from geoengine_openapi_client.models.ogr_source_column_spec import OgrSourceColumnSpec as OgrSourceColumnSpec from geoengine_openapi_client.models.ogr_source_dataset import OgrSourceDataset as OgrSourceDataset from geoengine_openapi_client.models.ogr_source_dataset_time_type import OgrSourceDatasetTimeType as OgrSourceDatasetTimeType @@ -540,6 +543,7 @@ from geoengine_openapi_client.models.ogr_source_duration_spec_value import OgrSourceDurationSpecValue as OgrSourceDurationSpecValue from geoengine_openapi_client.models.ogr_source_duration_spec_zero import OgrSourceDurationSpecZero as OgrSourceDurationSpecZero from geoengine_openapi_client.models.ogr_source_error_spec import OgrSourceErrorSpec as OgrSourceErrorSpec +from geoengine_openapi_client.models.ogr_source_parameters import OgrSourceParameters as OgrSourceParameters from geoengine_openapi_client.models.ogr_source_time_format import OgrSourceTimeFormat as OgrSourceTimeFormat from geoengine_openapi_client.models.ogr_source_time_format_auto import OgrSourceTimeFormatAuto as OgrSourceTimeFormatAuto from geoengine_openapi_client.models.ogr_source_time_format_custom import OgrSourceTimeFormatCustom as OgrSourceTimeFormatCustom @@ -609,6 +613,7 @@ from geoengine_openapi_client.models.single_raster_or_vector_source import SingleRasterOrVectorSource as SingleRasterOrVectorSource from geoengine_openapi_client.models.single_raster_source import SingleRasterSource as SingleRasterSource from geoengine_openapi_client.models.single_vector_multiple_raster_sources import SingleVectorMultipleRasterSources as SingleVectorMultipleRasterSources +from geoengine_openapi_client.models.single_vector_or_raster_source import SingleVectorOrRasterSource as SingleVectorOrRasterSource from geoengine_openapi_client.models.spatial_bounds_derive import SpatialBoundsDerive as SpatialBoundsDerive from geoengine_openapi_client.models.spatial_bounds_derive_bounds import SpatialBoundsDeriveBounds as SpatialBoundsDeriveBounds from geoengine_openapi_client.models.spatial_bounds_derive_derive import SpatialBoundsDeriveDerive as SpatialBoundsDeriveDerive @@ -618,7 +623,6 @@ from geoengine_openapi_client.models.spatial_grid_descriptor_state import SpatialGridDescriptorState as SpatialGridDescriptorState from geoengine_openapi_client.models.spatial_partition2_d import SpatialPartition2D as SpatialPartition2D from geoengine_openapi_client.models.spatial_reference_specification import SpatialReferenceSpecification as SpatialReferenceSpecification -from geoengine_openapi_client.models.square_root_choice_rule import SquareRootChoiceRule as SquareRootChoiceRule from geoengine_openapi_client.models.stac_api_retries import StacApiRetries as StacApiRetries from geoengine_openapi_client.models.stac_query_buffer import StacQueryBuffer as StacQueryBuffer from geoengine_openapi_client.models.static_color import StaticColor as StaticColor @@ -650,6 +654,10 @@ from geoengine_openapi_client.models.time_step import TimeStep as TimeStep from geoengine_openapi_client.models.typed_data_provider_definition import TypedDataProviderDefinition as TypedDataProviderDefinition from geoengine_openapi_client.models.typed_geometry import TypedGeometry as TypedGeometry +from geoengine_openapi_client.models.typed_geometry_multi_line_string import TypedGeometryMultiLineString as TypedGeometryMultiLineString +from geoengine_openapi_client.models.typed_geometry_multi_point import TypedGeometryMultiPoint as TypedGeometryMultiPoint +from geoengine_openapi_client.models.typed_geometry_multi_polygon import TypedGeometryMultiPolygon as TypedGeometryMultiPolygon +from geoengine_openapi_client.models.typed_geometry_no_geometry import TypedGeometryNoGeometry as TypedGeometryNoGeometry from geoengine_openapi_client.models.typed_operator import TypedOperator as TypedOperator from geoengine_openapi_client.models.typed_plot_operator import TypedPlotOperator as TypedPlotOperator from geoengine_openapi_client.models.typed_plot_result_descriptor import TypedPlotResultDescriptor as TypedPlotResultDescriptor @@ -665,7 +673,6 @@ from geoengine_openapi_client.models.update_layer_collection import UpdateLayerCollection as UpdateLayerCollection from geoengine_openapi_client.models.update_project import UpdateProject as UpdateProject from geoengine_openapi_client.models.update_quota import UpdateQuota as UpdateQuota -from geoengine_openapi_client.models.upload import Upload as Upload from geoengine_openapi_client.models.upload_file_layers_response import UploadFileLayersResponse as UploadFileLayersResponse from geoengine_openapi_client.models.upload_files_response import UploadFilesResponse as UploadFilesResponse from geoengine_openapi_client.models.usage_summary_granularity import UsageSummaryGranularity as UsageSummaryGranularity @@ -673,15 +680,12 @@ from geoengine_openapi_client.models.user_info import UserInfo as UserInfo from geoengine_openapi_client.models.user_registration import UserRegistration as UserRegistration from geoengine_openapi_client.models.user_session import UserSession as UserSession -from geoengine_openapi_client.models.values import Values as Values -from geoengine_openapi_client.models.values_values import ValuesValues as ValuesValues from geoengine_openapi_client.models.vec_update import VecUpdate as VecUpdate from geoengine_openapi_client.models.vector_column_info import VectorColumnInfo as VectorColumnInfo from geoengine_openapi_client.models.vector_data_type import VectorDataType as VectorDataType from geoengine_openapi_client.models.vector_operator import VectorOperator as VectorOperator from geoengine_openapi_client.models.vector_result_descriptor import VectorResultDescriptor as VectorResultDescriptor from geoengine_openapi_client.models.volume import Volume as Volume -from geoengine_openapi_client.models.volume1 import Volume1 as Volume1 from geoengine_openapi_client.models.volume_file_layers_response import VolumeFileLayersResponse as VolumeFileLayersResponse from geoengine_openapi_client.models.wcs_request import WcsRequest as WcsRequest from geoengine_openapi_client.models.wcs_service import WcsService as WcsService diff --git a/python/geoengine_openapi_client/models/__init__.py b/python/geoengine_openapi_client/models/__init__.py index d0f71d78..edef8cf7 100644 --- a/python/geoengine_openapi_client/models/__init__.py +++ b/python/geoengine_openapi_client/models/__init__.py @@ -43,9 +43,11 @@ from geoengine_openapi_client.models.create_dataset import CreateDataset from geoengine_openapi_client.models.create_project import CreateProject from geoengine_openapi_client.models.csv_header import CsvHeader -from geoengine_openapi_client.models.data1 import Data1 +from geoengine_openapi_client.models.data import Data from geoengine_openapi_client.models.data_id import DataId from geoengine_openapi_client.models.data_path import DataPath +from geoengine_openapi_client.models.data_path_upload import DataPathUpload +from geoengine_openapi_client.models.data_path_volume import DataPathVolume from geoengine_openapi_client.models.data_provider_resource import DataProviderResource from geoengine_openapi_client.models.data_usage import DataUsage from geoengine_openapi_client.models.data_usage_summary import DataUsageSummary @@ -97,7 +99,10 @@ from geoengine_openapi_client.models.grid_idx2_d import GridIdx2D from geoengine_openapi_client.models.histogram import Histogram from geoengine_openapi_client.models.histogram_bounds import HistogramBounds +from geoengine_openapi_client.models.histogram_bounds_values import HistogramBoundsValues from geoengine_openapi_client.models.histogram_buckets import HistogramBuckets +from geoengine_openapi_client.models.histogram_buckets_number import HistogramBucketsNumber +from geoengine_openapi_client.models.histogram_buckets_square_root_choice_rule import HistogramBucketsSquareRootChoiceRule from geoengine_openapi_client.models.histogram_parameters import HistogramParameters from geoengine_openapi_client.models.id_response import IdResponse from geoengine_openapi_client.models.internal_data_id import InternalDataId @@ -142,20 +147,16 @@ from geoengine_openapi_client.models.multi_band_gdal_source import MultiBandGdalSource from geoengine_openapi_client.models.multi_band_raster_colorizer import MultiBandRasterColorizer from geoengine_openapi_client.models.multi_line_string import MultiLineString -from geoengine_openapi_client.models.multi_line_string1 import MultiLineString1 from geoengine_openapi_client.models.multi_point import MultiPoint -from geoengine_openapi_client.models.multi_point1 import MultiPoint1 from geoengine_openapi_client.models.multi_polygon import MultiPolygon -from geoengine_openapi_client.models.multi_polygon1 import MultiPolygon1 from geoengine_openapi_client.models.multiple_raster_or_single_vector_operator import MultipleRasterOrSingleVectorOperator from geoengine_openapi_client.models.multiple_raster_or_single_vector_source import MultipleRasterOrSingleVectorSource from geoengine_openapi_client.models.multiple_raster_sources import MultipleRasterSources from geoengine_openapi_client.models.names import Names from geoengine_openapi_client.models.net_cdf_cf_data_provider_definition import NetCdfCfDataProviderDefinition -from geoengine_openapi_client.models.no_geometry1 import NoGeometry1 -from geoengine_openapi_client.models.number import Number from geoengine_openapi_client.models.number_param import NumberParam from geoengine_openapi_client.models.ogr_meta_data import OgrMetaData +from geoengine_openapi_client.models.ogr_source import OgrSource from geoengine_openapi_client.models.ogr_source_column_spec import OgrSourceColumnSpec from geoengine_openapi_client.models.ogr_source_dataset import OgrSourceDataset from geoengine_openapi_client.models.ogr_source_dataset_time_type import OgrSourceDatasetTimeType @@ -168,6 +169,7 @@ from geoengine_openapi_client.models.ogr_source_duration_spec_value import OgrSourceDurationSpecValue from geoengine_openapi_client.models.ogr_source_duration_spec_zero import OgrSourceDurationSpecZero from geoengine_openapi_client.models.ogr_source_error_spec import OgrSourceErrorSpec +from geoengine_openapi_client.models.ogr_source_parameters import OgrSourceParameters from geoengine_openapi_client.models.ogr_source_time_format import OgrSourceTimeFormat from geoengine_openapi_client.models.ogr_source_time_format_auto import OgrSourceTimeFormatAuto from geoengine_openapi_client.models.ogr_source_time_format_custom import OgrSourceTimeFormatCustom @@ -237,6 +239,7 @@ from geoengine_openapi_client.models.single_raster_or_vector_source import SingleRasterOrVectorSource from geoengine_openapi_client.models.single_raster_source import SingleRasterSource from geoengine_openapi_client.models.single_vector_multiple_raster_sources import SingleVectorMultipleRasterSources +from geoengine_openapi_client.models.single_vector_or_raster_source import SingleVectorOrRasterSource from geoengine_openapi_client.models.spatial_bounds_derive import SpatialBoundsDerive from geoengine_openapi_client.models.spatial_bounds_derive_bounds import SpatialBoundsDeriveBounds from geoengine_openapi_client.models.spatial_bounds_derive_derive import SpatialBoundsDeriveDerive @@ -246,7 +249,6 @@ from geoengine_openapi_client.models.spatial_grid_descriptor_state import SpatialGridDescriptorState from geoengine_openapi_client.models.spatial_partition2_d import SpatialPartition2D from geoengine_openapi_client.models.spatial_reference_specification import SpatialReferenceSpecification -from geoengine_openapi_client.models.square_root_choice_rule import SquareRootChoiceRule from geoengine_openapi_client.models.stac_api_retries import StacApiRetries from geoengine_openapi_client.models.stac_query_buffer import StacQueryBuffer from geoengine_openapi_client.models.static_color import StaticColor @@ -278,6 +280,10 @@ from geoengine_openapi_client.models.time_step import TimeStep from geoengine_openapi_client.models.typed_data_provider_definition import TypedDataProviderDefinition from geoengine_openapi_client.models.typed_geometry import TypedGeometry +from geoengine_openapi_client.models.typed_geometry_multi_line_string import TypedGeometryMultiLineString +from geoengine_openapi_client.models.typed_geometry_multi_point import TypedGeometryMultiPoint +from geoengine_openapi_client.models.typed_geometry_multi_polygon import TypedGeometryMultiPolygon +from geoengine_openapi_client.models.typed_geometry_no_geometry import TypedGeometryNoGeometry from geoengine_openapi_client.models.typed_operator import TypedOperator from geoengine_openapi_client.models.typed_plot_operator import TypedPlotOperator from geoengine_openapi_client.models.typed_plot_result_descriptor import TypedPlotResultDescriptor @@ -293,7 +299,6 @@ from geoengine_openapi_client.models.update_layer_collection import UpdateLayerCollection from geoengine_openapi_client.models.update_project import UpdateProject from geoengine_openapi_client.models.update_quota import UpdateQuota -from geoengine_openapi_client.models.upload import Upload from geoengine_openapi_client.models.upload_file_layers_response import UploadFileLayersResponse from geoengine_openapi_client.models.upload_files_response import UploadFilesResponse from geoengine_openapi_client.models.usage_summary_granularity import UsageSummaryGranularity @@ -301,15 +306,12 @@ from geoengine_openapi_client.models.user_info import UserInfo from geoengine_openapi_client.models.user_registration import UserRegistration from geoengine_openapi_client.models.user_session import UserSession -from geoengine_openapi_client.models.values import Values -from geoengine_openapi_client.models.values_values import ValuesValues from geoengine_openapi_client.models.vec_update import VecUpdate from geoengine_openapi_client.models.vector_column_info import VectorColumnInfo from geoengine_openapi_client.models.vector_data_type import VectorDataType from geoengine_openapi_client.models.vector_operator import VectorOperator from geoengine_openapi_client.models.vector_result_descriptor import VectorResultDescriptor from geoengine_openapi_client.models.volume import Volume -from geoengine_openapi_client.models.volume1 import Volume1 from geoengine_openapi_client.models.volume_file_layers_response import VolumeFileLayersResponse from geoengine_openapi_client.models.wcs_request import WcsRequest from geoengine_openapi_client.models.wcs_service import WcsService diff --git a/python/geoengine_openapi_client/models/data.py b/python/geoengine_openapi_client/models/data.py new file mode 100644 index 00000000..7df7784c --- /dev/null +++ b/python/geoengine_openapi_client/models/data.py @@ -0,0 +1,37 @@ +# coding: utf-8 + +""" + Geo Engine API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.9.0 + Contact: dev@geoengine.de + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import json +from enum import Enum +from typing_extensions import Self + + +class Data(str, Enum): + """ + Data + """ + + """ + allowed enum values + """ + DATA = 'data' + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of Data from a JSON string""" + return cls(json.loads(json_str)) + + diff --git a/python/geoengine_openapi_client/models/data_path.py b/python/geoengine_openapi_client/models/data_path.py index 1821797e..4ae069e3 100644 --- a/python/geoengine_openapi_client/models/data_path.py +++ b/python/geoengine_openapi_client/models/data_path.py @@ -18,24 +18,24 @@ import pprint from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator from typing import Any, List, Optional -from geoengine_openapi_client.models.upload import Upload -from geoengine_openapi_client.models.volume1 import Volume1 +from geoengine_openapi_client.models.data_path_upload import DataPathUpload +from geoengine_openapi_client.models.data_path_volume import DataPathVolume from pydantic import StrictStr, Field from typing import Union, List, Set, Optional, Dict from typing_extensions import Literal, Self -DATAPATH_ONE_OF_SCHEMAS = ["Upload", "Volume1"] +DATAPATH_ONE_OF_SCHEMAS = ["DataPathUpload", "DataPathVolume"] class DataPath(BaseModel): """ DataPath """ - # data type: Volume1 - oneof_schema_1_validator: Optional[Volume1] = None - # data type: Upload - oneof_schema_2_validator: Optional[Upload] = None - actual_instance: Optional[Union[Upload, Volume1]] = None - one_of_schemas: Set[str] = { "Upload", "Volume1" } + # data type: DataPathVolume + oneof_schema_1_validator: Optional[DataPathVolume] = None + # data type: DataPathUpload + oneof_schema_2_validator: Optional[DataPathUpload] = None + actual_instance: Optional[Union[DataPathUpload, DataPathVolume]] = None + one_of_schemas: Set[str] = { "DataPathUpload", "DataPathVolume" } model_config = ConfigDict( validate_assignment=True, @@ -58,22 +58,22 @@ def actual_instance_must_validate_oneof(cls, v): instance = DataPath.model_construct() error_messages = [] match = 0 - # validate data type: Volume1 - if not isinstance(v, Volume1): - error_messages.append(f"Error! Input type `{type(v)}` is not `Volume1`") + # validate data type: DataPathVolume + if not isinstance(v, DataPathVolume): + error_messages.append(f"Error! Input type `{type(v)}` is not `DataPathVolume`") else: match += 1 - # validate data type: Upload - if not isinstance(v, Upload): - error_messages.append(f"Error! Input type `{type(v)}` is not `Upload`") + # validate data type: DataPathUpload + if not isinstance(v, DataPathUpload): + error_messages.append(f"Error! Input type `{type(v)}` is not `DataPathUpload`") else: match += 1 if match > 1: # more than 1 match - raise ValueError("Multiple matches found when setting `actual_instance` in DataPath with oneOf schemas: Upload, Volume1. Details: " + ", ".join(error_messages)) + raise ValueError("Multiple matches found when setting `actual_instance` in DataPath with oneOf schemas: DataPathUpload, DataPathVolume. Details: " + ", ".join(error_messages)) elif match == 0: # no match - raise ValueError("No match found when setting `actual_instance` in DataPath with oneOf schemas: Upload, Volume1. Details: " + ", ".join(error_messages)) + raise ValueError("No match found when setting `actual_instance` in DataPath with oneOf schemas: DataPathUpload, DataPathVolume. Details: " + ", ".join(error_messages)) else: return v @@ -88,25 +88,25 @@ def from_json(cls, json_str: str) -> Self: error_messages = [] match = 0 - # deserialize data into Volume1 + # deserialize data into DataPathVolume try: - instance.actual_instance = Volume1.from_json(json_str) + instance.actual_instance = DataPathVolume.from_json(json_str) match += 1 except (ValidationError, ValueError) as e: error_messages.append(str(e)) - # deserialize data into Upload + # deserialize data into DataPathUpload try: - instance.actual_instance = Upload.from_json(json_str) + instance.actual_instance = DataPathUpload.from_json(json_str) match += 1 except (ValidationError, ValueError) as e: error_messages.append(str(e)) if match > 1: # more than 1 match - raise ValueError("Multiple matches found when deserializing the JSON string into DataPath with oneOf schemas: Upload, Volume1. Details: " + ", ".join(error_messages)) + raise ValueError("Multiple matches found when deserializing the JSON string into DataPath with oneOf schemas: DataPathUpload, DataPathVolume. Details: " + ", ".join(error_messages)) elif match == 0: # no match - raise ValueError("No match found when deserializing the JSON string into DataPath with oneOf schemas: Upload, Volume1. Details: " + ", ".join(error_messages)) + raise ValueError("No match found when deserializing the JSON string into DataPath with oneOf schemas: DataPathUpload, DataPathVolume. Details: " + ", ".join(error_messages)) else: return instance @@ -120,7 +120,7 @@ def to_json(self) -> str: else: return json.dumps(self.actual_instance) - def to_dict(self) -> Optional[Union[Dict[str, Any], Upload, Volume1]]: + def to_dict(self) -> Optional[Union[Dict[str, Any], DataPathUpload, DataPathVolume]]: """Returns the dict representation of the actual instance""" if self.actual_instance is None: return None diff --git a/python/geoengine_openapi_client/models/upload.py b/python/geoengine_openapi_client/models/data_path_upload.py similarity index 92% rename from python/geoengine_openapi_client/models/upload.py rename to python/geoengine_openapi_client/models/data_path_upload.py index 8d58cd1d..fc0cf861 100644 --- a/python/geoengine_openapi_client/models/upload.py +++ b/python/geoengine_openapi_client/models/data_path_upload.py @@ -24,9 +24,9 @@ from typing import Optional, Set from typing_extensions import Self -class Upload(BaseModel): +class DataPathUpload(BaseModel): """ - Upload + DataPathUpload """ # noqa: E501 upload: UUID __properties: ClassVar[List[str]] = ["upload"] @@ -49,7 +49,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of Upload from a JSON string""" + """Create an instance of DataPathUpload from a JSON string""" return cls.from_dict(json.loads(json_str)) def to_dict(self) -> Dict[str, Any]: @@ -74,7 +74,7 @@ def to_dict(self) -> Dict[str, Any]: @classmethod def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of Upload from a dict""" + """Create an instance of DataPathUpload from a dict""" if obj is None: return None diff --git a/python/geoengine_openapi_client/models/volume1.py b/python/geoengine_openapi_client/models/data_path_volume.py similarity index 92% rename from python/geoengine_openapi_client/models/volume1.py rename to python/geoengine_openapi_client/models/data_path_volume.py index c99a34df..7f1e7ceb 100644 --- a/python/geoengine_openapi_client/models/volume1.py +++ b/python/geoengine_openapi_client/models/data_path_volume.py @@ -23,9 +23,9 @@ from typing import Optional, Set from typing_extensions import Self -class Volume1(BaseModel): +class DataPathVolume(BaseModel): """ - Volume1 + DataPathVolume """ # noqa: E501 volume: StrictStr __properties: ClassVar[List[str]] = ["volume"] @@ -48,7 +48,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of Volume1 from a JSON string""" + """Create an instance of DataPathVolume from a JSON string""" return cls.from_dict(json.loads(json_str)) def to_dict(self) -> Dict[str, Any]: @@ -73,7 +73,7 @@ def to_dict(self) -> Dict[str, Any]: @classmethod def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of Volume1 from a dict""" + """Create an instance of DataPathVolume from a dict""" if obj is None: return None diff --git a/python/geoengine_openapi_client/models/histogram.py b/python/geoengine_openapi_client/models/histogram.py index 215b7e43..24f64389 100644 --- a/python/geoengine_openapi_client/models/histogram.py +++ b/python/geoengine_openapi_client/models/histogram.py @@ -21,7 +21,7 @@ from pydantic import BaseModel, ConfigDict, StrictStr, field_validator from typing import Any, ClassVar, Dict, List from geoengine_openapi_client.models.histogram_parameters import HistogramParameters -from geoengine_openapi_client.models.single_raster_or_vector_source import SingleRasterOrVectorSource +from geoengine_openapi_client.models.single_vector_or_raster_source import SingleVectorOrRasterSource from typing import Optional, Set from typing_extensions import Self @@ -30,7 +30,7 @@ class Histogram(BaseModel): The `Histogram` is a _plot operator_ that computes a histogram plot either over attributes of a vector dataset or values of a raster source. The output is a plot in [Vega-Lite](https://vega.github.io/vega-lite/) specification. For instance, you want to plot the data distribution of numeric attributes of a feature collection. Then you can use a histogram with a suitable number of buckets to visualize and assess this. ## Errors The operator returns an error if the selected column (`columnName`) does not exist or is not numeric. ## Notes If `bounds` or `buckets` are not defined, the operator will determine these values by itself which requires processing the data twice. If the `buckets` parameter is set to `squareRootChoiceRule`, the operator estimates it using the square root of the number of elements in the data. """ # noqa: E501 params: HistogramParameters - sources: SingleRasterOrVectorSource + sources: SingleVectorOrRasterSource type: StrictStr __properties: ClassVar[List[str]] = ["params", "sources", "type"] @@ -99,7 +99,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "params": HistogramParameters.from_dict(obj["params"]) if obj.get("params") is not None else None, - "sources": SingleRasterOrVectorSource.from_dict(obj["sources"]) if obj.get("sources") is not None else None, + "sources": SingleVectorOrRasterSource.from_dict(obj["sources"]) if obj.get("sources") is not None else None, "type": obj.get("type") }) return _obj diff --git a/python/geoengine_openapi_client/models/histogram_bounds.py b/python/geoengine_openapi_client/models/histogram_bounds.py index 554ecdff..5d233bda 100644 --- a/python/geoengine_openapi_client/models/histogram_bounds.py +++ b/python/geoengine_openapi_client/models/histogram_bounds.py @@ -18,24 +18,24 @@ import pprint from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator from typing import Any, List, Optional -from geoengine_openapi_client.models.data1 import Data1 -from geoengine_openapi_client.models.values import Values +from geoengine_openapi_client.models.data import Data +from geoengine_openapi_client.models.histogram_bounds_values import HistogramBoundsValues from pydantic import StrictStr, Field from typing import Union, List, Set, Optional, Dict from typing_extensions import Literal, Self -HISTOGRAMBOUNDS_ONE_OF_SCHEMAS = ["Data1", "Values"] +HISTOGRAMBOUNDS_ONE_OF_SCHEMAS = ["Data", "HistogramBoundsValues"] class HistogramBounds(BaseModel): """ HistogramBounds """ - # data type: Data1 - oneof_schema_1_validator: Optional[Data1] = None - # data type: Values - oneof_schema_2_validator: Optional[Values] = None - actual_instance: Optional[Union[Data1, Values]] = None - one_of_schemas: Set[str] = { "Data1", "Values" } + # data type: Data + oneof_schema_1_validator: Optional[Data] = None + # data type: HistogramBoundsValues + oneof_schema_2_validator: Optional[HistogramBoundsValues] = None + actual_instance: Optional[Union[Data, HistogramBoundsValues]] = None + one_of_schemas: Set[str] = { "Data", "HistogramBoundsValues" } model_config = ConfigDict( validate_assignment=True, @@ -58,22 +58,22 @@ def actual_instance_must_validate_oneof(cls, v): instance = HistogramBounds.model_construct() error_messages = [] match = 0 - # validate data type: Data1 - if not isinstance(v, Data1): - error_messages.append(f"Error! Input type `{type(v)}` is not `Data1`") + # validate data type: Data + if not isinstance(v, Data): + error_messages.append(f"Error! Input type `{type(v)}` is not `Data`") else: match += 1 - # validate data type: Values - if not isinstance(v, Values): - error_messages.append(f"Error! Input type `{type(v)}` is not `Values`") + # validate data type: HistogramBoundsValues + if not isinstance(v, HistogramBoundsValues): + error_messages.append(f"Error! Input type `{type(v)}` is not `HistogramBoundsValues`") else: match += 1 if match > 1: # more than 1 match - raise ValueError("Multiple matches found when setting `actual_instance` in HistogramBounds with oneOf schemas: Data1, Values. Details: " + ", ".join(error_messages)) + raise ValueError("Multiple matches found when setting `actual_instance` in HistogramBounds with oneOf schemas: Data, HistogramBoundsValues. Details: " + ", ".join(error_messages)) elif match == 0: # no match - raise ValueError("No match found when setting `actual_instance` in HistogramBounds with oneOf schemas: Data1, Values. Details: " + ", ".join(error_messages)) + raise ValueError("No match found when setting `actual_instance` in HistogramBounds with oneOf schemas: Data, HistogramBoundsValues. Details: " + ", ".join(error_messages)) else: return v @@ -88,25 +88,25 @@ def from_json(cls, json_str: str) -> Self: error_messages = [] match = 0 - # deserialize data into Data1 + # deserialize data into Data try: - instance.actual_instance = Data1.from_json(json_str) + instance.actual_instance = Data.from_json(json_str) match += 1 except (ValidationError, ValueError) as e: error_messages.append(str(e)) - # deserialize data into Values + # deserialize data into HistogramBoundsValues try: - instance.actual_instance = Values.from_json(json_str) + instance.actual_instance = HistogramBoundsValues.from_json(json_str) match += 1 except (ValidationError, ValueError) as e: error_messages.append(str(e)) if match > 1: # more than 1 match - raise ValueError("Multiple matches found when deserializing the JSON string into HistogramBounds with oneOf schemas: Data1, Values. Details: " + ", ".join(error_messages)) + raise ValueError("Multiple matches found when deserializing the JSON string into HistogramBounds with oneOf schemas: Data, HistogramBoundsValues. Details: " + ", ".join(error_messages)) elif match == 0: # no match - raise ValueError("No match found when deserializing the JSON string into HistogramBounds with oneOf schemas: Data1, Values. Details: " + ", ".join(error_messages)) + raise ValueError("No match found when deserializing the JSON string into HistogramBounds with oneOf schemas: Data, HistogramBoundsValues. Details: " + ", ".join(error_messages)) else: return instance @@ -120,7 +120,7 @@ def to_json(self) -> str: else: return json.dumps(self.actual_instance) - def to_dict(self) -> Optional[Union[Dict[str, Any], Data1, Values]]: + def to_dict(self) -> Optional[Union[Dict[str, Any], Data, HistogramBoundsValues]]: """Returns the dict representation of the actual instance""" if self.actual_instance is None: return None diff --git a/python/geoengine_openapi_client/models/values_values.py b/python/geoengine_openapi_client/models/histogram_bounds_values.py similarity index 91% rename from python/geoengine_openapi_client/models/values_values.py rename to python/geoengine_openapi_client/models/histogram_bounds_values.py index e21dcafa..163cbd15 100644 --- a/python/geoengine_openapi_client/models/values_values.py +++ b/python/geoengine_openapi_client/models/histogram_bounds_values.py @@ -23,9 +23,9 @@ from typing import Optional, Set from typing_extensions import Self -class ValuesValues(BaseModel): +class HistogramBoundsValues(BaseModel): """ - ValuesValues + HistogramBoundsValues """ # noqa: E501 max: Union[StrictFloat, StrictInt] min: Union[StrictFloat, StrictInt] @@ -49,7 +49,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of ValuesValues from a JSON string""" + """Create an instance of HistogramBoundsValues from a JSON string""" return cls.from_dict(json.loads(json_str)) def to_dict(self) -> Dict[str, Any]: @@ -74,7 +74,7 @@ def to_dict(self) -> Dict[str, Any]: @classmethod def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of ValuesValues from a dict""" + """Create an instance of HistogramBoundsValues from a dict""" if obj is None: return None diff --git a/python/geoengine_openapi_client/models/histogram_buckets.py b/python/geoengine_openapi_client/models/histogram_buckets.py index 1aad10b8..e3316611 100644 --- a/python/geoengine_openapi_client/models/histogram_buckets.py +++ b/python/geoengine_openapi_client/models/histogram_buckets.py @@ -18,24 +18,24 @@ import pprint from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator from typing import Any, List, Optional -from geoengine_openapi_client.models.number import Number -from geoengine_openapi_client.models.square_root_choice_rule import SquareRootChoiceRule +from geoengine_openapi_client.models.histogram_buckets_number import HistogramBucketsNumber +from geoengine_openapi_client.models.histogram_buckets_square_root_choice_rule import HistogramBucketsSquareRootChoiceRule from pydantic import StrictStr, Field from typing import Union, List, Set, Optional, Dict from typing_extensions import Literal, Self -HISTOGRAMBUCKETS_ONE_OF_SCHEMAS = ["Number", "SquareRootChoiceRule"] +HISTOGRAMBUCKETS_ONE_OF_SCHEMAS = ["HistogramBucketsNumber", "HistogramBucketsSquareRootChoiceRule"] class HistogramBuckets(BaseModel): """ HistogramBuckets """ - # data type: Number - oneof_schema_1_validator: Optional[Number] = None - # data type: SquareRootChoiceRule - oneof_schema_2_validator: Optional[SquareRootChoiceRule] = None - actual_instance: Optional[Union[Number, SquareRootChoiceRule]] = None - one_of_schemas: Set[str] = { "Number", "SquareRootChoiceRule" } + # data type: HistogramBucketsNumber + oneof_schema_1_validator: Optional[HistogramBucketsNumber] = None + # data type: HistogramBucketsSquareRootChoiceRule + oneof_schema_2_validator: Optional[HistogramBucketsSquareRootChoiceRule] = None + actual_instance: Optional[Union[HistogramBucketsNumber, HistogramBucketsSquareRootChoiceRule]] = None + one_of_schemas: Set[str] = { "HistogramBucketsNumber", "HistogramBucketsSquareRootChoiceRule" } model_config = ConfigDict( validate_assignment=True, @@ -43,6 +43,9 @@ class HistogramBuckets(BaseModel): ) + discriminator_value_class_map: Dict[str, str] = { + } + def __init__(self, *args, **kwargs) -> None: if args: if len(args) > 1: @@ -58,22 +61,22 @@ def actual_instance_must_validate_oneof(cls, v): instance = HistogramBuckets.model_construct() error_messages = [] match = 0 - # validate data type: Number - if not isinstance(v, Number): - error_messages.append(f"Error! Input type `{type(v)}` is not `Number`") + # validate data type: HistogramBucketsNumber + if not isinstance(v, HistogramBucketsNumber): + error_messages.append(f"Error! Input type `{type(v)}` is not `HistogramBucketsNumber`") else: match += 1 - # validate data type: SquareRootChoiceRule - if not isinstance(v, SquareRootChoiceRule): - error_messages.append(f"Error! Input type `{type(v)}` is not `SquareRootChoiceRule`") + # validate data type: HistogramBucketsSquareRootChoiceRule + if not isinstance(v, HistogramBucketsSquareRootChoiceRule): + error_messages.append(f"Error! Input type `{type(v)}` is not `HistogramBucketsSquareRootChoiceRule`") else: match += 1 if match > 1: # more than 1 match - raise ValueError("Multiple matches found when setting `actual_instance` in HistogramBuckets with oneOf schemas: Number, SquareRootChoiceRule. Details: " + ", ".join(error_messages)) + raise ValueError("Multiple matches found when setting `actual_instance` in HistogramBuckets with oneOf schemas: HistogramBucketsNumber, HistogramBucketsSquareRootChoiceRule. Details: " + ", ".join(error_messages)) elif match == 0: # no match - raise ValueError("No match found when setting `actual_instance` in HistogramBuckets with oneOf schemas: Number, SquareRootChoiceRule. Details: " + ", ".join(error_messages)) + raise ValueError("No match found when setting `actual_instance` in HistogramBuckets with oneOf schemas: HistogramBucketsNumber, HistogramBucketsSquareRootChoiceRule. Details: " + ", ".join(error_messages)) else: return v @@ -88,25 +91,40 @@ def from_json(cls, json_str: str) -> Self: error_messages = [] match = 0 - # deserialize data into Number + # use oneOf discriminator to lookup the data type + _data_type = json.loads(json_str).get("type") + if not _data_type: + raise ValueError("Failed to lookup data type from the field `type` in the input.") + + # check if data type is `HistogramBucketsNumber` + if _data_type == "number": + instance.actual_instance = HistogramBucketsNumber.from_json(json_str) + return instance + + # check if data type is `HistogramBucketsSquareRootChoiceRule` + if _data_type == "squareRootChoiceRule": + instance.actual_instance = HistogramBucketsSquareRootChoiceRule.from_json(json_str) + return instance + + # deserialize data into HistogramBucketsNumber try: - instance.actual_instance = Number.from_json(json_str) + instance.actual_instance = HistogramBucketsNumber.from_json(json_str) match += 1 except (ValidationError, ValueError) as e: error_messages.append(str(e)) - # deserialize data into SquareRootChoiceRule + # deserialize data into HistogramBucketsSquareRootChoiceRule try: - instance.actual_instance = SquareRootChoiceRule.from_json(json_str) + instance.actual_instance = HistogramBucketsSquareRootChoiceRule.from_json(json_str) match += 1 except (ValidationError, ValueError) as e: error_messages.append(str(e)) if match > 1: # more than 1 match - raise ValueError("Multiple matches found when deserializing the JSON string into HistogramBuckets with oneOf schemas: Number, SquareRootChoiceRule. Details: " + ", ".join(error_messages)) + raise ValueError("Multiple matches found when deserializing the JSON string into HistogramBuckets with oneOf schemas: HistogramBucketsNumber, HistogramBucketsSquareRootChoiceRule. Details: " + ", ".join(error_messages)) elif match == 0: # no match - raise ValueError("No match found when deserializing the JSON string into HistogramBuckets with oneOf schemas: Number, SquareRootChoiceRule. Details: " + ", ".join(error_messages)) + raise ValueError("No match found when deserializing the JSON string into HistogramBuckets with oneOf schemas: HistogramBucketsNumber, HistogramBucketsSquareRootChoiceRule. Details: " + ", ".join(error_messages)) else: return instance @@ -120,7 +138,7 @@ def to_json(self) -> str: else: return json.dumps(self.actual_instance) - def to_dict(self) -> Optional[Union[Dict[str, Any], Number, SquareRootChoiceRule]]: + def to_dict(self) -> Optional[Union[Dict[str, Any], HistogramBucketsNumber, HistogramBucketsSquareRootChoiceRule]]: """Returns the dict representation of the actual instance""" if self.actual_instance is None: return None diff --git a/python/geoengine_openapi_client/models/number.py b/python/geoengine_openapi_client/models/histogram_buckets_number.py similarity index 92% rename from python/geoengine_openapi_client/models/number.py rename to python/geoengine_openapi_client/models/histogram_buckets_number.py index f6bce4a3..4e3463f5 100644 --- a/python/geoengine_openapi_client/models/number.py +++ b/python/geoengine_openapi_client/models/histogram_buckets_number.py @@ -24,9 +24,9 @@ from typing import Optional, Set from typing_extensions import Self -class Number(BaseModel): +class HistogramBucketsNumber(BaseModel): """ - Number + HistogramBucketsNumber """ # noqa: E501 type: StrictStr value: Annotated[int, Field(strict=True, ge=0)] @@ -57,7 +57,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of Number from a JSON string""" + """Create an instance of HistogramBucketsNumber from a JSON string""" return cls.from_dict(json.loads(json_str)) def to_dict(self) -> Dict[str, Any]: @@ -82,7 +82,7 @@ def to_dict(self) -> Dict[str, Any]: @classmethod def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of Number from a dict""" + """Create an instance of HistogramBucketsNumber from a dict""" if obj is None: return None diff --git a/python/geoengine_openapi_client/models/square_root_choice_rule.py b/python/geoengine_openapi_client/models/histogram_buckets_square_root_choice_rule.py similarity index 91% rename from python/geoengine_openapi_client/models/square_root_choice_rule.py rename to python/geoengine_openapi_client/models/histogram_buckets_square_root_choice_rule.py index 2504ad3f..98167705 100644 --- a/python/geoengine_openapi_client/models/square_root_choice_rule.py +++ b/python/geoengine_openapi_client/models/histogram_buckets_square_root_choice_rule.py @@ -24,9 +24,9 @@ from typing import Optional, Set from typing_extensions import Self -class SquareRootChoiceRule(BaseModel): +class HistogramBucketsSquareRootChoiceRule(BaseModel): """ - SquareRootChoiceRule + HistogramBucketsSquareRootChoiceRule """ # noqa: E501 max_number_of_buckets: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="maxNumberOfBuckets") type: StrictStr @@ -57,7 +57,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of SquareRootChoiceRule from a JSON string""" + """Create an instance of HistogramBucketsSquareRootChoiceRule from a JSON string""" return cls.from_dict(json.loads(json_str)) def to_dict(self) -> Dict[str, Any]: @@ -82,7 +82,7 @@ def to_dict(self) -> Dict[str, Any]: @classmethod def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of SquareRootChoiceRule from a dict""" + """Create an instance of HistogramBucketsSquareRootChoiceRule from a dict""" if obj is None: return None diff --git a/python/geoengine_openapi_client/models/histogram_parameters.py b/python/geoengine_openapi_client/models/histogram_parameters.py index 92eb7979..bd6a1cf5 100644 --- a/python/geoengine_openapi_client/models/histogram_parameters.py +++ b/python/geoengine_openapi_client/models/histogram_parameters.py @@ -29,11 +29,11 @@ class HistogramParameters(BaseModel): """ The parameter spec for `Histogram` """ # noqa: E501 - attribute_name: StrictStr = Field(description="Name of the (numeric) vector attribute or raster band to compute the histogram on.", alias="attributeName") - bounds: HistogramBounds = Field(description="If `data`, it computes the bounds of the underlying data. If `values`, one can specify custom bounds.") + bounds: HistogramBounds = Field(description="If `data`, it computes the bounds of the underlying data. If `{ \"min\": ..., \"max\": ... }`, one can specify custom bounds.") buckets: HistogramBuckets = Field(description="The number of buckets. The value can be specified or calculated.") + column_name: StrictStr = Field(description="Name of the (numeric) vector attribute or raster band to compute the histogram on.", alias="columnName") interactive: Optional[StrictBool] = Field(default=None, description="Flag, if the histogram should have user interactions for a range selection. It is `false` by default.") - __properties: ClassVar[List[str]] = ["attributeName", "bounds", "buckets", "interactive"] + __properties: ClassVar[List[str]] = ["bounds", "buckets", "columnName", "interactive"] model_config = ConfigDict( populate_by_name=True, @@ -92,9 +92,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "attributeName": obj.get("attributeName"), "bounds": HistogramBounds.from_dict(obj["bounds"]) if obj.get("bounds") is not None else None, "buckets": HistogramBuckets.from_dict(obj["buckets"]) if obj.get("buckets") is not None else None, + "columnName": obj.get("columnName"), "interactive": obj.get("interactive") }) return _obj diff --git a/python/geoengine_openapi_client/models/ogr_source.py b/python/geoengine_openapi_client/models/ogr_source.py new file mode 100644 index 00000000..2923c85d --- /dev/null +++ b/python/geoengine_openapi_client/models/ogr_source.py @@ -0,0 +1,101 @@ +# coding: utf-8 + +""" + Geo Engine API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.9.0 + Contact: dev@geoengine.de + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List +from geoengine_openapi_client.models.ogr_source_parameters import OgrSourceParameters +from typing import Optional, Set +from typing_extensions import Self + +class OgrSource(BaseModel): + """ + The [`OgrSource`] is a source operator that reads vector data using OGR (part of GDAL). The counterpart for raster data is the [`GdalSource`]. ## Errors If the given dataset does not exist or is not readable, an error is thrown. + """ # noqa: E501 + params: OgrSourceParameters + type: StrictStr + __properties: ClassVar[List[str]] = ["params", "type"] + + @field_validator('type') + def type_validate_enum(cls, value): + """Validates the enum""" + if value not in set(['OgrSource']): + raise ValueError("must be one of enum values ('OgrSource')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of OgrSource from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of params + if self.params: + _dict['params'] = self.params.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of OgrSource from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "params": OgrSourceParameters.from_dict(obj["params"]) if obj.get("params") is not None else None, + "type": obj.get("type") + }) + return _obj + + diff --git a/python/geoengine_openapi_client/models/data1.py b/python/geoengine_openapi_client/models/ogr_source_parameters.py similarity index 70% rename from python/geoengine_openapi_client/models/data1.py rename to python/geoengine_openapi_client/models/ogr_source_parameters.py index e474d6a5..141ae638 100644 --- a/python/geoengine_openapi_client/models/data1.py +++ b/python/geoengine_openapi_client/models/ogr_source_parameters.py @@ -18,17 +18,18 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict +from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional from typing import Optional, Set from typing_extensions import Self -class Data1(BaseModel): +class OgrSourceParameters(BaseModel): """ - Data1 + Parameters for the [`OgrSource`] operator. """ # noqa: E501 - data: Optional[Any] - __properties: ClassVar[List[str]] = ["data"] + attribute_projection: Optional[List[StrictStr]] = Field(default=None, description="*Optional*: list of attributes to include. When `None`, all attributes are included.", alias="attributeProjection") + data: StrictStr = Field(description="Dataset name or identifier to be loaded.") + __properties: ClassVar[List[str]] = ["attributeProjection", "data"] model_config = ConfigDict( populate_by_name=True, @@ -48,7 +49,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of Data1 from a JSON string""" + """Create an instance of OgrSourceParameters from a JSON string""" return cls.from_dict(json.loads(json_str)) def to_dict(self) -> Dict[str, Any]: @@ -69,16 +70,16 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # set to None if data (nullable) is None + # set to None if attribute_projection (nullable) is None # and model_fields_set contains the field - if self.data is None and "data" in self.model_fields_set: - _dict['data'] = None + if self.attribute_projection is None and "attribute_projection" in self.model_fields_set: + _dict['attributeProjection'] = None return _dict @classmethod def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of Data1 from a dict""" + """Create an instance of OgrSourceParameters from a dict""" if obj is None: return None @@ -86,6 +87,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ + "attributeProjection": obj.get("attributeProjection"), "data": obj.get("data") }) return _obj diff --git a/python/geoengine_openapi_client/models/single_raster_or_vector_operator.py b/python/geoengine_openapi_client/models/single_raster_or_vector_operator.py index f4206cbe..3bb4cb41 100644 --- a/python/geoengine_openapi_client/models/single_raster_or_vector_operator.py +++ b/python/geoengine_openapi_client/models/single_raster_or_vector_operator.py @@ -99,6 +99,11 @@ def from_json(cls, json_str: str) -> Self: instance.actual_instance = MockPointSource.from_json(json_str) return instance + # check if data type is `OgrSource` + if _data_type == "OgrSource": + instance.actual_instance = OgrSource.from_json(json_str) + return instance + # check if data type is `RasterVectorJoin` if _data_type == "RasterVectorJoin": instance.actual_instance = RasterVectorJoin.from_json(json_str) diff --git a/python/geoengine_openapi_client/models/values.py b/python/geoengine_openapi_client/models/single_vector_or_raster_source.py similarity index 76% rename from python/geoengine_openapi_client/models/values.py rename to python/geoengine_openapi_client/models/single_vector_or_raster_source.py index eb1e164b..08af63ef 100644 --- a/python/geoengine_openapi_client/models/values.py +++ b/python/geoengine_openapi_client/models/single_vector_or_raster_source.py @@ -20,16 +20,16 @@ from pydantic import BaseModel, ConfigDict from typing import Any, ClassVar, Dict, List -from geoengine_openapi_client.models.values_values import ValuesValues +from geoengine_openapi_client.models.single_raster_or_vector_operator import SingleRasterOrVectorOperator from typing import Optional, Set from typing_extensions import Self -class Values(BaseModel): +class SingleVectorOrRasterSource(BaseModel): """ - Values + A single vector or raster operator as source for this operator, keyed as \"vector\" in JSON. """ # noqa: E501 - values: ValuesValues - __properties: ClassVar[List[str]] = ["values"] + vector: SingleRasterOrVectorOperator + __properties: ClassVar[List[str]] = ["vector"] model_config = ConfigDict( populate_by_name=True, @@ -49,7 +49,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of Values from a JSON string""" + """Create an instance of SingleVectorOrRasterSource from a JSON string""" return cls.from_dict(json.loads(json_str)) def to_dict(self) -> Dict[str, Any]: @@ -70,14 +70,14 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # override the default output from pydantic by calling `to_dict()` of values - if self.values: - _dict['values'] = self.values.to_dict() + # override the default output from pydantic by calling `to_dict()` of vector + if self.vector: + _dict['vector'] = self.vector.to_dict() return _dict @classmethod def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of Values from a dict""" + """Create an instance of SingleVectorOrRasterSource from a dict""" if obj is None: return None @@ -85,7 +85,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "values": ValuesValues.from_dict(obj["values"]) if obj.get("values") is not None else None + "vector": SingleRasterOrVectorOperator.from_dict(obj["vector"]) if obj.get("vector") is not None else None }) return _obj diff --git a/python/geoengine_openapi_client/models/typed_geometry.py b/python/geoengine_openapi_client/models/typed_geometry.py index 9ae8b865..bb42a6ee 100644 --- a/python/geoengine_openapi_client/models/typed_geometry.py +++ b/python/geoengine_openapi_client/models/typed_geometry.py @@ -18,30 +18,30 @@ import pprint from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator from typing import Any, List, Optional -from geoengine_openapi_client.models.multi_line_string1 import MultiLineString1 -from geoengine_openapi_client.models.multi_point1 import MultiPoint1 -from geoengine_openapi_client.models.multi_polygon1 import MultiPolygon1 -from geoengine_openapi_client.models.no_geometry1 import NoGeometry1 +from geoengine_openapi_client.models.typed_geometry_multi_line_string import TypedGeometryMultiLineString +from geoengine_openapi_client.models.typed_geometry_multi_point import TypedGeometryMultiPoint +from geoengine_openapi_client.models.typed_geometry_multi_polygon import TypedGeometryMultiPolygon +from geoengine_openapi_client.models.typed_geometry_no_geometry import TypedGeometryNoGeometry from pydantic import StrictStr, Field from typing import Union, List, Set, Optional, Dict from typing_extensions import Literal, Self -TYPEDGEOMETRY_ONE_OF_SCHEMAS = ["MultiLineString1", "MultiPoint1", "MultiPolygon1", "NoGeometry1"] +TYPEDGEOMETRY_ONE_OF_SCHEMAS = ["TypedGeometryMultiLineString", "TypedGeometryMultiPoint", "TypedGeometryMultiPolygon", "TypedGeometryNoGeometry"] class TypedGeometry(BaseModel): """ TypedGeometry """ - # data type: NoGeometry1 - oneof_schema_1_validator: Optional[NoGeometry1] = None - # data type: MultiPoint1 - oneof_schema_2_validator: Optional[MultiPoint1] = None - # data type: MultiLineString1 - oneof_schema_3_validator: Optional[MultiLineString1] = None - # data type: MultiPolygon1 - oneof_schema_4_validator: Optional[MultiPolygon1] = None - actual_instance: Optional[Union[MultiLineString1, MultiPoint1, MultiPolygon1, NoGeometry1]] = None - one_of_schemas: Set[str] = { "MultiLineString1", "MultiPoint1", "MultiPolygon1", "NoGeometry1" } + # data type: TypedGeometryNoGeometry + oneof_schema_1_validator: Optional[TypedGeometryNoGeometry] = None + # data type: TypedGeometryMultiPoint + oneof_schema_2_validator: Optional[TypedGeometryMultiPoint] = None + # data type: TypedGeometryMultiLineString + oneof_schema_3_validator: Optional[TypedGeometryMultiLineString] = None + # data type: TypedGeometryMultiPolygon + oneof_schema_4_validator: Optional[TypedGeometryMultiPolygon] = None + actual_instance: Optional[Union[TypedGeometryMultiLineString, TypedGeometryMultiPoint, TypedGeometryMultiPolygon, TypedGeometryNoGeometry]] = None + one_of_schemas: Set[str] = { "TypedGeometryMultiLineString", "TypedGeometryMultiPoint", "TypedGeometryMultiPolygon", "TypedGeometryNoGeometry" } model_config = ConfigDict( validate_assignment=True, @@ -64,32 +64,32 @@ def actual_instance_must_validate_oneof(cls, v): instance = TypedGeometry.model_construct() error_messages = [] match = 0 - # validate data type: NoGeometry1 - if not isinstance(v, NoGeometry1): - error_messages.append(f"Error! Input type `{type(v)}` is not `NoGeometry1`") + # validate data type: TypedGeometryNoGeometry + if not isinstance(v, TypedGeometryNoGeometry): + error_messages.append(f"Error! Input type `{type(v)}` is not `TypedGeometryNoGeometry`") else: match += 1 - # validate data type: MultiPoint1 - if not isinstance(v, MultiPoint1): - error_messages.append(f"Error! Input type `{type(v)}` is not `MultiPoint1`") + # validate data type: TypedGeometryMultiPoint + if not isinstance(v, TypedGeometryMultiPoint): + error_messages.append(f"Error! Input type `{type(v)}` is not `TypedGeometryMultiPoint`") else: match += 1 - # validate data type: MultiLineString1 - if not isinstance(v, MultiLineString1): - error_messages.append(f"Error! Input type `{type(v)}` is not `MultiLineString1`") + # validate data type: TypedGeometryMultiLineString + if not isinstance(v, TypedGeometryMultiLineString): + error_messages.append(f"Error! Input type `{type(v)}` is not `TypedGeometryMultiLineString`") else: match += 1 - # validate data type: MultiPolygon1 - if not isinstance(v, MultiPolygon1): - error_messages.append(f"Error! Input type `{type(v)}` is not `MultiPolygon1`") + # validate data type: TypedGeometryMultiPolygon + if not isinstance(v, TypedGeometryMultiPolygon): + error_messages.append(f"Error! Input type `{type(v)}` is not `TypedGeometryMultiPolygon`") else: match += 1 if match > 1: # more than 1 match - raise ValueError("Multiple matches found when setting `actual_instance` in TypedGeometry with oneOf schemas: MultiLineString1, MultiPoint1, MultiPolygon1, NoGeometry1. Details: " + ", ".join(error_messages)) + raise ValueError("Multiple matches found when setting `actual_instance` in TypedGeometry with oneOf schemas: TypedGeometryMultiLineString, TypedGeometryMultiPoint, TypedGeometryMultiPolygon, TypedGeometryNoGeometry. Details: " + ", ".join(error_messages)) elif match == 0: # no match - raise ValueError("No match found when setting `actual_instance` in TypedGeometry with oneOf schemas: MultiLineString1, MultiPoint1, MultiPolygon1, NoGeometry1. Details: " + ", ".join(error_messages)) + raise ValueError("No match found when setting `actual_instance` in TypedGeometry with oneOf schemas: TypedGeometryMultiLineString, TypedGeometryMultiPoint, TypedGeometryMultiPolygon, TypedGeometryNoGeometry. Details: " + ", ".join(error_messages)) else: return v @@ -104,37 +104,37 @@ def from_json(cls, json_str: str) -> Self: error_messages = [] match = 0 - # deserialize data into NoGeometry1 + # deserialize data into TypedGeometryNoGeometry try: - instance.actual_instance = NoGeometry1.from_json(json_str) + instance.actual_instance = TypedGeometryNoGeometry.from_json(json_str) match += 1 except (ValidationError, ValueError) as e: error_messages.append(str(e)) - # deserialize data into MultiPoint1 + # deserialize data into TypedGeometryMultiPoint try: - instance.actual_instance = MultiPoint1.from_json(json_str) + instance.actual_instance = TypedGeometryMultiPoint.from_json(json_str) match += 1 except (ValidationError, ValueError) as e: error_messages.append(str(e)) - # deserialize data into MultiLineString1 + # deserialize data into TypedGeometryMultiLineString try: - instance.actual_instance = MultiLineString1.from_json(json_str) + instance.actual_instance = TypedGeometryMultiLineString.from_json(json_str) match += 1 except (ValidationError, ValueError) as e: error_messages.append(str(e)) - # deserialize data into MultiPolygon1 + # deserialize data into TypedGeometryMultiPolygon try: - instance.actual_instance = MultiPolygon1.from_json(json_str) + instance.actual_instance = TypedGeometryMultiPolygon.from_json(json_str) match += 1 except (ValidationError, ValueError) as e: error_messages.append(str(e)) if match > 1: # more than 1 match - raise ValueError("Multiple matches found when deserializing the JSON string into TypedGeometry with oneOf schemas: MultiLineString1, MultiPoint1, MultiPolygon1, NoGeometry1. Details: " + ", ".join(error_messages)) + raise ValueError("Multiple matches found when deserializing the JSON string into TypedGeometry with oneOf schemas: TypedGeometryMultiLineString, TypedGeometryMultiPoint, TypedGeometryMultiPolygon, TypedGeometryNoGeometry. Details: " + ", ".join(error_messages)) elif match == 0: # no match - raise ValueError("No match found when deserializing the JSON string into TypedGeometry with oneOf schemas: MultiLineString1, MultiPoint1, MultiPolygon1, NoGeometry1. Details: " + ", ".join(error_messages)) + raise ValueError("No match found when deserializing the JSON string into TypedGeometry with oneOf schemas: TypedGeometryMultiLineString, TypedGeometryMultiPoint, TypedGeometryMultiPolygon, TypedGeometryNoGeometry. Details: " + ", ".join(error_messages)) else: return instance @@ -148,7 +148,7 @@ def to_json(self) -> str: else: return json.dumps(self.actual_instance) - def to_dict(self) -> Optional[Union[Dict[str, Any], MultiLineString1, MultiPoint1, MultiPolygon1, NoGeometry1]]: + def to_dict(self) -> Optional[Union[Dict[str, Any], TypedGeometryMultiLineString, TypedGeometryMultiPoint, TypedGeometryMultiPolygon, TypedGeometryNoGeometry]]: """Returns the dict representation of the actual instance""" if self.actual_instance is None: return None diff --git a/python/geoengine_openapi_client/models/multi_line_string1.py b/python/geoengine_openapi_client/models/typed_geometry_multi_line_string.py similarity index 91% rename from python/geoengine_openapi_client/models/multi_line_string1.py rename to python/geoengine_openapi_client/models/typed_geometry_multi_line_string.py index 7aa8e7cd..d55b4335 100644 --- a/python/geoengine_openapi_client/models/multi_line_string1.py +++ b/python/geoengine_openapi_client/models/typed_geometry_multi_line_string.py @@ -24,9 +24,9 @@ from typing import Optional, Set from typing_extensions import Self -class MultiLineString1(BaseModel): +class TypedGeometryMultiLineString(BaseModel): """ - MultiLineString1 + TypedGeometryMultiLineString """ # noqa: E501 multi_line_string: MultiLineString = Field(alias="MultiLineString") __properties: ClassVar[List[str]] = ["MultiLineString"] @@ -49,7 +49,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of MultiLineString1 from a JSON string""" + """Create an instance of TypedGeometryMultiLineString from a JSON string""" return cls.from_dict(json.loads(json_str)) def to_dict(self) -> Dict[str, Any]: @@ -77,7 +77,7 @@ def to_dict(self) -> Dict[str, Any]: @classmethod def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of MultiLineString1 from a dict""" + """Create an instance of TypedGeometryMultiLineString from a dict""" if obj is None: return None diff --git a/python/geoengine_openapi_client/models/multi_point1.py b/python/geoengine_openapi_client/models/typed_geometry_multi_point.py similarity index 92% rename from python/geoengine_openapi_client/models/multi_point1.py rename to python/geoengine_openapi_client/models/typed_geometry_multi_point.py index f9710e4e..b83a1e8a 100644 --- a/python/geoengine_openapi_client/models/multi_point1.py +++ b/python/geoengine_openapi_client/models/typed_geometry_multi_point.py @@ -24,9 +24,9 @@ from typing import Optional, Set from typing_extensions import Self -class MultiPoint1(BaseModel): +class TypedGeometryMultiPoint(BaseModel): """ - MultiPoint1 + TypedGeometryMultiPoint """ # noqa: E501 multi_point: MultiPoint = Field(alias="MultiPoint") __properties: ClassVar[List[str]] = ["MultiPoint"] @@ -49,7 +49,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of MultiPoint1 from a JSON string""" + """Create an instance of TypedGeometryMultiPoint from a JSON string""" return cls.from_dict(json.loads(json_str)) def to_dict(self) -> Dict[str, Any]: @@ -77,7 +77,7 @@ def to_dict(self) -> Dict[str, Any]: @classmethod def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of MultiPoint1 from a dict""" + """Create an instance of TypedGeometryMultiPoint from a dict""" if obj is None: return None diff --git a/python/geoengine_openapi_client/models/multi_polygon1.py b/python/geoengine_openapi_client/models/typed_geometry_multi_polygon.py similarity index 92% rename from python/geoengine_openapi_client/models/multi_polygon1.py rename to python/geoengine_openapi_client/models/typed_geometry_multi_polygon.py index a44d2dfc..27a1a273 100644 --- a/python/geoengine_openapi_client/models/multi_polygon1.py +++ b/python/geoengine_openapi_client/models/typed_geometry_multi_polygon.py @@ -24,9 +24,9 @@ from typing import Optional, Set from typing_extensions import Self -class MultiPolygon1(BaseModel): +class TypedGeometryMultiPolygon(BaseModel): """ - MultiPolygon1 + TypedGeometryMultiPolygon """ # noqa: E501 multi_polygon: MultiPolygon = Field(alias="MultiPolygon") __properties: ClassVar[List[str]] = ["MultiPolygon"] @@ -49,7 +49,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of MultiPolygon1 from a JSON string""" + """Create an instance of TypedGeometryMultiPolygon from a JSON string""" return cls.from_dict(json.loads(json_str)) def to_dict(self) -> Dict[str, Any]: @@ -77,7 +77,7 @@ def to_dict(self) -> Dict[str, Any]: @classmethod def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of MultiPolygon1 from a dict""" + """Create an instance of TypedGeometryMultiPolygon from a dict""" if obj is None: return None diff --git a/python/geoengine_openapi_client/models/no_geometry1.py b/python/geoengine_openapi_client/models/typed_geometry_no_geometry.py similarity index 92% rename from python/geoengine_openapi_client/models/no_geometry1.py rename to python/geoengine_openapi_client/models/typed_geometry_no_geometry.py index a0eb7965..4db2d1c2 100644 --- a/python/geoengine_openapi_client/models/no_geometry1.py +++ b/python/geoengine_openapi_client/models/typed_geometry_no_geometry.py @@ -23,9 +23,9 @@ from typing import Optional, Set from typing_extensions import Self -class NoGeometry1(BaseModel): +class TypedGeometryNoGeometry(BaseModel): """ - NoGeometry1 + TypedGeometryNoGeometry """ # noqa: E501 data: Optional[Any] = Field(alias="Data") __properties: ClassVar[List[str]] = ["Data"] @@ -48,7 +48,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of NoGeometry1 from a JSON string""" + """Create an instance of TypedGeometryNoGeometry from a JSON string""" return cls.from_dict(json.loads(json_str)) def to_dict(self) -> Dict[str, Any]: @@ -78,7 +78,7 @@ def to_dict(self) -> Dict[str, Any]: @classmethod def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of NoGeometry1 from a dict""" + """Create an instance of TypedGeometryNoGeometry from a dict""" if obj is None: return None diff --git a/python/geoengine_openapi_client/models/vector_operator.py b/python/geoengine_openapi_client/models/vector_operator.py index 3939670b..a0440c50 100644 --- a/python/geoengine_openapi_client/models/vector_operator.py +++ b/python/geoengine_openapi_client/models/vector_operator.py @@ -19,11 +19,12 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator from typing import Any, List, Optional from geoengine_openapi_client.models.mock_point_source import MockPointSource +from geoengine_openapi_client.models.ogr_source import OgrSource from pydantic import StrictStr, Field from typing import Union, List, Set, Optional, Dict from typing_extensions import Literal, Self -VECTOROPERATOR_ONE_OF_SCHEMAS = ["MockPointSource", "RasterVectorJoin", "Reprojection"] +VECTOROPERATOR_ONE_OF_SCHEMAS = ["MockPointSource", "OgrSource", "RasterVectorJoin", "Reprojection"] class VectorOperator(BaseModel): """ @@ -31,12 +32,14 @@ class VectorOperator(BaseModel): """ # data type: MockPointSource oneof_schema_1_validator: Optional[MockPointSource] = None + # data type: OgrSource + oneof_schema_2_validator: Optional[OgrSource] = None # data type: RasterVectorJoin - oneof_schema_2_validator: Optional[RasterVectorJoin] = None + oneof_schema_3_validator: Optional[RasterVectorJoin] = None # data type: Reprojection - oneof_schema_3_validator: Optional[Reprojection] = None - actual_instance: Optional[Union[MockPointSource, RasterVectorJoin, Reprojection]] = None - one_of_schemas: Set[str] = { "MockPointSource", "RasterVectorJoin", "Reprojection" } + oneof_schema_4_validator: Optional[Reprojection] = None + actual_instance: Optional[Union[MockPointSource, OgrSource, RasterVectorJoin, Reprojection]] = None + one_of_schemas: Set[str] = { "MockPointSource", "OgrSource", "RasterVectorJoin", "Reprojection" } model_config = ConfigDict( validate_assignment=True, @@ -67,6 +70,11 @@ def actual_instance_must_validate_oneof(cls, v): error_messages.append(f"Error! Input type `{type(v)}` is not `MockPointSource`") else: match += 1 + # validate data type: OgrSource + if not isinstance(v, OgrSource): + error_messages.append(f"Error! Input type `{type(v)}` is not `OgrSource`") + else: + match += 1 # validate data type: RasterVectorJoin if not isinstance(v, RasterVectorJoin): error_messages.append(f"Error! Input type `{type(v)}` is not `RasterVectorJoin`") @@ -79,10 +87,10 @@ def actual_instance_must_validate_oneof(cls, v): match += 1 if match > 1: # more than 1 match - raise ValueError("Multiple matches found when setting `actual_instance` in VectorOperator with oneOf schemas: MockPointSource, RasterVectorJoin, Reprojection. Details: " + ", ".join(error_messages)) + raise ValueError("Multiple matches found when setting `actual_instance` in VectorOperator with oneOf schemas: MockPointSource, OgrSource, RasterVectorJoin, Reprojection. Details: " + ", ".join(error_messages)) elif match == 0: # no match - raise ValueError("No match found when setting `actual_instance` in VectorOperator with oneOf schemas: MockPointSource, RasterVectorJoin, Reprojection. Details: " + ", ".join(error_messages)) + raise ValueError("No match found when setting `actual_instance` in VectorOperator with oneOf schemas: MockPointSource, OgrSource, RasterVectorJoin, Reprojection. Details: " + ", ".join(error_messages)) else: return v @@ -107,6 +115,11 @@ def from_json(cls, json_str: str) -> Self: instance.actual_instance = MockPointSource.from_json(json_str) return instance + # check if data type is `OgrSource` + if _data_type == "OgrSource": + instance.actual_instance = OgrSource.from_json(json_str) + return instance + # check if data type is `RasterVectorJoin` if _data_type == "RasterVectorJoin": instance.actual_instance = RasterVectorJoin.from_json(json_str) @@ -123,6 +136,12 @@ def from_json(cls, json_str: str) -> Self: match += 1 except (ValidationError, ValueError) as e: error_messages.append(str(e)) + # deserialize data into OgrSource + try: + instance.actual_instance = OgrSource.from_json(json_str) + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) # deserialize data into RasterVectorJoin try: instance.actual_instance = RasterVectorJoin.from_json(json_str) @@ -138,10 +157,10 @@ def from_json(cls, json_str: str) -> Self: if match > 1: # more than 1 match - raise ValueError("Multiple matches found when deserializing the JSON string into VectorOperator with oneOf schemas: MockPointSource, RasterVectorJoin, Reprojection. Details: " + ", ".join(error_messages)) + raise ValueError("Multiple matches found when deserializing the JSON string into VectorOperator with oneOf schemas: MockPointSource, OgrSource, RasterVectorJoin, Reprojection. Details: " + ", ".join(error_messages)) elif match == 0: # no match - raise ValueError("No match found when deserializing the JSON string into VectorOperator with oneOf schemas: MockPointSource, RasterVectorJoin, Reprojection. Details: " + ", ".join(error_messages)) + raise ValueError("No match found when deserializing the JSON string into VectorOperator with oneOf schemas: MockPointSource, OgrSource, RasterVectorJoin, Reprojection. Details: " + ", ".join(error_messages)) else: return instance @@ -155,7 +174,7 @@ def to_json(self) -> str: else: return json.dumps(self.actual_instance) - def to_dict(self) -> Optional[Union[Dict[str, Any], MockPointSource, RasterVectorJoin, Reprojection]]: + def to_dict(self) -> Optional[Union[Dict[str, Any], MockPointSource, OgrSource, RasterVectorJoin, Reprojection]]: """Returns the dict representation of the actual instance""" if self.actual_instance is None: return None diff --git a/python/test/test_data.py b/python/test/test_data.py new file mode 100644 index 00000000..92b1ca6b --- /dev/null +++ b/python/test/test_data.py @@ -0,0 +1,34 @@ +# coding: utf-8 + +""" + Geo Engine API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.9.0 + Contact: dev@geoengine.de + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from geoengine_openapi_client.models.data import Data + +class TestData(unittest.TestCase): + """Data unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testData(self): + """Test Data""" + # inst = Data() + +if __name__ == '__main__': + unittest.main() diff --git a/python/test/test_upload.py b/python/test/test_data_path_upload.py similarity index 65% rename from python/test/test_upload.py rename to python/test/test_data_path_upload.py index f5c1dc9b..2072bad1 100644 --- a/python/test/test_upload.py +++ b/python/test/test_data_path_upload.py @@ -15,10 +15,10 @@ import unittest -from geoengine_openapi_client.models.upload import Upload +from geoengine_openapi_client.models.data_path_upload import DataPathUpload -class TestUpload(unittest.TestCase): - """Upload unit test stubs""" +class TestDataPathUpload(unittest.TestCase): + """DataPathUpload unit test stubs""" def setUp(self): pass @@ -26,26 +26,26 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> Upload: - """Test Upload + def make_instance(self, include_optional) -> DataPathUpload: + """Test DataPathUpload include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ - # uncomment below to create an instance of `Upload` + # uncomment below to create an instance of `DataPathUpload` """ - model = Upload() + model = DataPathUpload() if include_optional: - return Upload( + return DataPathUpload( upload = '' ) else: - return Upload( + return DataPathUpload( upload = '', ) """ - def testUpload(self): - """Test Upload""" + def testDataPathUpload(self): + """Test DataPathUpload""" # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) diff --git a/python/test/test_volume1.py b/python/test/test_data_path_volume.py similarity index 65% rename from python/test/test_volume1.py rename to python/test/test_data_path_volume.py index 65c13255..72424e94 100644 --- a/python/test/test_volume1.py +++ b/python/test/test_data_path_volume.py @@ -15,10 +15,10 @@ import unittest -from geoengine_openapi_client.models.volume1 import Volume1 +from geoengine_openapi_client.models.data_path_volume import DataPathVolume -class TestVolume1(unittest.TestCase): - """Volume1 unit test stubs""" +class TestDataPathVolume(unittest.TestCase): + """DataPathVolume unit test stubs""" def setUp(self): pass @@ -26,26 +26,26 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> Volume1: - """Test Volume1 + def make_instance(self, include_optional) -> DataPathVolume: + """Test DataPathVolume include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ - # uncomment below to create an instance of `Volume1` + # uncomment below to create an instance of `DataPathVolume` """ - model = Volume1() + model = DataPathVolume() if include_optional: - return Volume1( + return DataPathVolume( volume = '' ) else: - return Volume1( + return DataPathVolume( volume = '', ) """ - def testVolume1(self): - """Test Volume1""" + def testDataPathVolume(self): + """Test DataPathVolume""" # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) diff --git a/python/test/test_histogram.py b/python/test/test_histogram.py index d2228d26..4d5f2e7d 100644 --- a/python/test/test_histogram.py +++ b/python/test/test_histogram.py @@ -37,23 +37,23 @@ def make_instance(self, include_optional) -> Histogram: if include_optional: return Histogram( params = geoengine_openapi_client.models.histogram_parameters.HistogramParameters( - attribute_name = '', bounds = null, buckets = null, + column_name = '', interactive = True, ), - sources = geoengine_openapi_client.models.single_raster_or_vector_source.SingleRasterOrVectorSource( - source = null, ), + sources = geoengine_openapi_client.models.single_vector_or_raster_source.SingleVectorOrRasterSource( + vector = null, ), type = 'Histogram' ) else: return Histogram( params = geoengine_openapi_client.models.histogram_parameters.HistogramParameters( - attribute_name = '', bounds = null, buckets = null, + column_name = '', interactive = True, ), - sources = geoengine_openapi_client.models.single_raster_or_vector_source.SingleRasterOrVectorSource( - source = null, ), + sources = geoengine_openapi_client.models.single_vector_or_raster_source.SingleVectorOrRasterSource( + vector = null, ), type = 'Histogram', ) """ diff --git a/python/test/test_histogram_bounds.py b/python/test/test_histogram_bounds.py index 411ec6c7..40fbc6f0 100644 --- a/python/test/test_histogram_bounds.py +++ b/python/test/test_histogram_bounds.py @@ -36,17 +36,13 @@ def make_instance(self, include_optional) -> HistogramBounds: model = HistogramBounds() if include_optional: return HistogramBounds( - data = None, - values = geoengine_openapi_client.models.values_values.Values_values( - max = 1.337, - min = 1.337, ) + max = 1.337, + min = 1.337 ) else: return HistogramBounds( - data = None, - values = geoengine_openapi_client.models.values_values.Values_values( - max = 1.337, - min = 1.337, ), + max = 1.337, + min = 1.337, ) """ diff --git a/python/test/test_values_values.py b/python/test/test_histogram_bounds_values.py similarity index 63% rename from python/test/test_values_values.py rename to python/test/test_histogram_bounds_values.py index f34b2058..a22ad2aa 100644 --- a/python/test/test_values_values.py +++ b/python/test/test_histogram_bounds_values.py @@ -15,10 +15,10 @@ import unittest -from geoengine_openapi_client.models.values_values import ValuesValues +from geoengine_openapi_client.models.histogram_bounds_values import HistogramBoundsValues -class TestValuesValues(unittest.TestCase): - """ValuesValues unit test stubs""" +class TestHistogramBoundsValues(unittest.TestCase): + """HistogramBoundsValues unit test stubs""" def setUp(self): pass @@ -26,28 +26,28 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> ValuesValues: - """Test ValuesValues + def make_instance(self, include_optional) -> HistogramBoundsValues: + """Test HistogramBoundsValues include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ - # uncomment below to create an instance of `ValuesValues` + # uncomment below to create an instance of `HistogramBoundsValues` """ - model = ValuesValues() + model = HistogramBoundsValues() if include_optional: - return ValuesValues( + return HistogramBoundsValues( max = 1.337, min = 1.337 ) else: - return ValuesValues( + return HistogramBoundsValues( max = 1.337, min = 1.337, ) """ - def testValuesValues(self): - """Test ValuesValues""" + def testHistogramBoundsValues(self): + """Test HistogramBoundsValues""" # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) diff --git a/python/test/test_number.py b/python/test/test_histogram_buckets_number.py similarity index 63% rename from python/test/test_number.py rename to python/test/test_histogram_buckets_number.py index 02b8ac65..bcc00ee2 100644 --- a/python/test/test_number.py +++ b/python/test/test_histogram_buckets_number.py @@ -15,10 +15,10 @@ import unittest -from geoengine_openapi_client.models.number import Number +from geoengine_openapi_client.models.histogram_buckets_number import HistogramBucketsNumber -class TestNumber(unittest.TestCase): - """Number unit test stubs""" +class TestHistogramBucketsNumber(unittest.TestCase): + """HistogramBucketsNumber unit test stubs""" def setUp(self): pass @@ -26,28 +26,28 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> Number: - """Test Number + def make_instance(self, include_optional) -> HistogramBucketsNumber: + """Test HistogramBucketsNumber include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ - # uncomment below to create an instance of `Number` + # uncomment below to create an instance of `HistogramBucketsNumber` """ - model = Number() + model = HistogramBucketsNumber() if include_optional: - return Number( + return HistogramBucketsNumber( type = 'number', value = 0 ) else: - return Number( + return HistogramBucketsNumber( type = 'number', value = 0, ) """ - def testNumber(self): - """Test Number""" + def testHistogramBucketsNumber(self): + """Test HistogramBucketsNumber""" # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) diff --git a/python/test/test_square_root_choice_rule.py b/python/test/test_histogram_buckets_square_root_choice_rule.py similarity index 57% rename from python/test/test_square_root_choice_rule.py rename to python/test/test_histogram_buckets_square_root_choice_rule.py index ed6ffcdb..cb2786ba 100644 --- a/python/test/test_square_root_choice_rule.py +++ b/python/test/test_histogram_buckets_square_root_choice_rule.py @@ -15,10 +15,10 @@ import unittest -from geoengine_openapi_client.models.square_root_choice_rule import SquareRootChoiceRule +from geoengine_openapi_client.models.histogram_buckets_square_root_choice_rule import HistogramBucketsSquareRootChoiceRule -class TestSquareRootChoiceRule(unittest.TestCase): - """SquareRootChoiceRule unit test stubs""" +class TestHistogramBucketsSquareRootChoiceRule(unittest.TestCase): + """HistogramBucketsSquareRootChoiceRule unit test stubs""" def setUp(self): pass @@ -26,27 +26,27 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> SquareRootChoiceRule: - """Test SquareRootChoiceRule + def make_instance(self, include_optional) -> HistogramBucketsSquareRootChoiceRule: + """Test HistogramBucketsSquareRootChoiceRule include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ - # uncomment below to create an instance of `SquareRootChoiceRule` + # uncomment below to create an instance of `HistogramBucketsSquareRootChoiceRule` """ - model = SquareRootChoiceRule() + model = HistogramBucketsSquareRootChoiceRule() if include_optional: - return SquareRootChoiceRule( + return HistogramBucketsSquareRootChoiceRule( max_number_of_buckets = 0, type = 'squareRootChoiceRule' ) else: - return SquareRootChoiceRule( + return HistogramBucketsSquareRootChoiceRule( type = 'squareRootChoiceRule', ) """ - def testSquareRootChoiceRule(self): - """Test SquareRootChoiceRule""" + def testHistogramBucketsSquareRootChoiceRule(self): + """Test HistogramBucketsSquareRootChoiceRule""" # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) diff --git a/python/test/test_histogram_parameters.py b/python/test/test_histogram_parameters.py index 0a0e1b3d..6638cd88 100644 --- a/python/test/test_histogram_parameters.py +++ b/python/test/test_histogram_parameters.py @@ -36,16 +36,16 @@ def make_instance(self, include_optional) -> HistogramParameters: model = HistogramParameters() if include_optional: return HistogramParameters( - attribute_name = '', bounds = None, buckets = None, + column_name = '', interactive = True ) else: return HistogramParameters( - attribute_name = '', bounds = None, buckets = None, + column_name = '', ) """ diff --git a/python/test/test_ogr_source.py b/python/test/test_ogr_source.py new file mode 100644 index 00000000..54656804 --- /dev/null +++ b/python/test/test_ogr_source.py @@ -0,0 +1,63 @@ +# coding: utf-8 + +""" + Geo Engine API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.9.0 + Contact: dev@geoengine.de + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from geoengine_openapi_client.models.ogr_source import OgrSource + +class TestOgrSource(unittest.TestCase): + """OgrSource unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> OgrSource: + """Test OgrSource + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `OgrSource` + """ + model = OgrSource() + if include_optional: + return OgrSource( + params = geoengine_openapi_client.models.ogr_source_parameters.OgrSourceParameters( + attribute_projection = [ + '' + ], + data = '', ), + type = 'OgrSource' + ) + else: + return OgrSource( + params = geoengine_openapi_client.models.ogr_source_parameters.OgrSourceParameters( + attribute_projection = [ + '' + ], + data = '', ), + type = 'OgrSource', + ) + """ + + def testOgrSource(self): + """Test OgrSource""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/python/test/test_no_geometry1.py b/python/test/test_ogr_source_parameters.py similarity index 56% rename from python/test/test_no_geometry1.py rename to python/test/test_ogr_source_parameters.py index ffbc4da5..8f3508ad 100644 --- a/python/test/test_no_geometry1.py +++ b/python/test/test_ogr_source_parameters.py @@ -15,10 +15,10 @@ import unittest -from geoengine_openapi_client.models.no_geometry1 import NoGeometry1 +from geoengine_openapi_client.models.ogr_source_parameters import OgrSourceParameters -class TestNoGeometry1(unittest.TestCase): - """NoGeometry1 unit test stubs""" +class TestOgrSourceParameters(unittest.TestCase): + """OgrSourceParameters unit test stubs""" def setUp(self): pass @@ -26,26 +26,29 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> NoGeometry1: - """Test NoGeometry1 + def make_instance(self, include_optional) -> OgrSourceParameters: + """Test OgrSourceParameters include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ - # uncomment below to create an instance of `NoGeometry1` + # uncomment below to create an instance of `OgrSourceParameters` """ - model = NoGeometry1() + model = OgrSourceParameters() if include_optional: - return NoGeometry1( - data = None + return OgrSourceParameters( + attribute_projection = [ + '' + ], + data = '' ) else: - return NoGeometry1( - data = None, + return OgrSourceParameters( + data = '', ) """ - def testNoGeometry1(self): - """Test NoGeometry1""" + def testOgrSourceParameters(self): + """Test OgrSourceParameters""" # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) diff --git a/python/test/test_single_vector_or_raster_source.py b/python/test/test_single_vector_or_raster_source.py new file mode 100644 index 00000000..c282bf27 --- /dev/null +++ b/python/test/test_single_vector_or_raster_source.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Geo Engine API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.9.0 + Contact: dev@geoengine.de + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from geoengine_openapi_client.models.single_vector_or_raster_source import SingleVectorOrRasterSource + +class TestSingleVectorOrRasterSource(unittest.TestCase): + """SingleVectorOrRasterSource unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> SingleVectorOrRasterSource: + """Test SingleVectorOrRasterSource + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `SingleVectorOrRasterSource` + """ + model = SingleVectorOrRasterSource() + if include_optional: + return SingleVectorOrRasterSource( + vector = None + ) + else: + return SingleVectorOrRasterSource( + vector = None, + ) + """ + + def testSingleVectorOrRasterSource(self): + """Test SingleVectorOrRasterSource""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/python/test/test_multi_line_string1.py b/python/test/test_typed_geometry_multi_line_string.py similarity index 71% rename from python/test/test_multi_line_string1.py rename to python/test/test_typed_geometry_multi_line_string.py index 73c8c1a0..1113d9ac 100644 --- a/python/test/test_multi_line_string1.py +++ b/python/test/test_typed_geometry_multi_line_string.py @@ -15,10 +15,10 @@ import unittest -from geoengine_openapi_client.models.multi_line_string1 import MultiLineString1 +from geoengine_openapi_client.models.typed_geometry_multi_line_string import TypedGeometryMultiLineString -class TestMultiLineString1(unittest.TestCase): - """MultiLineString1 unit test stubs""" +class TestTypedGeometryMultiLineString(unittest.TestCase): + """TypedGeometryMultiLineString unit test stubs""" def setUp(self): pass @@ -26,16 +26,16 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> MultiLineString1: - """Test MultiLineString1 + def make_instance(self, include_optional) -> TypedGeometryMultiLineString: + """Test TypedGeometryMultiLineString include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ - # uncomment below to create an instance of `MultiLineString1` + # uncomment below to create an instance of `TypedGeometryMultiLineString` """ - model = MultiLineString1() + model = TypedGeometryMultiLineString() if include_optional: - return MultiLineString1( + return TypedGeometryMultiLineString( multi_line_string = geoengine_openapi_client.models.multi_line_string.MultiLineString( coordinates = [ [ @@ -46,7 +46,7 @@ def make_instance(self, include_optional) -> MultiLineString1: ], ) ) else: - return MultiLineString1( + return TypedGeometryMultiLineString( multi_line_string = geoengine_openapi_client.models.multi_line_string.MultiLineString( coordinates = [ [ @@ -58,8 +58,8 @@ def make_instance(self, include_optional) -> MultiLineString1: ) """ - def testMultiLineString1(self): - """Test MultiLineString1""" + def testTypedGeometryMultiLineString(self): + """Test TypedGeometryMultiLineString""" # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) diff --git a/python/test/test_multi_point1.py b/python/test/test_typed_geometry_multi_point.py similarity index 71% rename from python/test/test_multi_point1.py rename to python/test/test_typed_geometry_multi_point.py index 2bf3e80b..d36ef0be 100644 --- a/python/test/test_multi_point1.py +++ b/python/test/test_typed_geometry_multi_point.py @@ -15,10 +15,10 @@ import unittest -from geoengine_openapi_client.models.multi_point1 import MultiPoint1 +from geoengine_openapi_client.models.typed_geometry_multi_point import TypedGeometryMultiPoint -class TestMultiPoint1(unittest.TestCase): - """MultiPoint1 unit test stubs""" +class TestTypedGeometryMultiPoint(unittest.TestCase): + """TypedGeometryMultiPoint unit test stubs""" def setUp(self): pass @@ -26,16 +26,16 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> MultiPoint1: - """Test MultiPoint1 + def make_instance(self, include_optional) -> TypedGeometryMultiPoint: + """Test TypedGeometryMultiPoint include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ - # uncomment below to create an instance of `MultiPoint1` + # uncomment below to create an instance of `TypedGeometryMultiPoint` """ - model = MultiPoint1() + model = TypedGeometryMultiPoint() if include_optional: - return MultiPoint1( + return TypedGeometryMultiPoint( multi_point = geoengine_openapi_client.models.multi_point.MultiPoint( coordinates = [ geoengine_openapi_client.models.coordinate2_d.Coordinate2D( @@ -44,7 +44,7 @@ def make_instance(self, include_optional) -> MultiPoint1: ], ) ) else: - return MultiPoint1( + return TypedGeometryMultiPoint( multi_point = geoengine_openapi_client.models.multi_point.MultiPoint( coordinates = [ geoengine_openapi_client.models.coordinate2_d.Coordinate2D( @@ -54,8 +54,8 @@ def make_instance(self, include_optional) -> MultiPoint1: ) """ - def testMultiPoint1(self): - """Test MultiPoint1""" + def testTypedGeometryMultiPoint(self): + """Test TypedGeometryMultiPoint""" # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) diff --git a/python/test/test_multi_polygon1.py b/python/test/test_typed_geometry_multi_polygon.py similarity index 74% rename from python/test/test_multi_polygon1.py rename to python/test/test_typed_geometry_multi_polygon.py index 7b259dbb..62f80116 100644 --- a/python/test/test_multi_polygon1.py +++ b/python/test/test_typed_geometry_multi_polygon.py @@ -15,10 +15,10 @@ import unittest -from geoengine_openapi_client.models.multi_polygon1 import MultiPolygon1 +from geoengine_openapi_client.models.typed_geometry_multi_polygon import TypedGeometryMultiPolygon -class TestMultiPolygon1(unittest.TestCase): - """MultiPolygon1 unit test stubs""" +class TestTypedGeometryMultiPolygon(unittest.TestCase): + """TypedGeometryMultiPolygon unit test stubs""" def setUp(self): pass @@ -26,16 +26,16 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> MultiPolygon1: - """Test MultiPolygon1 + def make_instance(self, include_optional) -> TypedGeometryMultiPolygon: + """Test TypedGeometryMultiPolygon include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ - # uncomment below to create an instance of `MultiPolygon1` + # uncomment below to create an instance of `TypedGeometryMultiPolygon` """ - model = MultiPolygon1() + model = TypedGeometryMultiPolygon() if include_optional: - return MultiPolygon1( + return TypedGeometryMultiPolygon( multi_polygon = geoengine_openapi_client.models.multi_polygon.MultiPolygon( polygons = [ [ @@ -48,7 +48,7 @@ def make_instance(self, include_optional) -> MultiPolygon1: ], ) ) else: - return MultiPolygon1( + return TypedGeometryMultiPolygon( multi_polygon = geoengine_openapi_client.models.multi_polygon.MultiPolygon( polygons = [ [ @@ -62,8 +62,8 @@ def make_instance(self, include_optional) -> MultiPolygon1: ) """ - def testMultiPolygon1(self): - """Test MultiPolygon1""" + def testTypedGeometryMultiPolygon(self): + """Test TypedGeometryMultiPolygon""" # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) diff --git a/python/test/test_data1.py b/python/test/test_typed_geometry_no_geometry.py similarity index 61% rename from python/test/test_data1.py rename to python/test/test_typed_geometry_no_geometry.py index 7c364c58..ded5b2e2 100644 --- a/python/test/test_data1.py +++ b/python/test/test_typed_geometry_no_geometry.py @@ -15,10 +15,10 @@ import unittest -from geoengine_openapi_client.models.data1 import Data1 +from geoengine_openapi_client.models.typed_geometry_no_geometry import TypedGeometryNoGeometry -class TestData1(unittest.TestCase): - """Data1 unit test stubs""" +class TestTypedGeometryNoGeometry(unittest.TestCase): + """TypedGeometryNoGeometry unit test stubs""" def setUp(self): pass @@ -26,26 +26,26 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> Data1: - """Test Data1 + def make_instance(self, include_optional) -> TypedGeometryNoGeometry: + """Test TypedGeometryNoGeometry include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ - # uncomment below to create an instance of `Data1` + # uncomment below to create an instance of `TypedGeometryNoGeometry` """ - model = Data1() + model = TypedGeometryNoGeometry() if include_optional: - return Data1( + return TypedGeometryNoGeometry( data = None ) else: - return Data1( + return TypedGeometryNoGeometry( data = None, ) """ - def testData1(self): - """Test Data1""" + def testTypedGeometryNoGeometry(self): + """Test TypedGeometryNoGeometry""" # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) diff --git a/python/test/test_values.py b/python/test/test_values.py deleted file mode 100644 index b015d1ab..00000000 --- a/python/test/test_values.py +++ /dev/null @@ -1,57 +0,0 @@ -# coding: utf-8 - -""" - Geo Engine API - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - - The version of the OpenAPI document: 0.9.0 - Contact: dev@geoengine.de - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from geoengine_openapi_client.models.values import Values - -class TestValues(unittest.TestCase): - """Values unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> Values: - """Test Values - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `Values` - """ - model = Values() - if include_optional: - return Values( - values = geoengine_openapi_client.models.values_values.Values_values( - max = 1.337, - min = 1.337, ) - ) - else: - return Values( - values = geoengine_openapi_client.models.values_values.Values_values( - max = 1.337, - min = 1.337, ), - ) - """ - - def testValues(self): - """Test Values""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/rust/.openapi-generator/FILES b/rust/.openapi-generator/FILES index 49f922f3..7f0fa7f9 100644 --- a/rust/.openapi-generator/FILES +++ b/rust/.openapi-generator/FILES @@ -31,9 +31,11 @@ docs/CountAggregation.md docs/CreateDataset.md docs/CreateProject.md docs/CsvHeader.md -docs/Data1.md +docs/Data.md docs/DataId.md docs/DataPath.md +docs/DataPathUpload.md +docs/DataPathVolume.md docs/DataProviderResource.md docs/DataUsage.md docs/DataUsageSummary.md @@ -87,7 +89,10 @@ docs/GridBoundingBox2D.md docs/GridIdx2D.md docs/Histogram.md docs/HistogramBounds.md +docs/HistogramBoundsValues.md docs/HistogramBuckets.md +docs/HistogramBucketsNumber.md +docs/HistogramBucketsSquareRootChoiceRule.md docs/HistogramParameters.md docs/IdResponse.md docs/InternalDataId.md @@ -134,23 +139,19 @@ docs/MockPointSourceParameters.md docs/MultiBandGdalSource.md docs/MultiBandRasterColorizer.md docs/MultiLineString.md -docs/MultiLineString1.md docs/MultiPoint.md -docs/MultiPoint1.md docs/MultiPolygon.md -docs/MultiPolygon1.md docs/MultipleRasterOrSingleVectorOperator.md docs/MultipleRasterOrSingleVectorSource.md docs/MultipleRasterSources.md docs/Names.md docs/NetCdfCfDataProviderDefinition.md -docs/NoGeometry1.md -docs/Number.md docs/NumberParam.md docs/OgcwcsApi.md docs/OgcwfsApi.md docs/OgcwmsApi.md docs/OgrMetaData.md +docs/OgrSource.md docs/OgrSourceColumnSpec.md docs/OgrSourceDataset.md docs/OgrSourceDatasetTimeType.md @@ -163,6 +164,7 @@ docs/OgrSourceDurationSpecInfinite.md docs/OgrSourceDurationSpecValue.md docs/OgrSourceDurationSpecZero.md docs/OgrSourceErrorSpec.md +docs/OgrSourceParameters.md docs/OgrSourceTimeFormat.md docs/OgrSourceTimeFormatAuto.md docs/OgrSourceTimeFormatCustom.md @@ -235,6 +237,7 @@ docs/SingleRasterOrVectorOperator.md docs/SingleRasterOrVectorSource.md docs/SingleRasterSource.md docs/SingleVectorMultipleRasterSources.md +docs/SingleVectorOrRasterSource.md docs/SpatialBoundsDerive.md docs/SpatialBoundsDeriveBounds.md docs/SpatialBoundsDeriveDerive.md @@ -245,7 +248,6 @@ docs/SpatialGridDescriptorState.md docs/SpatialPartition2D.md docs/SpatialReferenceSpecification.md docs/SpatialReferencesApi.md -docs/SquareRootChoiceRule.md docs/StRectangle.md docs/StacApiRetries.md docs/StacQueryBuffer.md @@ -279,6 +281,10 @@ docs/TimeReference.md docs/TimeStep.md docs/TypedDataProviderDefinition.md docs/TypedGeometry.md +docs/TypedGeometryMultiLineString.md +docs/TypedGeometryMultiPoint.md +docs/TypedGeometryMultiPolygon.md +docs/TypedGeometryNoGeometry.md docs/TypedOperator.md docs/TypedPlotOperator.md docs/TypedPlotResultDescriptor.md @@ -294,7 +300,6 @@ docs/UpdateLayer.md docs/UpdateLayerCollection.md docs/UpdateProject.md docs/UpdateQuota.md -docs/Upload.md docs/UploadFileLayersResponse.md docs/UploadFilesResponse.md docs/UploadsApi.md @@ -304,15 +309,12 @@ docs/UserCredentials.md docs/UserInfo.md docs/UserRegistration.md docs/UserSession.md -docs/Values.md -docs/ValuesValues.md docs/VecUpdate.md docs/VectorColumnInfo.md docs/VectorDataType.md docs/VectorOperator.md docs/VectorResultDescriptor.md docs/Volume.md -docs/Volume1.md docs/VolumeFileLayersResponse.md docs/WcsRequest.md docs/WcsService.md @@ -377,9 +379,11 @@ src/models/count_aggregation.rs src/models/create_dataset.rs src/models/create_project.rs src/models/csv_header.rs -src/models/data_1.rs +src/models/data.rs src/models/data_id.rs src/models/data_path.rs +src/models/data_path_upload.rs +src/models/data_path_volume.rs src/models/data_provider_resource.rs src/models/data_usage.rs src/models/data_usage_summary.rs @@ -431,7 +435,10 @@ src/models/grid_bounding_box2_d.rs src/models/grid_idx2_d.rs src/models/histogram.rs src/models/histogram_bounds.rs +src/models/histogram_bounds_values.rs src/models/histogram_buckets.rs +src/models/histogram_buckets_number.rs +src/models/histogram_buckets_square_root_choice_rule.rs src/models/histogram_parameters.rs src/models/id_response.rs src/models/internal_data_id.rs @@ -477,20 +484,16 @@ src/models/mod.rs src/models/multi_band_gdal_source.rs src/models/multi_band_raster_colorizer.rs src/models/multi_line_string.rs -src/models/multi_line_string_1.rs src/models/multi_point.rs -src/models/multi_point_1.rs src/models/multi_polygon.rs -src/models/multi_polygon_1.rs src/models/multiple_raster_or_single_vector_operator.rs src/models/multiple_raster_or_single_vector_source.rs src/models/multiple_raster_sources.rs src/models/names.rs src/models/net_cdf_cf_data_provider_definition.rs -src/models/no_geometry_1.rs -src/models/number.rs src/models/number_param.rs src/models/ogr_meta_data.rs +src/models/ogr_source.rs src/models/ogr_source_column_spec.rs src/models/ogr_source_dataset.rs src/models/ogr_source_dataset_time_type.rs @@ -503,6 +506,7 @@ src/models/ogr_source_duration_spec_infinite.rs src/models/ogr_source_duration_spec_value.rs src/models/ogr_source_duration_spec_zero.rs src/models/ogr_source_error_spec.rs +src/models/ogr_source_parameters.rs src/models/ogr_source_time_format.rs src/models/ogr_source_time_format_auto.rs src/models/ogr_source_time_format_custom.rs @@ -571,6 +575,7 @@ src/models/single_raster_or_vector_operator.rs src/models/single_raster_or_vector_source.rs src/models/single_raster_source.rs src/models/single_vector_multiple_raster_sources.rs +src/models/single_vector_or_raster_source.rs src/models/spatial_bounds_derive.rs src/models/spatial_bounds_derive_bounds.rs src/models/spatial_bounds_derive_derive.rs @@ -580,7 +585,6 @@ src/models/spatial_grid_descriptor.rs src/models/spatial_grid_descriptor_state.rs src/models/spatial_partition2_d.rs src/models/spatial_reference_specification.rs -src/models/square_root_choice_rule.rs src/models/st_rectangle.rs src/models/stac_api_retries.rs src/models/stac_query_buffer.rs @@ -613,6 +617,10 @@ src/models/time_reference.rs src/models/time_step.rs src/models/typed_data_provider_definition.rs src/models/typed_geometry.rs +src/models/typed_geometry_multi_line_string.rs +src/models/typed_geometry_multi_point.rs +src/models/typed_geometry_multi_polygon.rs +src/models/typed_geometry_no_geometry.rs src/models/typed_operator.rs src/models/typed_plot_operator.rs src/models/typed_plot_result_descriptor.rs @@ -628,7 +636,6 @@ src/models/update_layer.rs src/models/update_layer_collection.rs src/models/update_project.rs src/models/update_quota.rs -src/models/upload.rs src/models/upload_file_layers_response.rs src/models/upload_files_response.rs src/models/usage_summary_granularity.rs @@ -636,15 +643,12 @@ src/models/user_credentials.rs src/models/user_info.rs src/models/user_registration.rs src/models/user_session.rs -src/models/values.rs -src/models/values_values.rs src/models/vec_update.rs src/models/vector_column_info.rs src/models/vector_data_type.rs src/models/vector_operator.rs src/models/vector_result_descriptor.rs src/models/volume.rs -src/models/volume_1.rs src/models/volume_file_layers_response.rs src/models/wcs_request.rs src/models/wcs_service.rs diff --git a/rust/README.md b/rust/README.md index 2df6d901..7d036f18 100644 --- a/rust/README.md +++ b/rust/README.md @@ -151,9 +151,11 @@ Class | Method | HTTP request | Description - [CreateDataset](docs/CreateDataset.md) - [CreateProject](docs/CreateProject.md) - [CsvHeader](docs/CsvHeader.md) - - [Data1](docs/Data1.md) + - [Data](docs/Data.md) - [DataId](docs/DataId.md) - [DataPath](docs/DataPath.md) + - [DataPathUpload](docs/DataPathUpload.md) + - [DataPathVolume](docs/DataPathVolume.md) - [DataProviderResource](docs/DataProviderResource.md) - [DataUsage](docs/DataUsage.md) - [DataUsageSummary](docs/DataUsageSummary.md) @@ -205,7 +207,10 @@ Class | Method | HTTP request | Description - [GridIdx2D](docs/GridIdx2D.md) - [Histogram](docs/Histogram.md) - [HistogramBounds](docs/HistogramBounds.md) + - [HistogramBoundsValues](docs/HistogramBoundsValues.md) - [HistogramBuckets](docs/HistogramBuckets.md) + - [HistogramBucketsNumber](docs/HistogramBucketsNumber.md) + - [HistogramBucketsSquareRootChoiceRule](docs/HistogramBucketsSquareRootChoiceRule.md) - [HistogramParameters](docs/HistogramParameters.md) - [IdResponse](docs/IdResponse.md) - [InternalDataId](docs/InternalDataId.md) @@ -250,20 +255,16 @@ Class | Method | HTTP request | Description - [MultiBandGdalSource](docs/MultiBandGdalSource.md) - [MultiBandRasterColorizer](docs/MultiBandRasterColorizer.md) - [MultiLineString](docs/MultiLineString.md) - - [MultiLineString1](docs/MultiLineString1.md) - [MultiPoint](docs/MultiPoint.md) - - [MultiPoint1](docs/MultiPoint1.md) - [MultiPolygon](docs/MultiPolygon.md) - - [MultiPolygon1](docs/MultiPolygon1.md) - [MultipleRasterOrSingleVectorOperator](docs/MultipleRasterOrSingleVectorOperator.md) - [MultipleRasterOrSingleVectorSource](docs/MultipleRasterOrSingleVectorSource.md) - [MultipleRasterSources](docs/MultipleRasterSources.md) - [Names](docs/Names.md) - [NetCdfCfDataProviderDefinition](docs/NetCdfCfDataProviderDefinition.md) - - [NoGeometry1](docs/NoGeometry1.md) - - [Number](docs/Number.md) - [NumberParam](docs/NumberParam.md) - [OgrMetaData](docs/OgrMetaData.md) + - [OgrSource](docs/OgrSource.md) - [OgrSourceColumnSpec](docs/OgrSourceColumnSpec.md) - [OgrSourceDataset](docs/OgrSourceDataset.md) - [OgrSourceDatasetTimeType](docs/OgrSourceDatasetTimeType.md) @@ -276,6 +277,7 @@ Class | Method | HTTP request | Description - [OgrSourceDurationSpecValue](docs/OgrSourceDurationSpecValue.md) - [OgrSourceDurationSpecZero](docs/OgrSourceDurationSpecZero.md) - [OgrSourceErrorSpec](docs/OgrSourceErrorSpec.md) + - [OgrSourceParameters](docs/OgrSourceParameters.md) - [OgrSourceTimeFormat](docs/OgrSourceTimeFormat.md) - [OgrSourceTimeFormatAuto](docs/OgrSourceTimeFormatAuto.md) - [OgrSourceTimeFormatCustom](docs/OgrSourceTimeFormatCustom.md) @@ -344,6 +346,7 @@ Class | Method | HTTP request | Description - [SingleRasterOrVectorSource](docs/SingleRasterOrVectorSource.md) - [SingleRasterSource](docs/SingleRasterSource.md) - [SingleVectorMultipleRasterSources](docs/SingleVectorMultipleRasterSources.md) + - [SingleVectorOrRasterSource](docs/SingleVectorOrRasterSource.md) - [SpatialBoundsDerive](docs/SpatialBoundsDerive.md) - [SpatialBoundsDeriveBounds](docs/SpatialBoundsDeriveBounds.md) - [SpatialBoundsDeriveDerive](docs/SpatialBoundsDeriveDerive.md) @@ -353,7 +356,6 @@ Class | Method | HTTP request | Description - [SpatialGridDescriptorState](docs/SpatialGridDescriptorState.md) - [SpatialPartition2D](docs/SpatialPartition2D.md) - [SpatialReferenceSpecification](docs/SpatialReferenceSpecification.md) - - [SquareRootChoiceRule](docs/SquareRootChoiceRule.md) - [StRectangle](docs/StRectangle.md) - [StacApiRetries](docs/StacApiRetries.md) - [StacQueryBuffer](docs/StacQueryBuffer.md) @@ -386,6 +388,10 @@ Class | Method | HTTP request | Description - [TimeStep](docs/TimeStep.md) - [TypedDataProviderDefinition](docs/TypedDataProviderDefinition.md) - [TypedGeometry](docs/TypedGeometry.md) + - [TypedGeometryMultiLineString](docs/TypedGeometryMultiLineString.md) + - [TypedGeometryMultiPoint](docs/TypedGeometryMultiPoint.md) + - [TypedGeometryMultiPolygon](docs/TypedGeometryMultiPolygon.md) + - [TypedGeometryNoGeometry](docs/TypedGeometryNoGeometry.md) - [TypedOperator](docs/TypedOperator.md) - [TypedPlotOperator](docs/TypedPlotOperator.md) - [TypedPlotResultDescriptor](docs/TypedPlotResultDescriptor.md) @@ -401,7 +407,6 @@ Class | Method | HTTP request | Description - [UpdateLayerCollection](docs/UpdateLayerCollection.md) - [UpdateProject](docs/UpdateProject.md) - [UpdateQuota](docs/UpdateQuota.md) - - [Upload](docs/Upload.md) - [UploadFileLayersResponse](docs/UploadFileLayersResponse.md) - [UploadFilesResponse](docs/UploadFilesResponse.md) - [UsageSummaryGranularity](docs/UsageSummaryGranularity.md) @@ -409,15 +414,12 @@ Class | Method | HTTP request | Description - [UserInfo](docs/UserInfo.md) - [UserRegistration](docs/UserRegistration.md) - [UserSession](docs/UserSession.md) - - [Values](docs/Values.md) - - [ValuesValues](docs/ValuesValues.md) - [VecUpdate](docs/VecUpdate.md) - [VectorColumnInfo](docs/VectorColumnInfo.md) - [VectorDataType](docs/VectorDataType.md) - [VectorOperator](docs/VectorOperator.md) - [VectorResultDescriptor](docs/VectorResultDescriptor.md) - [Volume](docs/Volume.md) - - [Volume1](docs/Volume1.md) - [VolumeFileLayersResponse](docs/VolumeFileLayersResponse.md) - [WcsRequest](docs/WcsRequest.md) - [WcsService](docs/WcsService.md) diff --git a/rust/docs/Upload.md b/rust/docs/Data.md similarity index 52% rename from rust/docs/Upload.md rename to rust/docs/Data.md index 3f77e1a5..fb3fcfa4 100644 --- a/rust/docs/Upload.md +++ b/rust/docs/Data.md @@ -1,10 +1,11 @@ -# Upload +# Data -## Properties +## Enum Variants + +| Name | Value | +|---- | -----| +| Data | data | -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**upload** | **uuid::Uuid** | | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/rust/docs/DataPath.md b/rust/docs/DataPath.md index 76c6af8f..34958b8b 100644 --- a/rust/docs/DataPath.md +++ b/rust/docs/DataPath.md @@ -4,8 +4,8 @@ | Name | Description | |---- | -----| -| Upload | | -| Volume1 | | +| DataPathUpload | | +| DataPathVolume | | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/rust/docs/DataPathOneOf1.md b/rust/docs/DataPathUpload.md similarity index 94% rename from rust/docs/DataPathOneOf1.md rename to rust/docs/DataPathUpload.md index c634dfea..a0823e05 100644 --- a/rust/docs/DataPathOneOf1.md +++ b/rust/docs/DataPathUpload.md @@ -1,4 +1,4 @@ -# DataPathOneOf1 +# DataPathUpload ## Properties diff --git a/rust/docs/Volume1.md b/rust/docs/DataPathVolume.md similarity index 94% rename from rust/docs/Volume1.md rename to rust/docs/DataPathVolume.md index b4b1e5c6..5df5e74d 100644 --- a/rust/docs/Volume1.md +++ b/rust/docs/DataPathVolume.md @@ -1,4 +1,4 @@ -# Volume1 +# DataPathVolume ## Properties diff --git a/rust/docs/Histogram.md b/rust/docs/Histogram.md index 5a4d1ae1..19da25d2 100644 --- a/rust/docs/Histogram.md +++ b/rust/docs/Histogram.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **params** | [**models::HistogramParameters**](HistogramParameters.md) | | -**sources** | [**models::SingleRasterOrVectorSource**](SingleRasterOrVectorSource.md) | | +**sources** | [**models::SingleVectorOrRasterSource**](SingleVectorOrRasterSource.md) | | **r#type** | **Type** | (enum: Histogram) | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/rust/docs/HistogramBounds.md b/rust/docs/HistogramBounds.md index f4b364dd..d2583ecc 100644 --- a/rust/docs/HistogramBounds.md +++ b/rust/docs/HistogramBounds.md @@ -4,8 +4,8 @@ | Name | Description | |---- | -----| -| Data1 | | -| Values | | +| Data | | +| HistogramBoundsValues | | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/rust/docs/HistogramBoundsOneOf1.md b/rust/docs/HistogramBoundsOneOf1.md deleted file mode 100644 index c2df953f..00000000 --- a/rust/docs/HistogramBoundsOneOf1.md +++ /dev/null @@ -1,11 +0,0 @@ -# HistogramBoundsOneOf1 - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**values** | [**models::HistogramBoundsOneOf1Values**](HistogramBoundsOneOf1Values.md) | | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/rust/docs/HistogramBoundsOneOf1Values.md b/rust/docs/HistogramBoundsOneOf1Values.md deleted file mode 100644 index d36c0f09..00000000 --- a/rust/docs/HistogramBoundsOneOf1Values.md +++ /dev/null @@ -1,12 +0,0 @@ -# HistogramBoundsOneOf1Values - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**max** | **f64** | | -**min** | **f64** | | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/rust/docs/ValuesValues.md b/rust/docs/HistogramBoundsValues.md similarity index 93% rename from rust/docs/ValuesValues.md rename to rust/docs/HistogramBoundsValues.md index ee622bae..d7d09df5 100644 --- a/rust/docs/ValuesValues.md +++ b/rust/docs/HistogramBoundsValues.md @@ -1,4 +1,4 @@ -# ValuesValues +# HistogramBoundsValues ## Properties diff --git a/rust/docs/HistogramBuckets.md b/rust/docs/HistogramBuckets.md index 66a1656b..896faf92 100644 --- a/rust/docs/HistogramBuckets.md +++ b/rust/docs/HistogramBuckets.md @@ -2,10 +2,8 @@ ## Enum Variants -| Name | Description | +| Name | Value | |---- | -----| -| Number | | -| SquareRootChoiceRule | | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/rust/docs/HistogramBucketsOneOf.md b/rust/docs/HistogramBucketsNumber.md similarity index 93% rename from rust/docs/HistogramBucketsOneOf.md rename to rust/docs/HistogramBucketsNumber.md index fcb525b2..f5febf1b 100644 --- a/rust/docs/HistogramBucketsOneOf.md +++ b/rust/docs/HistogramBucketsNumber.md @@ -1,4 +1,4 @@ -# HistogramBucketsOneOf +# HistogramBucketsNumber ## Properties diff --git a/rust/docs/HistogramBucketsOneOf1.md b/rust/docs/HistogramBucketsSquareRootChoiceRule.md similarity index 90% rename from rust/docs/HistogramBucketsOneOf1.md rename to rust/docs/HistogramBucketsSquareRootChoiceRule.md index d69d8aff..74a1fddc 100644 --- a/rust/docs/HistogramBucketsOneOf1.md +++ b/rust/docs/HistogramBucketsSquareRootChoiceRule.md @@ -1,4 +1,4 @@ -# HistogramBucketsOneOf1 +# HistogramBucketsSquareRootChoiceRule ## Properties diff --git a/rust/docs/HistogramParameters.md b/rust/docs/HistogramParameters.md index e090a2ac..b10d8c8b 100644 --- a/rust/docs/HistogramParameters.md +++ b/rust/docs/HistogramParameters.md @@ -4,9 +4,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**attribute_name** | **String** | Name of the (numeric) vector attribute or raster band to compute the histogram on. | -**bounds** | [**models::HistogramBounds**](HistogramBounds.md) | If `data`, it computes the bounds of the underlying data. If `values`, one can specify custom bounds. | +**bounds** | [**models::HistogramBounds**](HistogramBounds.md) | If `data`, it computes the bounds of the underlying data. If `{ \"min\": ..., \"max\": ... }`, one can specify custom bounds. | **buckets** | [**models::HistogramBuckets**](HistogramBuckets.md) | The number of buckets. The value can be specified or calculated. | +**column_name** | **String** | Name of the (numeric) vector attribute or raster band to compute the histogram on. | **interactive** | Option<**bool**> | Flag, if the histogram should have user interactions for a range selection. It is `false` by default. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/rust/docs/NoGeometry1.md b/rust/docs/NoGeometry1.md deleted file mode 100644 index caa14a27..00000000 --- a/rust/docs/NoGeometry1.md +++ /dev/null @@ -1,11 +0,0 @@ -# NoGeometry1 - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | Option<**serde_json::Value**> | | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/rust/docs/Number.md b/rust/docs/Number.md deleted file mode 100644 index 7bf56ea9..00000000 --- a/rust/docs/Number.md +++ /dev/null @@ -1,12 +0,0 @@ -# Number - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**r#type** | **Type** | (enum: number) | -**value** | **i32** | | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/rust/docs/HistogramBoundsOneOf.md b/rust/docs/OgrSource.md similarity index 67% rename from rust/docs/HistogramBoundsOneOf.md rename to rust/docs/OgrSource.md index 53ab614d..d43fca7d 100644 --- a/rust/docs/HistogramBoundsOneOf.md +++ b/rust/docs/OgrSource.md @@ -1,10 +1,11 @@ -# HistogramBoundsOneOf +# OgrSource ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**data** | Option<**serde_json::Value**> | | +**params** | [**models::OgrSourceParameters**](OgrSourceParameters.md) | | +**r#type** | **Type** | (enum: OgrSource) | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/rust/docs/OgrSourceParameters.md b/rust/docs/OgrSourceParameters.md new file mode 100644 index 00000000..5c6366e9 --- /dev/null +++ b/rust/docs/OgrSourceParameters.md @@ -0,0 +1,12 @@ +# OgrSourceParameters + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**attribute_projection** | Option<**Vec**> | *Optional*: list of attributes to include. When `None`, all attributes are included. | [optional] +**data** | **String** | Dataset name or identifier to be loaded. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/rust/docs/DataPathOneOf.md b/rust/docs/SingleVectorOrRasterSource.md similarity index 69% rename from rust/docs/DataPathOneOf.md rename to rust/docs/SingleVectorOrRasterSource.md index 44c6c724..714e200c 100644 --- a/rust/docs/DataPathOneOf.md +++ b/rust/docs/SingleVectorOrRasterSource.md @@ -1,10 +1,10 @@ -# DataPathOneOf +# SingleVectorOrRasterSource ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**volume** | **String** | | +**vector** | [**models::SingleRasterOrVectorOperator**](SingleRasterOrVectorOperator.md) | | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/rust/docs/SquareRootChoiceRule.md b/rust/docs/SquareRootChoiceRule.md deleted file mode 100644 index dbed8f62..00000000 --- a/rust/docs/SquareRootChoiceRule.md +++ /dev/null @@ -1,12 +0,0 @@ -# SquareRootChoiceRule - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**max_number_of_buckets** | Option<**i32**> | | [optional] -**r#type** | **Type** | (enum: squareRootChoiceRule) | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/rust/docs/TimeDimensionOneOf.md b/rust/docs/TimeDimensionOneOf.md deleted file mode 100644 index 0e7a3eb1..00000000 --- a/rust/docs/TimeDimensionOneOf.md +++ /dev/null @@ -1,13 +0,0 @@ -# TimeDimensionOneOf - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**origin** | **i64** | | -**step** | [**models::TimeStep**](TimeStep.md) | | -**r#type** | **Type** | (enum: regular) | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/rust/docs/TimeDimensionOneOf1.md b/rust/docs/TimeDimensionOneOf1.md deleted file mode 100644 index 2a9a6b3f..00000000 --- a/rust/docs/TimeDimensionOneOf1.md +++ /dev/null @@ -1,11 +0,0 @@ -# TimeDimensionOneOf1 - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**r#type** | **Type** | (enum: irregular) | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/rust/docs/TypedGeometry.md b/rust/docs/TypedGeometry.md index 0d955844..53f23c05 100644 --- a/rust/docs/TypedGeometry.md +++ b/rust/docs/TypedGeometry.md @@ -4,10 +4,10 @@ | Name | Description | |---- | -----| -| MultiLineString1 | | -| MultiPoint1 | | -| MultiPolygon1 | | -| NoGeometry1 | | +| TypedGeometryMultiLineString | | +| TypedGeometryMultiPoint | | +| TypedGeometryMultiPolygon | | +| TypedGeometryNoGeometry | | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/rust/docs/MultiLineString1.md b/rust/docs/TypedGeometryMultiLineString.md similarity index 91% rename from rust/docs/MultiLineString1.md rename to rust/docs/TypedGeometryMultiLineString.md index fc9f0682..4b541f9c 100644 --- a/rust/docs/MultiLineString1.md +++ b/rust/docs/TypedGeometryMultiLineString.md @@ -1,4 +1,4 @@ -# MultiLineString1 +# TypedGeometryMultiLineString ## Properties diff --git a/rust/docs/MultiPoint1.md b/rust/docs/TypedGeometryMultiPoint.md similarity index 92% rename from rust/docs/MultiPoint1.md rename to rust/docs/TypedGeometryMultiPoint.md index 43beb974..b5d01e1c 100644 --- a/rust/docs/MultiPoint1.md +++ b/rust/docs/TypedGeometryMultiPoint.md @@ -1,4 +1,4 @@ -# MultiPoint1 +# TypedGeometryMultiPoint ## Properties diff --git a/rust/docs/MultiPolygon1.md b/rust/docs/TypedGeometryMultiPolygon.md similarity index 92% rename from rust/docs/MultiPolygon1.md rename to rust/docs/TypedGeometryMultiPolygon.md index a83fdd7f..dd97d50b 100644 --- a/rust/docs/MultiPolygon1.md +++ b/rust/docs/TypedGeometryMultiPolygon.md @@ -1,4 +1,4 @@ -# MultiPolygon1 +# TypedGeometryMultiPolygon ## Properties diff --git a/rust/docs/Data1.md b/rust/docs/TypedGeometryNoGeometry.md similarity index 92% rename from rust/docs/Data1.md rename to rust/docs/TypedGeometryNoGeometry.md index e4b913a8..72587025 100644 --- a/rust/docs/Data1.md +++ b/rust/docs/TypedGeometryNoGeometry.md @@ -1,4 +1,4 @@ -# Data1 +# TypedGeometryNoGeometry ## Properties diff --git a/rust/docs/TypedGeometryOneOf.md b/rust/docs/TypedGeometryOneOf.md deleted file mode 100644 index b9bf423a..00000000 --- a/rust/docs/TypedGeometryOneOf.md +++ /dev/null @@ -1,11 +0,0 @@ -# TypedGeometryOneOf - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | Option<**serde_json::Value**> | | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/rust/docs/TypedGeometryOneOf1.md b/rust/docs/TypedGeometryOneOf1.md deleted file mode 100644 index 9db9a364..00000000 --- a/rust/docs/TypedGeometryOneOf1.md +++ /dev/null @@ -1,11 +0,0 @@ -# TypedGeometryOneOf1 - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**multi_point** | [**models::MultiPoint**](MultiPoint.md) | | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/rust/docs/TypedGeometryOneOf2.md b/rust/docs/TypedGeometryOneOf2.md deleted file mode 100644 index f5d7e42b..00000000 --- a/rust/docs/TypedGeometryOneOf2.md +++ /dev/null @@ -1,11 +0,0 @@ -# TypedGeometryOneOf2 - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**multi_line_string** | [**models::MultiLineString**](MultiLineString.md) | | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/rust/docs/TypedGeometryOneOf3.md b/rust/docs/TypedGeometryOneOf3.md deleted file mode 100644 index e11ced93..00000000 --- a/rust/docs/TypedGeometryOneOf3.md +++ /dev/null @@ -1,11 +0,0 @@ -# TypedGeometryOneOf3 - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**multi_polygon** | [**models::MultiPolygon**](MultiPolygon.md) | | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/rust/docs/TypedOperatorOneOf.md b/rust/docs/TypedOperatorOneOf.md deleted file mode 100644 index 54e0f070..00000000 --- a/rust/docs/TypedOperatorOneOf.md +++ /dev/null @@ -1,12 +0,0 @@ -# TypedOperatorOneOf - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**operator** | [**models::RasterOperator**](RasterOperator.md) | | -**r#type** | **Type** | (enum: Raster) | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/rust/docs/TypedOperatorOneOf1.md b/rust/docs/TypedOperatorOneOf1.md deleted file mode 100644 index 1afcba7f..00000000 --- a/rust/docs/TypedOperatorOneOf1.md +++ /dev/null @@ -1,12 +0,0 @@ -# TypedOperatorOneOf1 - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**operator** | [**models::PlotOperator**](PlotOperator.md) | | -**r#type** | **Type** | (enum: Plot) | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/rust/docs/TypedOperatorOneOf2.md b/rust/docs/TypedOperatorOneOf2.md deleted file mode 100644 index f67dcd5a..00000000 --- a/rust/docs/TypedOperatorOneOf2.md +++ /dev/null @@ -1,12 +0,0 @@ -# TypedOperatorOneOf2 - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**operator** | [**models::PlotOperator**](PlotOperator.md) | | -**r#type** | **Type** | (enum: Plot) | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/rust/docs/Values.md b/rust/docs/Values.md deleted file mode 100644 index 73cc77ee..00000000 --- a/rust/docs/Values.md +++ /dev/null @@ -1,11 +0,0 @@ -# Values - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**values** | [**models::ValuesValues**](ValuesValues.md) | | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/rust/src/models/time_dimension_one_of_1.rs b/rust/src/models/data.rs similarity index 51% rename from rust/src/models/time_dimension_one_of_1.rs rename to rust/src/models/data.rs index 130b3368..eaf69fa2 100644 --- a/rust/src/models/time_dimension_one_of_1.rs +++ b/rust/src/models/data.rs @@ -11,29 +11,25 @@ use crate::models; use serde::{Deserialize, Serialize}; -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct TimeDimensionOneOf1 { - #[serde(rename = "type")] - pub r#type: Type, +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum Data { + #[serde(rename = "data")] + Data, + } -impl TimeDimensionOneOf1 { - pub fn new(r#type: Type) -> TimeDimensionOneOf1 { - TimeDimensionOneOf1 { - r#type, +impl std::fmt::Display for Data { + fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { + match self { + Self::Data => write!(f, "data"), } } } -/// -#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] -pub enum Type { - #[serde(rename = "irregular")] - Irregular, -} -impl Default for Type { - fn default() -> Type { - Self::Irregular +impl Default for Data { + fn default() -> Data { + Self::Data } } diff --git a/rust/src/models/data_1.rs b/rust/src/models/data_1.rs deleted file mode 100644 index 928696d2..00000000 --- a/rust/src/models/data_1.rs +++ /dev/null @@ -1,27 +0,0 @@ -/* - * Geo Engine API - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.9.0 - * Contact: dev@geoengine.de - * Generated by: https://openapi-generator.tech - */ - -use crate::models; -use serde::{Deserialize, Serialize}; - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct Data1 { - #[serde(rename = "data", deserialize_with = "Option::deserialize")] - pub data: Option, -} - -impl Data1 { - pub fn new(data: Option) -> Data1 { - Data1 { - data, - } - } -} - diff --git a/rust/src/models/data_path.rs b/rust/src/models/data_path.rs index 62a265ec..4294aa0f 100644 --- a/rust/src/models/data_path.rs +++ b/rust/src/models/data_path.rs @@ -14,13 +14,13 @@ use serde::{Deserialize, Serialize}; #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] #[serde(untagged)] pub enum DataPath { - Volume1(Box), - Upload(Box), + DataPathVolume(Box), + DataPathUpload(Box), } impl Default for DataPath { fn default() -> Self { - Self::Volume1(Default::default()) + Self::DataPathVolume(Default::default()) } } diff --git a/rust/src/models/data_path_one_of.rs b/rust/src/models/data_path_one_of.rs deleted file mode 100644 index dec8f706..00000000 --- a/rust/src/models/data_path_one_of.rs +++ /dev/null @@ -1,27 +0,0 @@ -/* - * Geo Engine API - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.9.0 - * Contact: dev@geoengine.de - * Generated by: https://openapi-generator.tech - */ - -use crate::models; -use serde::{Deserialize, Serialize}; - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct DataPathOneOf { - #[serde(rename = "volume")] - pub volume: String, -} - -impl DataPathOneOf { - pub fn new(volume: String) -> DataPathOneOf { - DataPathOneOf { - volume, - } - } -} - diff --git a/rust/src/models/data_path_one_of_1.rs b/rust/src/models/data_path_upload.rs similarity index 79% rename from rust/src/models/data_path_one_of_1.rs rename to rust/src/models/data_path_upload.rs index 18f6491e..72cb1095 100644 --- a/rust/src/models/data_path_one_of_1.rs +++ b/rust/src/models/data_path_upload.rs @@ -12,14 +12,14 @@ use crate::models; use serde::{Deserialize, Serialize}; #[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct DataPathOneOf1 { +pub struct DataPathUpload { #[serde(rename = "upload")] pub upload: uuid::Uuid, } -impl DataPathOneOf1 { - pub fn new(upload: uuid::Uuid) -> DataPathOneOf1 { - DataPathOneOf1 { +impl DataPathUpload { + pub fn new(upload: uuid::Uuid) -> DataPathUpload { + DataPathUpload { upload, } } diff --git a/rust/src/models/volume_1.rs b/rust/src/models/data_path_volume.rs similarity index 79% rename from rust/src/models/volume_1.rs rename to rust/src/models/data_path_volume.rs index 9277c42e..761c3fb5 100644 --- a/rust/src/models/volume_1.rs +++ b/rust/src/models/data_path_volume.rs @@ -12,14 +12,14 @@ use crate::models; use serde::{Deserialize, Serialize}; #[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct Volume1 { +pub struct DataPathVolume { #[serde(rename = "volume")] pub volume: String, } -impl Volume1 { - pub fn new(volume: String) -> Volume1 { - Volume1 { +impl DataPathVolume { + pub fn new(volume: String) -> DataPathVolume { + DataPathVolume { volume, } } diff --git a/rust/src/models/histogram.rs b/rust/src/models/histogram.rs index c9c2635d..c515551c 100644 --- a/rust/src/models/histogram.rs +++ b/rust/src/models/histogram.rs @@ -17,14 +17,14 @@ pub struct Histogram { #[serde(rename = "params")] pub params: Box, #[serde(rename = "sources")] - pub sources: Box, + pub sources: Box, #[serde(rename = "type")] pub r#type: Type, } impl Histogram { /// The `Histogram` is a _plot operator_ that computes a histogram plot either over attributes of a vector dataset or values of a raster source. The output is a plot in [Vega-Lite](https://vega.github.io/vega-lite/) specification. For instance, you want to plot the data distribution of numeric attributes of a feature collection. Then you can use a histogram with a suitable number of buckets to visualize and assess this. ## Errors The operator returns an error if the selected column (`columnName`) does not exist or is not numeric. ## Notes If `bounds` or `buckets` are not defined, the operator will determine these values by itself which requires processing the data twice. If the `buckets` parameter is set to `squareRootChoiceRule`, the operator estimates it using the square root of the number of elements in the data. - pub fn new(params: models::HistogramParameters, sources: models::SingleRasterOrVectorSource, r#type: Type) -> Histogram { + pub fn new(params: models::HistogramParameters, sources: models::SingleVectorOrRasterSource, r#type: Type) -> Histogram { Histogram { params: Box::new(params), sources: Box::new(sources), diff --git a/rust/src/models/histogram_bounds.rs b/rust/src/models/histogram_bounds.rs index 9e75d527..8f56ea96 100644 --- a/rust/src/models/histogram_bounds.rs +++ b/rust/src/models/histogram_bounds.rs @@ -14,13 +14,13 @@ use serde::{Deserialize, Serialize}; #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] #[serde(untagged)] pub enum HistogramBounds { - Data1(Box), - Values(Box), + Data(models::Data), + HistogramBoundsValues(Box), } impl Default for HistogramBounds { fn default() -> Self { - Self::Data1(Default::default()) + Self::Data(Default::default()) } } diff --git a/rust/src/models/histogram_bounds_one_of.rs b/rust/src/models/histogram_bounds_one_of.rs deleted file mode 100644 index 16f51107..00000000 --- a/rust/src/models/histogram_bounds_one_of.rs +++ /dev/null @@ -1,27 +0,0 @@ -/* - * Geo Engine API - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.9.0 - * Contact: dev@geoengine.de - * Generated by: https://openapi-generator.tech - */ - -use crate::models; -use serde::{Deserialize, Serialize}; - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct HistogramBoundsOneOf { - #[serde(rename = "data", deserialize_with = "Option::deserialize")] - pub data: Option, -} - -impl HistogramBoundsOneOf { - pub fn new(data: Option) -> HistogramBoundsOneOf { - HistogramBoundsOneOf { - data, - } - } -} - diff --git a/rust/src/models/histogram_bounds_one_of_1.rs b/rust/src/models/histogram_bounds_one_of_1.rs deleted file mode 100644 index 1b5c824c..00000000 --- a/rust/src/models/histogram_bounds_one_of_1.rs +++ /dev/null @@ -1,27 +0,0 @@ -/* - * Geo Engine API - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.9.0 - * Contact: dev@geoengine.de - * Generated by: https://openapi-generator.tech - */ - -use crate::models; -use serde::{Deserialize, Serialize}; - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct HistogramBoundsOneOf1 { - #[serde(rename = "values")] - pub values: Box, -} - -impl HistogramBoundsOneOf1 { - pub fn new(values: models::HistogramBoundsOneOf1Values) -> HistogramBoundsOneOf1 { - HistogramBoundsOneOf1 { - values: Box::new(values), - } - } -} - diff --git a/rust/src/models/histogram_bounds_one_of_1_values.rs b/rust/src/models/histogram_bounds_one_of_1_values.rs deleted file mode 100644 index 84fd92f3..00000000 --- a/rust/src/models/histogram_bounds_one_of_1_values.rs +++ /dev/null @@ -1,30 +0,0 @@ -/* - * Geo Engine API - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.9.0 - * Contact: dev@geoengine.de - * Generated by: https://openapi-generator.tech - */ - -use crate::models; -use serde::{Deserialize, Serialize}; - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct HistogramBoundsOneOf1Values { - #[serde(rename = "max")] - pub max: f64, - #[serde(rename = "min")] - pub min: f64, -} - -impl HistogramBoundsOneOf1Values { - pub fn new(max: f64, min: f64) -> HistogramBoundsOneOf1Values { - HistogramBoundsOneOf1Values { - max, - min, - } - } -} - diff --git a/rust/src/models/values_values.rs b/rust/src/models/histogram_bounds_values.rs similarity index 77% rename from rust/src/models/values_values.rs rename to rust/src/models/histogram_bounds_values.rs index 32333282..bf37a056 100644 --- a/rust/src/models/values_values.rs +++ b/rust/src/models/histogram_bounds_values.rs @@ -12,16 +12,16 @@ use crate::models; use serde::{Deserialize, Serialize}; #[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct ValuesValues { +pub struct HistogramBoundsValues { #[serde(rename = "max")] pub max: f64, #[serde(rename = "min")] pub min: f64, } -impl ValuesValues { - pub fn new(max: f64, min: f64) -> ValuesValues { - ValuesValues { +impl HistogramBoundsValues { + pub fn new(max: f64, min: f64) -> HistogramBoundsValues { + HistogramBoundsValues { max, min, } diff --git a/rust/src/models/histogram_buckets.rs b/rust/src/models/histogram_buckets.rs index 3c446a85..ce0127c0 100644 --- a/rust/src/models/histogram_buckets.rs +++ b/rust/src/models/histogram_buckets.rs @@ -12,10 +12,12 @@ use crate::models; use serde::{Deserialize, Serialize}; #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -#[serde(untagged)] +#[serde(tag = "type")] pub enum HistogramBuckets { - Number(Box), - SquareRootChoiceRule(Box), + #[serde(rename="number")] + Number(Box), + #[serde(rename="squareRootChoiceRule")] + SquareRootChoiceRule(Box), } impl Default for HistogramBuckets { @@ -23,18 +25,5 @@ impl Default for HistogramBuckets { Self::Number(Default::default()) } } -/// -#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] -pub enum Type { - #[serde(rename = "number")] - Number, - #[serde(rename = "squareRootChoiceRule")] - SquareRootChoiceRule, -} -impl Default for Type { - fn default() -> Type { - Self::Number - } -} diff --git a/rust/src/models/histogram_buckets_one_of.rs b/rust/src/models/histogram_buckets_number.rs similarity index 82% rename from rust/src/models/histogram_buckets_one_of.rs rename to rust/src/models/histogram_buckets_number.rs index b8d9f6d8..dd282e3a 100644 --- a/rust/src/models/histogram_buckets_one_of.rs +++ b/rust/src/models/histogram_buckets_number.rs @@ -12,16 +12,16 @@ use crate::models; use serde::{Deserialize, Serialize}; #[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct HistogramBucketsOneOf { +pub struct HistogramBucketsNumber { #[serde(rename = "type")] pub r#type: Type, #[serde(rename = "value")] pub value: i32, } -impl HistogramBucketsOneOf { - pub fn new(r#type: Type, value: i32) -> HistogramBucketsOneOf { - HistogramBucketsOneOf { +impl HistogramBucketsNumber { + pub fn new(r#type: Type, value: i32) -> HistogramBucketsNumber { + HistogramBucketsNumber { r#type, value, } diff --git a/rust/src/models/histogram_buckets_one_of_1.rs b/rust/src/models/histogram_buckets_square_root_choice_rule.rs similarity index 81% rename from rust/src/models/histogram_buckets_one_of_1.rs rename to rust/src/models/histogram_buckets_square_root_choice_rule.rs index 74c5d062..12565fc5 100644 --- a/rust/src/models/histogram_buckets_one_of_1.rs +++ b/rust/src/models/histogram_buckets_square_root_choice_rule.rs @@ -12,16 +12,16 @@ use crate::models; use serde::{Deserialize, Serialize}; #[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct HistogramBucketsOneOf1 { +pub struct HistogramBucketsSquareRootChoiceRule { #[serde(rename = "maxNumberOfBuckets", skip_serializing_if = "Option::is_none")] pub max_number_of_buckets: Option, #[serde(rename = "type")] pub r#type: Type, } -impl HistogramBucketsOneOf1 { - pub fn new(r#type: Type) -> HistogramBucketsOneOf1 { - HistogramBucketsOneOf1 { +impl HistogramBucketsSquareRootChoiceRule { + pub fn new(r#type: Type) -> HistogramBucketsSquareRootChoiceRule { + HistogramBucketsSquareRootChoiceRule { max_number_of_buckets: None, r#type, } diff --git a/rust/src/models/histogram_parameters.rs b/rust/src/models/histogram_parameters.rs index a29038dd..c5bd22ab 100644 --- a/rust/src/models/histogram_parameters.rs +++ b/rust/src/models/histogram_parameters.rs @@ -14,15 +14,15 @@ use serde::{Deserialize, Serialize}; /// HistogramParameters : The parameter spec for `Histogram` #[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] pub struct HistogramParameters { - /// Name of the (numeric) vector attribute or raster band to compute the histogram on. - #[serde(rename = "attributeName")] - pub attribute_name: String, - /// If `data`, it computes the bounds of the underlying data. If `values`, one can specify custom bounds. + /// If `data`, it computes the bounds of the underlying data. If `{ \"min\": ..., \"max\": ... }`, one can specify custom bounds. #[serde(rename = "bounds")] pub bounds: Box, /// The number of buckets. The value can be specified or calculated. #[serde(rename = "buckets")] pub buckets: Box, + /// Name of the (numeric) vector attribute or raster band to compute the histogram on. + #[serde(rename = "columnName")] + pub column_name: String, /// Flag, if the histogram should have user interactions for a range selection. It is `false` by default. #[serde(rename = "interactive", skip_serializing_if = "Option::is_none")] pub interactive: Option, @@ -30,11 +30,11 @@ pub struct HistogramParameters { impl HistogramParameters { /// The parameter spec for `Histogram` - pub fn new(attribute_name: String, bounds: models::HistogramBounds, buckets: models::HistogramBuckets) -> HistogramParameters { + pub fn new(bounds: models::HistogramBounds, buckets: models::HistogramBuckets, column_name: String) -> HistogramParameters { HistogramParameters { - attribute_name, bounds: Box::new(bounds), buckets: Box::new(buckets), + column_name, interactive: None, } } diff --git a/rust/src/models/mod.rs b/rust/src/models/mod.rs index 2c271943..cf8635ef 100644 --- a/rust/src/models/mod.rs +++ b/rust/src/models/mod.rs @@ -56,12 +56,16 @@ pub mod create_project; pub use self::create_project::CreateProject; pub mod csv_header; pub use self::csv_header::CsvHeader; -pub mod data_1; -pub use self::data_1::Data1; +pub mod data; +pub use self::data::Data; pub mod data_id; pub use self::data_id::DataId; pub mod data_path; pub use self::data_path::DataPath; +pub mod data_path_upload; +pub use self::data_path_upload::DataPathUpload; +pub mod data_path_volume; +pub use self::data_path_volume::DataPathVolume; pub mod data_provider_resource; pub use self::data_provider_resource::DataProviderResource; pub mod data_usage; @@ -164,8 +168,14 @@ pub mod histogram; pub use self::histogram::Histogram; pub mod histogram_bounds; pub use self::histogram_bounds::HistogramBounds; +pub mod histogram_bounds_values; +pub use self::histogram_bounds_values::HistogramBoundsValues; pub mod histogram_buckets; pub use self::histogram_buckets::HistogramBuckets; +pub mod histogram_buckets_number; +pub use self::histogram_buckets_number::HistogramBucketsNumber; +pub mod histogram_buckets_square_root_choice_rule; +pub use self::histogram_buckets_square_root_choice_rule::HistogramBucketsSquareRootChoiceRule; pub mod histogram_parameters; pub use self::histogram_parameters::HistogramParameters; pub mod id_response; @@ -254,16 +264,10 @@ pub mod multi_band_raster_colorizer; pub use self::multi_band_raster_colorizer::MultiBandRasterColorizer; pub mod multi_line_string; pub use self::multi_line_string::MultiLineString; -pub mod multi_line_string_1; -pub use self::multi_line_string_1::MultiLineString1; pub mod multi_point; pub use self::multi_point::MultiPoint; -pub mod multi_point_1; -pub use self::multi_point_1::MultiPoint1; pub mod multi_polygon; pub use self::multi_polygon::MultiPolygon; -pub mod multi_polygon_1; -pub use self::multi_polygon_1::MultiPolygon1; pub mod multiple_raster_or_single_vector_operator; pub use self::multiple_raster_or_single_vector_operator::MultipleRasterOrSingleVectorOperator; pub mod multiple_raster_or_single_vector_source; @@ -274,14 +278,12 @@ pub mod names; pub use self::names::Names; pub mod net_cdf_cf_data_provider_definition; pub use self::net_cdf_cf_data_provider_definition::NetCdfCfDataProviderDefinition; -pub mod no_geometry_1; -pub use self::no_geometry_1::NoGeometry1; -pub mod number; -pub use self::number::Number; pub mod number_param; pub use self::number_param::NumberParam; pub mod ogr_meta_data; pub use self::ogr_meta_data::OgrMetaData; +pub mod ogr_source; +pub use self::ogr_source::OgrSource; pub mod ogr_source_column_spec; pub use self::ogr_source_column_spec::OgrSourceColumnSpec; pub mod ogr_source_dataset; @@ -306,6 +308,8 @@ pub mod ogr_source_duration_spec_zero; pub use self::ogr_source_duration_spec_zero::OgrSourceDurationSpecZero; pub mod ogr_source_error_spec; pub use self::ogr_source_error_spec::OgrSourceErrorSpec; +pub mod ogr_source_parameters; +pub use self::ogr_source_parameters::OgrSourceParameters; pub mod ogr_source_time_format; pub use self::ogr_source_time_format::OgrSourceTimeFormat; pub mod ogr_source_time_format_auto; @@ -442,6 +446,8 @@ pub mod single_raster_source; pub use self::single_raster_source::SingleRasterSource; pub mod single_vector_multiple_raster_sources; pub use self::single_vector_multiple_raster_sources::SingleVectorMultipleRasterSources; +pub mod single_vector_or_raster_source; +pub use self::single_vector_or_raster_source::SingleVectorOrRasterSource; pub mod spatial_bounds_derive; pub use self::spatial_bounds_derive::SpatialBoundsDerive; pub mod spatial_bounds_derive_bounds; @@ -460,8 +466,6 @@ pub mod spatial_partition2_d; pub use self::spatial_partition2_d::SpatialPartition2D; pub mod spatial_reference_specification; pub use self::spatial_reference_specification::SpatialReferenceSpecification; -pub mod square_root_choice_rule; -pub use self::square_root_choice_rule::SquareRootChoiceRule; pub mod st_rectangle; pub use self::st_rectangle::StRectangle; pub mod stac_api_retries; @@ -526,6 +530,14 @@ pub mod typed_data_provider_definition; pub use self::typed_data_provider_definition::TypedDataProviderDefinition; pub mod typed_geometry; pub use self::typed_geometry::TypedGeometry; +pub mod typed_geometry_multi_line_string; +pub use self::typed_geometry_multi_line_string::TypedGeometryMultiLineString; +pub mod typed_geometry_multi_point; +pub use self::typed_geometry_multi_point::TypedGeometryMultiPoint; +pub mod typed_geometry_multi_polygon; +pub use self::typed_geometry_multi_polygon::TypedGeometryMultiPolygon; +pub mod typed_geometry_no_geometry; +pub use self::typed_geometry_no_geometry::TypedGeometryNoGeometry; pub mod typed_operator; pub use self::typed_operator::TypedOperator; pub mod typed_plot_operator; @@ -556,8 +568,6 @@ pub mod update_project; pub use self::update_project::UpdateProject; pub mod update_quota; pub use self::update_quota::UpdateQuota; -pub mod upload; -pub use self::upload::Upload; pub mod upload_file_layers_response; pub use self::upload_file_layers_response::UploadFileLayersResponse; pub mod upload_files_response; @@ -572,10 +582,6 @@ pub mod user_registration; pub use self::user_registration::UserRegistration; pub mod user_session; pub use self::user_session::UserSession; -pub mod values; -pub use self::values::Values; -pub mod values_values; -pub use self::values_values::ValuesValues; pub mod vec_update; pub use self::vec_update::VecUpdate; pub mod vector_column_info; @@ -588,8 +594,6 @@ pub mod vector_result_descriptor; pub use self::vector_result_descriptor::VectorResultDescriptor; pub mod volume; pub use self::volume::Volume; -pub mod volume_1; -pub use self::volume_1::Volume1; pub mod volume_file_layers_response; pub use self::volume_file_layers_response::VolumeFileLayersResponse; pub mod wcs_request; diff --git a/rust/src/models/multi_line_string_1.rs b/rust/src/models/multi_line_string_1.rs deleted file mode 100644 index 18441870..00000000 --- a/rust/src/models/multi_line_string_1.rs +++ /dev/null @@ -1,27 +0,0 @@ -/* - * Geo Engine API - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.9.0 - * Contact: dev@geoengine.de - * Generated by: https://openapi-generator.tech - */ - -use crate::models; -use serde::{Deserialize, Serialize}; - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct MultiLineString1 { - #[serde(rename = "MultiLineString")] - pub multi_line_string: Box, -} - -impl MultiLineString1 { - pub fn new(multi_line_string: models::MultiLineString) -> MultiLineString1 { - MultiLineString1 { - multi_line_string: Box::new(multi_line_string), - } - } -} - diff --git a/rust/src/models/multi_point_1.rs b/rust/src/models/multi_point_1.rs deleted file mode 100644 index 79cda275..00000000 --- a/rust/src/models/multi_point_1.rs +++ /dev/null @@ -1,27 +0,0 @@ -/* - * Geo Engine API - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.9.0 - * Contact: dev@geoengine.de - * Generated by: https://openapi-generator.tech - */ - -use crate::models; -use serde::{Deserialize, Serialize}; - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct MultiPoint1 { - #[serde(rename = "MultiPoint")] - pub multi_point: Box, -} - -impl MultiPoint1 { - pub fn new(multi_point: models::MultiPoint) -> MultiPoint1 { - MultiPoint1 { - multi_point: Box::new(multi_point), - } - } -} - diff --git a/rust/src/models/multi_polygon_1.rs b/rust/src/models/multi_polygon_1.rs deleted file mode 100644 index 6beb9283..00000000 --- a/rust/src/models/multi_polygon_1.rs +++ /dev/null @@ -1,27 +0,0 @@ -/* - * Geo Engine API - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.9.0 - * Contact: dev@geoengine.de - * Generated by: https://openapi-generator.tech - */ - -use crate::models; -use serde::{Deserialize, Serialize}; - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct MultiPolygon1 { - #[serde(rename = "MultiPolygon")] - pub multi_polygon: Box, -} - -impl MultiPolygon1 { - pub fn new(multi_polygon: models::MultiPolygon) -> MultiPolygon1 { - MultiPolygon1 { - multi_polygon: Box::new(multi_polygon), - } - } -} - diff --git a/rust/src/models/no_geometry_1.rs b/rust/src/models/no_geometry_1.rs deleted file mode 100644 index af3f4e61..00000000 --- a/rust/src/models/no_geometry_1.rs +++ /dev/null @@ -1,27 +0,0 @@ -/* - * Geo Engine API - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.9.0 - * Contact: dev@geoengine.de - * Generated by: https://openapi-generator.tech - */ - -use crate::models; -use serde::{Deserialize, Serialize}; - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct NoGeometry1 { - #[serde(rename = "Data", deserialize_with = "Option::deserialize")] - pub data: Option, -} - -impl NoGeometry1 { - pub fn new(data: Option) -> NoGeometry1 { - NoGeometry1 { - data, - } - } -} - diff --git a/rust/src/models/number.rs b/rust/src/models/number.rs deleted file mode 100644 index 6b61e7bd..00000000 --- a/rust/src/models/number.rs +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Geo Engine API - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.9.0 - * Contact: dev@geoengine.de - * Generated by: https://openapi-generator.tech - */ - -use crate::models; -use serde::{Deserialize, Serialize}; - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct Number { - #[serde(rename = "type")] - pub r#type: Type, - #[serde(rename = "value")] - pub value: i32, -} - -impl Number { - pub fn new(r#type: Type, value: i32) -> Number { - Number { - r#type, - value, - } - } -} -/// -#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] -pub enum Type { - #[serde(rename = "number")] - Number, -} - -impl Default for Type { - fn default() -> Type { - Self::Number - } -} - diff --git a/rust/src/models/ogr_source.rs b/rust/src/models/ogr_source.rs new file mode 100644 index 00000000..2b5dc954 --- /dev/null +++ b/rust/src/models/ogr_source.rs @@ -0,0 +1,44 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +/// OgrSource : The [`OgrSource`] is a source operator that reads vector data using OGR (part of GDAL). The counterpart for raster data is the [`GdalSource`]. ## Errors If the given dataset does not exist or is not readable, an error is thrown. +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct OgrSource { + #[serde(rename = "params")] + pub params: Box, + #[serde(rename = "type")] + pub r#type: Type, +} + +impl OgrSource { + /// The [`OgrSource`] is a source operator that reads vector data using OGR (part of GDAL). The counterpart for raster data is the [`GdalSource`]. ## Errors If the given dataset does not exist or is not readable, an error is thrown. + pub fn new(params: models::OgrSourceParameters, r#type: Type) -> OgrSource { + OgrSource { + params: Box::new(params), + r#type, + } + } +} +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum Type { + #[serde(rename = "OgrSource")] + OgrSource, +} + +impl Default for Type { + fn default() -> Type { + Self::OgrSource + } +} + diff --git a/rust/src/models/ogr_source_parameters.rs b/rust/src/models/ogr_source_parameters.rs new file mode 100644 index 00000000..3f881f79 --- /dev/null +++ b/rust/src/models/ogr_source_parameters.rs @@ -0,0 +1,34 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +/// OgrSourceParameters : Parameters for the [`OgrSource`] operator. +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct OgrSourceParameters { + /// *Optional*: list of attributes to include. When `None`, all attributes are included. + #[serde(rename = "attributeProjection", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub attribute_projection: Option>>, + /// Dataset name or identifier to be loaded. + #[serde(rename = "data")] + pub data: String, +} + +impl OgrSourceParameters { + /// Parameters for the [`OgrSource`] operator. + pub fn new(data: String) -> OgrSourceParameters { + OgrSourceParameters { + attribute_projection: None, + data, + } + } +} + diff --git a/rust/src/models/single_vector_or_raster_source.rs b/rust/src/models/single_vector_or_raster_source.rs new file mode 100644 index 00000000..3c242180 --- /dev/null +++ b/rust/src/models/single_vector_or_raster_source.rs @@ -0,0 +1,29 @@ +/* + * Geo Engine API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +/// SingleVectorOrRasterSource : A single vector or raster operator as source for this operator, keyed as \"vector\" in JSON. +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct SingleVectorOrRasterSource { + #[serde(rename = "vector")] + pub vector: Box, +} + +impl SingleVectorOrRasterSource { + /// A single vector or raster operator as source for this operator, keyed as \"vector\" in JSON. + pub fn new(vector: models::SingleRasterOrVectorOperator) -> SingleVectorOrRasterSource { + SingleVectorOrRasterSource { + vector: Box::new(vector), + } + } +} + diff --git a/rust/src/models/square_root_choice_rule.rs b/rust/src/models/square_root_choice_rule.rs deleted file mode 100644 index 23715753..00000000 --- a/rust/src/models/square_root_choice_rule.rs +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Geo Engine API - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.9.0 - * Contact: dev@geoengine.de - * Generated by: https://openapi-generator.tech - */ - -use crate::models; -use serde::{Deserialize, Serialize}; - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct SquareRootChoiceRule { - #[serde(rename = "maxNumberOfBuckets", skip_serializing_if = "Option::is_none")] - pub max_number_of_buckets: Option, - #[serde(rename = "type")] - pub r#type: Type, -} - -impl SquareRootChoiceRule { - pub fn new(r#type: Type) -> SquareRootChoiceRule { - SquareRootChoiceRule { - max_number_of_buckets: None, - r#type, - } - } -} -/// -#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] -pub enum Type { - #[serde(rename = "squareRootChoiceRule")] - SquareRootChoiceRule, -} - -impl Default for Type { - fn default() -> Type { - Self::SquareRootChoiceRule - } -} - diff --git a/rust/src/models/time_dimension_one_of.rs b/rust/src/models/time_dimension_one_of.rs deleted file mode 100644 index a94131b2..00000000 --- a/rust/src/models/time_dimension_one_of.rs +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Geo Engine API - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.9.0 - * Contact: dev@geoengine.de - * Generated by: https://openapi-generator.tech - */ - -use crate::models; -use serde::{Deserialize, Serialize}; - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct TimeDimensionOneOf { - #[serde(rename = "origin")] - pub origin: i64, - #[serde(rename = "step")] - pub step: Box, - #[serde(rename = "type")] - pub r#type: Type, -} - -impl TimeDimensionOneOf { - pub fn new(origin: i64, step: models::TimeStep, r#type: Type) -> TimeDimensionOneOf { - TimeDimensionOneOf { - origin, - step: Box::new(step), - r#type, - } - } -} -/// -#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] -pub enum Type { - #[serde(rename = "regular")] - Regular, -} - -impl Default for Type { - fn default() -> Type { - Self::Regular - } -} - diff --git a/rust/src/models/typed_geometry.rs b/rust/src/models/typed_geometry.rs index 2806b175..f44af4b6 100644 --- a/rust/src/models/typed_geometry.rs +++ b/rust/src/models/typed_geometry.rs @@ -14,15 +14,15 @@ use serde::{Deserialize, Serialize}; #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] #[serde(untagged)] pub enum TypedGeometry { - NoGeometry1(Box), - MultiPoint1(Box), - MultiLineString1(Box), - MultiPolygon1(Box), + TypedGeometryNoGeometry(Box), + TypedGeometryMultiPoint(Box), + TypedGeometryMultiLineString(Box), + TypedGeometryMultiPolygon(Box), } impl Default for TypedGeometry { fn default() -> Self { - Self::NoGeometry1(Default::default()) + Self::TypedGeometryNoGeometry(Default::default()) } } diff --git a/rust/src/models/typed_geometry_one_of_2.rs b/rust/src/models/typed_geometry_multi_line_string.rs similarity index 81% rename from rust/src/models/typed_geometry_one_of_2.rs rename to rust/src/models/typed_geometry_multi_line_string.rs index 5442dbde..9fdfc0db 100644 --- a/rust/src/models/typed_geometry_one_of_2.rs +++ b/rust/src/models/typed_geometry_multi_line_string.rs @@ -12,14 +12,14 @@ use crate::models; use serde::{Deserialize, Serialize}; #[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct TypedGeometryOneOf2 { +pub struct TypedGeometryMultiLineString { #[serde(rename = "MultiLineString")] pub multi_line_string: Box, } -impl TypedGeometryOneOf2 { - pub fn new(multi_line_string: models::MultiLineString) -> TypedGeometryOneOf2 { - TypedGeometryOneOf2 { +impl TypedGeometryMultiLineString { + pub fn new(multi_line_string: models::MultiLineString) -> TypedGeometryMultiLineString { + TypedGeometryMultiLineString { multi_line_string: Box::new(multi_line_string), } } diff --git a/rust/src/models/typed_geometry_one_of_1.rs b/rust/src/models/typed_geometry_multi_point.rs similarity index 84% rename from rust/src/models/typed_geometry_one_of_1.rs rename to rust/src/models/typed_geometry_multi_point.rs index 2a4b9ab0..cfe44d23 100644 --- a/rust/src/models/typed_geometry_one_of_1.rs +++ b/rust/src/models/typed_geometry_multi_point.rs @@ -12,14 +12,14 @@ use crate::models; use serde::{Deserialize, Serialize}; #[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct TypedGeometryOneOf1 { +pub struct TypedGeometryMultiPoint { #[serde(rename = "MultiPoint")] pub multi_point: Box, } -impl TypedGeometryOneOf1 { - pub fn new(multi_point: models::MultiPoint) -> TypedGeometryOneOf1 { - TypedGeometryOneOf1 { +impl TypedGeometryMultiPoint { + pub fn new(multi_point: models::MultiPoint) -> TypedGeometryMultiPoint { + TypedGeometryMultiPoint { multi_point: Box::new(multi_point), } } diff --git a/rust/src/models/typed_geometry_one_of_3.rs b/rust/src/models/typed_geometry_multi_polygon.rs similarity index 82% rename from rust/src/models/typed_geometry_one_of_3.rs rename to rust/src/models/typed_geometry_multi_polygon.rs index 2c75585c..3155af7c 100644 --- a/rust/src/models/typed_geometry_one_of_3.rs +++ b/rust/src/models/typed_geometry_multi_polygon.rs @@ -12,14 +12,14 @@ use crate::models; use serde::{Deserialize, Serialize}; #[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct TypedGeometryOneOf3 { +pub struct TypedGeometryMultiPolygon { #[serde(rename = "MultiPolygon")] pub multi_polygon: Box, } -impl TypedGeometryOneOf3 { - pub fn new(multi_polygon: models::MultiPolygon) -> TypedGeometryOneOf3 { - TypedGeometryOneOf3 { +impl TypedGeometryMultiPolygon { + pub fn new(multi_polygon: models::MultiPolygon) -> TypedGeometryMultiPolygon { + TypedGeometryMultiPolygon { multi_polygon: Box::new(multi_polygon), } } diff --git a/rust/src/models/typed_geometry_one_of.rs b/rust/src/models/typed_geometry_no_geometry.rs similarity index 84% rename from rust/src/models/typed_geometry_one_of.rs rename to rust/src/models/typed_geometry_no_geometry.rs index fc06a5b9..142c2892 100644 --- a/rust/src/models/typed_geometry_one_of.rs +++ b/rust/src/models/typed_geometry_no_geometry.rs @@ -12,14 +12,14 @@ use crate::models; use serde::{Deserialize, Serialize}; #[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct TypedGeometryOneOf { +pub struct TypedGeometryNoGeometry { #[serde(rename = "Data", deserialize_with = "Option::deserialize")] pub data: Option, } -impl TypedGeometryOneOf { - pub fn new(data: Option) -> TypedGeometryOneOf { - TypedGeometryOneOf { +impl TypedGeometryNoGeometry { + pub fn new(data: Option) -> TypedGeometryNoGeometry { + TypedGeometryNoGeometry { data, } } diff --git a/rust/src/models/typed_operator_one_of.rs b/rust/src/models/typed_operator_one_of.rs deleted file mode 100644 index 12cfbd4d..00000000 --- a/rust/src/models/typed_operator_one_of.rs +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Geo Engine API - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.9.0 - * Contact: dev@geoengine.de - * Generated by: https://openapi-generator.tech - */ - -use crate::models; -use serde::{Deserialize, Serialize}; - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct TypedOperatorOneOf { - #[serde(rename = "operator")] - pub operator: models::RasterOperator, - #[serde(rename = "type")] - pub r#type: Type, -} - -impl TypedOperatorOneOf { - pub fn new(operator: models::RasterOperator, r#type: Type) -> TypedOperatorOneOf { - TypedOperatorOneOf { - operator, - r#type, - } - } -} -/// -#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] -pub enum Type { - #[serde(rename = "Raster")] - Raster, -} - -impl Default for Type { - fn default() -> Type { - Self::Raster - } -} - diff --git a/rust/src/models/typed_operator_one_of_1.rs b/rust/src/models/typed_operator_one_of_1.rs deleted file mode 100644 index 9469ca1e..00000000 --- a/rust/src/models/typed_operator_one_of_1.rs +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Geo Engine API - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.9.0 - * Contact: dev@geoengine.de - * Generated by: https://openapi-generator.tech - */ - -use crate::models; -use serde::{Deserialize, Serialize}; - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct TypedOperatorOneOf1 { - #[serde(rename = "operator")] - pub operator: models::PlotOperator, - #[serde(rename = "type")] - pub r#type: Type, -} - -impl TypedOperatorOneOf1 { - pub fn new(operator: models::PlotOperator, r#type: Type) -> TypedOperatorOneOf1 { - TypedOperatorOneOf1 { - operator, - r#type, - } - } -} -/// -#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] -pub enum Type { - #[serde(rename = "Plot")] - Plot, -} - -impl Default for Type { - fn default() -> Type { - Self::Plot - } -} - diff --git a/rust/src/models/typed_operator_one_of_2.rs b/rust/src/models/typed_operator_one_of_2.rs deleted file mode 100644 index 0d6eb4d2..00000000 --- a/rust/src/models/typed_operator_one_of_2.rs +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Geo Engine API - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.9.0 - * Contact: dev@geoengine.de - * Generated by: https://openapi-generator.tech - */ - -use crate::models; -use serde::{Deserialize, Serialize}; - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct TypedOperatorOneOf2 { - #[serde(rename = "operator")] - pub operator: models::PlotOperator, - #[serde(rename = "type")] - pub r#type: Type, -} - -impl TypedOperatorOneOf2 { - pub fn new(operator: models::PlotOperator, r#type: Type) -> TypedOperatorOneOf2 { - TypedOperatorOneOf2 { - operator, - r#type, - } - } -} -/// -#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] -pub enum Type { - #[serde(rename = "Plot")] - Plot, -} - -impl Default for Type { - fn default() -> Type { - Self::Plot - } -} - diff --git a/rust/src/models/upload.rs b/rust/src/models/upload.rs deleted file mode 100644 index 0c94ce6d..00000000 --- a/rust/src/models/upload.rs +++ /dev/null @@ -1,27 +0,0 @@ -/* - * Geo Engine API - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.9.0 - * Contact: dev@geoengine.de - * Generated by: https://openapi-generator.tech - */ - -use crate::models; -use serde::{Deserialize, Serialize}; - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct Upload { - #[serde(rename = "upload")] - pub upload: uuid::Uuid, -} - -impl Upload { - pub fn new(upload: uuid::Uuid) -> Upload { - Upload { - upload, - } - } -} - diff --git a/rust/src/models/values.rs b/rust/src/models/values.rs deleted file mode 100644 index 83889c94..00000000 --- a/rust/src/models/values.rs +++ /dev/null @@ -1,27 +0,0 @@ -/* - * Geo Engine API - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.9.0 - * Contact: dev@geoengine.de - * Generated by: https://openapi-generator.tech - */ - -use crate::models; -use serde::{Deserialize, Serialize}; - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct Values { - #[serde(rename = "values")] - pub values: Box, -} - -impl Values { - pub fn new(values: models::ValuesValues) -> Values { - Values { - values: Box::new(values), - } - } -} - diff --git a/rust/src/models/vector_operator.rs b/rust/src/models/vector_operator.rs index 736d90a5..cbecbccf 100644 --- a/rust/src/models/vector_operator.rs +++ b/rust/src/models/vector_operator.rs @@ -17,6 +17,8 @@ use serde::{Deserialize, Serialize}; pub enum VectorOperator { #[serde(rename="MockPointSource")] MockPointSource(Box), + #[serde(rename="OgrSource")] + OgrSource(Box), #[serde(rename="RasterVectorJoin")] RasterVectorJoin(Box), #[serde(rename="Reprojection")] diff --git a/typescript/README.md b/typescript/README.md index cf6cbe0a..88fc9c6a 100644 --- a/typescript/README.md +++ b/typescript/README.md @@ -181,9 +181,11 @@ All URIs are relative to *https://geoengine.io/api* - [CreateDataset](docs/CreateDataset.md) - [CreateProject](docs/CreateProject.md) - [CsvHeader](docs/CsvHeader.md) -- [Data1](docs/Data1.md) +- [Data](docs/Data.md) - [DataId](docs/DataId.md) - [DataPath](docs/DataPath.md) +- [DataPathUpload](docs/DataPathUpload.md) +- [DataPathVolume](docs/DataPathVolume.md) - [DataProviderResource](docs/DataProviderResource.md) - [DataUsage](docs/DataUsage.md) - [DataUsageSummary](docs/DataUsageSummary.md) @@ -235,7 +237,10 @@ All URIs are relative to *https://geoengine.io/api* - [GridIdx2D](docs/GridIdx2D.md) - [Histogram](docs/Histogram.md) - [HistogramBounds](docs/HistogramBounds.md) +- [HistogramBoundsValues](docs/HistogramBoundsValues.md) - [HistogramBuckets](docs/HistogramBuckets.md) +- [HistogramBucketsNumber](docs/HistogramBucketsNumber.md) +- [HistogramBucketsSquareRootChoiceRule](docs/HistogramBucketsSquareRootChoiceRule.md) - [HistogramParameters](docs/HistogramParameters.md) - [IdResponse](docs/IdResponse.md) - [InternalDataId](docs/InternalDataId.md) @@ -280,20 +285,16 @@ All URIs are relative to *https://geoengine.io/api* - [MultiBandGdalSource](docs/MultiBandGdalSource.md) - [MultiBandRasterColorizer](docs/MultiBandRasterColorizer.md) - [MultiLineString](docs/MultiLineString.md) -- [MultiLineString1](docs/MultiLineString1.md) - [MultiPoint](docs/MultiPoint.md) -- [MultiPoint1](docs/MultiPoint1.md) - [MultiPolygon](docs/MultiPolygon.md) -- [MultiPolygon1](docs/MultiPolygon1.md) - [MultipleRasterOrSingleVectorOperator](docs/MultipleRasterOrSingleVectorOperator.md) - [MultipleRasterOrSingleVectorSource](docs/MultipleRasterOrSingleVectorSource.md) - [MultipleRasterSources](docs/MultipleRasterSources.md) - [Names](docs/Names.md) - [NetCdfCfDataProviderDefinition](docs/NetCdfCfDataProviderDefinition.md) -- [NoGeometry1](docs/NoGeometry1.md) -- [Number](docs/Number.md) - [NumberParam](docs/NumberParam.md) - [OgrMetaData](docs/OgrMetaData.md) +- [OgrSource](docs/OgrSource.md) - [OgrSourceColumnSpec](docs/OgrSourceColumnSpec.md) - [OgrSourceDataset](docs/OgrSourceDataset.md) - [OgrSourceDatasetTimeType](docs/OgrSourceDatasetTimeType.md) @@ -306,6 +307,7 @@ All URIs are relative to *https://geoengine.io/api* - [OgrSourceDurationSpecValue](docs/OgrSourceDurationSpecValue.md) - [OgrSourceDurationSpecZero](docs/OgrSourceDurationSpecZero.md) - [OgrSourceErrorSpec](docs/OgrSourceErrorSpec.md) +- [OgrSourceParameters](docs/OgrSourceParameters.md) - [OgrSourceTimeFormat](docs/OgrSourceTimeFormat.md) - [OgrSourceTimeFormatAuto](docs/OgrSourceTimeFormatAuto.md) - [OgrSourceTimeFormatCustom](docs/OgrSourceTimeFormatCustom.md) @@ -375,6 +377,7 @@ All URIs are relative to *https://geoengine.io/api* - [SingleRasterOrVectorSource](docs/SingleRasterOrVectorSource.md) - [SingleRasterSource](docs/SingleRasterSource.md) - [SingleVectorMultipleRasterSources](docs/SingleVectorMultipleRasterSources.md) +- [SingleVectorOrRasterSource](docs/SingleVectorOrRasterSource.md) - [SpatialBoundsDerive](docs/SpatialBoundsDerive.md) - [SpatialBoundsDeriveBounds](docs/SpatialBoundsDeriveBounds.md) - [SpatialBoundsDeriveDerive](docs/SpatialBoundsDeriveDerive.md) @@ -384,7 +387,6 @@ All URIs are relative to *https://geoengine.io/api* - [SpatialGridDescriptorState](docs/SpatialGridDescriptorState.md) - [SpatialPartition2D](docs/SpatialPartition2D.md) - [SpatialReferenceSpecification](docs/SpatialReferenceSpecification.md) -- [SquareRootChoiceRule](docs/SquareRootChoiceRule.md) - [StacApiRetries](docs/StacApiRetries.md) - [StacQueryBuffer](docs/StacQueryBuffer.md) - [StaticColor](docs/StaticColor.md) @@ -416,6 +418,10 @@ All URIs are relative to *https://geoengine.io/api* - [TimeStep](docs/TimeStep.md) - [TypedDataProviderDefinition](docs/TypedDataProviderDefinition.md) - [TypedGeometry](docs/TypedGeometry.md) +- [TypedGeometryMultiLineString](docs/TypedGeometryMultiLineString.md) +- [TypedGeometryMultiPoint](docs/TypedGeometryMultiPoint.md) +- [TypedGeometryMultiPolygon](docs/TypedGeometryMultiPolygon.md) +- [TypedGeometryNoGeometry](docs/TypedGeometryNoGeometry.md) - [TypedOperator](docs/TypedOperator.md) - [TypedPlotOperator](docs/TypedPlotOperator.md) - [TypedPlotResultDescriptor](docs/TypedPlotResultDescriptor.md) @@ -431,7 +437,6 @@ All URIs are relative to *https://geoengine.io/api* - [UpdateLayerCollection](docs/UpdateLayerCollection.md) - [UpdateProject](docs/UpdateProject.md) - [UpdateQuota](docs/UpdateQuota.md) -- [Upload](docs/Upload.md) - [UploadFileLayersResponse](docs/UploadFileLayersResponse.md) - [UploadFilesResponse](docs/UploadFilesResponse.md) - [UsageSummaryGranularity](docs/UsageSummaryGranularity.md) @@ -439,15 +444,12 @@ All URIs are relative to *https://geoengine.io/api* - [UserInfo](docs/UserInfo.md) - [UserRegistration](docs/UserRegistration.md) - [UserSession](docs/UserSession.md) -- [Values](docs/Values.md) -- [ValuesValues](docs/ValuesValues.md) - [VecUpdate](docs/VecUpdate.md) - [VectorColumnInfo](docs/VectorColumnInfo.md) - [VectorDataType](docs/VectorDataType.md) - [VectorOperator](docs/VectorOperator.md) - [VectorResultDescriptor](docs/VectorResultDescriptor.md) - [Volume](docs/Volume.md) -- [Volume1](docs/Volume1.md) - [VolumeFileLayersResponse](docs/VolumeFileLayersResponse.md) - [WcsRequest](docs/WcsRequest.md) - [WcsService](docs/WcsService.md) diff --git a/typescript/diffs/typescript/src/models/HistogramBounds.ts.diff b/typescript/diffs/typescript/src/models/HistogramBounds.ts.diff new file mode 100644 index 00000000..0728c91b --- /dev/null +++ b/typescript/diffs/typescript/src/models/HistogramBounds.ts.diff @@ -0,0 +1,11 @@ +--- typescript/src/models/HistogramBounds.ts ++++ typescript/src/models/HistogramBounds.ts +@@ -66,7 +66,7 @@ + return value; + } + if (instanceOfData(value)) { +- return DataToJSON(value as Data); ++ return DataToJSON(value as unknown as Data); + } + if (instanceOfHistogramBoundsValues(value)) { + return HistogramBoundsValuesToJSON(value as HistogramBoundsValues); diff --git a/typescript/diffs/typescript/src/models/VectorOperator.ts.diff b/typescript/diffs/typescript/src/models/VectorOperator.ts.diff index a3b2ceaa..4ddbd3de 100644 --- a/typescript/diffs/typescript/src/models/VectorOperator.ts.diff +++ b/typescript/diffs/typescript/src/models/VectorOperator.ts.diff @@ -1,6 +1,6 @@ --- typescript/src/models/VectorOperator.ts +++ typescript/src/models/VectorOperator.ts -@@ -81,3 +81,11 @@ +@@ -92,3 +92,11 @@ } } diff --git a/typescript/dist/esm/models/Data.d.ts b/typescript/dist/esm/models/Data.d.ts new file mode 100644 index 00000000..bba53178 --- /dev/null +++ b/typescript/dist/esm/models/Data.d.ts @@ -0,0 +1,24 @@ +/** + * Geo Engine API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + */ +export declare const Data: { + readonly Data: "data"; +}; +export type Data = typeof Data[keyof typeof Data]; +export declare function instanceOfData(value: any): boolean; +export declare function DataFromJSON(json: any): Data; +export declare function DataFromJSONTyped(json: any, ignoreDiscriminator: boolean): Data; +export declare function DataToJSON(value?: Data | null): any; +export declare function DataToJSONTyped(value: any, ignoreDiscriminator: boolean): Data; diff --git a/typescript/dist/esm/models/Data.js b/typescript/dist/esm/models/Data.js new file mode 100644 index 00000000..df5cf307 --- /dev/null +++ b/typescript/dist/esm/models/Data.js @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + */ +export const Data = { + Data: 'data' +}; +export function instanceOfData(value) { + for (const key in Data) { + if (Object.prototype.hasOwnProperty.call(Data, key)) { + if (Data[key] === value) { + return true; + } + } + } + return false; +} +export function DataFromJSON(json) { + return DataFromJSONTyped(json, false); +} +export function DataFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +export function DataToJSON(value) { + return value; +} +export function DataToJSONTyped(value, ignoreDiscriminator) { + return value; +} diff --git a/typescript/dist/esm/models/Data1.d.ts b/typescript/dist/esm/models/Data1.d.ts deleted file mode 100644 index 29100b96..00000000 --- a/typescript/dist/esm/models/Data1.d.ts +++ /dev/null @@ -1,32 +0,0 @@ -/** - * Geo Engine API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.9.0 - * Contact: dev@geoengine.de - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -/** - * - * @export - * @interface Data1 - */ -export interface Data1 { - /** - * - * @type {any} - * @memberof Data1 - */ - data: any | null; -} -/** - * Check if a given object implements the Data1 interface. - */ -export declare function instanceOfData1(value: object): value is Data1; -export declare function Data1FromJSON(json: any): Data1; -export declare function Data1FromJSONTyped(json: any, ignoreDiscriminator: boolean): Data1; -export declare function Data1ToJSON(json: any): Data1; -export declare function Data1ToJSONTyped(value?: Data1 | null, ignoreDiscriminator?: boolean): any; diff --git a/typescript/dist/esm/models/Data1.js b/typescript/dist/esm/models/Data1.js deleted file mode 100644 index fffff89d..00000000 --- a/typescript/dist/esm/models/Data1.js +++ /dev/null @@ -1,43 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Geo Engine API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.9.0 - * Contact: dev@geoengine.de - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -/** - * Check if a given object implements the Data1 interface. - */ -export function instanceOfData1(value) { - if (!('data' in value) || value['data'] === undefined) - return false; - return true; -} -export function Data1FromJSON(json) { - return Data1FromJSONTyped(json, false); -} -export function Data1FromJSONTyped(json, ignoreDiscriminator) { - if (json == null) { - return json; - } - return { - 'data': json['data'], - }; -} -export function Data1ToJSON(json) { - return Data1ToJSONTyped(json, false); -} -export function Data1ToJSONTyped(value, ignoreDiscriminator = false) { - if (value == null) { - return value; - } - return { - 'data': value['data'], - }; -} diff --git a/typescript/dist/esm/models/DataPath.d.ts b/typescript/dist/esm/models/DataPath.d.ts index 6da2e2b2..dfa4e4e5 100644 --- a/typescript/dist/esm/models/DataPath.d.ts +++ b/typescript/dist/esm/models/DataPath.d.ts @@ -9,14 +9,14 @@ * https://openapi-generator.tech * Do not edit the class manually. */ -import type { Upload } from './Upload'; -import type { Volume1 } from './Volume1'; +import type { DataPathUpload } from './DataPathUpload'; +import type { DataPathVolume } from './DataPathVolume'; /** * @type DataPath * * @export */ -export type DataPath = Upload | Volume1; +export type DataPath = DataPathUpload | DataPathVolume; export declare function DataPathFromJSON(json: any): DataPath; export declare function DataPathFromJSONTyped(json: any, ignoreDiscriminator: boolean): DataPath; export declare function DataPathToJSON(json: any): any; diff --git a/typescript/dist/esm/models/DataPath.js b/typescript/dist/esm/models/DataPath.js index da298d40..5ff1d5e7 100644 --- a/typescript/dist/esm/models/DataPath.js +++ b/typescript/dist/esm/models/DataPath.js @@ -11,8 +11,8 @@ * https://openapi-generator.tech * Do not edit the class manually. */ -import { instanceOfUpload, UploadFromJSONTyped, UploadToJSON, } from './Upload'; -import { instanceOfVolume1, Volume1FromJSONTyped, Volume1ToJSON, } from './Volume1'; +import { instanceOfDataPathUpload, DataPathUploadFromJSONTyped, DataPathUploadToJSON, } from './DataPathUpload'; +import { instanceOfDataPathVolume, DataPathVolumeFromJSONTyped, DataPathVolumeToJSON, } from './DataPathVolume'; export function DataPathFromJSON(json) { return DataPathFromJSONTyped(json, false); } @@ -23,11 +23,11 @@ export function DataPathFromJSONTyped(json, ignoreDiscriminator) { if (typeof json !== 'object') { return json; } - if (instanceOfUpload(json)) { - return UploadFromJSONTyped(json, true); + if (instanceOfDataPathUpload(json)) { + return DataPathUploadFromJSONTyped(json, true); } - if (instanceOfVolume1(json)) { - return Volume1FromJSONTyped(json, true); + if (instanceOfDataPathVolume(json)) { + return DataPathVolumeFromJSONTyped(json, true); } return {}; } @@ -41,11 +41,11 @@ export function DataPathToJSONTyped(value, ignoreDiscriminator = false) { if (typeof value !== 'object') { return value; } - if (instanceOfUpload(value)) { - return UploadToJSON(value); + if (instanceOfDataPathUpload(value)) { + return DataPathUploadToJSON(value); } - if (instanceOfVolume1(value)) { - return Volume1ToJSON(value); + if (instanceOfDataPathVolume(value)) { + return DataPathVolumeToJSON(value); } return {}; } diff --git a/typescript/dist/esm/models/DataPathUpload.d.ts b/typescript/dist/esm/models/DataPathUpload.d.ts new file mode 100644 index 00000000..c680fdfb --- /dev/null +++ b/typescript/dist/esm/models/DataPathUpload.d.ts @@ -0,0 +1,32 @@ +/** + * Geo Engine API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface DataPathUpload + */ +export interface DataPathUpload { + /** + * + * @type {string} + * @memberof DataPathUpload + */ + upload: string; +} +/** + * Check if a given object implements the DataPathUpload interface. + */ +export declare function instanceOfDataPathUpload(value: object): value is DataPathUpload; +export declare function DataPathUploadFromJSON(json: any): DataPathUpload; +export declare function DataPathUploadFromJSONTyped(json: any, ignoreDiscriminator: boolean): DataPathUpload; +export declare function DataPathUploadToJSON(json: any): DataPathUpload; +export declare function DataPathUploadToJSONTyped(value?: DataPathUpload | null, ignoreDiscriminator?: boolean): any; diff --git a/typescript/dist/esm/models/Upload.js b/typescript/dist/esm/models/DataPathUpload.js similarity index 61% rename from typescript/dist/esm/models/Upload.js rename to typescript/dist/esm/models/DataPathUpload.js index e9d00b03..86ed994d 100644 --- a/typescript/dist/esm/models/Upload.js +++ b/typescript/dist/esm/models/DataPathUpload.js @@ -12,17 +12,17 @@ * Do not edit the class manually. */ /** - * Check if a given object implements the Upload interface. + * Check if a given object implements the DataPathUpload interface. */ -export function instanceOfUpload(value) { +export function instanceOfDataPathUpload(value) { if (!('upload' in value) || value['upload'] === undefined) return false; return true; } -export function UploadFromJSON(json) { - return UploadFromJSONTyped(json, false); +export function DataPathUploadFromJSON(json) { + return DataPathUploadFromJSONTyped(json, false); } -export function UploadFromJSONTyped(json, ignoreDiscriminator) { +export function DataPathUploadFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } @@ -30,10 +30,10 @@ export function UploadFromJSONTyped(json, ignoreDiscriminator) { 'upload': json['upload'], }; } -export function UploadToJSON(json) { - return UploadToJSONTyped(json, false); +export function DataPathUploadToJSON(json) { + return DataPathUploadToJSONTyped(json, false); } -export function UploadToJSONTyped(value, ignoreDiscriminator = false) { +export function DataPathUploadToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } diff --git a/typescript/dist/esm/models/DataPathVolume.d.ts b/typescript/dist/esm/models/DataPathVolume.d.ts new file mode 100644 index 00000000..c8f37aea --- /dev/null +++ b/typescript/dist/esm/models/DataPathVolume.d.ts @@ -0,0 +1,32 @@ +/** + * Geo Engine API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface DataPathVolume + */ +export interface DataPathVolume { + /** + * + * @type {string} + * @memberof DataPathVolume + */ + volume: string; +} +/** + * Check if a given object implements the DataPathVolume interface. + */ +export declare function instanceOfDataPathVolume(value: object): value is DataPathVolume; +export declare function DataPathVolumeFromJSON(json: any): DataPathVolume; +export declare function DataPathVolumeFromJSONTyped(json: any, ignoreDiscriminator: boolean): DataPathVolume; +export declare function DataPathVolumeToJSON(json: any): DataPathVolume; +export declare function DataPathVolumeToJSONTyped(value?: DataPathVolume | null, ignoreDiscriminator?: boolean): any; diff --git a/typescript/dist/esm/models/Volume1.js b/typescript/dist/esm/models/DataPathVolume.js similarity index 61% rename from typescript/dist/esm/models/Volume1.js rename to typescript/dist/esm/models/DataPathVolume.js index 04861818..f5ae07e5 100644 --- a/typescript/dist/esm/models/Volume1.js +++ b/typescript/dist/esm/models/DataPathVolume.js @@ -12,17 +12,17 @@ * Do not edit the class manually. */ /** - * Check if a given object implements the Volume1 interface. + * Check if a given object implements the DataPathVolume interface. */ -export function instanceOfVolume1(value) { +export function instanceOfDataPathVolume(value) { if (!('volume' in value) || value['volume'] === undefined) return false; return true; } -export function Volume1FromJSON(json) { - return Volume1FromJSONTyped(json, false); +export function DataPathVolumeFromJSON(json) { + return DataPathVolumeFromJSONTyped(json, false); } -export function Volume1FromJSONTyped(json, ignoreDiscriminator) { +export function DataPathVolumeFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } @@ -30,10 +30,10 @@ export function Volume1FromJSONTyped(json, ignoreDiscriminator) { 'volume': json['volume'], }; } -export function Volume1ToJSON(json) { - return Volume1ToJSONTyped(json, false); +export function DataPathVolumeToJSON(json) { + return DataPathVolumeToJSONTyped(json, false); } -export function Volume1ToJSONTyped(value, ignoreDiscriminator = false) { +export function DataPathVolumeToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } diff --git a/typescript/dist/esm/models/Histogram.d.ts b/typescript/dist/esm/models/Histogram.d.ts index 738a5088..1c14d721 100644 --- a/typescript/dist/esm/models/Histogram.d.ts +++ b/typescript/dist/esm/models/Histogram.d.ts @@ -9,8 +9,8 @@ * https://openapi-generator.tech * Do not edit the class manually. */ +import type { SingleVectorOrRasterSource } from './SingleVectorOrRasterSource'; import type { HistogramParameters } from './HistogramParameters'; -import type { SingleRasterOrVectorSource } from './SingleRasterOrVectorSource'; /** * The `Histogram` is a _plot operator_ that computes a histogram plot either over attributes of a vector dataset or values of a raster source. * The output is a plot in [Vega-Lite](https://vega.github.io/vega-lite/) specification. @@ -40,10 +40,10 @@ export interface Histogram { params: HistogramParameters; /** * - * @type {SingleRasterOrVectorSource} + * @type {SingleVectorOrRasterSource} * @memberof Histogram */ - sources: SingleRasterOrVectorSource; + sources: SingleVectorOrRasterSource; /** * * @type {HistogramTypeEnum} diff --git a/typescript/dist/esm/models/Histogram.js b/typescript/dist/esm/models/Histogram.js index b8e8f7f5..2da5f34d 100644 --- a/typescript/dist/esm/models/Histogram.js +++ b/typescript/dist/esm/models/Histogram.js @@ -11,8 +11,8 @@ * https://openapi-generator.tech * Do not edit the class manually. */ +import { SingleVectorOrRasterSourceFromJSON, SingleVectorOrRasterSourceToJSON, } from './SingleVectorOrRasterSource'; import { HistogramParametersFromJSON, HistogramParametersToJSON, } from './HistogramParameters'; -import { SingleRasterOrVectorSourceFromJSON, SingleRasterOrVectorSourceToJSON, } from './SingleRasterOrVectorSource'; /** * @export */ @@ -40,7 +40,7 @@ export function HistogramFromJSONTyped(json, ignoreDiscriminator) { } return { 'params': HistogramParametersFromJSON(json['params']), - 'sources': SingleRasterOrVectorSourceFromJSON(json['sources']), + 'sources': SingleVectorOrRasterSourceFromJSON(json['sources']), 'type': json['type'], }; } @@ -53,7 +53,7 @@ export function HistogramToJSONTyped(value, ignoreDiscriminator = false) { } return { 'params': HistogramParametersToJSON(value['params']), - 'sources': SingleRasterOrVectorSourceToJSON(value['sources']), + 'sources': SingleVectorOrRasterSourceToJSON(value['sources']), 'type': value['type'], }; } diff --git a/typescript/dist/esm/models/HistogramBounds.d.ts b/typescript/dist/esm/models/HistogramBounds.d.ts index 98f9f48d..51b47dce 100644 --- a/typescript/dist/esm/models/HistogramBounds.d.ts +++ b/typescript/dist/esm/models/HistogramBounds.d.ts @@ -9,14 +9,14 @@ * https://openapi-generator.tech * Do not edit the class manually. */ -import type { Data1 } from './Data1'; -import type { Values } from './Values'; +import type { Data } from './Data'; +import type { HistogramBoundsValues } from './HistogramBoundsValues'; /** * @type HistogramBounds * * @export */ -export type HistogramBounds = Data1 | Values; +export type HistogramBounds = Data | HistogramBoundsValues; export declare function HistogramBoundsFromJSON(json: any): HistogramBounds; export declare function HistogramBoundsFromJSONTyped(json: any, ignoreDiscriminator: boolean): HistogramBounds; export declare function HistogramBoundsToJSON(json: any): any; diff --git a/typescript/dist/esm/models/HistogramBounds.js b/typescript/dist/esm/models/HistogramBounds.js index 0dacf630..f3d83831 100644 --- a/typescript/dist/esm/models/HistogramBounds.js +++ b/typescript/dist/esm/models/HistogramBounds.js @@ -11,8 +11,8 @@ * https://openapi-generator.tech * Do not edit the class manually. */ -import { instanceOfData1, Data1FromJSONTyped, Data1ToJSON, } from './Data1'; -import { instanceOfValues, ValuesFromJSONTyped, ValuesToJSON, } from './Values'; +import { instanceOfData, DataFromJSONTyped, DataToJSON, } from './Data'; +import { instanceOfHistogramBoundsValues, HistogramBoundsValuesFromJSONTyped, HistogramBoundsValuesToJSON, } from './HistogramBoundsValues'; export function HistogramBoundsFromJSON(json) { return HistogramBoundsFromJSONTyped(json, false); } @@ -23,11 +23,11 @@ export function HistogramBoundsFromJSONTyped(json, ignoreDiscriminator) { if (typeof json !== 'object') { return json; } - if (instanceOfData1(json)) { - return Data1FromJSONTyped(json, true); + if (instanceOfData(json)) { + return DataFromJSONTyped(json, true); } - if (instanceOfValues(json)) { - return ValuesFromJSONTyped(json, true); + if (instanceOfHistogramBoundsValues(json)) { + return HistogramBoundsValuesFromJSONTyped(json, true); } return {}; } @@ -41,11 +41,11 @@ export function HistogramBoundsToJSONTyped(value, ignoreDiscriminator = false) { if (typeof value !== 'object') { return value; } - if (instanceOfData1(value)) { - return Data1ToJSON(value); + if (instanceOfData(value)) { + return DataToJSON(value); } - if (instanceOfValues(value)) { - return ValuesToJSON(value); + if (instanceOfHistogramBoundsValues(value)) { + return HistogramBoundsValuesToJSON(value); } return {}; } diff --git a/typescript/dist/esm/models/HistogramBoundsValues.d.ts b/typescript/dist/esm/models/HistogramBoundsValues.d.ts new file mode 100644 index 00000000..1573650d --- /dev/null +++ b/typescript/dist/esm/models/HistogramBoundsValues.d.ts @@ -0,0 +1,38 @@ +/** + * Geo Engine API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface HistogramBoundsValues + */ +export interface HistogramBoundsValues { + /** + * + * @type {number} + * @memberof HistogramBoundsValues + */ + max: number; + /** + * + * @type {number} + * @memberof HistogramBoundsValues + */ + min: number; +} +/** + * Check if a given object implements the HistogramBoundsValues interface. + */ +export declare function instanceOfHistogramBoundsValues(value: object): value is HistogramBoundsValues; +export declare function HistogramBoundsValuesFromJSON(json: any): HistogramBoundsValues; +export declare function HistogramBoundsValuesFromJSONTyped(json: any, ignoreDiscriminator: boolean): HistogramBoundsValues; +export declare function HistogramBoundsValuesToJSON(json: any): HistogramBoundsValues; +export declare function HistogramBoundsValuesToJSONTyped(value?: HistogramBoundsValues | null, ignoreDiscriminator?: boolean): any; diff --git a/typescript/dist/esm/models/ValuesValues.js b/typescript/dist/esm/models/HistogramBoundsValues.js similarity index 62% rename from typescript/dist/esm/models/ValuesValues.js rename to typescript/dist/esm/models/HistogramBoundsValues.js index 74da99c0..6296d209 100644 --- a/typescript/dist/esm/models/ValuesValues.js +++ b/typescript/dist/esm/models/HistogramBoundsValues.js @@ -12,19 +12,19 @@ * Do not edit the class manually. */ /** - * Check if a given object implements the ValuesValues interface. + * Check if a given object implements the HistogramBoundsValues interface. */ -export function instanceOfValuesValues(value) { +export function instanceOfHistogramBoundsValues(value) { if (!('max' in value) || value['max'] === undefined) return false; if (!('min' in value) || value['min'] === undefined) return false; return true; } -export function ValuesValuesFromJSON(json) { - return ValuesValuesFromJSONTyped(json, false); +export function HistogramBoundsValuesFromJSON(json) { + return HistogramBoundsValuesFromJSONTyped(json, false); } -export function ValuesValuesFromJSONTyped(json, ignoreDiscriminator) { +export function HistogramBoundsValuesFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } @@ -33,10 +33,10 @@ export function ValuesValuesFromJSONTyped(json, ignoreDiscriminator) { 'min': json['min'], }; } -export function ValuesValuesToJSON(json) { - return ValuesValuesToJSONTyped(json, false); +export function HistogramBoundsValuesToJSON(json) { + return HistogramBoundsValuesToJSONTyped(json, false); } -export function ValuesValuesToJSONTyped(value, ignoreDiscriminator = false) { +export function HistogramBoundsValuesToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } diff --git a/typescript/dist/esm/models/HistogramBuckets.d.ts b/typescript/dist/esm/models/HistogramBuckets.d.ts index 358b2818..7f4067f5 100644 --- a/typescript/dist/esm/models/HistogramBuckets.d.ts +++ b/typescript/dist/esm/models/HistogramBuckets.d.ts @@ -9,14 +9,18 @@ * https://openapi-generator.tech * Do not edit the class manually. */ -import type { Number } from './Number'; -import type { SquareRootChoiceRule } from './SquareRootChoiceRule'; +import type { HistogramBucketsNumber } from './HistogramBucketsNumber'; +import type { HistogramBucketsSquareRootChoiceRule } from './HistogramBucketsSquareRootChoiceRule'; /** * @type HistogramBuckets * * @export */ -export type HistogramBuckets = Number | SquareRootChoiceRule; +export type HistogramBuckets = { + type: 'number'; +} & HistogramBucketsNumber | { + type: 'squareRootChoiceRule'; +} & HistogramBucketsSquareRootChoiceRule; export declare function HistogramBucketsFromJSON(json: any): HistogramBuckets; export declare function HistogramBucketsFromJSONTyped(json: any, ignoreDiscriminator: boolean): HistogramBuckets; export declare function HistogramBucketsToJSON(json: any): any; diff --git a/typescript/dist/esm/models/HistogramBuckets.js b/typescript/dist/esm/models/HistogramBuckets.js index 08bf21ce..0b72ff8e 100644 --- a/typescript/dist/esm/models/HistogramBuckets.js +++ b/typescript/dist/esm/models/HistogramBuckets.js @@ -11,8 +11,8 @@ * https://openapi-generator.tech * Do not edit the class manually. */ -import { instanceOfNumber, NumberFromJSONTyped, NumberToJSON, } from './Number'; -import { instanceOfSquareRootChoiceRule, SquareRootChoiceRuleFromJSONTyped, SquareRootChoiceRuleToJSON, } from './SquareRootChoiceRule'; +import { HistogramBucketsNumberFromJSONTyped, HistogramBucketsNumberToJSON, } from './HistogramBucketsNumber'; +import { HistogramBucketsSquareRootChoiceRuleFromJSONTyped, HistogramBucketsSquareRootChoiceRuleToJSON, } from './HistogramBucketsSquareRootChoiceRule'; export function HistogramBucketsFromJSON(json) { return HistogramBucketsFromJSONTyped(json, false); } @@ -20,16 +20,14 @@ export function HistogramBucketsFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } - if (typeof json !== 'object') { - return json; - } - if (instanceOfNumber(json)) { - return NumberFromJSONTyped(json, true); - } - if (instanceOfSquareRootChoiceRule(json)) { - return SquareRootChoiceRuleFromJSONTyped(json, true); + switch (json['type']) { + case 'number': + return Object.assign({}, HistogramBucketsNumberFromJSONTyped(json, true), { type: 'number' }); + case 'squareRootChoiceRule': + return Object.assign({}, HistogramBucketsSquareRootChoiceRuleFromJSONTyped(json, true), { type: 'squareRootChoiceRule' }); + default: + return json; } - return {}; } export function HistogramBucketsToJSON(json) { return HistogramBucketsToJSONTyped(json, false); @@ -38,14 +36,12 @@ export function HistogramBucketsToJSONTyped(value, ignoreDiscriminator = false) if (value == null) { return value; } - if (typeof value !== 'object') { - return value; - } - if (instanceOfNumber(value)) { - return NumberToJSON(value); - } - if (instanceOfSquareRootChoiceRule(value)) { - return SquareRootChoiceRuleToJSON(value); + switch (value['type']) { + case 'number': + return Object.assign({}, HistogramBucketsNumberToJSON(value), { type: 'number' }); + case 'squareRootChoiceRule': + return Object.assign({}, HistogramBucketsSquareRootChoiceRuleToJSON(value), { type: 'squareRootChoiceRule' }); + default: + return value; } - return {}; } diff --git a/typescript/dist/esm/models/HistogramBucketsNumber.d.ts b/typescript/dist/esm/models/HistogramBucketsNumber.d.ts new file mode 100644 index 00000000..cca9cc87 --- /dev/null +++ b/typescript/dist/esm/models/HistogramBucketsNumber.d.ts @@ -0,0 +1,45 @@ +/** + * Geo Engine API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface HistogramBucketsNumber + */ +export interface HistogramBucketsNumber { + /** + * + * @type {HistogramBucketsNumberTypeEnum} + * @memberof HistogramBucketsNumber + */ + type: HistogramBucketsNumberTypeEnum; + /** + * + * @type {number} + * @memberof HistogramBucketsNumber + */ + value: number; +} +/** + * @export + */ +export declare const HistogramBucketsNumberTypeEnum: { + readonly Number: "number"; +}; +export type HistogramBucketsNumberTypeEnum = typeof HistogramBucketsNumberTypeEnum[keyof typeof HistogramBucketsNumberTypeEnum]; +/** + * Check if a given object implements the HistogramBucketsNumber interface. + */ +export declare function instanceOfHistogramBucketsNumber(value: object): value is HistogramBucketsNumber; +export declare function HistogramBucketsNumberFromJSON(json: any): HistogramBucketsNumber; +export declare function HistogramBucketsNumberFromJSONTyped(json: any, ignoreDiscriminator: boolean): HistogramBucketsNumber; +export declare function HistogramBucketsNumberToJSON(json: any): HistogramBucketsNumber; +export declare function HistogramBucketsNumberToJSONTyped(value?: HistogramBucketsNumber | null, ignoreDiscriminator?: boolean): any; diff --git a/typescript/dist/esm/models/Number.js b/typescript/dist/esm/models/HistogramBucketsNumber.js similarity index 61% rename from typescript/dist/esm/models/Number.js rename to typescript/dist/esm/models/HistogramBucketsNumber.js index b8542593..7b710cc0 100644 --- a/typescript/dist/esm/models/Number.js +++ b/typescript/dist/esm/models/HistogramBucketsNumber.js @@ -14,23 +14,23 @@ /** * @export */ -export const NumberTypeEnum = { +export const HistogramBucketsNumberTypeEnum = { Number: 'number' }; /** - * Check if a given object implements the Number interface. + * Check if a given object implements the HistogramBucketsNumber interface. */ -export function instanceOfNumber(value) { +export function instanceOfHistogramBucketsNumber(value) { if (!('type' in value) || value['type'] === undefined) return false; if (!('value' in value) || value['value'] === undefined) return false; return true; } -export function NumberFromJSON(json) { - return NumberFromJSONTyped(json, false); +export function HistogramBucketsNumberFromJSON(json) { + return HistogramBucketsNumberFromJSONTyped(json, false); } -export function NumberFromJSONTyped(json, ignoreDiscriminator) { +export function HistogramBucketsNumberFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } @@ -39,10 +39,10 @@ export function NumberFromJSONTyped(json, ignoreDiscriminator) { 'value': json['value'], }; } -export function NumberToJSON(json) { - return NumberToJSONTyped(json, false); +export function HistogramBucketsNumberToJSON(json) { + return HistogramBucketsNumberToJSONTyped(json, false); } -export function NumberToJSONTyped(value, ignoreDiscriminator = false) { +export function HistogramBucketsNumberToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } diff --git a/typescript/dist/esm/models/HistogramBucketsSquareRootChoiceRule.d.ts b/typescript/dist/esm/models/HistogramBucketsSquareRootChoiceRule.d.ts new file mode 100644 index 00000000..8b276ebc --- /dev/null +++ b/typescript/dist/esm/models/HistogramBucketsSquareRootChoiceRule.d.ts @@ -0,0 +1,45 @@ +/** + * Geo Engine API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface HistogramBucketsSquareRootChoiceRule + */ +export interface HistogramBucketsSquareRootChoiceRule { + /** + * + * @type {number} + * @memberof HistogramBucketsSquareRootChoiceRule + */ + maxNumberOfBuckets?: number; + /** + * + * @type {HistogramBucketsSquareRootChoiceRuleTypeEnum} + * @memberof HistogramBucketsSquareRootChoiceRule + */ + type: HistogramBucketsSquareRootChoiceRuleTypeEnum; +} +/** + * @export + */ +export declare const HistogramBucketsSquareRootChoiceRuleTypeEnum: { + readonly SquareRootChoiceRule: "squareRootChoiceRule"; +}; +export type HistogramBucketsSquareRootChoiceRuleTypeEnum = typeof HistogramBucketsSquareRootChoiceRuleTypeEnum[keyof typeof HistogramBucketsSquareRootChoiceRuleTypeEnum]; +/** + * Check if a given object implements the HistogramBucketsSquareRootChoiceRule interface. + */ +export declare function instanceOfHistogramBucketsSquareRootChoiceRule(value: object): value is HistogramBucketsSquareRootChoiceRule; +export declare function HistogramBucketsSquareRootChoiceRuleFromJSON(json: any): HistogramBucketsSquareRootChoiceRule; +export declare function HistogramBucketsSquareRootChoiceRuleFromJSONTyped(json: any, ignoreDiscriminator: boolean): HistogramBucketsSquareRootChoiceRule; +export declare function HistogramBucketsSquareRootChoiceRuleToJSON(json: any): HistogramBucketsSquareRootChoiceRule; +export declare function HistogramBucketsSquareRootChoiceRuleToJSONTyped(value?: HistogramBucketsSquareRootChoiceRule | null, ignoreDiscriminator?: boolean): any; diff --git a/typescript/dist/esm/models/SquareRootChoiceRule.js b/typescript/dist/esm/models/HistogramBucketsSquareRootChoiceRule.js similarity index 58% rename from typescript/dist/esm/models/SquareRootChoiceRule.js rename to typescript/dist/esm/models/HistogramBucketsSquareRootChoiceRule.js index 2c64c95f..e60c2a05 100644 --- a/typescript/dist/esm/models/SquareRootChoiceRule.js +++ b/typescript/dist/esm/models/HistogramBucketsSquareRootChoiceRule.js @@ -14,21 +14,21 @@ /** * @export */ -export const SquareRootChoiceRuleTypeEnum = { +export const HistogramBucketsSquareRootChoiceRuleTypeEnum = { SquareRootChoiceRule: 'squareRootChoiceRule' }; /** - * Check if a given object implements the SquareRootChoiceRule interface. + * Check if a given object implements the HistogramBucketsSquareRootChoiceRule interface. */ -export function instanceOfSquareRootChoiceRule(value) { +export function instanceOfHistogramBucketsSquareRootChoiceRule(value) { if (!('type' in value) || value['type'] === undefined) return false; return true; } -export function SquareRootChoiceRuleFromJSON(json) { - return SquareRootChoiceRuleFromJSONTyped(json, false); +export function HistogramBucketsSquareRootChoiceRuleFromJSON(json) { + return HistogramBucketsSquareRootChoiceRuleFromJSONTyped(json, false); } -export function SquareRootChoiceRuleFromJSONTyped(json, ignoreDiscriminator) { +export function HistogramBucketsSquareRootChoiceRuleFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } @@ -37,10 +37,10 @@ export function SquareRootChoiceRuleFromJSONTyped(json, ignoreDiscriminator) { 'type': json['type'], }; } -export function SquareRootChoiceRuleToJSON(json) { - return SquareRootChoiceRuleToJSONTyped(json, false); +export function HistogramBucketsSquareRootChoiceRuleToJSON(json) { + return HistogramBucketsSquareRootChoiceRuleToJSONTyped(json, false); } -export function SquareRootChoiceRuleToJSONTyped(value, ignoreDiscriminator = false) { +export function HistogramBucketsSquareRootChoiceRuleToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } diff --git a/typescript/dist/esm/models/HistogramParameters.d.ts b/typescript/dist/esm/models/HistogramParameters.d.ts index 072472b1..d9cfcb5d 100644 --- a/typescript/dist/esm/models/HistogramParameters.d.ts +++ b/typescript/dist/esm/models/HistogramParameters.d.ts @@ -18,13 +18,8 @@ import type { HistogramBuckets } from './HistogramBuckets'; */ export interface HistogramParameters { /** - * Name of the (numeric) vector attribute or raster band to compute the histogram on. - * @type {string} - * @memberof HistogramParameters - */ - attributeName: string; - /** - * If `data`, it computes the bounds of the underlying data. If `values`, one can specify custom bounds. + * If `data`, it computes the bounds of the underlying data. + * If `{ "min": ..., "max": ... }`, one can specify custom bounds. * @type {HistogramBounds} * @memberof HistogramParameters */ @@ -35,6 +30,12 @@ export interface HistogramParameters { * @memberof HistogramParameters */ buckets: HistogramBuckets; + /** + * Name of the (numeric) vector attribute or raster band to compute the histogram on. + * @type {string} + * @memberof HistogramParameters + */ + columnName: string; /** * Flag, if the histogram should have user interactions for a range selection. It is `false` by default. * @type {boolean} diff --git a/typescript/dist/esm/models/HistogramParameters.js b/typescript/dist/esm/models/HistogramParameters.js index c071d581..3dcd5c3b 100644 --- a/typescript/dist/esm/models/HistogramParameters.js +++ b/typescript/dist/esm/models/HistogramParameters.js @@ -17,12 +17,12 @@ import { HistogramBucketsFromJSON, HistogramBucketsToJSON, } from './HistogramBu * Check if a given object implements the HistogramParameters interface. */ export function instanceOfHistogramParameters(value) { - if (!('attributeName' in value) || value['attributeName'] === undefined) - return false; if (!('bounds' in value) || value['bounds'] === undefined) return false; if (!('buckets' in value) || value['buckets'] === undefined) return false; + if (!('columnName' in value) || value['columnName'] === undefined) + return false; return true; } export function HistogramParametersFromJSON(json) { @@ -33,9 +33,9 @@ export function HistogramParametersFromJSONTyped(json, ignoreDiscriminator) { return json; } return { - 'attributeName': json['attributeName'], 'bounds': HistogramBoundsFromJSON(json['bounds']), 'buckets': HistogramBucketsFromJSON(json['buckets']), + 'columnName': json['columnName'], 'interactive': json['interactive'] == null ? undefined : json['interactive'], }; } @@ -47,9 +47,9 @@ export function HistogramParametersToJSONTyped(value, ignoreDiscriminator = fals return value; } return { - 'attributeName': value['attributeName'], 'bounds': HistogramBoundsToJSON(value['bounds']), 'buckets': HistogramBucketsToJSON(value['buckets']), + 'columnName': value['columnName'], 'interactive': value['interactive'], }; } diff --git a/typescript/dist/esm/models/MultiLineString1.d.ts b/typescript/dist/esm/models/MultiLineString1.d.ts deleted file mode 100644 index bdac3628..00000000 --- a/typescript/dist/esm/models/MultiLineString1.d.ts +++ /dev/null @@ -1,33 +0,0 @@ -/** - * Geo Engine API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.9.0 - * Contact: dev@geoengine.de - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -import type { MultiLineString } from './MultiLineString'; -/** - * - * @export - * @interface MultiLineString1 - */ -export interface MultiLineString1 { - /** - * - * @type {MultiLineString} - * @memberof MultiLineString1 - */ - multiLineString: MultiLineString; -} -/** - * Check if a given object implements the MultiLineString1 interface. - */ -export declare function instanceOfMultiLineString1(value: object): value is MultiLineString1; -export declare function MultiLineString1FromJSON(json: any): MultiLineString1; -export declare function MultiLineString1FromJSONTyped(json: any, ignoreDiscriminator: boolean): MultiLineString1; -export declare function MultiLineString1ToJSON(json: any): MultiLineString1; -export declare function MultiLineString1ToJSONTyped(value?: MultiLineString1 | null, ignoreDiscriminator?: boolean): any; diff --git a/typescript/dist/esm/models/MultiPoint1.d.ts b/typescript/dist/esm/models/MultiPoint1.d.ts deleted file mode 100644 index 2b106fa1..00000000 --- a/typescript/dist/esm/models/MultiPoint1.d.ts +++ /dev/null @@ -1,33 +0,0 @@ -/** - * Geo Engine API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.9.0 - * Contact: dev@geoengine.de - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -import type { MultiPoint } from './MultiPoint'; -/** - * - * @export - * @interface MultiPoint1 - */ -export interface MultiPoint1 { - /** - * - * @type {MultiPoint} - * @memberof MultiPoint1 - */ - multiPoint: MultiPoint; -} -/** - * Check if a given object implements the MultiPoint1 interface. - */ -export declare function instanceOfMultiPoint1(value: object): value is MultiPoint1; -export declare function MultiPoint1FromJSON(json: any): MultiPoint1; -export declare function MultiPoint1FromJSONTyped(json: any, ignoreDiscriminator: boolean): MultiPoint1; -export declare function MultiPoint1ToJSON(json: any): MultiPoint1; -export declare function MultiPoint1ToJSONTyped(value?: MultiPoint1 | null, ignoreDiscriminator?: boolean): any; diff --git a/typescript/dist/esm/models/MultiPolygon1.d.ts b/typescript/dist/esm/models/MultiPolygon1.d.ts deleted file mode 100644 index d9855ea5..00000000 --- a/typescript/dist/esm/models/MultiPolygon1.d.ts +++ /dev/null @@ -1,33 +0,0 @@ -/** - * Geo Engine API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.9.0 - * Contact: dev@geoengine.de - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -import type { MultiPolygon } from './MultiPolygon'; -/** - * - * @export - * @interface MultiPolygon1 - */ -export interface MultiPolygon1 { - /** - * - * @type {MultiPolygon} - * @memberof MultiPolygon1 - */ - multiPolygon: MultiPolygon; -} -/** - * Check if a given object implements the MultiPolygon1 interface. - */ -export declare function instanceOfMultiPolygon1(value: object): value is MultiPolygon1; -export declare function MultiPolygon1FromJSON(json: any): MultiPolygon1; -export declare function MultiPolygon1FromJSONTyped(json: any, ignoreDiscriminator: boolean): MultiPolygon1; -export declare function MultiPolygon1ToJSON(json: any): MultiPolygon1; -export declare function MultiPolygon1ToJSONTyped(value?: MultiPolygon1 | null, ignoreDiscriminator?: boolean): any; diff --git a/typescript/dist/esm/models/NoGeometry1.d.ts b/typescript/dist/esm/models/NoGeometry1.d.ts deleted file mode 100644 index 6239e974..00000000 --- a/typescript/dist/esm/models/NoGeometry1.d.ts +++ /dev/null @@ -1,32 +0,0 @@ -/** - * Geo Engine API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.9.0 - * Contact: dev@geoengine.de - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -/** - * - * @export - * @interface NoGeometry1 - */ -export interface NoGeometry1 { - /** - * - * @type {any} - * @memberof NoGeometry1 - */ - data: any | null; -} -/** - * Check if a given object implements the NoGeometry1 interface. - */ -export declare function instanceOfNoGeometry1(value: object): value is NoGeometry1; -export declare function NoGeometry1FromJSON(json: any): NoGeometry1; -export declare function NoGeometry1FromJSONTyped(json: any, ignoreDiscriminator: boolean): NoGeometry1; -export declare function NoGeometry1ToJSON(json: any): NoGeometry1; -export declare function NoGeometry1ToJSONTyped(value?: NoGeometry1 | null, ignoreDiscriminator?: boolean): any; diff --git a/typescript/dist/esm/models/Number.d.ts b/typescript/dist/esm/models/Number.d.ts deleted file mode 100644 index 5c37975a..00000000 --- a/typescript/dist/esm/models/Number.d.ts +++ /dev/null @@ -1,45 +0,0 @@ -/** - * Geo Engine API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.9.0 - * Contact: dev@geoengine.de - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -/** - * - * @export - * @interface Number - */ -export interface Number { - /** - * - * @type {NumberTypeEnum} - * @memberof Number - */ - type: NumberTypeEnum; - /** - * - * @type {number} - * @memberof Number - */ - value: number; -} -/** - * @export - */ -export declare const NumberTypeEnum: { - readonly Number: "number"; -}; -export type NumberTypeEnum = typeof NumberTypeEnum[keyof typeof NumberTypeEnum]; -/** - * Check if a given object implements the Number interface. - */ -export declare function instanceOfNumber(value: object): value is Number; -export declare function NumberFromJSON(json: any): Number; -export declare function NumberFromJSONTyped(json: any, ignoreDiscriminator: boolean): Number; -export declare function NumberToJSON(json: any): Number; -export declare function NumberToJSONTyped(value?: Number | null, ignoreDiscriminator?: boolean): any; diff --git a/typescript/dist/esm/models/OgrSource.d.ts b/typescript/dist/esm/models/OgrSource.d.ts new file mode 100644 index 00000000..1287cf84 --- /dev/null +++ b/typescript/dist/esm/models/OgrSource.d.ts @@ -0,0 +1,52 @@ +/** + * Geo Engine API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { OgrSourceParameters } from './OgrSourceParameters'; +/** + * The [`OgrSource`] is a source operator that reads vector data using OGR (part of GDAL). + * The counterpart for raster data is the [`GdalSource`]. + * + * ## Errors + * + * If the given dataset does not exist or is not readable, an error is thrown. + * + * @export + * @interface OgrSource + */ +export interface OgrSource { + /** + * + * @type {OgrSourceParameters} + * @memberof OgrSource + */ + params: OgrSourceParameters; + /** + * + * @type {OgrSourceTypeEnum} + * @memberof OgrSource + */ + type: OgrSourceTypeEnum; +} +/** + * @export + */ +export declare const OgrSourceTypeEnum: { + readonly OgrSource: "OgrSource"; +}; +export type OgrSourceTypeEnum = typeof OgrSourceTypeEnum[keyof typeof OgrSourceTypeEnum]; +/** + * Check if a given object implements the OgrSource interface. + */ +export declare function instanceOfOgrSource(value: object): value is OgrSource; +export declare function OgrSourceFromJSON(json: any): OgrSource; +export declare function OgrSourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): OgrSource; +export declare function OgrSourceToJSON(json: any): OgrSource; +export declare function OgrSourceToJSONTyped(value?: OgrSource | null, ignoreDiscriminator?: boolean): any; diff --git a/typescript/dist/esm/models/OgrSource.js b/typescript/dist/esm/models/OgrSource.js new file mode 100644 index 00000000..826a88b3 --- /dev/null +++ b/typescript/dist/esm/models/OgrSource.js @@ -0,0 +1,54 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { OgrSourceParametersFromJSON, OgrSourceParametersToJSON, } from './OgrSourceParameters'; +/** + * @export + */ +export const OgrSourceTypeEnum = { + OgrSource: 'OgrSource' +}; +/** + * Check if a given object implements the OgrSource interface. + */ +export function instanceOfOgrSource(value) { + if (!('params' in value) || value['params'] === undefined) + return false; + if (!('type' in value) || value['type'] === undefined) + return false; + return true; +} +export function OgrSourceFromJSON(json) { + return OgrSourceFromJSONTyped(json, false); +} +export function OgrSourceFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'params': OgrSourceParametersFromJSON(json['params']), + 'type': json['type'], + }; +} +export function OgrSourceToJSON(json) { + return OgrSourceToJSONTyped(json, false); +} +export function OgrSourceToJSONTyped(value, ignoreDiscriminator = false) { + if (value == null) { + return value; + } + return { + 'params': OgrSourceParametersToJSON(value['params']), + 'type': value['type'], + }; +} diff --git a/typescript/dist/esm/models/OgrSourceParameters.d.ts b/typescript/dist/esm/models/OgrSourceParameters.d.ts new file mode 100644 index 00000000..10a2a634 --- /dev/null +++ b/typescript/dist/esm/models/OgrSourceParameters.d.ts @@ -0,0 +1,38 @@ +/** + * Geo Engine API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Parameters for the [`OgrSource`] operator. + * @export + * @interface OgrSourceParameters + */ +export interface OgrSourceParameters { + /** + * *Optional*: list of attributes to include. When `None`, all attributes are included. + * @type {Array} + * @memberof OgrSourceParameters + */ + attributeProjection?: Array | null; + /** + * Dataset name or identifier to be loaded. + * @type {string} + * @memberof OgrSourceParameters + */ + data: string; +} +/** + * Check if a given object implements the OgrSourceParameters interface. + */ +export declare function instanceOfOgrSourceParameters(value: object): value is OgrSourceParameters; +export declare function OgrSourceParametersFromJSON(json: any): OgrSourceParameters; +export declare function OgrSourceParametersFromJSONTyped(json: any, ignoreDiscriminator: boolean): OgrSourceParameters; +export declare function OgrSourceParametersToJSON(json: any): OgrSourceParameters; +export declare function OgrSourceParametersToJSONTyped(value?: OgrSourceParameters | null, ignoreDiscriminator?: boolean): any; diff --git a/typescript/dist/models/Data1.js b/typescript/dist/esm/models/OgrSourceParameters.js similarity index 52% rename from typescript/dist/models/Data1.js rename to typescript/dist/esm/models/OgrSourceParameters.js index 98d2f4cf..c76e28ea 100644 --- a/typescript/dist/models/Data1.js +++ b/typescript/dist/esm/models/OgrSourceParameters.js @@ -1,4 +1,3 @@ -"use strict"; /* tslint:disable */ /* eslint-disable */ /** @@ -12,39 +11,35 @@ * https://openapi-generator.tech * Do not edit the class manually. */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.instanceOfData1 = instanceOfData1; -exports.Data1FromJSON = Data1FromJSON; -exports.Data1FromJSONTyped = Data1FromJSONTyped; -exports.Data1ToJSON = Data1ToJSON; -exports.Data1ToJSONTyped = Data1ToJSONTyped; /** - * Check if a given object implements the Data1 interface. + * Check if a given object implements the OgrSourceParameters interface. */ -function instanceOfData1(value) { +export function instanceOfOgrSourceParameters(value) { if (!('data' in value) || value['data'] === undefined) return false; return true; } -function Data1FromJSON(json) { - return Data1FromJSONTyped(json, false); +export function OgrSourceParametersFromJSON(json) { + return OgrSourceParametersFromJSONTyped(json, false); } -function Data1FromJSONTyped(json, ignoreDiscriminator) { +export function OgrSourceParametersFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { + 'attributeProjection': json['attributeProjection'] == null ? undefined : json['attributeProjection'], 'data': json['data'], }; } -function Data1ToJSON(json) { - return Data1ToJSONTyped(json, false); +export function OgrSourceParametersToJSON(json) { + return OgrSourceParametersToJSONTyped(json, false); } -function Data1ToJSONTyped(value, ignoreDiscriminator = false) { +export function OgrSourceParametersToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { + 'attributeProjection': value['attributeProjection'], 'data': value['data'], }; } diff --git a/typescript/dist/esm/models/SingleVectorOrRasterSource.d.ts b/typescript/dist/esm/models/SingleVectorOrRasterSource.d.ts new file mode 100644 index 00000000..2e6f022f --- /dev/null +++ b/typescript/dist/esm/models/SingleVectorOrRasterSource.d.ts @@ -0,0 +1,33 @@ +/** + * Geo Engine API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { SingleRasterOrVectorOperator } from './SingleRasterOrVectorOperator'; +/** + * A single vector or raster operator as source for this operator, keyed as "vector" in JSON. + * @export + * @interface SingleVectorOrRasterSource + */ +export interface SingleVectorOrRasterSource { + /** + * + * @type {SingleRasterOrVectorOperator} + * @memberof SingleVectorOrRasterSource + */ + vector: SingleRasterOrVectorOperator; +} +/** + * Check if a given object implements the SingleVectorOrRasterSource interface. + */ +export declare function instanceOfSingleVectorOrRasterSource(value: object): value is SingleVectorOrRasterSource; +export declare function SingleVectorOrRasterSourceFromJSON(json: any): SingleVectorOrRasterSource; +export declare function SingleVectorOrRasterSourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): SingleVectorOrRasterSource; +export declare function SingleVectorOrRasterSourceToJSON(json: any): SingleVectorOrRasterSource; +export declare function SingleVectorOrRasterSourceToJSONTyped(value?: SingleVectorOrRasterSource | null, ignoreDiscriminator?: boolean): any; diff --git a/typescript/dist/esm/models/SingleVectorOrRasterSource.js b/typescript/dist/esm/models/SingleVectorOrRasterSource.js new file mode 100644 index 00000000..f63062e0 --- /dev/null +++ b/typescript/dist/esm/models/SingleVectorOrRasterSource.js @@ -0,0 +1,44 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import { SingleRasterOrVectorOperatorFromJSON, SingleRasterOrVectorOperatorToJSON, } from './SingleRasterOrVectorOperator'; +/** + * Check if a given object implements the SingleVectorOrRasterSource interface. + */ +export function instanceOfSingleVectorOrRasterSource(value) { + if (!('vector' in value) || value['vector'] === undefined) + return false; + return true; +} +export function SingleVectorOrRasterSourceFromJSON(json) { + return SingleVectorOrRasterSourceFromJSONTyped(json, false); +} +export function SingleVectorOrRasterSourceFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'vector': SingleRasterOrVectorOperatorFromJSON(json['vector']), + }; +} +export function SingleVectorOrRasterSourceToJSON(json) { + return SingleVectorOrRasterSourceToJSONTyped(json, false); +} +export function SingleVectorOrRasterSourceToJSONTyped(value, ignoreDiscriminator = false) { + if (value == null) { + return value; + } + return { + 'vector': SingleRasterOrVectorOperatorToJSON(value['vector']), + }; +} diff --git a/typescript/dist/esm/models/SquareRootChoiceRule.d.ts b/typescript/dist/esm/models/SquareRootChoiceRule.d.ts deleted file mode 100644 index ccefc73d..00000000 --- a/typescript/dist/esm/models/SquareRootChoiceRule.d.ts +++ /dev/null @@ -1,45 +0,0 @@ -/** - * Geo Engine API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.9.0 - * Contact: dev@geoengine.de - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -/** - * - * @export - * @interface SquareRootChoiceRule - */ -export interface SquareRootChoiceRule { - /** - * - * @type {number} - * @memberof SquareRootChoiceRule - */ - maxNumberOfBuckets?: number; - /** - * - * @type {SquareRootChoiceRuleTypeEnum} - * @memberof SquareRootChoiceRule - */ - type: SquareRootChoiceRuleTypeEnum; -} -/** - * @export - */ -export declare const SquareRootChoiceRuleTypeEnum: { - readonly SquareRootChoiceRule: "squareRootChoiceRule"; -}; -export type SquareRootChoiceRuleTypeEnum = typeof SquareRootChoiceRuleTypeEnum[keyof typeof SquareRootChoiceRuleTypeEnum]; -/** - * Check if a given object implements the SquareRootChoiceRule interface. - */ -export declare function instanceOfSquareRootChoiceRule(value: object): value is SquareRootChoiceRule; -export declare function SquareRootChoiceRuleFromJSON(json: any): SquareRootChoiceRule; -export declare function SquareRootChoiceRuleFromJSONTyped(json: any, ignoreDiscriminator: boolean): SquareRootChoiceRule; -export declare function SquareRootChoiceRuleToJSON(json: any): SquareRootChoiceRule; -export declare function SquareRootChoiceRuleToJSONTyped(value?: SquareRootChoiceRule | null, ignoreDiscriminator?: boolean): any; diff --git a/typescript/dist/esm/models/TypedGeometry.d.ts b/typescript/dist/esm/models/TypedGeometry.d.ts index 35678a69..889b1e4e 100644 --- a/typescript/dist/esm/models/TypedGeometry.d.ts +++ b/typescript/dist/esm/models/TypedGeometry.d.ts @@ -9,16 +9,16 @@ * https://openapi-generator.tech * Do not edit the class manually. */ -import type { MultiLineString1 } from './MultiLineString1'; -import type { MultiPoint1 } from './MultiPoint1'; -import type { MultiPolygon1 } from './MultiPolygon1'; -import type { NoGeometry1 } from './NoGeometry1'; +import type { TypedGeometryMultiLineString } from './TypedGeometryMultiLineString'; +import type { TypedGeometryMultiPoint } from './TypedGeometryMultiPoint'; +import type { TypedGeometryMultiPolygon } from './TypedGeometryMultiPolygon'; +import type { TypedGeometryNoGeometry } from './TypedGeometryNoGeometry'; /** * @type TypedGeometry * * @export */ -export type TypedGeometry = MultiLineString1 | MultiPoint1 | MultiPolygon1 | NoGeometry1; +export type TypedGeometry = TypedGeometryMultiLineString | TypedGeometryMultiPoint | TypedGeometryMultiPolygon | TypedGeometryNoGeometry; export declare function TypedGeometryFromJSON(json: any): TypedGeometry; export declare function TypedGeometryFromJSONTyped(json: any, ignoreDiscriminator: boolean): TypedGeometry; export declare function TypedGeometryToJSON(json: any): any; diff --git a/typescript/dist/esm/models/TypedGeometry.js b/typescript/dist/esm/models/TypedGeometry.js index 3626aa13..2a192488 100644 --- a/typescript/dist/esm/models/TypedGeometry.js +++ b/typescript/dist/esm/models/TypedGeometry.js @@ -11,10 +11,10 @@ * https://openapi-generator.tech * Do not edit the class manually. */ -import { instanceOfMultiLineString1, MultiLineString1FromJSONTyped, MultiLineString1ToJSON, } from './MultiLineString1'; -import { instanceOfMultiPoint1, MultiPoint1FromJSONTyped, MultiPoint1ToJSON, } from './MultiPoint1'; -import { instanceOfMultiPolygon1, MultiPolygon1FromJSONTyped, MultiPolygon1ToJSON, } from './MultiPolygon1'; -import { instanceOfNoGeometry1, NoGeometry1FromJSONTyped, NoGeometry1ToJSON, } from './NoGeometry1'; +import { instanceOfTypedGeometryMultiLineString, TypedGeometryMultiLineStringFromJSONTyped, TypedGeometryMultiLineStringToJSON, } from './TypedGeometryMultiLineString'; +import { instanceOfTypedGeometryMultiPoint, TypedGeometryMultiPointFromJSONTyped, TypedGeometryMultiPointToJSON, } from './TypedGeometryMultiPoint'; +import { instanceOfTypedGeometryMultiPolygon, TypedGeometryMultiPolygonFromJSONTyped, TypedGeometryMultiPolygonToJSON, } from './TypedGeometryMultiPolygon'; +import { instanceOfTypedGeometryNoGeometry, TypedGeometryNoGeometryFromJSONTyped, TypedGeometryNoGeometryToJSON, } from './TypedGeometryNoGeometry'; export function TypedGeometryFromJSON(json) { return TypedGeometryFromJSONTyped(json, false); } @@ -25,17 +25,17 @@ export function TypedGeometryFromJSONTyped(json, ignoreDiscriminator) { if (typeof json !== 'object') { return json; } - if (instanceOfMultiLineString1(json)) { - return MultiLineString1FromJSONTyped(json, true); + if (instanceOfTypedGeometryMultiLineString(json)) { + return TypedGeometryMultiLineStringFromJSONTyped(json, true); } - if (instanceOfMultiPoint1(json)) { - return MultiPoint1FromJSONTyped(json, true); + if (instanceOfTypedGeometryMultiPoint(json)) { + return TypedGeometryMultiPointFromJSONTyped(json, true); } - if (instanceOfMultiPolygon1(json)) { - return MultiPolygon1FromJSONTyped(json, true); + if (instanceOfTypedGeometryMultiPolygon(json)) { + return TypedGeometryMultiPolygonFromJSONTyped(json, true); } - if (instanceOfNoGeometry1(json)) { - return NoGeometry1FromJSONTyped(json, true); + if (instanceOfTypedGeometryNoGeometry(json)) { + return TypedGeometryNoGeometryFromJSONTyped(json, true); } return {}; } @@ -49,17 +49,17 @@ export function TypedGeometryToJSONTyped(value, ignoreDiscriminator = false) { if (typeof value !== 'object') { return value; } - if (instanceOfMultiLineString1(value)) { - return MultiLineString1ToJSON(value); + if (instanceOfTypedGeometryMultiLineString(value)) { + return TypedGeometryMultiLineStringToJSON(value); } - if (instanceOfMultiPoint1(value)) { - return MultiPoint1ToJSON(value); + if (instanceOfTypedGeometryMultiPoint(value)) { + return TypedGeometryMultiPointToJSON(value); } - if (instanceOfMultiPolygon1(value)) { - return MultiPolygon1ToJSON(value); + if (instanceOfTypedGeometryMultiPolygon(value)) { + return TypedGeometryMultiPolygonToJSON(value); } - if (instanceOfNoGeometry1(value)) { - return NoGeometry1ToJSON(value); + if (instanceOfTypedGeometryNoGeometry(value)) { + return TypedGeometryNoGeometryToJSON(value); } return {}; } diff --git a/typescript/dist/esm/models/TypedGeometryMultiLineString.d.ts b/typescript/dist/esm/models/TypedGeometryMultiLineString.d.ts new file mode 100644 index 00000000..cddff247 --- /dev/null +++ b/typescript/dist/esm/models/TypedGeometryMultiLineString.d.ts @@ -0,0 +1,33 @@ +/** + * Geo Engine API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { MultiLineString } from './MultiLineString'; +/** + * + * @export + * @interface TypedGeometryMultiLineString + */ +export interface TypedGeometryMultiLineString { + /** + * + * @type {MultiLineString} + * @memberof TypedGeometryMultiLineString + */ + multiLineString: MultiLineString; +} +/** + * Check if a given object implements the TypedGeometryMultiLineString interface. + */ +export declare function instanceOfTypedGeometryMultiLineString(value: object): value is TypedGeometryMultiLineString; +export declare function TypedGeometryMultiLineStringFromJSON(json: any): TypedGeometryMultiLineString; +export declare function TypedGeometryMultiLineStringFromJSONTyped(json: any, ignoreDiscriminator: boolean): TypedGeometryMultiLineString; +export declare function TypedGeometryMultiLineStringToJSON(json: any): TypedGeometryMultiLineString; +export declare function TypedGeometryMultiLineStringToJSONTyped(value?: TypedGeometryMultiLineString | null, ignoreDiscriminator?: boolean): any; diff --git a/typescript/dist/esm/models/MultiLineString1.js b/typescript/dist/esm/models/TypedGeometryMultiLineString.js similarity index 61% rename from typescript/dist/esm/models/MultiLineString1.js rename to typescript/dist/esm/models/TypedGeometryMultiLineString.js index 43b9cc15..fd4007c7 100644 --- a/typescript/dist/esm/models/MultiLineString1.js +++ b/typescript/dist/esm/models/TypedGeometryMultiLineString.js @@ -13,17 +13,17 @@ */ import { MultiLineStringFromJSON, MultiLineStringToJSON, } from './MultiLineString'; /** - * Check if a given object implements the MultiLineString1 interface. + * Check if a given object implements the TypedGeometryMultiLineString interface. */ -export function instanceOfMultiLineString1(value) { +export function instanceOfTypedGeometryMultiLineString(value) { if (!('multiLineString' in value) || value['multiLineString'] === undefined) return false; return true; } -export function MultiLineString1FromJSON(json) { - return MultiLineString1FromJSONTyped(json, false); +export function TypedGeometryMultiLineStringFromJSON(json) { + return TypedGeometryMultiLineStringFromJSONTyped(json, false); } -export function MultiLineString1FromJSONTyped(json, ignoreDiscriminator) { +export function TypedGeometryMultiLineStringFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } @@ -31,10 +31,10 @@ export function MultiLineString1FromJSONTyped(json, ignoreDiscriminator) { 'multiLineString': MultiLineStringFromJSON(json['MultiLineString']), }; } -export function MultiLineString1ToJSON(json) { - return MultiLineString1ToJSONTyped(json, false); +export function TypedGeometryMultiLineStringToJSON(json) { + return TypedGeometryMultiLineStringToJSONTyped(json, false); } -export function MultiLineString1ToJSONTyped(value, ignoreDiscriminator = false) { +export function TypedGeometryMultiLineStringToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } diff --git a/typescript/dist/esm/models/TypedGeometryMultiPoint.d.ts b/typescript/dist/esm/models/TypedGeometryMultiPoint.d.ts new file mode 100644 index 00000000..54de9db1 --- /dev/null +++ b/typescript/dist/esm/models/TypedGeometryMultiPoint.d.ts @@ -0,0 +1,33 @@ +/** + * Geo Engine API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { MultiPoint } from './MultiPoint'; +/** + * + * @export + * @interface TypedGeometryMultiPoint + */ +export interface TypedGeometryMultiPoint { + /** + * + * @type {MultiPoint} + * @memberof TypedGeometryMultiPoint + */ + multiPoint: MultiPoint; +} +/** + * Check if a given object implements the TypedGeometryMultiPoint interface. + */ +export declare function instanceOfTypedGeometryMultiPoint(value: object): value is TypedGeometryMultiPoint; +export declare function TypedGeometryMultiPointFromJSON(json: any): TypedGeometryMultiPoint; +export declare function TypedGeometryMultiPointFromJSONTyped(json: any, ignoreDiscriminator: boolean): TypedGeometryMultiPoint; +export declare function TypedGeometryMultiPointToJSON(json: any): TypedGeometryMultiPoint; +export declare function TypedGeometryMultiPointToJSONTyped(value?: TypedGeometryMultiPoint | null, ignoreDiscriminator?: boolean): any; diff --git a/typescript/dist/esm/models/MultiPoint1.js b/typescript/dist/esm/models/TypedGeometryMultiPoint.js similarity index 62% rename from typescript/dist/esm/models/MultiPoint1.js rename to typescript/dist/esm/models/TypedGeometryMultiPoint.js index d85b15ae..f0c7344d 100644 --- a/typescript/dist/esm/models/MultiPoint1.js +++ b/typescript/dist/esm/models/TypedGeometryMultiPoint.js @@ -13,17 +13,17 @@ */ import { MultiPointFromJSON, MultiPointToJSON, } from './MultiPoint'; /** - * Check if a given object implements the MultiPoint1 interface. + * Check if a given object implements the TypedGeometryMultiPoint interface. */ -export function instanceOfMultiPoint1(value) { +export function instanceOfTypedGeometryMultiPoint(value) { if (!('multiPoint' in value) || value['multiPoint'] === undefined) return false; return true; } -export function MultiPoint1FromJSON(json) { - return MultiPoint1FromJSONTyped(json, false); +export function TypedGeometryMultiPointFromJSON(json) { + return TypedGeometryMultiPointFromJSONTyped(json, false); } -export function MultiPoint1FromJSONTyped(json, ignoreDiscriminator) { +export function TypedGeometryMultiPointFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } @@ -31,10 +31,10 @@ export function MultiPoint1FromJSONTyped(json, ignoreDiscriminator) { 'multiPoint': MultiPointFromJSON(json['MultiPoint']), }; } -export function MultiPoint1ToJSON(json) { - return MultiPoint1ToJSONTyped(json, false); +export function TypedGeometryMultiPointToJSON(json) { + return TypedGeometryMultiPointToJSONTyped(json, false); } -export function MultiPoint1ToJSONTyped(value, ignoreDiscriminator = false) { +export function TypedGeometryMultiPointToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } diff --git a/typescript/dist/esm/models/TypedGeometryMultiPolygon.d.ts b/typescript/dist/esm/models/TypedGeometryMultiPolygon.d.ts new file mode 100644 index 00000000..aa5e9807 --- /dev/null +++ b/typescript/dist/esm/models/TypedGeometryMultiPolygon.d.ts @@ -0,0 +1,33 @@ +/** + * Geo Engine API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { MultiPolygon } from './MultiPolygon'; +/** + * + * @export + * @interface TypedGeometryMultiPolygon + */ +export interface TypedGeometryMultiPolygon { + /** + * + * @type {MultiPolygon} + * @memberof TypedGeometryMultiPolygon + */ + multiPolygon: MultiPolygon; +} +/** + * Check if a given object implements the TypedGeometryMultiPolygon interface. + */ +export declare function instanceOfTypedGeometryMultiPolygon(value: object): value is TypedGeometryMultiPolygon; +export declare function TypedGeometryMultiPolygonFromJSON(json: any): TypedGeometryMultiPolygon; +export declare function TypedGeometryMultiPolygonFromJSONTyped(json: any, ignoreDiscriminator: boolean): TypedGeometryMultiPolygon; +export declare function TypedGeometryMultiPolygonToJSON(json: any): TypedGeometryMultiPolygon; +export declare function TypedGeometryMultiPolygonToJSONTyped(value?: TypedGeometryMultiPolygon | null, ignoreDiscriminator?: boolean): any; diff --git a/typescript/dist/esm/models/MultiPolygon1.js b/typescript/dist/esm/models/TypedGeometryMultiPolygon.js similarity index 62% rename from typescript/dist/esm/models/MultiPolygon1.js rename to typescript/dist/esm/models/TypedGeometryMultiPolygon.js index d5881197..e434adaf 100644 --- a/typescript/dist/esm/models/MultiPolygon1.js +++ b/typescript/dist/esm/models/TypedGeometryMultiPolygon.js @@ -13,17 +13,17 @@ */ import { MultiPolygonFromJSON, MultiPolygonToJSON, } from './MultiPolygon'; /** - * Check if a given object implements the MultiPolygon1 interface. + * Check if a given object implements the TypedGeometryMultiPolygon interface. */ -export function instanceOfMultiPolygon1(value) { +export function instanceOfTypedGeometryMultiPolygon(value) { if (!('multiPolygon' in value) || value['multiPolygon'] === undefined) return false; return true; } -export function MultiPolygon1FromJSON(json) { - return MultiPolygon1FromJSONTyped(json, false); +export function TypedGeometryMultiPolygonFromJSON(json) { + return TypedGeometryMultiPolygonFromJSONTyped(json, false); } -export function MultiPolygon1FromJSONTyped(json, ignoreDiscriminator) { +export function TypedGeometryMultiPolygonFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } @@ -31,10 +31,10 @@ export function MultiPolygon1FromJSONTyped(json, ignoreDiscriminator) { 'multiPolygon': MultiPolygonFromJSON(json['MultiPolygon']), }; } -export function MultiPolygon1ToJSON(json) { - return MultiPolygon1ToJSONTyped(json, false); +export function TypedGeometryMultiPolygonToJSON(json) { + return TypedGeometryMultiPolygonToJSONTyped(json, false); } -export function MultiPolygon1ToJSONTyped(value, ignoreDiscriminator = false) { +export function TypedGeometryMultiPolygonToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } diff --git a/typescript/dist/esm/models/TypedGeometryNoGeometry.d.ts b/typescript/dist/esm/models/TypedGeometryNoGeometry.d.ts new file mode 100644 index 00000000..a1a15d83 --- /dev/null +++ b/typescript/dist/esm/models/TypedGeometryNoGeometry.d.ts @@ -0,0 +1,32 @@ +/** + * Geo Engine API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface TypedGeometryNoGeometry + */ +export interface TypedGeometryNoGeometry { + /** + * + * @type {any} + * @memberof TypedGeometryNoGeometry + */ + data: any | null; +} +/** + * Check if a given object implements the TypedGeometryNoGeometry interface. + */ +export declare function instanceOfTypedGeometryNoGeometry(value: object): value is TypedGeometryNoGeometry; +export declare function TypedGeometryNoGeometryFromJSON(json: any): TypedGeometryNoGeometry; +export declare function TypedGeometryNoGeometryFromJSONTyped(json: any, ignoreDiscriminator: boolean): TypedGeometryNoGeometry; +export declare function TypedGeometryNoGeometryToJSON(json: any): TypedGeometryNoGeometry; +export declare function TypedGeometryNoGeometryToJSONTyped(value?: TypedGeometryNoGeometry | null, ignoreDiscriminator?: boolean): any; diff --git a/typescript/dist/esm/models/NoGeometry1.js b/typescript/dist/esm/models/TypedGeometryNoGeometry.js similarity index 57% rename from typescript/dist/esm/models/NoGeometry1.js rename to typescript/dist/esm/models/TypedGeometryNoGeometry.js index 80bd78f8..18a7f5e3 100644 --- a/typescript/dist/esm/models/NoGeometry1.js +++ b/typescript/dist/esm/models/TypedGeometryNoGeometry.js @@ -12,17 +12,17 @@ * Do not edit the class manually. */ /** - * Check if a given object implements the NoGeometry1 interface. + * Check if a given object implements the TypedGeometryNoGeometry interface. */ -export function instanceOfNoGeometry1(value) { +export function instanceOfTypedGeometryNoGeometry(value) { if (!('data' in value) || value['data'] === undefined) return false; return true; } -export function NoGeometry1FromJSON(json) { - return NoGeometry1FromJSONTyped(json, false); +export function TypedGeometryNoGeometryFromJSON(json) { + return TypedGeometryNoGeometryFromJSONTyped(json, false); } -export function NoGeometry1FromJSONTyped(json, ignoreDiscriminator) { +export function TypedGeometryNoGeometryFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } @@ -30,10 +30,10 @@ export function NoGeometry1FromJSONTyped(json, ignoreDiscriminator) { 'data': json['Data'], }; } -export function NoGeometry1ToJSON(json) { - return NoGeometry1ToJSONTyped(json, false); +export function TypedGeometryNoGeometryToJSON(json) { + return TypedGeometryNoGeometryToJSONTyped(json, false); } -export function NoGeometry1ToJSONTyped(value, ignoreDiscriminator = false) { +export function TypedGeometryNoGeometryToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } diff --git a/typescript/dist/esm/models/Upload.d.ts b/typescript/dist/esm/models/Upload.d.ts deleted file mode 100644 index 4d4518bd..00000000 --- a/typescript/dist/esm/models/Upload.d.ts +++ /dev/null @@ -1,32 +0,0 @@ -/** - * Geo Engine API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.9.0 - * Contact: dev@geoengine.de - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -/** - * - * @export - * @interface Upload - */ -export interface Upload { - /** - * - * @type {string} - * @memberof Upload - */ - upload: string; -} -/** - * Check if a given object implements the Upload interface. - */ -export declare function instanceOfUpload(value: object): value is Upload; -export declare function UploadFromJSON(json: any): Upload; -export declare function UploadFromJSONTyped(json: any, ignoreDiscriminator: boolean): Upload; -export declare function UploadToJSON(json: any): Upload; -export declare function UploadToJSONTyped(value?: Upload | null, ignoreDiscriminator?: boolean): any; diff --git a/typescript/dist/esm/models/Values.d.ts b/typescript/dist/esm/models/Values.d.ts deleted file mode 100644 index 51178f33..00000000 --- a/typescript/dist/esm/models/Values.d.ts +++ /dev/null @@ -1,33 +0,0 @@ -/** - * Geo Engine API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.9.0 - * Contact: dev@geoengine.de - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -import type { ValuesValues } from './ValuesValues'; -/** - * - * @export - * @interface Values - */ -export interface Values { - /** - * - * @type {ValuesValues} - * @memberof Values - */ - values: ValuesValues; -} -/** - * Check if a given object implements the Values interface. - */ -export declare function instanceOfValues(value: object): value is Values; -export declare function ValuesFromJSON(json: any): Values; -export declare function ValuesFromJSONTyped(json: any, ignoreDiscriminator: boolean): Values; -export declare function ValuesToJSON(json: any): Values; -export declare function ValuesToJSONTyped(value?: Values | null, ignoreDiscriminator?: boolean): any; diff --git a/typescript/dist/esm/models/Values.js b/typescript/dist/esm/models/Values.js deleted file mode 100644 index 69593c18..00000000 --- a/typescript/dist/esm/models/Values.js +++ /dev/null @@ -1,44 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Geo Engine API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.9.0 - * Contact: dev@geoengine.de - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -import { ValuesValuesFromJSON, ValuesValuesToJSON, } from './ValuesValues'; -/** - * Check if a given object implements the Values interface. - */ -export function instanceOfValues(value) { - if (!('values' in value) || value['values'] === undefined) - return false; - return true; -} -export function ValuesFromJSON(json) { - return ValuesFromJSONTyped(json, false); -} -export function ValuesFromJSONTyped(json, ignoreDiscriminator) { - if (json == null) { - return json; - } - return { - 'values': ValuesValuesFromJSON(json['values']), - }; -} -export function ValuesToJSON(json) { - return ValuesToJSONTyped(json, false); -} -export function ValuesToJSONTyped(value, ignoreDiscriminator = false) { - if (value == null) { - return value; - } - return { - 'values': ValuesValuesToJSON(value['values']), - }; -} diff --git a/typescript/dist/esm/models/ValuesValues.d.ts b/typescript/dist/esm/models/ValuesValues.d.ts deleted file mode 100644 index e4493a48..00000000 --- a/typescript/dist/esm/models/ValuesValues.d.ts +++ /dev/null @@ -1,38 +0,0 @@ -/** - * Geo Engine API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.9.0 - * Contact: dev@geoengine.de - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -/** - * - * @export - * @interface ValuesValues - */ -export interface ValuesValues { - /** - * - * @type {number} - * @memberof ValuesValues - */ - max: number; - /** - * - * @type {number} - * @memberof ValuesValues - */ - min: number; -} -/** - * Check if a given object implements the ValuesValues interface. - */ -export declare function instanceOfValuesValues(value: object): value is ValuesValues; -export declare function ValuesValuesFromJSON(json: any): ValuesValues; -export declare function ValuesValuesFromJSONTyped(json: any, ignoreDiscriminator: boolean): ValuesValues; -export declare function ValuesValuesToJSON(json: any): ValuesValues; -export declare function ValuesValuesToJSONTyped(value?: ValuesValues | null, ignoreDiscriminator?: boolean): any; diff --git a/typescript/dist/esm/models/VectorOperator.d.ts b/typescript/dist/esm/models/VectorOperator.d.ts index 4234cd25..5c6b8f2e 100644 --- a/typescript/dist/esm/models/VectorOperator.d.ts +++ b/typescript/dist/esm/models/VectorOperator.d.ts @@ -10,6 +10,7 @@ * Do not edit the class manually. */ import type { MockPointSource } from './MockPointSource'; +import type { OgrSource } from './OgrSource'; import type { RasterVectorJoin } from './RasterVectorJoin'; import type { Reprojection } from './Reprojection'; /** @@ -20,6 +21,8 @@ import type { Reprojection } from './Reprojection'; export type VectorOperator = { type: 'MockPointSource'; } & MockPointSource | { + type: 'OgrSource'; +} & OgrSource | { type: 'RasterVectorJoin'; } & RasterVectorJoin | { type: 'Reprojection'; diff --git a/typescript/dist/esm/models/VectorOperator.js b/typescript/dist/esm/models/VectorOperator.js index 9b5cf098..2a343c4a 100644 --- a/typescript/dist/esm/models/VectorOperator.js +++ b/typescript/dist/esm/models/VectorOperator.js @@ -12,6 +12,7 @@ * Do not edit the class manually. */ import { instanceOfMockPointSource, MockPointSourceFromJSONTyped, MockPointSourceToJSON, } from './MockPointSource'; +import { OgrSourceFromJSONTyped, OgrSourceToJSON, } from './OgrSource'; import { instanceOfRasterVectorJoin, RasterVectorJoinFromJSONTyped, RasterVectorJoinToJSON, } from './RasterVectorJoin'; import { ReprojectionFromJSONTyped, ReprojectionToJSON, } from './Reprojection'; export function VectorOperatorFromJSON(json) { @@ -24,6 +25,8 @@ export function VectorOperatorFromJSONTyped(json, ignoreDiscriminator) { switch (json['type']) { case 'MockPointSource': return Object.assign({}, MockPointSourceFromJSONTyped(json, true), { type: 'MockPointSource' }); + case 'OgrSource': + return Object.assign({}, OgrSourceFromJSONTyped(json, true), { type: 'OgrSource' }); case 'RasterVectorJoin': return Object.assign({}, RasterVectorJoinFromJSONTyped(json, true), { type: 'RasterVectorJoin' }); case 'Reprojection': @@ -42,6 +45,8 @@ export function VectorOperatorToJSONTyped(value, ignoreDiscriminator = false) { switch (value['type']) { case 'MockPointSource': return Object.assign({}, MockPointSourceToJSON(value), { type: 'MockPointSource' }); + case 'OgrSource': + return Object.assign({}, OgrSourceToJSON(value), { type: 'OgrSource' }); case 'RasterVectorJoin': return Object.assign({}, RasterVectorJoinToJSON(value), { type: 'RasterVectorJoin' }); case 'Reprojection': diff --git a/typescript/dist/esm/models/Volume1.d.ts b/typescript/dist/esm/models/Volume1.d.ts deleted file mode 100644 index 626c0f1c..00000000 --- a/typescript/dist/esm/models/Volume1.d.ts +++ /dev/null @@ -1,32 +0,0 @@ -/** - * Geo Engine API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.9.0 - * Contact: dev@geoengine.de - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -/** - * - * @export - * @interface Volume1 - */ -export interface Volume1 { - /** - * - * @type {string} - * @memberof Volume1 - */ - volume: string; -} -/** - * Check if a given object implements the Volume1 interface. - */ -export declare function instanceOfVolume1(value: object): value is Volume1; -export declare function Volume1FromJSON(json: any): Volume1; -export declare function Volume1FromJSONTyped(json: any, ignoreDiscriminator: boolean): Volume1; -export declare function Volume1ToJSON(json: any): Volume1; -export declare function Volume1ToJSONTyped(value?: Volume1 | null, ignoreDiscriminator?: boolean): any; diff --git a/typescript/dist/esm/models/index.d.ts b/typescript/dist/esm/models/index.d.ts index 61609ffc..42d17814 100644 --- a/typescript/dist/esm/models/index.d.ts +++ b/typescript/dist/esm/models/index.d.ts @@ -27,9 +27,11 @@ export * from './CountAggregation'; export * from './CreateDataset'; export * from './CreateProject'; export * from './CsvHeader'; -export * from './Data1'; +export * from './Data'; export * from './DataId'; export * from './DataPath'; +export * from './DataPathUpload'; +export * from './DataPathVolume'; export * from './DataProviderResource'; export * from './DataUsage'; export * from './DataUsageSummary'; @@ -81,7 +83,10 @@ export * from './GridBoundingBox2D'; export * from './GridIdx2D'; export * from './Histogram'; export * from './HistogramBounds'; +export * from './HistogramBoundsValues'; export * from './HistogramBuckets'; +export * from './HistogramBucketsNumber'; +export * from './HistogramBucketsSquareRootChoiceRule'; export * from './HistogramParameters'; export * from './IdResponse'; export * from './InternalDataId'; @@ -126,20 +131,16 @@ export * from './MockPointSourceParameters'; export * from './MultiBandGdalSource'; export * from './MultiBandRasterColorizer'; export * from './MultiLineString'; -export * from './MultiLineString1'; export * from './MultiPoint'; -export * from './MultiPoint1'; export * from './MultiPolygon'; -export * from './MultiPolygon1'; export * from './MultipleRasterOrSingleVectorOperator'; export * from './MultipleRasterOrSingleVectorSource'; export * from './MultipleRasterSources'; export * from './Names'; export * from './NetCdfCfDataProviderDefinition'; -export * from './NoGeometry1'; -export * from './Number'; export * from './NumberParam'; export * from './OgrMetaData'; +export * from './OgrSource'; export * from './OgrSourceColumnSpec'; export * from './OgrSourceDataset'; export * from './OgrSourceDatasetTimeType'; @@ -152,6 +153,7 @@ export * from './OgrSourceDurationSpecInfinite'; export * from './OgrSourceDurationSpecValue'; export * from './OgrSourceDurationSpecZero'; export * from './OgrSourceErrorSpec'; +export * from './OgrSourceParameters'; export * from './OgrSourceTimeFormat'; export * from './OgrSourceTimeFormatAuto'; export * from './OgrSourceTimeFormatCustom'; @@ -221,6 +223,7 @@ export * from './SingleRasterOrVectorOperator'; export * from './SingleRasterOrVectorSource'; export * from './SingleRasterSource'; export * from './SingleVectorMultipleRasterSources'; +export * from './SingleVectorOrRasterSource'; export * from './SpatialBoundsDerive'; export * from './SpatialBoundsDeriveBounds'; export * from './SpatialBoundsDeriveDerive'; @@ -230,7 +233,6 @@ export * from './SpatialGridDescriptor'; export * from './SpatialGridDescriptorState'; export * from './SpatialPartition2D'; export * from './SpatialReferenceSpecification'; -export * from './SquareRootChoiceRule'; export * from './StacApiRetries'; export * from './StacQueryBuffer'; export * from './StaticColor'; @@ -262,6 +264,10 @@ export * from './TimeReference'; export * from './TimeStep'; export * from './TypedDataProviderDefinition'; export * from './TypedGeometry'; +export * from './TypedGeometryMultiLineString'; +export * from './TypedGeometryMultiPoint'; +export * from './TypedGeometryMultiPolygon'; +export * from './TypedGeometryNoGeometry'; export * from './TypedOperator'; export * from './TypedPlotOperator'; export * from './TypedPlotResultDescriptor'; @@ -277,7 +283,6 @@ export * from './UpdateLayer'; export * from './UpdateLayerCollection'; export * from './UpdateProject'; export * from './UpdateQuota'; -export * from './Upload'; export * from './UploadFileLayersResponse'; export * from './UploadFilesResponse'; export * from './UsageSummaryGranularity'; @@ -285,15 +290,12 @@ export * from './UserCredentials'; export * from './UserInfo'; export * from './UserRegistration'; export * from './UserSession'; -export * from './Values'; -export * from './ValuesValues'; export * from './VecUpdate'; export * from './VectorColumnInfo'; export * from './VectorDataType'; export * from './VectorOperator'; export * from './VectorResultDescriptor'; export * from './Volume'; -export * from './Volume1'; export * from './VolumeFileLayersResponse'; export * from './WcsRequest'; export * from './WcsService'; diff --git a/typescript/dist/esm/models/index.js b/typescript/dist/esm/models/index.js index 829e94e3..b89e84a1 100644 --- a/typescript/dist/esm/models/index.js +++ b/typescript/dist/esm/models/index.js @@ -29,9 +29,11 @@ export * from './CountAggregation'; export * from './CreateDataset'; export * from './CreateProject'; export * from './CsvHeader'; -export * from './Data1'; +export * from './Data'; export * from './DataId'; export * from './DataPath'; +export * from './DataPathUpload'; +export * from './DataPathVolume'; export * from './DataProviderResource'; export * from './DataUsage'; export * from './DataUsageSummary'; @@ -83,7 +85,10 @@ export * from './GridBoundingBox2D'; export * from './GridIdx2D'; export * from './Histogram'; export * from './HistogramBounds'; +export * from './HistogramBoundsValues'; export * from './HistogramBuckets'; +export * from './HistogramBucketsNumber'; +export * from './HistogramBucketsSquareRootChoiceRule'; export * from './HistogramParameters'; export * from './IdResponse'; export * from './InternalDataId'; @@ -128,20 +133,16 @@ export * from './MockPointSourceParameters'; export * from './MultiBandGdalSource'; export * from './MultiBandRasterColorizer'; export * from './MultiLineString'; -export * from './MultiLineString1'; export * from './MultiPoint'; -export * from './MultiPoint1'; export * from './MultiPolygon'; -export * from './MultiPolygon1'; export * from './MultipleRasterOrSingleVectorOperator'; export * from './MultipleRasterOrSingleVectorSource'; export * from './MultipleRasterSources'; export * from './Names'; export * from './NetCdfCfDataProviderDefinition'; -export * from './NoGeometry1'; -export * from './Number'; export * from './NumberParam'; export * from './OgrMetaData'; +export * from './OgrSource'; export * from './OgrSourceColumnSpec'; export * from './OgrSourceDataset'; export * from './OgrSourceDatasetTimeType'; @@ -154,6 +155,7 @@ export * from './OgrSourceDurationSpecInfinite'; export * from './OgrSourceDurationSpecValue'; export * from './OgrSourceDurationSpecZero'; export * from './OgrSourceErrorSpec'; +export * from './OgrSourceParameters'; export * from './OgrSourceTimeFormat'; export * from './OgrSourceTimeFormatAuto'; export * from './OgrSourceTimeFormatCustom'; @@ -223,6 +225,7 @@ export * from './SingleRasterOrVectorOperator'; export * from './SingleRasterOrVectorSource'; export * from './SingleRasterSource'; export * from './SingleVectorMultipleRasterSources'; +export * from './SingleVectorOrRasterSource'; export * from './SpatialBoundsDerive'; export * from './SpatialBoundsDeriveBounds'; export * from './SpatialBoundsDeriveDerive'; @@ -232,7 +235,6 @@ export * from './SpatialGridDescriptor'; export * from './SpatialGridDescriptorState'; export * from './SpatialPartition2D'; export * from './SpatialReferenceSpecification'; -export * from './SquareRootChoiceRule'; export * from './StacApiRetries'; export * from './StacQueryBuffer'; export * from './StaticColor'; @@ -264,6 +266,10 @@ export * from './TimeReference'; export * from './TimeStep'; export * from './TypedDataProviderDefinition'; export * from './TypedGeometry'; +export * from './TypedGeometryMultiLineString'; +export * from './TypedGeometryMultiPoint'; +export * from './TypedGeometryMultiPolygon'; +export * from './TypedGeometryNoGeometry'; export * from './TypedOperator'; export * from './TypedPlotOperator'; export * from './TypedPlotResultDescriptor'; @@ -279,7 +285,6 @@ export * from './UpdateLayer'; export * from './UpdateLayerCollection'; export * from './UpdateProject'; export * from './UpdateQuota'; -export * from './Upload'; export * from './UploadFileLayersResponse'; export * from './UploadFilesResponse'; export * from './UsageSummaryGranularity'; @@ -287,15 +292,12 @@ export * from './UserCredentials'; export * from './UserInfo'; export * from './UserRegistration'; export * from './UserSession'; -export * from './Values'; -export * from './ValuesValues'; export * from './VecUpdate'; export * from './VectorColumnInfo'; export * from './VectorDataType'; export * from './VectorOperator'; export * from './VectorResultDescriptor'; export * from './Volume'; -export * from './Volume1'; export * from './VolumeFileLayersResponse'; export * from './WcsRequest'; export * from './WcsService'; diff --git a/typescript/dist/models/Data.d.ts b/typescript/dist/models/Data.d.ts new file mode 100644 index 00000000..bba53178 --- /dev/null +++ b/typescript/dist/models/Data.d.ts @@ -0,0 +1,24 @@ +/** + * Geo Engine API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + */ +export declare const Data: { + readonly Data: "data"; +}; +export type Data = typeof Data[keyof typeof Data]; +export declare function instanceOfData(value: any): boolean; +export declare function DataFromJSON(json: any): Data; +export declare function DataFromJSONTyped(json: any, ignoreDiscriminator: boolean): Data; +export declare function DataToJSON(value?: Data | null): any; +export declare function DataToJSONTyped(value: any, ignoreDiscriminator: boolean): Data; diff --git a/typescript/dist/models/Data.js b/typescript/dist/models/Data.js new file mode 100644 index 00000000..590b1ad8 --- /dev/null +++ b/typescript/dist/models/Data.js @@ -0,0 +1,50 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.Data = void 0; +exports.instanceOfData = instanceOfData; +exports.DataFromJSON = DataFromJSON; +exports.DataFromJSONTyped = DataFromJSONTyped; +exports.DataToJSON = DataToJSON; +exports.DataToJSONTyped = DataToJSONTyped; +/** + * + * @export + */ +exports.Data = { + Data: 'data' +}; +function instanceOfData(value) { + for (const key in exports.Data) { + if (Object.prototype.hasOwnProperty.call(exports.Data, key)) { + if (exports.Data[key] === value) { + return true; + } + } + } + return false; +} +function DataFromJSON(json) { + return DataFromJSONTyped(json, false); +} +function DataFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function DataToJSON(value) { + return value; +} +function DataToJSONTyped(value, ignoreDiscriminator) { + return value; +} diff --git a/typescript/dist/models/Data1.d.ts b/typescript/dist/models/Data1.d.ts deleted file mode 100644 index 29100b96..00000000 --- a/typescript/dist/models/Data1.d.ts +++ /dev/null @@ -1,32 +0,0 @@ -/** - * Geo Engine API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.9.0 - * Contact: dev@geoengine.de - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -/** - * - * @export - * @interface Data1 - */ -export interface Data1 { - /** - * - * @type {any} - * @memberof Data1 - */ - data: any | null; -} -/** - * Check if a given object implements the Data1 interface. - */ -export declare function instanceOfData1(value: object): value is Data1; -export declare function Data1FromJSON(json: any): Data1; -export declare function Data1FromJSONTyped(json: any, ignoreDiscriminator: boolean): Data1; -export declare function Data1ToJSON(json: any): Data1; -export declare function Data1ToJSONTyped(value?: Data1 | null, ignoreDiscriminator?: boolean): any; diff --git a/typescript/dist/models/DataPath.d.ts b/typescript/dist/models/DataPath.d.ts index 6da2e2b2..dfa4e4e5 100644 --- a/typescript/dist/models/DataPath.d.ts +++ b/typescript/dist/models/DataPath.d.ts @@ -9,14 +9,14 @@ * https://openapi-generator.tech * Do not edit the class manually. */ -import type { Upload } from './Upload'; -import type { Volume1 } from './Volume1'; +import type { DataPathUpload } from './DataPathUpload'; +import type { DataPathVolume } from './DataPathVolume'; /** * @type DataPath * * @export */ -export type DataPath = Upload | Volume1; +export type DataPath = DataPathUpload | DataPathVolume; export declare function DataPathFromJSON(json: any): DataPath; export declare function DataPathFromJSONTyped(json: any, ignoreDiscriminator: boolean): DataPath; export declare function DataPathToJSON(json: any): any; diff --git a/typescript/dist/models/DataPath.js b/typescript/dist/models/DataPath.js index 47b24e09..48f77247 100644 --- a/typescript/dist/models/DataPath.js +++ b/typescript/dist/models/DataPath.js @@ -17,8 +17,8 @@ exports.DataPathFromJSON = DataPathFromJSON; exports.DataPathFromJSONTyped = DataPathFromJSONTyped; exports.DataPathToJSON = DataPathToJSON; exports.DataPathToJSONTyped = DataPathToJSONTyped; -const Upload_1 = require("./Upload"); -const Volume1_1 = require("./Volume1"); +const DataPathUpload_1 = require("./DataPathUpload"); +const DataPathVolume_1 = require("./DataPathVolume"); function DataPathFromJSON(json) { return DataPathFromJSONTyped(json, false); } @@ -29,11 +29,11 @@ function DataPathFromJSONTyped(json, ignoreDiscriminator) { if (typeof json !== 'object') { return json; } - if ((0, Upload_1.instanceOfUpload)(json)) { - return (0, Upload_1.UploadFromJSONTyped)(json, true); + if ((0, DataPathUpload_1.instanceOfDataPathUpload)(json)) { + return (0, DataPathUpload_1.DataPathUploadFromJSONTyped)(json, true); } - if ((0, Volume1_1.instanceOfVolume1)(json)) { - return (0, Volume1_1.Volume1FromJSONTyped)(json, true); + if ((0, DataPathVolume_1.instanceOfDataPathVolume)(json)) { + return (0, DataPathVolume_1.DataPathVolumeFromJSONTyped)(json, true); } return {}; } @@ -47,11 +47,11 @@ function DataPathToJSONTyped(value, ignoreDiscriminator = false) { if (typeof value !== 'object') { return value; } - if ((0, Upload_1.instanceOfUpload)(value)) { - return (0, Upload_1.UploadToJSON)(value); + if ((0, DataPathUpload_1.instanceOfDataPathUpload)(value)) { + return (0, DataPathUpload_1.DataPathUploadToJSON)(value); } - if ((0, Volume1_1.instanceOfVolume1)(value)) { - return (0, Volume1_1.Volume1ToJSON)(value); + if ((0, DataPathVolume_1.instanceOfDataPathVolume)(value)) { + return (0, DataPathVolume_1.DataPathVolumeToJSON)(value); } return {}; } diff --git a/typescript/dist/models/DataPathUpload.d.ts b/typescript/dist/models/DataPathUpload.d.ts new file mode 100644 index 00000000..c680fdfb --- /dev/null +++ b/typescript/dist/models/DataPathUpload.d.ts @@ -0,0 +1,32 @@ +/** + * Geo Engine API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface DataPathUpload + */ +export interface DataPathUpload { + /** + * + * @type {string} + * @memberof DataPathUpload + */ + upload: string; +} +/** + * Check if a given object implements the DataPathUpload interface. + */ +export declare function instanceOfDataPathUpload(value: object): value is DataPathUpload; +export declare function DataPathUploadFromJSON(json: any): DataPathUpload; +export declare function DataPathUploadFromJSONTyped(json: any, ignoreDiscriminator: boolean): DataPathUpload; +export declare function DataPathUploadToJSON(json: any): DataPathUpload; +export declare function DataPathUploadToJSONTyped(value?: DataPathUpload | null, ignoreDiscriminator?: boolean): any; diff --git a/typescript/dist/models/Upload.js b/typescript/dist/models/DataPathUpload.js similarity index 53% rename from typescript/dist/models/Upload.js rename to typescript/dist/models/DataPathUpload.js index 350f03b6..beb6503f 100644 --- a/typescript/dist/models/Upload.js +++ b/typescript/dist/models/DataPathUpload.js @@ -13,23 +13,23 @@ * Do not edit the class manually. */ Object.defineProperty(exports, "__esModule", { value: true }); -exports.instanceOfUpload = instanceOfUpload; -exports.UploadFromJSON = UploadFromJSON; -exports.UploadFromJSONTyped = UploadFromJSONTyped; -exports.UploadToJSON = UploadToJSON; -exports.UploadToJSONTyped = UploadToJSONTyped; +exports.instanceOfDataPathUpload = instanceOfDataPathUpload; +exports.DataPathUploadFromJSON = DataPathUploadFromJSON; +exports.DataPathUploadFromJSONTyped = DataPathUploadFromJSONTyped; +exports.DataPathUploadToJSON = DataPathUploadToJSON; +exports.DataPathUploadToJSONTyped = DataPathUploadToJSONTyped; /** - * Check if a given object implements the Upload interface. + * Check if a given object implements the DataPathUpload interface. */ -function instanceOfUpload(value) { +function instanceOfDataPathUpload(value) { if (!('upload' in value) || value['upload'] === undefined) return false; return true; } -function UploadFromJSON(json) { - return UploadFromJSONTyped(json, false); +function DataPathUploadFromJSON(json) { + return DataPathUploadFromJSONTyped(json, false); } -function UploadFromJSONTyped(json, ignoreDiscriminator) { +function DataPathUploadFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } @@ -37,10 +37,10 @@ function UploadFromJSONTyped(json, ignoreDiscriminator) { 'upload': json['upload'], }; } -function UploadToJSON(json) { - return UploadToJSONTyped(json, false); +function DataPathUploadToJSON(json) { + return DataPathUploadToJSONTyped(json, false); } -function UploadToJSONTyped(value, ignoreDiscriminator = false) { +function DataPathUploadToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } diff --git a/typescript/dist/models/DataPathVolume.d.ts b/typescript/dist/models/DataPathVolume.d.ts new file mode 100644 index 00000000..c8f37aea --- /dev/null +++ b/typescript/dist/models/DataPathVolume.d.ts @@ -0,0 +1,32 @@ +/** + * Geo Engine API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface DataPathVolume + */ +export interface DataPathVolume { + /** + * + * @type {string} + * @memberof DataPathVolume + */ + volume: string; +} +/** + * Check if a given object implements the DataPathVolume interface. + */ +export declare function instanceOfDataPathVolume(value: object): value is DataPathVolume; +export declare function DataPathVolumeFromJSON(json: any): DataPathVolume; +export declare function DataPathVolumeFromJSONTyped(json: any, ignoreDiscriminator: boolean): DataPathVolume; +export declare function DataPathVolumeToJSON(json: any): DataPathVolume; +export declare function DataPathVolumeToJSONTyped(value?: DataPathVolume | null, ignoreDiscriminator?: boolean): any; diff --git a/typescript/dist/models/Volume1.js b/typescript/dist/models/DataPathVolume.js similarity index 53% rename from typescript/dist/models/Volume1.js rename to typescript/dist/models/DataPathVolume.js index aeecdee3..fbbb843d 100644 --- a/typescript/dist/models/Volume1.js +++ b/typescript/dist/models/DataPathVolume.js @@ -13,23 +13,23 @@ * Do not edit the class manually. */ Object.defineProperty(exports, "__esModule", { value: true }); -exports.instanceOfVolume1 = instanceOfVolume1; -exports.Volume1FromJSON = Volume1FromJSON; -exports.Volume1FromJSONTyped = Volume1FromJSONTyped; -exports.Volume1ToJSON = Volume1ToJSON; -exports.Volume1ToJSONTyped = Volume1ToJSONTyped; +exports.instanceOfDataPathVolume = instanceOfDataPathVolume; +exports.DataPathVolumeFromJSON = DataPathVolumeFromJSON; +exports.DataPathVolumeFromJSONTyped = DataPathVolumeFromJSONTyped; +exports.DataPathVolumeToJSON = DataPathVolumeToJSON; +exports.DataPathVolumeToJSONTyped = DataPathVolumeToJSONTyped; /** - * Check if a given object implements the Volume1 interface. + * Check if a given object implements the DataPathVolume interface. */ -function instanceOfVolume1(value) { +function instanceOfDataPathVolume(value) { if (!('volume' in value) || value['volume'] === undefined) return false; return true; } -function Volume1FromJSON(json) { - return Volume1FromJSONTyped(json, false); +function DataPathVolumeFromJSON(json) { + return DataPathVolumeFromJSONTyped(json, false); } -function Volume1FromJSONTyped(json, ignoreDiscriminator) { +function DataPathVolumeFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } @@ -37,10 +37,10 @@ function Volume1FromJSONTyped(json, ignoreDiscriminator) { 'volume': json['volume'], }; } -function Volume1ToJSON(json) { - return Volume1ToJSONTyped(json, false); +function DataPathVolumeToJSON(json) { + return DataPathVolumeToJSONTyped(json, false); } -function Volume1ToJSONTyped(value, ignoreDiscriminator = false) { +function DataPathVolumeToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } diff --git a/typescript/dist/models/Histogram.d.ts b/typescript/dist/models/Histogram.d.ts index 738a5088..1c14d721 100644 --- a/typescript/dist/models/Histogram.d.ts +++ b/typescript/dist/models/Histogram.d.ts @@ -9,8 +9,8 @@ * https://openapi-generator.tech * Do not edit the class manually. */ +import type { SingleVectorOrRasterSource } from './SingleVectorOrRasterSource'; import type { HistogramParameters } from './HistogramParameters'; -import type { SingleRasterOrVectorSource } from './SingleRasterOrVectorSource'; /** * The `Histogram` is a _plot operator_ that computes a histogram plot either over attributes of a vector dataset or values of a raster source. * The output is a plot in [Vega-Lite](https://vega.github.io/vega-lite/) specification. @@ -40,10 +40,10 @@ export interface Histogram { params: HistogramParameters; /** * - * @type {SingleRasterOrVectorSource} + * @type {SingleVectorOrRasterSource} * @memberof Histogram */ - sources: SingleRasterOrVectorSource; + sources: SingleVectorOrRasterSource; /** * * @type {HistogramTypeEnum} diff --git a/typescript/dist/models/Histogram.js b/typescript/dist/models/Histogram.js index 8154edde..f121785d 100644 --- a/typescript/dist/models/Histogram.js +++ b/typescript/dist/models/Histogram.js @@ -19,8 +19,8 @@ exports.HistogramFromJSON = HistogramFromJSON; exports.HistogramFromJSONTyped = HistogramFromJSONTyped; exports.HistogramToJSON = HistogramToJSON; exports.HistogramToJSONTyped = HistogramToJSONTyped; +const SingleVectorOrRasterSource_1 = require("./SingleVectorOrRasterSource"); const HistogramParameters_1 = require("./HistogramParameters"); -const SingleRasterOrVectorSource_1 = require("./SingleRasterOrVectorSource"); /** * @export */ @@ -48,7 +48,7 @@ function HistogramFromJSONTyped(json, ignoreDiscriminator) { } return { 'params': (0, HistogramParameters_1.HistogramParametersFromJSON)(json['params']), - 'sources': (0, SingleRasterOrVectorSource_1.SingleRasterOrVectorSourceFromJSON)(json['sources']), + 'sources': (0, SingleVectorOrRasterSource_1.SingleVectorOrRasterSourceFromJSON)(json['sources']), 'type': json['type'], }; } @@ -61,7 +61,7 @@ function HistogramToJSONTyped(value, ignoreDiscriminator = false) { } return { 'params': (0, HistogramParameters_1.HistogramParametersToJSON)(value['params']), - 'sources': (0, SingleRasterOrVectorSource_1.SingleRasterOrVectorSourceToJSON)(value['sources']), + 'sources': (0, SingleVectorOrRasterSource_1.SingleVectorOrRasterSourceToJSON)(value['sources']), 'type': value['type'], }; } diff --git a/typescript/dist/models/HistogramBounds.d.ts b/typescript/dist/models/HistogramBounds.d.ts index 98f9f48d..51b47dce 100644 --- a/typescript/dist/models/HistogramBounds.d.ts +++ b/typescript/dist/models/HistogramBounds.d.ts @@ -9,14 +9,14 @@ * https://openapi-generator.tech * Do not edit the class manually. */ -import type { Data1 } from './Data1'; -import type { Values } from './Values'; +import type { Data } from './Data'; +import type { HistogramBoundsValues } from './HistogramBoundsValues'; /** * @type HistogramBounds * * @export */ -export type HistogramBounds = Data1 | Values; +export type HistogramBounds = Data | HistogramBoundsValues; export declare function HistogramBoundsFromJSON(json: any): HistogramBounds; export declare function HistogramBoundsFromJSONTyped(json: any, ignoreDiscriminator: boolean): HistogramBounds; export declare function HistogramBoundsToJSON(json: any): any; diff --git a/typescript/dist/models/HistogramBounds.js b/typescript/dist/models/HistogramBounds.js index b4e7cc68..6c067db0 100644 --- a/typescript/dist/models/HistogramBounds.js +++ b/typescript/dist/models/HistogramBounds.js @@ -17,8 +17,8 @@ exports.HistogramBoundsFromJSON = HistogramBoundsFromJSON; exports.HistogramBoundsFromJSONTyped = HistogramBoundsFromJSONTyped; exports.HistogramBoundsToJSON = HistogramBoundsToJSON; exports.HistogramBoundsToJSONTyped = HistogramBoundsToJSONTyped; -const Data1_1 = require("./Data1"); -const Values_1 = require("./Values"); +const Data_1 = require("./Data"); +const HistogramBoundsValues_1 = require("./HistogramBoundsValues"); function HistogramBoundsFromJSON(json) { return HistogramBoundsFromJSONTyped(json, false); } @@ -29,11 +29,11 @@ function HistogramBoundsFromJSONTyped(json, ignoreDiscriminator) { if (typeof json !== 'object') { return json; } - if ((0, Data1_1.instanceOfData1)(json)) { - return (0, Data1_1.Data1FromJSONTyped)(json, true); + if ((0, Data_1.instanceOfData)(json)) { + return (0, Data_1.DataFromJSONTyped)(json, true); } - if ((0, Values_1.instanceOfValues)(json)) { - return (0, Values_1.ValuesFromJSONTyped)(json, true); + if ((0, HistogramBoundsValues_1.instanceOfHistogramBoundsValues)(json)) { + return (0, HistogramBoundsValues_1.HistogramBoundsValuesFromJSONTyped)(json, true); } return {}; } @@ -47,11 +47,11 @@ function HistogramBoundsToJSONTyped(value, ignoreDiscriminator = false) { if (typeof value !== 'object') { return value; } - if ((0, Data1_1.instanceOfData1)(value)) { - return (0, Data1_1.Data1ToJSON)(value); + if ((0, Data_1.instanceOfData)(value)) { + return (0, Data_1.DataToJSON)(value); } - if ((0, Values_1.instanceOfValues)(value)) { - return (0, Values_1.ValuesToJSON)(value); + if ((0, HistogramBoundsValues_1.instanceOfHistogramBoundsValues)(value)) { + return (0, HistogramBoundsValues_1.HistogramBoundsValuesToJSON)(value); } return {}; } diff --git a/typescript/dist/models/HistogramBoundsValues.d.ts b/typescript/dist/models/HistogramBoundsValues.d.ts new file mode 100644 index 00000000..1573650d --- /dev/null +++ b/typescript/dist/models/HistogramBoundsValues.d.ts @@ -0,0 +1,38 @@ +/** + * Geo Engine API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface HistogramBoundsValues + */ +export interface HistogramBoundsValues { + /** + * + * @type {number} + * @memberof HistogramBoundsValues + */ + max: number; + /** + * + * @type {number} + * @memberof HistogramBoundsValues + */ + min: number; +} +/** + * Check if a given object implements the HistogramBoundsValues interface. + */ +export declare function instanceOfHistogramBoundsValues(value: object): value is HistogramBoundsValues; +export declare function HistogramBoundsValuesFromJSON(json: any): HistogramBoundsValues; +export declare function HistogramBoundsValuesFromJSONTyped(json: any, ignoreDiscriminator: boolean): HistogramBoundsValues; +export declare function HistogramBoundsValuesToJSON(json: any): HistogramBoundsValues; +export declare function HistogramBoundsValuesToJSONTyped(value?: HistogramBoundsValues | null, ignoreDiscriminator?: boolean): any; diff --git a/typescript/dist/models/ValuesValues.js b/typescript/dist/models/HistogramBoundsValues.js similarity index 52% rename from typescript/dist/models/ValuesValues.js rename to typescript/dist/models/HistogramBoundsValues.js index d415fa23..d140dd23 100644 --- a/typescript/dist/models/ValuesValues.js +++ b/typescript/dist/models/HistogramBoundsValues.js @@ -13,25 +13,25 @@ * Do not edit the class manually. */ Object.defineProperty(exports, "__esModule", { value: true }); -exports.instanceOfValuesValues = instanceOfValuesValues; -exports.ValuesValuesFromJSON = ValuesValuesFromJSON; -exports.ValuesValuesFromJSONTyped = ValuesValuesFromJSONTyped; -exports.ValuesValuesToJSON = ValuesValuesToJSON; -exports.ValuesValuesToJSONTyped = ValuesValuesToJSONTyped; +exports.instanceOfHistogramBoundsValues = instanceOfHistogramBoundsValues; +exports.HistogramBoundsValuesFromJSON = HistogramBoundsValuesFromJSON; +exports.HistogramBoundsValuesFromJSONTyped = HistogramBoundsValuesFromJSONTyped; +exports.HistogramBoundsValuesToJSON = HistogramBoundsValuesToJSON; +exports.HistogramBoundsValuesToJSONTyped = HistogramBoundsValuesToJSONTyped; /** - * Check if a given object implements the ValuesValues interface. + * Check if a given object implements the HistogramBoundsValues interface. */ -function instanceOfValuesValues(value) { +function instanceOfHistogramBoundsValues(value) { if (!('max' in value) || value['max'] === undefined) return false; if (!('min' in value) || value['min'] === undefined) return false; return true; } -function ValuesValuesFromJSON(json) { - return ValuesValuesFromJSONTyped(json, false); +function HistogramBoundsValuesFromJSON(json) { + return HistogramBoundsValuesFromJSONTyped(json, false); } -function ValuesValuesFromJSONTyped(json, ignoreDiscriminator) { +function HistogramBoundsValuesFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } @@ -40,10 +40,10 @@ function ValuesValuesFromJSONTyped(json, ignoreDiscriminator) { 'min': json['min'], }; } -function ValuesValuesToJSON(json) { - return ValuesValuesToJSONTyped(json, false); +function HistogramBoundsValuesToJSON(json) { + return HistogramBoundsValuesToJSONTyped(json, false); } -function ValuesValuesToJSONTyped(value, ignoreDiscriminator = false) { +function HistogramBoundsValuesToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } diff --git a/typescript/dist/models/HistogramBuckets.d.ts b/typescript/dist/models/HistogramBuckets.d.ts index 358b2818..7f4067f5 100644 --- a/typescript/dist/models/HistogramBuckets.d.ts +++ b/typescript/dist/models/HistogramBuckets.d.ts @@ -9,14 +9,18 @@ * https://openapi-generator.tech * Do not edit the class manually. */ -import type { Number } from './Number'; -import type { SquareRootChoiceRule } from './SquareRootChoiceRule'; +import type { HistogramBucketsNumber } from './HistogramBucketsNumber'; +import type { HistogramBucketsSquareRootChoiceRule } from './HistogramBucketsSquareRootChoiceRule'; /** * @type HistogramBuckets * * @export */ -export type HistogramBuckets = Number | SquareRootChoiceRule; +export type HistogramBuckets = { + type: 'number'; +} & HistogramBucketsNumber | { + type: 'squareRootChoiceRule'; +} & HistogramBucketsSquareRootChoiceRule; export declare function HistogramBucketsFromJSON(json: any): HistogramBuckets; export declare function HistogramBucketsFromJSONTyped(json: any, ignoreDiscriminator: boolean): HistogramBuckets; export declare function HistogramBucketsToJSON(json: any): any; diff --git a/typescript/dist/models/HistogramBuckets.js b/typescript/dist/models/HistogramBuckets.js index 5be722d6..900a82e5 100644 --- a/typescript/dist/models/HistogramBuckets.js +++ b/typescript/dist/models/HistogramBuckets.js @@ -17,8 +17,8 @@ exports.HistogramBucketsFromJSON = HistogramBucketsFromJSON; exports.HistogramBucketsFromJSONTyped = HistogramBucketsFromJSONTyped; exports.HistogramBucketsToJSON = HistogramBucketsToJSON; exports.HistogramBucketsToJSONTyped = HistogramBucketsToJSONTyped; -const Number_1 = require("./Number"); -const SquareRootChoiceRule_1 = require("./SquareRootChoiceRule"); +const HistogramBucketsNumber_1 = require("./HistogramBucketsNumber"); +const HistogramBucketsSquareRootChoiceRule_1 = require("./HistogramBucketsSquareRootChoiceRule"); function HistogramBucketsFromJSON(json) { return HistogramBucketsFromJSONTyped(json, false); } @@ -26,16 +26,14 @@ function HistogramBucketsFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } - if (typeof json !== 'object') { - return json; - } - if ((0, Number_1.instanceOfNumber)(json)) { - return (0, Number_1.NumberFromJSONTyped)(json, true); - } - if ((0, SquareRootChoiceRule_1.instanceOfSquareRootChoiceRule)(json)) { - return (0, SquareRootChoiceRule_1.SquareRootChoiceRuleFromJSONTyped)(json, true); + switch (json['type']) { + case 'number': + return Object.assign({}, (0, HistogramBucketsNumber_1.HistogramBucketsNumberFromJSONTyped)(json, true), { type: 'number' }); + case 'squareRootChoiceRule': + return Object.assign({}, (0, HistogramBucketsSquareRootChoiceRule_1.HistogramBucketsSquareRootChoiceRuleFromJSONTyped)(json, true), { type: 'squareRootChoiceRule' }); + default: + return json; } - return {}; } function HistogramBucketsToJSON(json) { return HistogramBucketsToJSONTyped(json, false); @@ -44,14 +42,12 @@ function HistogramBucketsToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } - if (typeof value !== 'object') { - return value; - } - if ((0, Number_1.instanceOfNumber)(value)) { - return (0, Number_1.NumberToJSON)(value); - } - if ((0, SquareRootChoiceRule_1.instanceOfSquareRootChoiceRule)(value)) { - return (0, SquareRootChoiceRule_1.SquareRootChoiceRuleToJSON)(value); + switch (value['type']) { + case 'number': + return Object.assign({}, (0, HistogramBucketsNumber_1.HistogramBucketsNumberToJSON)(value), { type: 'number' }); + case 'squareRootChoiceRule': + return Object.assign({}, (0, HistogramBucketsSquareRootChoiceRule_1.HistogramBucketsSquareRootChoiceRuleToJSON)(value), { type: 'squareRootChoiceRule' }); + default: + return value; } - return {}; } diff --git a/typescript/dist/models/HistogramBucketsNumber.d.ts b/typescript/dist/models/HistogramBucketsNumber.d.ts new file mode 100644 index 00000000..cca9cc87 --- /dev/null +++ b/typescript/dist/models/HistogramBucketsNumber.d.ts @@ -0,0 +1,45 @@ +/** + * Geo Engine API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface HistogramBucketsNumber + */ +export interface HistogramBucketsNumber { + /** + * + * @type {HistogramBucketsNumberTypeEnum} + * @memberof HistogramBucketsNumber + */ + type: HistogramBucketsNumberTypeEnum; + /** + * + * @type {number} + * @memberof HistogramBucketsNumber + */ + value: number; +} +/** + * @export + */ +export declare const HistogramBucketsNumberTypeEnum: { + readonly Number: "number"; +}; +export type HistogramBucketsNumberTypeEnum = typeof HistogramBucketsNumberTypeEnum[keyof typeof HistogramBucketsNumberTypeEnum]; +/** + * Check if a given object implements the HistogramBucketsNumber interface. + */ +export declare function instanceOfHistogramBucketsNumber(value: object): value is HistogramBucketsNumber; +export declare function HistogramBucketsNumberFromJSON(json: any): HistogramBucketsNumber; +export declare function HistogramBucketsNumberFromJSONTyped(json: any, ignoreDiscriminator: boolean): HistogramBucketsNumber; +export declare function HistogramBucketsNumberToJSON(json: any): HistogramBucketsNumber; +export declare function HistogramBucketsNumberToJSONTyped(value?: HistogramBucketsNumber | null, ignoreDiscriminator?: boolean): any; diff --git a/typescript/dist/models/Number.js b/typescript/dist/models/HistogramBucketsNumber.js similarity index 51% rename from typescript/dist/models/Number.js rename to typescript/dist/models/HistogramBucketsNumber.js index 786af976..2860bd7b 100644 --- a/typescript/dist/models/Number.js +++ b/typescript/dist/models/HistogramBucketsNumber.js @@ -13,32 +13,32 @@ * Do not edit the class manually. */ Object.defineProperty(exports, "__esModule", { value: true }); -exports.NumberTypeEnum = void 0; -exports.instanceOfNumber = instanceOfNumber; -exports.NumberFromJSON = NumberFromJSON; -exports.NumberFromJSONTyped = NumberFromJSONTyped; -exports.NumberToJSON = NumberToJSON; -exports.NumberToJSONTyped = NumberToJSONTyped; +exports.HistogramBucketsNumberTypeEnum = void 0; +exports.instanceOfHistogramBucketsNumber = instanceOfHistogramBucketsNumber; +exports.HistogramBucketsNumberFromJSON = HistogramBucketsNumberFromJSON; +exports.HistogramBucketsNumberFromJSONTyped = HistogramBucketsNumberFromJSONTyped; +exports.HistogramBucketsNumberToJSON = HistogramBucketsNumberToJSON; +exports.HistogramBucketsNumberToJSONTyped = HistogramBucketsNumberToJSONTyped; /** * @export */ -exports.NumberTypeEnum = { +exports.HistogramBucketsNumberTypeEnum = { Number: 'number' }; /** - * Check if a given object implements the Number interface. + * Check if a given object implements the HistogramBucketsNumber interface. */ -function instanceOfNumber(value) { +function instanceOfHistogramBucketsNumber(value) { if (!('type' in value) || value['type'] === undefined) return false; if (!('value' in value) || value['value'] === undefined) return false; return true; } -function NumberFromJSON(json) { - return NumberFromJSONTyped(json, false); +function HistogramBucketsNumberFromJSON(json) { + return HistogramBucketsNumberFromJSONTyped(json, false); } -function NumberFromJSONTyped(json, ignoreDiscriminator) { +function HistogramBucketsNumberFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } @@ -47,10 +47,10 @@ function NumberFromJSONTyped(json, ignoreDiscriminator) { 'value': json['value'], }; } -function NumberToJSON(json) { - return NumberToJSONTyped(json, false); +function HistogramBucketsNumberToJSON(json) { + return HistogramBucketsNumberToJSONTyped(json, false); } -function NumberToJSONTyped(value, ignoreDiscriminator = false) { +function HistogramBucketsNumberToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } diff --git a/typescript/dist/models/HistogramBucketsSquareRootChoiceRule.d.ts b/typescript/dist/models/HistogramBucketsSquareRootChoiceRule.d.ts new file mode 100644 index 00000000..8b276ebc --- /dev/null +++ b/typescript/dist/models/HistogramBucketsSquareRootChoiceRule.d.ts @@ -0,0 +1,45 @@ +/** + * Geo Engine API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface HistogramBucketsSquareRootChoiceRule + */ +export interface HistogramBucketsSquareRootChoiceRule { + /** + * + * @type {number} + * @memberof HistogramBucketsSquareRootChoiceRule + */ + maxNumberOfBuckets?: number; + /** + * + * @type {HistogramBucketsSquareRootChoiceRuleTypeEnum} + * @memberof HistogramBucketsSquareRootChoiceRule + */ + type: HistogramBucketsSquareRootChoiceRuleTypeEnum; +} +/** + * @export + */ +export declare const HistogramBucketsSquareRootChoiceRuleTypeEnum: { + readonly SquareRootChoiceRule: "squareRootChoiceRule"; +}; +export type HistogramBucketsSquareRootChoiceRuleTypeEnum = typeof HistogramBucketsSquareRootChoiceRuleTypeEnum[keyof typeof HistogramBucketsSquareRootChoiceRuleTypeEnum]; +/** + * Check if a given object implements the HistogramBucketsSquareRootChoiceRule interface. + */ +export declare function instanceOfHistogramBucketsSquareRootChoiceRule(value: object): value is HistogramBucketsSquareRootChoiceRule; +export declare function HistogramBucketsSquareRootChoiceRuleFromJSON(json: any): HistogramBucketsSquareRootChoiceRule; +export declare function HistogramBucketsSquareRootChoiceRuleFromJSONTyped(json: any, ignoreDiscriminator: boolean): HistogramBucketsSquareRootChoiceRule; +export declare function HistogramBucketsSquareRootChoiceRuleToJSON(json: any): HistogramBucketsSquareRootChoiceRule; +export declare function HistogramBucketsSquareRootChoiceRuleToJSONTyped(value?: HistogramBucketsSquareRootChoiceRule | null, ignoreDiscriminator?: boolean): any; diff --git a/typescript/dist/models/HistogramBucketsSquareRootChoiceRule.js b/typescript/dist/models/HistogramBucketsSquareRootChoiceRule.js new file mode 100644 index 00000000..35a13bdf --- /dev/null +++ b/typescript/dist/models/HistogramBucketsSquareRootChoiceRule.js @@ -0,0 +1,59 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.HistogramBucketsSquareRootChoiceRuleTypeEnum = void 0; +exports.instanceOfHistogramBucketsSquareRootChoiceRule = instanceOfHistogramBucketsSquareRootChoiceRule; +exports.HistogramBucketsSquareRootChoiceRuleFromJSON = HistogramBucketsSquareRootChoiceRuleFromJSON; +exports.HistogramBucketsSquareRootChoiceRuleFromJSONTyped = HistogramBucketsSquareRootChoiceRuleFromJSONTyped; +exports.HistogramBucketsSquareRootChoiceRuleToJSON = HistogramBucketsSquareRootChoiceRuleToJSON; +exports.HistogramBucketsSquareRootChoiceRuleToJSONTyped = HistogramBucketsSquareRootChoiceRuleToJSONTyped; +/** + * @export + */ +exports.HistogramBucketsSquareRootChoiceRuleTypeEnum = { + SquareRootChoiceRule: 'squareRootChoiceRule' +}; +/** + * Check if a given object implements the HistogramBucketsSquareRootChoiceRule interface. + */ +function instanceOfHistogramBucketsSquareRootChoiceRule(value) { + if (!('type' in value) || value['type'] === undefined) + return false; + return true; +} +function HistogramBucketsSquareRootChoiceRuleFromJSON(json) { + return HistogramBucketsSquareRootChoiceRuleFromJSONTyped(json, false); +} +function HistogramBucketsSquareRootChoiceRuleFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'maxNumberOfBuckets': json['maxNumberOfBuckets'] == null ? undefined : json['maxNumberOfBuckets'], + 'type': json['type'], + }; +} +function HistogramBucketsSquareRootChoiceRuleToJSON(json) { + return HistogramBucketsSquareRootChoiceRuleToJSONTyped(json, false); +} +function HistogramBucketsSquareRootChoiceRuleToJSONTyped(value, ignoreDiscriminator = false) { + if (value == null) { + return value; + } + return { + 'maxNumberOfBuckets': value['maxNumberOfBuckets'], + 'type': value['type'], + }; +} diff --git a/typescript/dist/models/HistogramParameters.d.ts b/typescript/dist/models/HistogramParameters.d.ts index 072472b1..d9cfcb5d 100644 --- a/typescript/dist/models/HistogramParameters.d.ts +++ b/typescript/dist/models/HistogramParameters.d.ts @@ -18,13 +18,8 @@ import type { HistogramBuckets } from './HistogramBuckets'; */ export interface HistogramParameters { /** - * Name of the (numeric) vector attribute or raster band to compute the histogram on. - * @type {string} - * @memberof HistogramParameters - */ - attributeName: string; - /** - * If `data`, it computes the bounds of the underlying data. If `values`, one can specify custom bounds. + * If `data`, it computes the bounds of the underlying data. + * If `{ "min": ..., "max": ... }`, one can specify custom bounds. * @type {HistogramBounds} * @memberof HistogramParameters */ @@ -35,6 +30,12 @@ export interface HistogramParameters { * @memberof HistogramParameters */ buckets: HistogramBuckets; + /** + * Name of the (numeric) vector attribute or raster band to compute the histogram on. + * @type {string} + * @memberof HistogramParameters + */ + columnName: string; /** * Flag, if the histogram should have user interactions for a range selection. It is `false` by default. * @type {boolean} diff --git a/typescript/dist/models/HistogramParameters.js b/typescript/dist/models/HistogramParameters.js index 553847dc..d2f32b3c 100644 --- a/typescript/dist/models/HistogramParameters.js +++ b/typescript/dist/models/HistogramParameters.js @@ -24,12 +24,12 @@ const HistogramBuckets_1 = require("./HistogramBuckets"); * Check if a given object implements the HistogramParameters interface. */ function instanceOfHistogramParameters(value) { - if (!('attributeName' in value) || value['attributeName'] === undefined) - return false; if (!('bounds' in value) || value['bounds'] === undefined) return false; if (!('buckets' in value) || value['buckets'] === undefined) return false; + if (!('columnName' in value) || value['columnName'] === undefined) + return false; return true; } function HistogramParametersFromJSON(json) { @@ -40,9 +40,9 @@ function HistogramParametersFromJSONTyped(json, ignoreDiscriminator) { return json; } return { - 'attributeName': json['attributeName'], 'bounds': (0, HistogramBounds_1.HistogramBoundsFromJSON)(json['bounds']), 'buckets': (0, HistogramBuckets_1.HistogramBucketsFromJSON)(json['buckets']), + 'columnName': json['columnName'], 'interactive': json['interactive'] == null ? undefined : json['interactive'], }; } @@ -54,9 +54,9 @@ function HistogramParametersToJSONTyped(value, ignoreDiscriminator = false) { return value; } return { - 'attributeName': value['attributeName'], 'bounds': (0, HistogramBounds_1.HistogramBoundsToJSON)(value['bounds']), 'buckets': (0, HistogramBuckets_1.HistogramBucketsToJSON)(value['buckets']), + 'columnName': value['columnName'], 'interactive': value['interactive'], }; } diff --git a/typescript/dist/models/MultiLineString1.d.ts b/typescript/dist/models/MultiLineString1.d.ts deleted file mode 100644 index bdac3628..00000000 --- a/typescript/dist/models/MultiLineString1.d.ts +++ /dev/null @@ -1,33 +0,0 @@ -/** - * Geo Engine API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.9.0 - * Contact: dev@geoengine.de - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -import type { MultiLineString } from './MultiLineString'; -/** - * - * @export - * @interface MultiLineString1 - */ -export interface MultiLineString1 { - /** - * - * @type {MultiLineString} - * @memberof MultiLineString1 - */ - multiLineString: MultiLineString; -} -/** - * Check if a given object implements the MultiLineString1 interface. - */ -export declare function instanceOfMultiLineString1(value: object): value is MultiLineString1; -export declare function MultiLineString1FromJSON(json: any): MultiLineString1; -export declare function MultiLineString1FromJSONTyped(json: any, ignoreDiscriminator: boolean): MultiLineString1; -export declare function MultiLineString1ToJSON(json: any): MultiLineString1; -export declare function MultiLineString1ToJSONTyped(value?: MultiLineString1 | null, ignoreDiscriminator?: boolean): any; diff --git a/typescript/dist/models/MultiPoint1.d.ts b/typescript/dist/models/MultiPoint1.d.ts deleted file mode 100644 index 2b106fa1..00000000 --- a/typescript/dist/models/MultiPoint1.d.ts +++ /dev/null @@ -1,33 +0,0 @@ -/** - * Geo Engine API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.9.0 - * Contact: dev@geoengine.de - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -import type { MultiPoint } from './MultiPoint'; -/** - * - * @export - * @interface MultiPoint1 - */ -export interface MultiPoint1 { - /** - * - * @type {MultiPoint} - * @memberof MultiPoint1 - */ - multiPoint: MultiPoint; -} -/** - * Check if a given object implements the MultiPoint1 interface. - */ -export declare function instanceOfMultiPoint1(value: object): value is MultiPoint1; -export declare function MultiPoint1FromJSON(json: any): MultiPoint1; -export declare function MultiPoint1FromJSONTyped(json: any, ignoreDiscriminator: boolean): MultiPoint1; -export declare function MultiPoint1ToJSON(json: any): MultiPoint1; -export declare function MultiPoint1ToJSONTyped(value?: MultiPoint1 | null, ignoreDiscriminator?: boolean): any; diff --git a/typescript/dist/models/MultiPolygon1.d.ts b/typescript/dist/models/MultiPolygon1.d.ts deleted file mode 100644 index d9855ea5..00000000 --- a/typescript/dist/models/MultiPolygon1.d.ts +++ /dev/null @@ -1,33 +0,0 @@ -/** - * Geo Engine API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.9.0 - * Contact: dev@geoengine.de - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -import type { MultiPolygon } from './MultiPolygon'; -/** - * - * @export - * @interface MultiPolygon1 - */ -export interface MultiPolygon1 { - /** - * - * @type {MultiPolygon} - * @memberof MultiPolygon1 - */ - multiPolygon: MultiPolygon; -} -/** - * Check if a given object implements the MultiPolygon1 interface. - */ -export declare function instanceOfMultiPolygon1(value: object): value is MultiPolygon1; -export declare function MultiPolygon1FromJSON(json: any): MultiPolygon1; -export declare function MultiPolygon1FromJSONTyped(json: any, ignoreDiscriminator: boolean): MultiPolygon1; -export declare function MultiPolygon1ToJSON(json: any): MultiPolygon1; -export declare function MultiPolygon1ToJSONTyped(value?: MultiPolygon1 | null, ignoreDiscriminator?: boolean): any; diff --git a/typescript/dist/models/NoGeometry1.d.ts b/typescript/dist/models/NoGeometry1.d.ts deleted file mode 100644 index 6239e974..00000000 --- a/typescript/dist/models/NoGeometry1.d.ts +++ /dev/null @@ -1,32 +0,0 @@ -/** - * Geo Engine API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.9.0 - * Contact: dev@geoengine.de - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -/** - * - * @export - * @interface NoGeometry1 - */ -export interface NoGeometry1 { - /** - * - * @type {any} - * @memberof NoGeometry1 - */ - data: any | null; -} -/** - * Check if a given object implements the NoGeometry1 interface. - */ -export declare function instanceOfNoGeometry1(value: object): value is NoGeometry1; -export declare function NoGeometry1FromJSON(json: any): NoGeometry1; -export declare function NoGeometry1FromJSONTyped(json: any, ignoreDiscriminator: boolean): NoGeometry1; -export declare function NoGeometry1ToJSON(json: any): NoGeometry1; -export declare function NoGeometry1ToJSONTyped(value?: NoGeometry1 | null, ignoreDiscriminator?: boolean): any; diff --git a/typescript/dist/models/NoGeometry1.js b/typescript/dist/models/NoGeometry1.js deleted file mode 100644 index 00300d33..00000000 --- a/typescript/dist/models/NoGeometry1.js +++ /dev/null @@ -1,50 +0,0 @@ -"use strict"; -/* tslint:disable */ -/* eslint-disable */ -/** - * Geo Engine API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.9.0 - * Contact: dev@geoengine.de - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.instanceOfNoGeometry1 = instanceOfNoGeometry1; -exports.NoGeometry1FromJSON = NoGeometry1FromJSON; -exports.NoGeometry1FromJSONTyped = NoGeometry1FromJSONTyped; -exports.NoGeometry1ToJSON = NoGeometry1ToJSON; -exports.NoGeometry1ToJSONTyped = NoGeometry1ToJSONTyped; -/** - * Check if a given object implements the NoGeometry1 interface. - */ -function instanceOfNoGeometry1(value) { - if (!('data' in value) || value['data'] === undefined) - return false; - return true; -} -function NoGeometry1FromJSON(json) { - return NoGeometry1FromJSONTyped(json, false); -} -function NoGeometry1FromJSONTyped(json, ignoreDiscriminator) { - if (json == null) { - return json; - } - return { - 'data': json['Data'], - }; -} -function NoGeometry1ToJSON(json) { - return NoGeometry1ToJSONTyped(json, false); -} -function NoGeometry1ToJSONTyped(value, ignoreDiscriminator = false) { - if (value == null) { - return value; - } - return { - 'Data': value['data'], - }; -} diff --git a/typescript/dist/models/Number.d.ts b/typescript/dist/models/Number.d.ts deleted file mode 100644 index 5c37975a..00000000 --- a/typescript/dist/models/Number.d.ts +++ /dev/null @@ -1,45 +0,0 @@ -/** - * Geo Engine API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.9.0 - * Contact: dev@geoengine.de - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -/** - * - * @export - * @interface Number - */ -export interface Number { - /** - * - * @type {NumberTypeEnum} - * @memberof Number - */ - type: NumberTypeEnum; - /** - * - * @type {number} - * @memberof Number - */ - value: number; -} -/** - * @export - */ -export declare const NumberTypeEnum: { - readonly Number: "number"; -}; -export type NumberTypeEnum = typeof NumberTypeEnum[keyof typeof NumberTypeEnum]; -/** - * Check if a given object implements the Number interface. - */ -export declare function instanceOfNumber(value: object): value is Number; -export declare function NumberFromJSON(json: any): Number; -export declare function NumberFromJSONTyped(json: any, ignoreDiscriminator: boolean): Number; -export declare function NumberToJSON(json: any): Number; -export declare function NumberToJSONTyped(value?: Number | null, ignoreDiscriminator?: boolean): any; diff --git a/typescript/dist/models/OgrSource.d.ts b/typescript/dist/models/OgrSource.d.ts new file mode 100644 index 00000000..1287cf84 --- /dev/null +++ b/typescript/dist/models/OgrSource.d.ts @@ -0,0 +1,52 @@ +/** + * Geo Engine API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { OgrSourceParameters } from './OgrSourceParameters'; +/** + * The [`OgrSource`] is a source operator that reads vector data using OGR (part of GDAL). + * The counterpart for raster data is the [`GdalSource`]. + * + * ## Errors + * + * If the given dataset does not exist or is not readable, an error is thrown. + * + * @export + * @interface OgrSource + */ +export interface OgrSource { + /** + * + * @type {OgrSourceParameters} + * @memberof OgrSource + */ + params: OgrSourceParameters; + /** + * + * @type {OgrSourceTypeEnum} + * @memberof OgrSource + */ + type: OgrSourceTypeEnum; +} +/** + * @export + */ +export declare const OgrSourceTypeEnum: { + readonly OgrSource: "OgrSource"; +}; +export type OgrSourceTypeEnum = typeof OgrSourceTypeEnum[keyof typeof OgrSourceTypeEnum]; +/** + * Check if a given object implements the OgrSource interface. + */ +export declare function instanceOfOgrSource(value: object): value is OgrSource; +export declare function OgrSourceFromJSON(json: any): OgrSource; +export declare function OgrSourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): OgrSource; +export declare function OgrSourceToJSON(json: any): OgrSource; +export declare function OgrSourceToJSONTyped(value?: OgrSource | null, ignoreDiscriminator?: boolean): any; diff --git a/typescript/dist/models/OgrSource.js b/typescript/dist/models/OgrSource.js new file mode 100644 index 00000000..475493b7 --- /dev/null +++ b/typescript/dist/models/OgrSource.js @@ -0,0 +1,62 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.OgrSourceTypeEnum = void 0; +exports.instanceOfOgrSource = instanceOfOgrSource; +exports.OgrSourceFromJSON = OgrSourceFromJSON; +exports.OgrSourceFromJSONTyped = OgrSourceFromJSONTyped; +exports.OgrSourceToJSON = OgrSourceToJSON; +exports.OgrSourceToJSONTyped = OgrSourceToJSONTyped; +const OgrSourceParameters_1 = require("./OgrSourceParameters"); +/** + * @export + */ +exports.OgrSourceTypeEnum = { + OgrSource: 'OgrSource' +}; +/** + * Check if a given object implements the OgrSource interface. + */ +function instanceOfOgrSource(value) { + if (!('params' in value) || value['params'] === undefined) + return false; + if (!('type' in value) || value['type'] === undefined) + return false; + return true; +} +function OgrSourceFromJSON(json) { + return OgrSourceFromJSONTyped(json, false); +} +function OgrSourceFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'params': (0, OgrSourceParameters_1.OgrSourceParametersFromJSON)(json['params']), + 'type': json['type'], + }; +} +function OgrSourceToJSON(json) { + return OgrSourceToJSONTyped(json, false); +} +function OgrSourceToJSONTyped(value, ignoreDiscriminator = false) { + if (value == null) { + return value; + } + return { + 'params': (0, OgrSourceParameters_1.OgrSourceParametersToJSON)(value['params']), + 'type': value['type'], + }; +} diff --git a/typescript/dist/models/OgrSourceParameters.d.ts b/typescript/dist/models/OgrSourceParameters.d.ts new file mode 100644 index 00000000..10a2a634 --- /dev/null +++ b/typescript/dist/models/OgrSourceParameters.d.ts @@ -0,0 +1,38 @@ +/** + * Geo Engine API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Parameters for the [`OgrSource`] operator. + * @export + * @interface OgrSourceParameters + */ +export interface OgrSourceParameters { + /** + * *Optional*: list of attributes to include. When `None`, all attributes are included. + * @type {Array} + * @memberof OgrSourceParameters + */ + attributeProjection?: Array | null; + /** + * Dataset name or identifier to be loaded. + * @type {string} + * @memberof OgrSourceParameters + */ + data: string; +} +/** + * Check if a given object implements the OgrSourceParameters interface. + */ +export declare function instanceOfOgrSourceParameters(value: object): value is OgrSourceParameters; +export declare function OgrSourceParametersFromJSON(json: any): OgrSourceParameters; +export declare function OgrSourceParametersFromJSONTyped(json: any, ignoreDiscriminator: boolean): OgrSourceParameters; +export declare function OgrSourceParametersToJSON(json: any): OgrSourceParameters; +export declare function OgrSourceParametersToJSONTyped(value?: OgrSourceParameters | null, ignoreDiscriminator?: boolean): any; diff --git a/typescript/dist/models/OgrSourceParameters.js b/typescript/dist/models/OgrSourceParameters.js new file mode 100644 index 00000000..ca68cf35 --- /dev/null +++ b/typescript/dist/models/OgrSourceParameters.js @@ -0,0 +1,52 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfOgrSourceParameters = instanceOfOgrSourceParameters; +exports.OgrSourceParametersFromJSON = OgrSourceParametersFromJSON; +exports.OgrSourceParametersFromJSONTyped = OgrSourceParametersFromJSONTyped; +exports.OgrSourceParametersToJSON = OgrSourceParametersToJSON; +exports.OgrSourceParametersToJSONTyped = OgrSourceParametersToJSONTyped; +/** + * Check if a given object implements the OgrSourceParameters interface. + */ +function instanceOfOgrSourceParameters(value) { + if (!('data' in value) || value['data'] === undefined) + return false; + return true; +} +function OgrSourceParametersFromJSON(json) { + return OgrSourceParametersFromJSONTyped(json, false); +} +function OgrSourceParametersFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'attributeProjection': json['attributeProjection'] == null ? undefined : json['attributeProjection'], + 'data': json['data'], + }; +} +function OgrSourceParametersToJSON(json) { + return OgrSourceParametersToJSONTyped(json, false); +} +function OgrSourceParametersToJSONTyped(value, ignoreDiscriminator = false) { + if (value == null) { + return value; + } + return { + 'attributeProjection': value['attributeProjection'], + 'data': value['data'], + }; +} diff --git a/typescript/dist/models/SingleVectorOrRasterSource.d.ts b/typescript/dist/models/SingleVectorOrRasterSource.d.ts new file mode 100644 index 00000000..2e6f022f --- /dev/null +++ b/typescript/dist/models/SingleVectorOrRasterSource.d.ts @@ -0,0 +1,33 @@ +/** + * Geo Engine API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { SingleRasterOrVectorOperator } from './SingleRasterOrVectorOperator'; +/** + * A single vector or raster operator as source for this operator, keyed as "vector" in JSON. + * @export + * @interface SingleVectorOrRasterSource + */ +export interface SingleVectorOrRasterSource { + /** + * + * @type {SingleRasterOrVectorOperator} + * @memberof SingleVectorOrRasterSource + */ + vector: SingleRasterOrVectorOperator; +} +/** + * Check if a given object implements the SingleVectorOrRasterSource interface. + */ +export declare function instanceOfSingleVectorOrRasterSource(value: object): value is SingleVectorOrRasterSource; +export declare function SingleVectorOrRasterSourceFromJSON(json: any): SingleVectorOrRasterSource; +export declare function SingleVectorOrRasterSourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): SingleVectorOrRasterSource; +export declare function SingleVectorOrRasterSourceToJSON(json: any): SingleVectorOrRasterSource; +export declare function SingleVectorOrRasterSourceToJSONTyped(value?: SingleVectorOrRasterSource | null, ignoreDiscriminator?: boolean): any; diff --git a/typescript/dist/models/SingleVectorOrRasterSource.js b/typescript/dist/models/SingleVectorOrRasterSource.js new file mode 100644 index 00000000..701b0948 --- /dev/null +++ b/typescript/dist/models/SingleVectorOrRasterSource.js @@ -0,0 +1,51 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfSingleVectorOrRasterSource = instanceOfSingleVectorOrRasterSource; +exports.SingleVectorOrRasterSourceFromJSON = SingleVectorOrRasterSourceFromJSON; +exports.SingleVectorOrRasterSourceFromJSONTyped = SingleVectorOrRasterSourceFromJSONTyped; +exports.SingleVectorOrRasterSourceToJSON = SingleVectorOrRasterSourceToJSON; +exports.SingleVectorOrRasterSourceToJSONTyped = SingleVectorOrRasterSourceToJSONTyped; +const SingleRasterOrVectorOperator_1 = require("./SingleRasterOrVectorOperator"); +/** + * Check if a given object implements the SingleVectorOrRasterSource interface. + */ +function instanceOfSingleVectorOrRasterSource(value) { + if (!('vector' in value) || value['vector'] === undefined) + return false; + return true; +} +function SingleVectorOrRasterSourceFromJSON(json) { + return SingleVectorOrRasterSourceFromJSONTyped(json, false); +} +function SingleVectorOrRasterSourceFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'vector': (0, SingleRasterOrVectorOperator_1.SingleRasterOrVectorOperatorFromJSON)(json['vector']), + }; +} +function SingleVectorOrRasterSourceToJSON(json) { + return SingleVectorOrRasterSourceToJSONTyped(json, false); +} +function SingleVectorOrRasterSourceToJSONTyped(value, ignoreDiscriminator = false) { + if (value == null) { + return value; + } + return { + 'vector': (0, SingleRasterOrVectorOperator_1.SingleRasterOrVectorOperatorToJSON)(value['vector']), + }; +} diff --git a/typescript/dist/models/SquareRootChoiceRule.d.ts b/typescript/dist/models/SquareRootChoiceRule.d.ts deleted file mode 100644 index ccefc73d..00000000 --- a/typescript/dist/models/SquareRootChoiceRule.d.ts +++ /dev/null @@ -1,45 +0,0 @@ -/** - * Geo Engine API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.9.0 - * Contact: dev@geoengine.de - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -/** - * - * @export - * @interface SquareRootChoiceRule - */ -export interface SquareRootChoiceRule { - /** - * - * @type {number} - * @memberof SquareRootChoiceRule - */ - maxNumberOfBuckets?: number; - /** - * - * @type {SquareRootChoiceRuleTypeEnum} - * @memberof SquareRootChoiceRule - */ - type: SquareRootChoiceRuleTypeEnum; -} -/** - * @export - */ -export declare const SquareRootChoiceRuleTypeEnum: { - readonly SquareRootChoiceRule: "squareRootChoiceRule"; -}; -export type SquareRootChoiceRuleTypeEnum = typeof SquareRootChoiceRuleTypeEnum[keyof typeof SquareRootChoiceRuleTypeEnum]; -/** - * Check if a given object implements the SquareRootChoiceRule interface. - */ -export declare function instanceOfSquareRootChoiceRule(value: object): value is SquareRootChoiceRule; -export declare function SquareRootChoiceRuleFromJSON(json: any): SquareRootChoiceRule; -export declare function SquareRootChoiceRuleFromJSONTyped(json: any, ignoreDiscriminator: boolean): SquareRootChoiceRule; -export declare function SquareRootChoiceRuleToJSON(json: any): SquareRootChoiceRule; -export declare function SquareRootChoiceRuleToJSONTyped(value?: SquareRootChoiceRule | null, ignoreDiscriminator?: boolean): any; diff --git a/typescript/dist/models/SquareRootChoiceRule.js b/typescript/dist/models/SquareRootChoiceRule.js deleted file mode 100644 index 7edd6b44..00000000 --- a/typescript/dist/models/SquareRootChoiceRule.js +++ /dev/null @@ -1,59 +0,0 @@ -"use strict"; -/* tslint:disable */ -/* eslint-disable */ -/** - * Geo Engine API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.9.0 - * Contact: dev@geoengine.de - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.SquareRootChoiceRuleTypeEnum = void 0; -exports.instanceOfSquareRootChoiceRule = instanceOfSquareRootChoiceRule; -exports.SquareRootChoiceRuleFromJSON = SquareRootChoiceRuleFromJSON; -exports.SquareRootChoiceRuleFromJSONTyped = SquareRootChoiceRuleFromJSONTyped; -exports.SquareRootChoiceRuleToJSON = SquareRootChoiceRuleToJSON; -exports.SquareRootChoiceRuleToJSONTyped = SquareRootChoiceRuleToJSONTyped; -/** - * @export - */ -exports.SquareRootChoiceRuleTypeEnum = { - SquareRootChoiceRule: 'squareRootChoiceRule' -}; -/** - * Check if a given object implements the SquareRootChoiceRule interface. - */ -function instanceOfSquareRootChoiceRule(value) { - if (!('type' in value) || value['type'] === undefined) - return false; - return true; -} -function SquareRootChoiceRuleFromJSON(json) { - return SquareRootChoiceRuleFromJSONTyped(json, false); -} -function SquareRootChoiceRuleFromJSONTyped(json, ignoreDiscriminator) { - if (json == null) { - return json; - } - return { - 'maxNumberOfBuckets': json['maxNumberOfBuckets'] == null ? undefined : json['maxNumberOfBuckets'], - 'type': json['type'], - }; -} -function SquareRootChoiceRuleToJSON(json) { - return SquareRootChoiceRuleToJSONTyped(json, false); -} -function SquareRootChoiceRuleToJSONTyped(value, ignoreDiscriminator = false) { - if (value == null) { - return value; - } - return { - 'maxNumberOfBuckets': value['maxNumberOfBuckets'], - 'type': value['type'], - }; -} diff --git a/typescript/dist/models/TypedGeometry.d.ts b/typescript/dist/models/TypedGeometry.d.ts index 35678a69..889b1e4e 100644 --- a/typescript/dist/models/TypedGeometry.d.ts +++ b/typescript/dist/models/TypedGeometry.d.ts @@ -9,16 +9,16 @@ * https://openapi-generator.tech * Do not edit the class manually. */ -import type { MultiLineString1 } from './MultiLineString1'; -import type { MultiPoint1 } from './MultiPoint1'; -import type { MultiPolygon1 } from './MultiPolygon1'; -import type { NoGeometry1 } from './NoGeometry1'; +import type { TypedGeometryMultiLineString } from './TypedGeometryMultiLineString'; +import type { TypedGeometryMultiPoint } from './TypedGeometryMultiPoint'; +import type { TypedGeometryMultiPolygon } from './TypedGeometryMultiPolygon'; +import type { TypedGeometryNoGeometry } from './TypedGeometryNoGeometry'; /** * @type TypedGeometry * * @export */ -export type TypedGeometry = MultiLineString1 | MultiPoint1 | MultiPolygon1 | NoGeometry1; +export type TypedGeometry = TypedGeometryMultiLineString | TypedGeometryMultiPoint | TypedGeometryMultiPolygon | TypedGeometryNoGeometry; export declare function TypedGeometryFromJSON(json: any): TypedGeometry; export declare function TypedGeometryFromJSONTyped(json: any, ignoreDiscriminator: boolean): TypedGeometry; export declare function TypedGeometryToJSON(json: any): any; diff --git a/typescript/dist/models/TypedGeometry.js b/typescript/dist/models/TypedGeometry.js index 4e1464ac..1e0c66b4 100644 --- a/typescript/dist/models/TypedGeometry.js +++ b/typescript/dist/models/TypedGeometry.js @@ -17,10 +17,10 @@ exports.TypedGeometryFromJSON = TypedGeometryFromJSON; exports.TypedGeometryFromJSONTyped = TypedGeometryFromJSONTyped; exports.TypedGeometryToJSON = TypedGeometryToJSON; exports.TypedGeometryToJSONTyped = TypedGeometryToJSONTyped; -const MultiLineString1_1 = require("./MultiLineString1"); -const MultiPoint1_1 = require("./MultiPoint1"); -const MultiPolygon1_1 = require("./MultiPolygon1"); -const NoGeometry1_1 = require("./NoGeometry1"); +const TypedGeometryMultiLineString_1 = require("./TypedGeometryMultiLineString"); +const TypedGeometryMultiPoint_1 = require("./TypedGeometryMultiPoint"); +const TypedGeometryMultiPolygon_1 = require("./TypedGeometryMultiPolygon"); +const TypedGeometryNoGeometry_1 = require("./TypedGeometryNoGeometry"); function TypedGeometryFromJSON(json) { return TypedGeometryFromJSONTyped(json, false); } @@ -31,17 +31,17 @@ function TypedGeometryFromJSONTyped(json, ignoreDiscriminator) { if (typeof json !== 'object') { return json; } - if ((0, MultiLineString1_1.instanceOfMultiLineString1)(json)) { - return (0, MultiLineString1_1.MultiLineString1FromJSONTyped)(json, true); + if ((0, TypedGeometryMultiLineString_1.instanceOfTypedGeometryMultiLineString)(json)) { + return (0, TypedGeometryMultiLineString_1.TypedGeometryMultiLineStringFromJSONTyped)(json, true); } - if ((0, MultiPoint1_1.instanceOfMultiPoint1)(json)) { - return (0, MultiPoint1_1.MultiPoint1FromJSONTyped)(json, true); + if ((0, TypedGeometryMultiPoint_1.instanceOfTypedGeometryMultiPoint)(json)) { + return (0, TypedGeometryMultiPoint_1.TypedGeometryMultiPointFromJSONTyped)(json, true); } - if ((0, MultiPolygon1_1.instanceOfMultiPolygon1)(json)) { - return (0, MultiPolygon1_1.MultiPolygon1FromJSONTyped)(json, true); + if ((0, TypedGeometryMultiPolygon_1.instanceOfTypedGeometryMultiPolygon)(json)) { + return (0, TypedGeometryMultiPolygon_1.TypedGeometryMultiPolygonFromJSONTyped)(json, true); } - if ((0, NoGeometry1_1.instanceOfNoGeometry1)(json)) { - return (0, NoGeometry1_1.NoGeometry1FromJSONTyped)(json, true); + if ((0, TypedGeometryNoGeometry_1.instanceOfTypedGeometryNoGeometry)(json)) { + return (0, TypedGeometryNoGeometry_1.TypedGeometryNoGeometryFromJSONTyped)(json, true); } return {}; } @@ -55,17 +55,17 @@ function TypedGeometryToJSONTyped(value, ignoreDiscriminator = false) { if (typeof value !== 'object') { return value; } - if ((0, MultiLineString1_1.instanceOfMultiLineString1)(value)) { - return (0, MultiLineString1_1.MultiLineString1ToJSON)(value); + if ((0, TypedGeometryMultiLineString_1.instanceOfTypedGeometryMultiLineString)(value)) { + return (0, TypedGeometryMultiLineString_1.TypedGeometryMultiLineStringToJSON)(value); } - if ((0, MultiPoint1_1.instanceOfMultiPoint1)(value)) { - return (0, MultiPoint1_1.MultiPoint1ToJSON)(value); + if ((0, TypedGeometryMultiPoint_1.instanceOfTypedGeometryMultiPoint)(value)) { + return (0, TypedGeometryMultiPoint_1.TypedGeometryMultiPointToJSON)(value); } - if ((0, MultiPolygon1_1.instanceOfMultiPolygon1)(value)) { - return (0, MultiPolygon1_1.MultiPolygon1ToJSON)(value); + if ((0, TypedGeometryMultiPolygon_1.instanceOfTypedGeometryMultiPolygon)(value)) { + return (0, TypedGeometryMultiPolygon_1.TypedGeometryMultiPolygonToJSON)(value); } - if ((0, NoGeometry1_1.instanceOfNoGeometry1)(value)) { - return (0, NoGeometry1_1.NoGeometry1ToJSON)(value); + if ((0, TypedGeometryNoGeometry_1.instanceOfTypedGeometryNoGeometry)(value)) { + return (0, TypedGeometryNoGeometry_1.TypedGeometryNoGeometryToJSON)(value); } return {}; } diff --git a/typescript/dist/models/TypedGeometryMultiLineString.d.ts b/typescript/dist/models/TypedGeometryMultiLineString.d.ts new file mode 100644 index 00000000..cddff247 --- /dev/null +++ b/typescript/dist/models/TypedGeometryMultiLineString.d.ts @@ -0,0 +1,33 @@ +/** + * Geo Engine API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { MultiLineString } from './MultiLineString'; +/** + * + * @export + * @interface TypedGeometryMultiLineString + */ +export interface TypedGeometryMultiLineString { + /** + * + * @type {MultiLineString} + * @memberof TypedGeometryMultiLineString + */ + multiLineString: MultiLineString; +} +/** + * Check if a given object implements the TypedGeometryMultiLineString interface. + */ +export declare function instanceOfTypedGeometryMultiLineString(value: object): value is TypedGeometryMultiLineString; +export declare function TypedGeometryMultiLineStringFromJSON(json: any): TypedGeometryMultiLineString; +export declare function TypedGeometryMultiLineStringFromJSONTyped(json: any, ignoreDiscriminator: boolean): TypedGeometryMultiLineString; +export declare function TypedGeometryMultiLineStringToJSON(json: any): TypedGeometryMultiLineString; +export declare function TypedGeometryMultiLineStringToJSONTyped(value?: TypedGeometryMultiLineString | null, ignoreDiscriminator?: boolean): any; diff --git a/typescript/dist/models/MultiLineString1.js b/typescript/dist/models/TypedGeometryMultiLineString.js similarity index 51% rename from typescript/dist/models/MultiLineString1.js rename to typescript/dist/models/TypedGeometryMultiLineString.js index 772ba49a..29ef6472 100644 --- a/typescript/dist/models/MultiLineString1.js +++ b/typescript/dist/models/TypedGeometryMultiLineString.js @@ -13,24 +13,24 @@ * Do not edit the class manually. */ Object.defineProperty(exports, "__esModule", { value: true }); -exports.instanceOfMultiLineString1 = instanceOfMultiLineString1; -exports.MultiLineString1FromJSON = MultiLineString1FromJSON; -exports.MultiLineString1FromJSONTyped = MultiLineString1FromJSONTyped; -exports.MultiLineString1ToJSON = MultiLineString1ToJSON; -exports.MultiLineString1ToJSONTyped = MultiLineString1ToJSONTyped; +exports.instanceOfTypedGeometryMultiLineString = instanceOfTypedGeometryMultiLineString; +exports.TypedGeometryMultiLineStringFromJSON = TypedGeometryMultiLineStringFromJSON; +exports.TypedGeometryMultiLineStringFromJSONTyped = TypedGeometryMultiLineStringFromJSONTyped; +exports.TypedGeometryMultiLineStringToJSON = TypedGeometryMultiLineStringToJSON; +exports.TypedGeometryMultiLineStringToJSONTyped = TypedGeometryMultiLineStringToJSONTyped; const MultiLineString_1 = require("./MultiLineString"); /** - * Check if a given object implements the MultiLineString1 interface. + * Check if a given object implements the TypedGeometryMultiLineString interface. */ -function instanceOfMultiLineString1(value) { +function instanceOfTypedGeometryMultiLineString(value) { if (!('multiLineString' in value) || value['multiLineString'] === undefined) return false; return true; } -function MultiLineString1FromJSON(json) { - return MultiLineString1FromJSONTyped(json, false); +function TypedGeometryMultiLineStringFromJSON(json) { + return TypedGeometryMultiLineStringFromJSONTyped(json, false); } -function MultiLineString1FromJSONTyped(json, ignoreDiscriminator) { +function TypedGeometryMultiLineStringFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } @@ -38,10 +38,10 @@ function MultiLineString1FromJSONTyped(json, ignoreDiscriminator) { 'multiLineString': (0, MultiLineString_1.MultiLineStringFromJSON)(json['MultiLineString']), }; } -function MultiLineString1ToJSON(json) { - return MultiLineString1ToJSONTyped(json, false); +function TypedGeometryMultiLineStringToJSON(json) { + return TypedGeometryMultiLineStringToJSONTyped(json, false); } -function MultiLineString1ToJSONTyped(value, ignoreDiscriminator = false) { +function TypedGeometryMultiLineStringToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } diff --git a/typescript/dist/models/TypedGeometryMultiPoint.d.ts b/typescript/dist/models/TypedGeometryMultiPoint.d.ts new file mode 100644 index 00000000..54de9db1 --- /dev/null +++ b/typescript/dist/models/TypedGeometryMultiPoint.d.ts @@ -0,0 +1,33 @@ +/** + * Geo Engine API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { MultiPoint } from './MultiPoint'; +/** + * + * @export + * @interface TypedGeometryMultiPoint + */ +export interface TypedGeometryMultiPoint { + /** + * + * @type {MultiPoint} + * @memberof TypedGeometryMultiPoint + */ + multiPoint: MultiPoint; +} +/** + * Check if a given object implements the TypedGeometryMultiPoint interface. + */ +export declare function instanceOfTypedGeometryMultiPoint(value: object): value is TypedGeometryMultiPoint; +export declare function TypedGeometryMultiPointFromJSON(json: any): TypedGeometryMultiPoint; +export declare function TypedGeometryMultiPointFromJSONTyped(json: any, ignoreDiscriminator: boolean): TypedGeometryMultiPoint; +export declare function TypedGeometryMultiPointToJSON(json: any): TypedGeometryMultiPoint; +export declare function TypedGeometryMultiPointToJSONTyped(value?: TypedGeometryMultiPoint | null, ignoreDiscriminator?: boolean): any; diff --git a/typescript/dist/models/MultiPoint1.js b/typescript/dist/models/TypedGeometryMultiPoint.js similarity index 52% rename from typescript/dist/models/MultiPoint1.js rename to typescript/dist/models/TypedGeometryMultiPoint.js index 261a11e7..61d5b413 100644 --- a/typescript/dist/models/MultiPoint1.js +++ b/typescript/dist/models/TypedGeometryMultiPoint.js @@ -13,24 +13,24 @@ * Do not edit the class manually. */ Object.defineProperty(exports, "__esModule", { value: true }); -exports.instanceOfMultiPoint1 = instanceOfMultiPoint1; -exports.MultiPoint1FromJSON = MultiPoint1FromJSON; -exports.MultiPoint1FromJSONTyped = MultiPoint1FromJSONTyped; -exports.MultiPoint1ToJSON = MultiPoint1ToJSON; -exports.MultiPoint1ToJSONTyped = MultiPoint1ToJSONTyped; +exports.instanceOfTypedGeometryMultiPoint = instanceOfTypedGeometryMultiPoint; +exports.TypedGeometryMultiPointFromJSON = TypedGeometryMultiPointFromJSON; +exports.TypedGeometryMultiPointFromJSONTyped = TypedGeometryMultiPointFromJSONTyped; +exports.TypedGeometryMultiPointToJSON = TypedGeometryMultiPointToJSON; +exports.TypedGeometryMultiPointToJSONTyped = TypedGeometryMultiPointToJSONTyped; const MultiPoint_1 = require("./MultiPoint"); /** - * Check if a given object implements the MultiPoint1 interface. + * Check if a given object implements the TypedGeometryMultiPoint interface. */ -function instanceOfMultiPoint1(value) { +function instanceOfTypedGeometryMultiPoint(value) { if (!('multiPoint' in value) || value['multiPoint'] === undefined) return false; return true; } -function MultiPoint1FromJSON(json) { - return MultiPoint1FromJSONTyped(json, false); +function TypedGeometryMultiPointFromJSON(json) { + return TypedGeometryMultiPointFromJSONTyped(json, false); } -function MultiPoint1FromJSONTyped(json, ignoreDiscriminator) { +function TypedGeometryMultiPointFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } @@ -38,10 +38,10 @@ function MultiPoint1FromJSONTyped(json, ignoreDiscriminator) { 'multiPoint': (0, MultiPoint_1.MultiPointFromJSON)(json['MultiPoint']), }; } -function MultiPoint1ToJSON(json) { - return MultiPoint1ToJSONTyped(json, false); +function TypedGeometryMultiPointToJSON(json) { + return TypedGeometryMultiPointToJSONTyped(json, false); } -function MultiPoint1ToJSONTyped(value, ignoreDiscriminator = false) { +function TypedGeometryMultiPointToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } diff --git a/typescript/dist/models/TypedGeometryMultiPolygon.d.ts b/typescript/dist/models/TypedGeometryMultiPolygon.d.ts new file mode 100644 index 00000000..aa5e9807 --- /dev/null +++ b/typescript/dist/models/TypedGeometryMultiPolygon.d.ts @@ -0,0 +1,33 @@ +/** + * Geo Engine API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { MultiPolygon } from './MultiPolygon'; +/** + * + * @export + * @interface TypedGeometryMultiPolygon + */ +export interface TypedGeometryMultiPolygon { + /** + * + * @type {MultiPolygon} + * @memberof TypedGeometryMultiPolygon + */ + multiPolygon: MultiPolygon; +} +/** + * Check if a given object implements the TypedGeometryMultiPolygon interface. + */ +export declare function instanceOfTypedGeometryMultiPolygon(value: object): value is TypedGeometryMultiPolygon; +export declare function TypedGeometryMultiPolygonFromJSON(json: any): TypedGeometryMultiPolygon; +export declare function TypedGeometryMultiPolygonFromJSONTyped(json: any, ignoreDiscriminator: boolean): TypedGeometryMultiPolygon; +export declare function TypedGeometryMultiPolygonToJSON(json: any): TypedGeometryMultiPolygon; +export declare function TypedGeometryMultiPolygonToJSONTyped(value?: TypedGeometryMultiPolygon | null, ignoreDiscriminator?: boolean): any; diff --git a/typescript/dist/models/MultiPolygon1.js b/typescript/dist/models/TypedGeometryMultiPolygon.js similarity index 51% rename from typescript/dist/models/MultiPolygon1.js rename to typescript/dist/models/TypedGeometryMultiPolygon.js index 2c125e5f..bc909128 100644 --- a/typescript/dist/models/MultiPolygon1.js +++ b/typescript/dist/models/TypedGeometryMultiPolygon.js @@ -13,24 +13,24 @@ * Do not edit the class manually. */ Object.defineProperty(exports, "__esModule", { value: true }); -exports.instanceOfMultiPolygon1 = instanceOfMultiPolygon1; -exports.MultiPolygon1FromJSON = MultiPolygon1FromJSON; -exports.MultiPolygon1FromJSONTyped = MultiPolygon1FromJSONTyped; -exports.MultiPolygon1ToJSON = MultiPolygon1ToJSON; -exports.MultiPolygon1ToJSONTyped = MultiPolygon1ToJSONTyped; +exports.instanceOfTypedGeometryMultiPolygon = instanceOfTypedGeometryMultiPolygon; +exports.TypedGeometryMultiPolygonFromJSON = TypedGeometryMultiPolygonFromJSON; +exports.TypedGeometryMultiPolygonFromJSONTyped = TypedGeometryMultiPolygonFromJSONTyped; +exports.TypedGeometryMultiPolygonToJSON = TypedGeometryMultiPolygonToJSON; +exports.TypedGeometryMultiPolygonToJSONTyped = TypedGeometryMultiPolygonToJSONTyped; const MultiPolygon_1 = require("./MultiPolygon"); /** - * Check if a given object implements the MultiPolygon1 interface. + * Check if a given object implements the TypedGeometryMultiPolygon interface. */ -function instanceOfMultiPolygon1(value) { +function instanceOfTypedGeometryMultiPolygon(value) { if (!('multiPolygon' in value) || value['multiPolygon'] === undefined) return false; return true; } -function MultiPolygon1FromJSON(json) { - return MultiPolygon1FromJSONTyped(json, false); +function TypedGeometryMultiPolygonFromJSON(json) { + return TypedGeometryMultiPolygonFromJSONTyped(json, false); } -function MultiPolygon1FromJSONTyped(json, ignoreDiscriminator) { +function TypedGeometryMultiPolygonFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } @@ -38,10 +38,10 @@ function MultiPolygon1FromJSONTyped(json, ignoreDiscriminator) { 'multiPolygon': (0, MultiPolygon_1.MultiPolygonFromJSON)(json['MultiPolygon']), }; } -function MultiPolygon1ToJSON(json) { - return MultiPolygon1ToJSONTyped(json, false); +function TypedGeometryMultiPolygonToJSON(json) { + return TypedGeometryMultiPolygonToJSONTyped(json, false); } -function MultiPolygon1ToJSONTyped(value, ignoreDiscriminator = false) { +function TypedGeometryMultiPolygonToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } diff --git a/typescript/dist/models/TypedGeometryNoGeometry.d.ts b/typescript/dist/models/TypedGeometryNoGeometry.d.ts new file mode 100644 index 00000000..a1a15d83 --- /dev/null +++ b/typescript/dist/models/TypedGeometryNoGeometry.d.ts @@ -0,0 +1,32 @@ +/** + * Geo Engine API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface TypedGeometryNoGeometry + */ +export interface TypedGeometryNoGeometry { + /** + * + * @type {any} + * @memberof TypedGeometryNoGeometry + */ + data: any | null; +} +/** + * Check if a given object implements the TypedGeometryNoGeometry interface. + */ +export declare function instanceOfTypedGeometryNoGeometry(value: object): value is TypedGeometryNoGeometry; +export declare function TypedGeometryNoGeometryFromJSON(json: any): TypedGeometryNoGeometry; +export declare function TypedGeometryNoGeometryFromJSONTyped(json: any, ignoreDiscriminator: boolean): TypedGeometryNoGeometry; +export declare function TypedGeometryNoGeometryToJSON(json: any): TypedGeometryNoGeometry; +export declare function TypedGeometryNoGeometryToJSONTyped(value?: TypedGeometryNoGeometry | null, ignoreDiscriminator?: boolean): any; diff --git a/typescript/dist/models/TypedGeometryNoGeometry.js b/typescript/dist/models/TypedGeometryNoGeometry.js new file mode 100644 index 00000000..6f967d13 --- /dev/null +++ b/typescript/dist/models/TypedGeometryNoGeometry.js @@ -0,0 +1,50 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfTypedGeometryNoGeometry = instanceOfTypedGeometryNoGeometry; +exports.TypedGeometryNoGeometryFromJSON = TypedGeometryNoGeometryFromJSON; +exports.TypedGeometryNoGeometryFromJSONTyped = TypedGeometryNoGeometryFromJSONTyped; +exports.TypedGeometryNoGeometryToJSON = TypedGeometryNoGeometryToJSON; +exports.TypedGeometryNoGeometryToJSONTyped = TypedGeometryNoGeometryToJSONTyped; +/** + * Check if a given object implements the TypedGeometryNoGeometry interface. + */ +function instanceOfTypedGeometryNoGeometry(value) { + if (!('data' in value) || value['data'] === undefined) + return false; + return true; +} +function TypedGeometryNoGeometryFromJSON(json) { + return TypedGeometryNoGeometryFromJSONTyped(json, false); +} +function TypedGeometryNoGeometryFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'data': json['Data'], + }; +} +function TypedGeometryNoGeometryToJSON(json) { + return TypedGeometryNoGeometryToJSONTyped(json, false); +} +function TypedGeometryNoGeometryToJSONTyped(value, ignoreDiscriminator = false) { + if (value == null) { + return value; + } + return { + 'Data': value['data'], + }; +} diff --git a/typescript/dist/models/Upload.d.ts b/typescript/dist/models/Upload.d.ts deleted file mode 100644 index 4d4518bd..00000000 --- a/typescript/dist/models/Upload.d.ts +++ /dev/null @@ -1,32 +0,0 @@ -/** - * Geo Engine API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.9.0 - * Contact: dev@geoengine.de - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -/** - * - * @export - * @interface Upload - */ -export interface Upload { - /** - * - * @type {string} - * @memberof Upload - */ - upload: string; -} -/** - * Check if a given object implements the Upload interface. - */ -export declare function instanceOfUpload(value: object): value is Upload; -export declare function UploadFromJSON(json: any): Upload; -export declare function UploadFromJSONTyped(json: any, ignoreDiscriminator: boolean): Upload; -export declare function UploadToJSON(json: any): Upload; -export declare function UploadToJSONTyped(value?: Upload | null, ignoreDiscriminator?: boolean): any; diff --git a/typescript/dist/models/Values.d.ts b/typescript/dist/models/Values.d.ts deleted file mode 100644 index 51178f33..00000000 --- a/typescript/dist/models/Values.d.ts +++ /dev/null @@ -1,33 +0,0 @@ -/** - * Geo Engine API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.9.0 - * Contact: dev@geoengine.de - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -import type { ValuesValues } from './ValuesValues'; -/** - * - * @export - * @interface Values - */ -export interface Values { - /** - * - * @type {ValuesValues} - * @memberof Values - */ - values: ValuesValues; -} -/** - * Check if a given object implements the Values interface. - */ -export declare function instanceOfValues(value: object): value is Values; -export declare function ValuesFromJSON(json: any): Values; -export declare function ValuesFromJSONTyped(json: any, ignoreDiscriminator: boolean): Values; -export declare function ValuesToJSON(json: any): Values; -export declare function ValuesToJSONTyped(value?: Values | null, ignoreDiscriminator?: boolean): any; diff --git a/typescript/dist/models/Values.js b/typescript/dist/models/Values.js deleted file mode 100644 index 8ac53694..00000000 --- a/typescript/dist/models/Values.js +++ /dev/null @@ -1,51 +0,0 @@ -"use strict"; -/* tslint:disable */ -/* eslint-disable */ -/** - * Geo Engine API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.9.0 - * Contact: dev@geoengine.de - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.instanceOfValues = instanceOfValues; -exports.ValuesFromJSON = ValuesFromJSON; -exports.ValuesFromJSONTyped = ValuesFromJSONTyped; -exports.ValuesToJSON = ValuesToJSON; -exports.ValuesToJSONTyped = ValuesToJSONTyped; -const ValuesValues_1 = require("./ValuesValues"); -/** - * Check if a given object implements the Values interface. - */ -function instanceOfValues(value) { - if (!('values' in value) || value['values'] === undefined) - return false; - return true; -} -function ValuesFromJSON(json) { - return ValuesFromJSONTyped(json, false); -} -function ValuesFromJSONTyped(json, ignoreDiscriminator) { - if (json == null) { - return json; - } - return { - 'values': (0, ValuesValues_1.ValuesValuesFromJSON)(json['values']), - }; -} -function ValuesToJSON(json) { - return ValuesToJSONTyped(json, false); -} -function ValuesToJSONTyped(value, ignoreDiscriminator = false) { - if (value == null) { - return value; - } - return { - 'values': (0, ValuesValues_1.ValuesValuesToJSON)(value['values']), - }; -} diff --git a/typescript/dist/models/ValuesValues.d.ts b/typescript/dist/models/ValuesValues.d.ts deleted file mode 100644 index e4493a48..00000000 --- a/typescript/dist/models/ValuesValues.d.ts +++ /dev/null @@ -1,38 +0,0 @@ -/** - * Geo Engine API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.9.0 - * Contact: dev@geoengine.de - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -/** - * - * @export - * @interface ValuesValues - */ -export interface ValuesValues { - /** - * - * @type {number} - * @memberof ValuesValues - */ - max: number; - /** - * - * @type {number} - * @memberof ValuesValues - */ - min: number; -} -/** - * Check if a given object implements the ValuesValues interface. - */ -export declare function instanceOfValuesValues(value: object): value is ValuesValues; -export declare function ValuesValuesFromJSON(json: any): ValuesValues; -export declare function ValuesValuesFromJSONTyped(json: any, ignoreDiscriminator: boolean): ValuesValues; -export declare function ValuesValuesToJSON(json: any): ValuesValues; -export declare function ValuesValuesToJSONTyped(value?: ValuesValues | null, ignoreDiscriminator?: boolean): any; diff --git a/typescript/dist/models/VectorOperator.d.ts b/typescript/dist/models/VectorOperator.d.ts index 4234cd25..5c6b8f2e 100644 --- a/typescript/dist/models/VectorOperator.d.ts +++ b/typescript/dist/models/VectorOperator.d.ts @@ -10,6 +10,7 @@ * Do not edit the class manually. */ import type { MockPointSource } from './MockPointSource'; +import type { OgrSource } from './OgrSource'; import type { RasterVectorJoin } from './RasterVectorJoin'; import type { Reprojection } from './Reprojection'; /** @@ -20,6 +21,8 @@ import type { Reprojection } from './Reprojection'; export type VectorOperator = { type: 'MockPointSource'; } & MockPointSource | { + type: 'OgrSource'; +} & OgrSource | { type: 'RasterVectorJoin'; } & RasterVectorJoin | { type: 'Reprojection'; diff --git a/typescript/dist/models/VectorOperator.js b/typescript/dist/models/VectorOperator.js index a973ae5e..02b5c568 100644 --- a/typescript/dist/models/VectorOperator.js +++ b/typescript/dist/models/VectorOperator.js @@ -19,6 +19,7 @@ exports.VectorOperatorToJSON = VectorOperatorToJSON; exports.VectorOperatorToJSONTyped = VectorOperatorToJSONTyped; exports.instanceOfVectorOperator = instanceOfVectorOperator; const MockPointSource_1 = require("./MockPointSource"); +const OgrSource_1 = require("./OgrSource"); const RasterVectorJoin_1 = require("./RasterVectorJoin"); const Reprojection_1 = require("./Reprojection"); function VectorOperatorFromJSON(json) { @@ -31,6 +32,8 @@ function VectorOperatorFromJSONTyped(json, ignoreDiscriminator) { switch (json['type']) { case 'MockPointSource': return Object.assign({}, (0, MockPointSource_1.MockPointSourceFromJSONTyped)(json, true), { type: 'MockPointSource' }); + case 'OgrSource': + return Object.assign({}, (0, OgrSource_1.OgrSourceFromJSONTyped)(json, true), { type: 'OgrSource' }); case 'RasterVectorJoin': return Object.assign({}, (0, RasterVectorJoin_1.RasterVectorJoinFromJSONTyped)(json, true), { type: 'RasterVectorJoin' }); case 'Reprojection': @@ -49,6 +52,8 @@ function VectorOperatorToJSONTyped(value, ignoreDiscriminator = false) { switch (value['type']) { case 'MockPointSource': return Object.assign({}, (0, MockPointSource_1.MockPointSourceToJSON)(value), { type: 'MockPointSource' }); + case 'OgrSource': + return Object.assign({}, (0, OgrSource_1.OgrSourceToJSON)(value), { type: 'OgrSource' }); case 'RasterVectorJoin': return Object.assign({}, (0, RasterVectorJoin_1.RasterVectorJoinToJSON)(value), { type: 'RasterVectorJoin' }); case 'Reprojection': diff --git a/typescript/dist/models/Volume1.d.ts b/typescript/dist/models/Volume1.d.ts deleted file mode 100644 index 626c0f1c..00000000 --- a/typescript/dist/models/Volume1.d.ts +++ /dev/null @@ -1,32 +0,0 @@ -/** - * Geo Engine API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.9.0 - * Contact: dev@geoengine.de - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ -/** - * - * @export - * @interface Volume1 - */ -export interface Volume1 { - /** - * - * @type {string} - * @memberof Volume1 - */ - volume: string; -} -/** - * Check if a given object implements the Volume1 interface. - */ -export declare function instanceOfVolume1(value: object): value is Volume1; -export declare function Volume1FromJSON(json: any): Volume1; -export declare function Volume1FromJSONTyped(json: any, ignoreDiscriminator: boolean): Volume1; -export declare function Volume1ToJSON(json: any): Volume1; -export declare function Volume1ToJSONTyped(value?: Volume1 | null, ignoreDiscriminator?: boolean): any; diff --git a/typescript/dist/models/index.d.ts b/typescript/dist/models/index.d.ts index 61609ffc..42d17814 100644 --- a/typescript/dist/models/index.d.ts +++ b/typescript/dist/models/index.d.ts @@ -27,9 +27,11 @@ export * from './CountAggregation'; export * from './CreateDataset'; export * from './CreateProject'; export * from './CsvHeader'; -export * from './Data1'; +export * from './Data'; export * from './DataId'; export * from './DataPath'; +export * from './DataPathUpload'; +export * from './DataPathVolume'; export * from './DataProviderResource'; export * from './DataUsage'; export * from './DataUsageSummary'; @@ -81,7 +83,10 @@ export * from './GridBoundingBox2D'; export * from './GridIdx2D'; export * from './Histogram'; export * from './HistogramBounds'; +export * from './HistogramBoundsValues'; export * from './HistogramBuckets'; +export * from './HistogramBucketsNumber'; +export * from './HistogramBucketsSquareRootChoiceRule'; export * from './HistogramParameters'; export * from './IdResponse'; export * from './InternalDataId'; @@ -126,20 +131,16 @@ export * from './MockPointSourceParameters'; export * from './MultiBandGdalSource'; export * from './MultiBandRasterColorizer'; export * from './MultiLineString'; -export * from './MultiLineString1'; export * from './MultiPoint'; -export * from './MultiPoint1'; export * from './MultiPolygon'; -export * from './MultiPolygon1'; export * from './MultipleRasterOrSingleVectorOperator'; export * from './MultipleRasterOrSingleVectorSource'; export * from './MultipleRasterSources'; export * from './Names'; export * from './NetCdfCfDataProviderDefinition'; -export * from './NoGeometry1'; -export * from './Number'; export * from './NumberParam'; export * from './OgrMetaData'; +export * from './OgrSource'; export * from './OgrSourceColumnSpec'; export * from './OgrSourceDataset'; export * from './OgrSourceDatasetTimeType'; @@ -152,6 +153,7 @@ export * from './OgrSourceDurationSpecInfinite'; export * from './OgrSourceDurationSpecValue'; export * from './OgrSourceDurationSpecZero'; export * from './OgrSourceErrorSpec'; +export * from './OgrSourceParameters'; export * from './OgrSourceTimeFormat'; export * from './OgrSourceTimeFormatAuto'; export * from './OgrSourceTimeFormatCustom'; @@ -221,6 +223,7 @@ export * from './SingleRasterOrVectorOperator'; export * from './SingleRasterOrVectorSource'; export * from './SingleRasterSource'; export * from './SingleVectorMultipleRasterSources'; +export * from './SingleVectorOrRasterSource'; export * from './SpatialBoundsDerive'; export * from './SpatialBoundsDeriveBounds'; export * from './SpatialBoundsDeriveDerive'; @@ -230,7 +233,6 @@ export * from './SpatialGridDescriptor'; export * from './SpatialGridDescriptorState'; export * from './SpatialPartition2D'; export * from './SpatialReferenceSpecification'; -export * from './SquareRootChoiceRule'; export * from './StacApiRetries'; export * from './StacQueryBuffer'; export * from './StaticColor'; @@ -262,6 +264,10 @@ export * from './TimeReference'; export * from './TimeStep'; export * from './TypedDataProviderDefinition'; export * from './TypedGeometry'; +export * from './TypedGeometryMultiLineString'; +export * from './TypedGeometryMultiPoint'; +export * from './TypedGeometryMultiPolygon'; +export * from './TypedGeometryNoGeometry'; export * from './TypedOperator'; export * from './TypedPlotOperator'; export * from './TypedPlotResultDescriptor'; @@ -277,7 +283,6 @@ export * from './UpdateLayer'; export * from './UpdateLayerCollection'; export * from './UpdateProject'; export * from './UpdateQuota'; -export * from './Upload'; export * from './UploadFileLayersResponse'; export * from './UploadFilesResponse'; export * from './UsageSummaryGranularity'; @@ -285,15 +290,12 @@ export * from './UserCredentials'; export * from './UserInfo'; export * from './UserRegistration'; export * from './UserSession'; -export * from './Values'; -export * from './ValuesValues'; export * from './VecUpdate'; export * from './VectorColumnInfo'; export * from './VectorDataType'; export * from './VectorOperator'; export * from './VectorResultDescriptor'; export * from './Volume'; -export * from './Volume1'; export * from './VolumeFileLayersResponse'; export * from './WcsRequest'; export * from './WcsService'; diff --git a/typescript/dist/models/index.js b/typescript/dist/models/index.js index 5f36dd0d..47ac862d 100644 --- a/typescript/dist/models/index.js +++ b/typescript/dist/models/index.js @@ -45,9 +45,11 @@ __exportStar(require("./CountAggregation"), exports); __exportStar(require("./CreateDataset"), exports); __exportStar(require("./CreateProject"), exports); __exportStar(require("./CsvHeader"), exports); -__exportStar(require("./Data1"), exports); +__exportStar(require("./Data"), exports); __exportStar(require("./DataId"), exports); __exportStar(require("./DataPath"), exports); +__exportStar(require("./DataPathUpload"), exports); +__exportStar(require("./DataPathVolume"), exports); __exportStar(require("./DataProviderResource"), exports); __exportStar(require("./DataUsage"), exports); __exportStar(require("./DataUsageSummary"), exports); @@ -99,7 +101,10 @@ __exportStar(require("./GridBoundingBox2D"), exports); __exportStar(require("./GridIdx2D"), exports); __exportStar(require("./Histogram"), exports); __exportStar(require("./HistogramBounds"), exports); +__exportStar(require("./HistogramBoundsValues"), exports); __exportStar(require("./HistogramBuckets"), exports); +__exportStar(require("./HistogramBucketsNumber"), exports); +__exportStar(require("./HistogramBucketsSquareRootChoiceRule"), exports); __exportStar(require("./HistogramParameters"), exports); __exportStar(require("./IdResponse"), exports); __exportStar(require("./InternalDataId"), exports); @@ -144,20 +149,16 @@ __exportStar(require("./MockPointSourceParameters"), exports); __exportStar(require("./MultiBandGdalSource"), exports); __exportStar(require("./MultiBandRasterColorizer"), exports); __exportStar(require("./MultiLineString"), exports); -__exportStar(require("./MultiLineString1"), exports); __exportStar(require("./MultiPoint"), exports); -__exportStar(require("./MultiPoint1"), exports); __exportStar(require("./MultiPolygon"), exports); -__exportStar(require("./MultiPolygon1"), exports); __exportStar(require("./MultipleRasterOrSingleVectorOperator"), exports); __exportStar(require("./MultipleRasterOrSingleVectorSource"), exports); __exportStar(require("./MultipleRasterSources"), exports); __exportStar(require("./Names"), exports); __exportStar(require("./NetCdfCfDataProviderDefinition"), exports); -__exportStar(require("./NoGeometry1"), exports); -__exportStar(require("./Number"), exports); __exportStar(require("./NumberParam"), exports); __exportStar(require("./OgrMetaData"), exports); +__exportStar(require("./OgrSource"), exports); __exportStar(require("./OgrSourceColumnSpec"), exports); __exportStar(require("./OgrSourceDataset"), exports); __exportStar(require("./OgrSourceDatasetTimeType"), exports); @@ -170,6 +171,7 @@ __exportStar(require("./OgrSourceDurationSpecInfinite"), exports); __exportStar(require("./OgrSourceDurationSpecValue"), exports); __exportStar(require("./OgrSourceDurationSpecZero"), exports); __exportStar(require("./OgrSourceErrorSpec"), exports); +__exportStar(require("./OgrSourceParameters"), exports); __exportStar(require("./OgrSourceTimeFormat"), exports); __exportStar(require("./OgrSourceTimeFormatAuto"), exports); __exportStar(require("./OgrSourceTimeFormatCustom"), exports); @@ -239,6 +241,7 @@ __exportStar(require("./SingleRasterOrVectorOperator"), exports); __exportStar(require("./SingleRasterOrVectorSource"), exports); __exportStar(require("./SingleRasterSource"), exports); __exportStar(require("./SingleVectorMultipleRasterSources"), exports); +__exportStar(require("./SingleVectorOrRasterSource"), exports); __exportStar(require("./SpatialBoundsDerive"), exports); __exportStar(require("./SpatialBoundsDeriveBounds"), exports); __exportStar(require("./SpatialBoundsDeriveDerive"), exports); @@ -248,7 +251,6 @@ __exportStar(require("./SpatialGridDescriptor"), exports); __exportStar(require("./SpatialGridDescriptorState"), exports); __exportStar(require("./SpatialPartition2D"), exports); __exportStar(require("./SpatialReferenceSpecification"), exports); -__exportStar(require("./SquareRootChoiceRule"), exports); __exportStar(require("./StacApiRetries"), exports); __exportStar(require("./StacQueryBuffer"), exports); __exportStar(require("./StaticColor"), exports); @@ -280,6 +282,10 @@ __exportStar(require("./TimeReference"), exports); __exportStar(require("./TimeStep"), exports); __exportStar(require("./TypedDataProviderDefinition"), exports); __exportStar(require("./TypedGeometry"), exports); +__exportStar(require("./TypedGeometryMultiLineString"), exports); +__exportStar(require("./TypedGeometryMultiPoint"), exports); +__exportStar(require("./TypedGeometryMultiPolygon"), exports); +__exportStar(require("./TypedGeometryNoGeometry"), exports); __exportStar(require("./TypedOperator"), exports); __exportStar(require("./TypedPlotOperator"), exports); __exportStar(require("./TypedPlotResultDescriptor"), exports); @@ -295,7 +301,6 @@ __exportStar(require("./UpdateLayer"), exports); __exportStar(require("./UpdateLayerCollection"), exports); __exportStar(require("./UpdateProject"), exports); __exportStar(require("./UpdateQuota"), exports); -__exportStar(require("./Upload"), exports); __exportStar(require("./UploadFileLayersResponse"), exports); __exportStar(require("./UploadFilesResponse"), exports); __exportStar(require("./UsageSummaryGranularity"), exports); @@ -303,15 +308,12 @@ __exportStar(require("./UserCredentials"), exports); __exportStar(require("./UserInfo"), exports); __exportStar(require("./UserRegistration"), exports); __exportStar(require("./UserSession"), exports); -__exportStar(require("./Values"), exports); -__exportStar(require("./ValuesValues"), exports); __exportStar(require("./VecUpdate"), exports); __exportStar(require("./VectorColumnInfo"), exports); __exportStar(require("./VectorDataType"), exports); __exportStar(require("./VectorOperator"), exports); __exportStar(require("./VectorResultDescriptor"), exports); __exportStar(require("./Volume"), exports); -__exportStar(require("./Volume1"), exports); __exportStar(require("./VolumeFileLayersResponse"), exports); __exportStar(require("./WcsRequest"), exports); __exportStar(require("./WcsService"), exports); diff --git a/typescript/docs/AddDatasetTile.md b/typescript/docs/AddDatasetTile.md deleted file mode 100644 index 68b7a6d1..00000000 --- a/typescript/docs/AddDatasetTile.md +++ /dev/null @@ -1,42 +0,0 @@ - -# AddDatasetTile - - -## Properties - -Name | Type ------------- | ------------- -`band` | number -`params` | [GdalDatasetParameters](GdalDatasetParameters.md) -`spatialPartition` | [SpatialPartition2D](SpatialPartition2D.md) -`time` | [TimeInterval](TimeInterval.md) -`zIndex` | number - -## Example - -```typescript -import type { AddDatasetTile } from '@geoengine/openapi-client' - -// TODO: Update the object below with actual values -const example = { - "band": null, - "params": null, - "spatialPartition": null, - "time": null, - "zIndex": null, -} satisfies AddDatasetTile - -console.log(example) - -// Convert the instance to a JSON string -const exampleJSON: string = JSON.stringify(example) -console.log(exampleJSON) - -// Parse the JSON string back to an object -const exampleParsed = JSON.parse(exampleJSON) as AddDatasetTile -console.log(exampleParsed) -``` - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - - diff --git a/typescript/docs/Data1.md b/typescript/docs/Data.md similarity index 75% rename from typescript/docs/Data1.md rename to typescript/docs/Data.md index de38ce0e..b9084d9f 100644 --- a/typescript/docs/Data1.md +++ b/typescript/docs/Data.md @@ -1,22 +1,20 @@ -# Data1 +# Data ## Properties Name | Type ------------ | ------------- -`data` | any ## Example ```typescript -import type { Data1 } from '@geoengine/openapi-client' +import type { Data } from '@geoengine/openapi-client' // TODO: Update the object below with actual values const example = { - "data": null, -} satisfies Data1 +} satisfies Data console.log(example) @@ -25,7 +23,7 @@ const exampleJSON: string = JSON.stringify(example) console.log(exampleJSON) // Parse the JSON string back to an object -const exampleParsed = JSON.parse(exampleJSON) as Data1 +const exampleParsed = JSON.parse(exampleJSON) as Data console.log(exampleParsed) ``` diff --git a/typescript/docs/Upload.md b/typescript/docs/DataPathUpload.md similarity index 76% rename from typescript/docs/Upload.md rename to typescript/docs/DataPathUpload.md index 4e811640..3c1cac9d 100644 --- a/typescript/docs/Upload.md +++ b/typescript/docs/DataPathUpload.md @@ -1,5 +1,5 @@ -# Upload +# DataPathUpload ## Properties @@ -11,12 +11,12 @@ Name | Type ## Example ```typescript -import type { Upload } from '@geoengine/openapi-client' +import type { DataPathUpload } from '@geoengine/openapi-client' // TODO: Update the object below with actual values const example = { "upload": null, -} satisfies Upload +} satisfies DataPathUpload console.log(example) @@ -25,7 +25,7 @@ const exampleJSON: string = JSON.stringify(example) console.log(exampleJSON) // Parse the JSON string back to an object -const exampleParsed = JSON.parse(exampleJSON) as Upload +const exampleParsed = JSON.parse(exampleJSON) as DataPathUpload console.log(exampleParsed) ``` diff --git a/typescript/docs/DataPathOneOf.md b/typescript/docs/DataPathVolume.md similarity index 76% rename from typescript/docs/DataPathOneOf.md rename to typescript/docs/DataPathVolume.md index a8104a6a..f80c210a 100644 --- a/typescript/docs/DataPathOneOf.md +++ b/typescript/docs/DataPathVolume.md @@ -1,5 +1,5 @@ -# DataPathOneOf +# DataPathVolume ## Properties @@ -11,12 +11,12 @@ Name | Type ## Example ```typescript -import type { DataPathOneOf } from '@geoengine/openapi-client' +import type { DataPathVolume } from '@geoengine/openapi-client' // TODO: Update the object below with actual values const example = { "volume": null, -} satisfies DataPathOneOf +} satisfies DataPathVolume console.log(example) @@ -25,7 +25,7 @@ const exampleJSON: string = JSON.stringify(example) console.log(exampleJSON) // Parse the JSON string back to an object -const exampleParsed = JSON.parse(exampleJSON) as DataPathOneOf +const exampleParsed = JSON.parse(exampleJSON) as DataPathVolume console.log(exampleParsed) ``` diff --git a/typescript/docs/GdalDatasetGeoTransform.md b/typescript/docs/GdalDatasetGeoTransform.md deleted file mode 100644 index 35401209..00000000 --- a/typescript/docs/GdalDatasetGeoTransform.md +++ /dev/null @@ -1,38 +0,0 @@ - -# GdalDatasetGeoTransform - - -## Properties - -Name | Type ------------- | ------------- -`originCoordinate` | [Coordinate2D](Coordinate2D.md) -`xPixelSize` | number -`yPixelSize` | number - -## Example - -```typescript -import type { GdalDatasetGeoTransform } from '@geoengine/openapi-client' - -// TODO: Update the object below with actual values -const example = { - "originCoordinate": null, - "xPixelSize": null, - "yPixelSize": null, -} satisfies GdalDatasetGeoTransform - -console.log(example) - -// Convert the instance to a JSON string -const exampleJSON: string = JSON.stringify(example) -console.log(exampleJSON) - -// Parse the JSON string back to an object -const exampleParsed = JSON.parse(exampleJSON) as GdalDatasetGeoTransform -console.log(exampleParsed) -``` - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - - diff --git a/typescript/docs/Histogram.md b/typescript/docs/Histogram.md index a2dd47bb..24f3b230 100644 --- a/typescript/docs/Histogram.md +++ b/typescript/docs/Histogram.md @@ -8,7 +8,7 @@ The `Histogram` is a _plot operator_ that computes a histogram plot either over Name | Type ------------ | ------------- `params` | [HistogramParameters](HistogramParameters.md) -`sources` | [SingleRasterOrVectorSource](SingleRasterOrVectorSource.md) +`sources` | [SingleVectorOrRasterSource](SingleVectorOrRasterSource.md) `type` | string ## Example diff --git a/typescript/docs/HistogramBounds.md b/typescript/docs/HistogramBounds.md index 82c964bf..93d5ccd2 100644 --- a/typescript/docs/HistogramBounds.md +++ b/typescript/docs/HistogramBounds.md @@ -6,8 +6,8 @@ Name | Type ------------ | ------------- -`data` | any -`values` | [ValuesValues](ValuesValues.md) +`max` | number +`min` | number ## Example @@ -16,8 +16,8 @@ import type { HistogramBounds } from '@geoengine/openapi-client' // TODO: Update the object below with actual values const example = { - "data": null, - "values": null, + "max": null, + "min": null, } satisfies HistogramBounds console.log(example) diff --git a/typescript/docs/HistogramBoundsOneOf1.md b/typescript/docs/HistogramBoundsOneOf1.md deleted file mode 100644 index 8858eac9..00000000 --- a/typescript/docs/HistogramBoundsOneOf1.md +++ /dev/null @@ -1,34 +0,0 @@ - -# HistogramBoundsOneOf1 - - -## Properties - -Name | Type ------------- | ------------- -`values` | [HistogramBoundsOneOf1Values](HistogramBoundsOneOf1Values.md) - -## Example - -```typescript -import type { HistogramBoundsOneOf1 } from '@geoengine/openapi-client' - -// TODO: Update the object below with actual values -const example = { - "values": null, -} satisfies HistogramBoundsOneOf1 - -console.log(example) - -// Convert the instance to a JSON string -const exampleJSON: string = JSON.stringify(example) -console.log(exampleJSON) - -// Parse the JSON string back to an object -const exampleParsed = JSON.parse(exampleJSON) as HistogramBoundsOneOf1 -console.log(exampleParsed) -``` - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - - diff --git a/typescript/docs/HistogramBoundsOneOf1Values.md b/typescript/docs/HistogramBoundsValues.md similarity index 80% rename from typescript/docs/HistogramBoundsOneOf1Values.md rename to typescript/docs/HistogramBoundsValues.md index f17a0093..7a51fb0f 100644 --- a/typescript/docs/HistogramBoundsOneOf1Values.md +++ b/typescript/docs/HistogramBoundsValues.md @@ -1,5 +1,5 @@ -# HistogramBoundsOneOf1Values +# HistogramBoundsValues ## Properties @@ -12,13 +12,13 @@ Name | Type ## Example ```typescript -import type { HistogramBoundsOneOf1Values } from '@geoengine/openapi-client' +import type { HistogramBoundsValues } from '@geoengine/openapi-client' // TODO: Update the object below with actual values const example = { "max": null, "min": null, -} satisfies HistogramBoundsOneOf1Values +} satisfies HistogramBoundsValues console.log(example) @@ -27,7 +27,7 @@ const exampleJSON: string = JSON.stringify(example) console.log(exampleJSON) // Parse the JSON string back to an object -const exampleParsed = JSON.parse(exampleJSON) as HistogramBoundsOneOf1Values +const exampleParsed = JSON.parse(exampleJSON) as HistogramBoundsValues console.log(exampleParsed) ``` diff --git a/typescript/docs/HistogramBucketsOneOf.md b/typescript/docs/HistogramBucketsNumber.md similarity index 82% rename from typescript/docs/HistogramBucketsOneOf.md rename to typescript/docs/HistogramBucketsNumber.md index b5c22bd6..48179f19 100644 --- a/typescript/docs/HistogramBucketsOneOf.md +++ b/typescript/docs/HistogramBucketsNumber.md @@ -1,5 +1,5 @@ -# HistogramBucketsOneOf +# HistogramBucketsNumber ## Properties @@ -12,13 +12,13 @@ Name | Type ## Example ```typescript -import type { HistogramBucketsOneOf } from '@geoengine/openapi-client' +import type { HistogramBucketsNumber } from '@geoengine/openapi-client' // TODO: Update the object below with actual values const example = { "type": null, "value": null, -} satisfies HistogramBucketsOneOf +} satisfies HistogramBucketsNumber console.log(example) @@ -27,7 +27,7 @@ const exampleJSON: string = JSON.stringify(example) console.log(exampleJSON) // Parse the JSON string back to an object -const exampleParsed = JSON.parse(exampleJSON) as HistogramBucketsOneOf +const exampleParsed = JSON.parse(exampleJSON) as HistogramBucketsNumber console.log(exampleParsed) ``` diff --git a/typescript/docs/HistogramBucketsOneOf1.md b/typescript/docs/HistogramBucketsSquareRootChoiceRule.md similarity index 77% rename from typescript/docs/HistogramBucketsOneOf1.md rename to typescript/docs/HistogramBucketsSquareRootChoiceRule.md index ebdce402..2ee6ec7f 100644 --- a/typescript/docs/HistogramBucketsOneOf1.md +++ b/typescript/docs/HistogramBucketsSquareRootChoiceRule.md @@ -1,5 +1,5 @@ -# HistogramBucketsOneOf1 +# HistogramBucketsSquareRootChoiceRule ## Properties @@ -12,13 +12,13 @@ Name | Type ## Example ```typescript -import type { HistogramBucketsOneOf1 } from '@geoengine/openapi-client' +import type { HistogramBucketsSquareRootChoiceRule } from '@geoengine/openapi-client' // TODO: Update the object below with actual values const example = { "maxNumberOfBuckets": null, "type": null, -} satisfies HistogramBucketsOneOf1 +} satisfies HistogramBucketsSquareRootChoiceRule console.log(example) @@ -27,7 +27,7 @@ const exampleJSON: string = JSON.stringify(example) console.log(exampleJSON) // Parse the JSON string back to an object -const exampleParsed = JSON.parse(exampleJSON) as HistogramBucketsOneOf1 +const exampleParsed = JSON.parse(exampleJSON) as HistogramBucketsSquareRootChoiceRule console.log(exampleParsed) ``` diff --git a/typescript/docs/HistogramParameters.md b/typescript/docs/HistogramParameters.md index dfbedd2e..e81af707 100644 --- a/typescript/docs/HistogramParameters.md +++ b/typescript/docs/HistogramParameters.md @@ -7,9 +7,9 @@ The parameter spec for `Histogram` Name | Type ------------ | ------------- -`attributeName` | string `bounds` | [HistogramBounds](HistogramBounds.md) `buckets` | [HistogramBuckets](HistogramBuckets.md) +`columnName` | string `interactive` | boolean ## Example @@ -19,9 +19,9 @@ import type { HistogramParameters } from '@geoengine/openapi-client' // TODO: Update the object below with actual values const example = { - "attributeName": null, "bounds": null, "buckets": null, + "columnName": null, "interactive": null, } satisfies HistogramParameters diff --git a/typescript/docs/Number.md b/typescript/docs/Number.md deleted file mode 100644 index ab7c2142..00000000 --- a/typescript/docs/Number.md +++ /dev/null @@ -1,36 +0,0 @@ - -# Number - - -## Properties - -Name | Type ------------- | ------------- -`type` | string -`value` | number - -## Example - -```typescript -import type { Number } from '@geoengine/openapi-client' - -// TODO: Update the object below with actual values -const example = { - "type": null, - "value": null, -} satisfies Number - -console.log(example) - -// Convert the instance to a JSON string -const exampleJSON: string = JSON.stringify(example) -console.log(exampleJSON) - -// Parse the JSON string back to an object -const exampleParsed = JSON.parse(exampleJSON) as Number -console.log(exampleParsed) -``` - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - - diff --git a/typescript/docs/TypedOperatorOperator.md b/typescript/docs/OgrSource.md similarity index 56% rename from typescript/docs/TypedOperatorOperator.md rename to typescript/docs/OgrSource.md index 22f3ff99..13833daa 100644 --- a/typescript/docs/TypedOperatorOperator.md +++ b/typescript/docs/OgrSource.md @@ -1,26 +1,25 @@ -# TypedOperatorOperator +# OgrSource +The [`OgrSource`] is a source operator that reads vector data using OGR (part of GDAL). The counterpart for raster data is the [`GdalSource`]. ## Errors If the given dataset does not exist or is not readable, an error is thrown. ## Properties Name | Type ------------ | ------------- -`params` | object -`sources` | object +`params` | [OgrSourceParameters](OgrSourceParameters.md) `type` | string ## Example ```typescript -import type { TypedOperatorOperator } from '@geoengine/openapi-client' +import type { OgrSource } from '@geoengine/openapi-client' // TODO: Update the object below with actual values const example = { "params": null, - "sources": null, "type": null, -} satisfies TypedOperatorOperator +} satisfies OgrSource console.log(example) @@ -29,7 +28,7 @@ const exampleJSON: string = JSON.stringify(example) console.log(exampleJSON) // Parse the JSON string back to an object -const exampleParsed = JSON.parse(exampleJSON) as TypedOperatorOperator +const exampleParsed = JSON.parse(exampleJSON) as OgrSource console.log(exampleParsed) ``` diff --git a/typescript/docs/HistogramBoundsOneOf.md b/typescript/docs/OgrSourceParameters.md similarity index 62% rename from typescript/docs/HistogramBoundsOneOf.md rename to typescript/docs/OgrSourceParameters.md index 8dd15aec..b2d8e4d0 100644 --- a/typescript/docs/HistogramBoundsOneOf.md +++ b/typescript/docs/OgrSourceParameters.md @@ -1,22 +1,25 @@ -# HistogramBoundsOneOf +# OgrSourceParameters +Parameters for the [`OgrSource`] operator. ## Properties Name | Type ------------ | ------------- -`data` | any +`attributeProjection` | Array<string> +`data` | string ## Example ```typescript -import type { HistogramBoundsOneOf } from '@geoengine/openapi-client' +import type { OgrSourceParameters } from '@geoengine/openapi-client' // TODO: Update the object below with actual values const example = { + "attributeProjection": null, "data": null, -} satisfies HistogramBoundsOneOf +} satisfies OgrSourceParameters console.log(example) @@ -25,7 +28,7 @@ const exampleJSON: string = JSON.stringify(example) console.log(exampleJSON) // Parse the JSON string back to an object -const exampleParsed = JSON.parse(exampleJSON) as HistogramBoundsOneOf +const exampleParsed = JSON.parse(exampleJSON) as OgrSourceParameters console.log(exampleParsed) ``` diff --git a/typescript/docs/PermissionListOptions.md b/typescript/docs/PermissionListOptions.md deleted file mode 100644 index c935e7fb..00000000 --- a/typescript/docs/PermissionListOptions.md +++ /dev/null @@ -1,36 +0,0 @@ - -# PermissionListOptions - - -## Properties - -Name | Type ------------- | ------------- -`limit` | number -`offset` | number - -## Example - -```typescript -import type { PermissionListOptions } from '@geoengine/openapi-client' - -// TODO: Update the object below with actual values -const example = { - "limit": null, - "offset": null, -} satisfies PermissionListOptions - -console.log(example) - -// Convert the instance to a JSON string -const exampleJSON: string = JSON.stringify(example) -console.log(exampleJSON) - -// Parse the JSON string back to an object -const exampleParsed = JSON.parse(exampleJSON) as PermissionListOptions -console.log(exampleParsed) -``` - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - - diff --git a/typescript/docs/ProvenanceOutput.md b/typescript/docs/ProvenanceOutput.md deleted file mode 100644 index 6ca63e86..00000000 --- a/typescript/docs/ProvenanceOutput.md +++ /dev/null @@ -1,36 +0,0 @@ - -# ProvenanceOutput - - -## Properties - -Name | Type ------------- | ------------- -`data` | [DataId](DataId.md) -`provenance` | [Array<Provenance>](Provenance.md) - -## Example - -```typescript -import type { ProvenanceOutput } from '@geoengine/openapi-client' - -// TODO: Update the object below with actual values -const example = { - "data": null, - "provenance": null, -} satisfies ProvenanceOutput - -console.log(example) - -// Convert the instance to a JSON string -const exampleJSON: string = JSON.stringify(example) -console.log(exampleJSON) - -// Parse the JSON string back to an object -const exampleParsed = JSON.parse(exampleJSON) as ProvenanceOutput -console.log(exampleParsed) -``` - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - - diff --git a/typescript/docs/RasterDatasetFromWorkflowResult.md b/typescript/docs/RasterDatasetFromWorkflowResult.md deleted file mode 100644 index 0a5af9b2..00000000 --- a/typescript/docs/RasterDatasetFromWorkflowResult.md +++ /dev/null @@ -1,37 +0,0 @@ - -# RasterDatasetFromWorkflowResult - -response of the dataset from workflow handler - -## Properties - -Name | Type ------------- | ------------- -`dataset` | string -`upload` | string - -## Example - -```typescript -import type { RasterDatasetFromWorkflowResult } from '@geoengine/openapi-client' - -// TODO: Update the object below with actual values -const example = { - "dataset": null, - "upload": null, -} satisfies RasterDatasetFromWorkflowResult - -console.log(example) - -// Convert the instance to a JSON string -const exampleJSON: string = JSON.stringify(example) -console.log(exampleJSON) - -// Parse the JSON string back to an object -const exampleParsed = JSON.parse(exampleJSON) as RasterDatasetFromWorkflowResult -console.log(exampleParsed) -``` - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - - diff --git a/typescript/docs/DataPathOneOf1.md b/typescript/docs/SingleVectorOrRasterSource.md similarity index 56% rename from typescript/docs/DataPathOneOf1.md rename to typescript/docs/SingleVectorOrRasterSource.md index 3ec2a99c..1600ac72 100644 --- a/typescript/docs/DataPathOneOf1.md +++ b/typescript/docs/SingleVectorOrRasterSource.md @@ -1,22 +1,23 @@ -# DataPathOneOf1 +# SingleVectorOrRasterSource +A single vector or raster operator as source for this operator, keyed as \"vector\" in JSON. ## Properties Name | Type ------------ | ------------- -`upload` | string +`vector` | [SingleRasterOrVectorOperator](SingleRasterOrVectorOperator.md) ## Example ```typescript -import type { DataPathOneOf1 } from '@geoengine/openapi-client' +import type { SingleVectorOrRasterSource } from '@geoengine/openapi-client' // TODO: Update the object below with actual values const example = { - "upload": null, -} satisfies DataPathOneOf1 + "vector": null, +} satisfies SingleVectorOrRasterSource console.log(example) @@ -25,7 +26,7 @@ const exampleJSON: string = JSON.stringify(example) console.log(exampleJSON) // Parse the JSON string back to an object -const exampleParsed = JSON.parse(exampleJSON) as DataPathOneOf1 +const exampleParsed = JSON.parse(exampleJSON) as SingleVectorOrRasterSource console.log(exampleParsed) ``` diff --git a/typescript/docs/SpatialReferenceAuthority.md b/typescript/docs/SpatialReferenceAuthority.md deleted file mode 100644 index 7012c4e4..00000000 --- a/typescript/docs/SpatialReferenceAuthority.md +++ /dev/null @@ -1,33 +0,0 @@ - -# SpatialReferenceAuthority - -A spatial reference authority that is part of a spatial reference definition - -## Properties - -Name | Type ------------- | ------------- - -## Example - -```typescript -import type { SpatialReferenceAuthority } from '@geoengine/openapi-client' - -// TODO: Update the object below with actual values -const example = { -} satisfies SpatialReferenceAuthority - -console.log(example) - -// Convert the instance to a JSON string -const exampleJSON: string = JSON.stringify(example) -console.log(exampleJSON) - -// Parse the JSON string back to an object -const exampleParsed = JSON.parse(exampleJSON) as SpatialReferenceAuthority -console.log(exampleParsed) -``` - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - - diff --git a/typescript/docs/SpatialResolution.md b/typescript/docs/SpatialResolution.md deleted file mode 100644 index 9c9ea0ad..00000000 --- a/typescript/docs/SpatialResolution.md +++ /dev/null @@ -1,37 +0,0 @@ - -# SpatialResolution - -The spatial resolution in SRS units - -## Properties - -Name | Type ------------- | ------------- -`x` | number -`y` | number - -## Example - -```typescript -import type { SpatialResolution } from '@geoengine/openapi-client' - -// TODO: Update the object below with actual values -const example = { - "x": null, - "y": null, -} satisfies SpatialResolution - -console.log(example) - -// Convert the instance to a JSON string -const exampleJSON: string = JSON.stringify(example) -console.log(exampleJSON) - -// Parse the JSON string back to an object -const exampleParsed = JSON.parse(exampleJSON) as SpatialResolution -console.log(exampleParsed) -``` - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - - diff --git a/typescript/docs/SquareRootChoiceRule.md b/typescript/docs/SquareRootChoiceRule.md deleted file mode 100644 index 89b09f47..00000000 --- a/typescript/docs/SquareRootChoiceRule.md +++ /dev/null @@ -1,36 +0,0 @@ - -# SquareRootChoiceRule - - -## Properties - -Name | Type ------------- | ------------- -`maxNumberOfBuckets` | number -`type` | string - -## Example - -```typescript -import type { SquareRootChoiceRule } from '@geoengine/openapi-client' - -// TODO: Update the object below with actual values -const example = { - "maxNumberOfBuckets": null, - "type": null, -} satisfies SquareRootChoiceRule - -console.log(example) - -// Convert the instance to a JSON string -const exampleJSON: string = JSON.stringify(example) -console.log(exampleJSON) - -// Parse the JSON string back to an object -const exampleParsed = JSON.parse(exampleJSON) as SquareRootChoiceRule -console.log(exampleParsed) -``` - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - - diff --git a/typescript/docs/TaskAbortOptions.md b/typescript/docs/TaskAbortOptions.md deleted file mode 100644 index 2a7c7c08..00000000 --- a/typescript/docs/TaskAbortOptions.md +++ /dev/null @@ -1,34 +0,0 @@ - -# TaskAbortOptions - - -## Properties - -Name | Type ------------- | ------------- -`force` | boolean - -## Example - -```typescript -import type { TaskAbortOptions } from '@geoengine/openapi-client' - -// TODO: Update the object below with actual values -const example = { - "force": null, -} satisfies TaskAbortOptions - -console.log(example) - -// Convert the instance to a JSON string -const exampleJSON: string = JSON.stringify(example) -console.log(exampleJSON) - -// Parse the JSON string back to an object -const exampleParsed = JSON.parse(exampleJSON) as TaskAbortOptions -console.log(exampleParsed) -``` - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - - diff --git a/typescript/docs/TaskListOptions.md b/typescript/docs/TaskListOptions.md deleted file mode 100644 index d801ae44..00000000 --- a/typescript/docs/TaskListOptions.md +++ /dev/null @@ -1,38 +0,0 @@ - -# TaskListOptions - - -## Properties - -Name | Type ------------- | ------------- -`filter` | [TaskFilter](TaskFilter.md) -`limit` | number -`offset` | number - -## Example - -```typescript -import type { TaskListOptions } from '@geoengine/openapi-client' - -// TODO: Update the object below with actual values -const example = { - "filter": null, - "limit": null, - "offset": null, -} satisfies TaskListOptions - -console.log(example) - -// Convert the instance to a JSON string -const exampleJSON: string = JSON.stringify(example) -console.log(exampleJSON) - -// Parse the JSON string back to an object -const exampleParsed = JSON.parse(exampleJSON) as TaskListOptions -console.log(exampleParsed) -``` - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - - diff --git a/typescript/docs/TimeDimensionOneOf.md b/typescript/docs/TimeDimensionOneOf.md deleted file mode 100644 index 05ed18b6..00000000 --- a/typescript/docs/TimeDimensionOneOf.md +++ /dev/null @@ -1,34 +0,0 @@ - -# TimeDimensionOneOf - - -## Properties - -Name | Type ------------- | ------------- -`type` | string - -## Example - -```typescript -import type { TimeDimensionOneOf } from '@geoengine/openapi-client' - -// TODO: Update the object below with actual values -const example = { - "type": null, -} satisfies TimeDimensionOneOf - -console.log(example) - -// Convert the instance to a JSON string -const exampleJSON: string = JSON.stringify(example) -console.log(exampleJSON) - -// Parse the JSON string back to an object -const exampleParsed = JSON.parse(exampleJSON) as TimeDimensionOneOf -console.log(exampleParsed) -``` - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - - diff --git a/typescript/docs/TimeDimensionOneOf1.md b/typescript/docs/TimeDimensionOneOf1.md deleted file mode 100644 index b974757d..00000000 --- a/typescript/docs/TimeDimensionOneOf1.md +++ /dev/null @@ -1,34 +0,0 @@ - -# TimeDimensionOneOf1 - - -## Properties - -Name | Type ------------- | ------------- -`type` | string - -## Example - -```typescript -import type { TimeDimensionOneOf1 } from '@geoengine/openapi-client' - -// TODO: Update the object below with actual values -const example = { - "type": null, -} satisfies TimeDimensionOneOf1 - -console.log(example) - -// Convert the instance to a JSON string -const exampleJSON: string = JSON.stringify(example) -console.log(exampleJSON) - -// Parse the JSON string back to an object -const exampleParsed = JSON.parse(exampleJSON) as TimeDimensionOneOf1 -console.log(exampleParsed) -``` - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - - diff --git a/typescript/docs/MultiLineString1.md b/typescript/docs/TypedGeometryMultiLineString.md similarity index 72% rename from typescript/docs/MultiLineString1.md rename to typescript/docs/TypedGeometryMultiLineString.md index fe65cf46..bb5ed768 100644 --- a/typescript/docs/MultiLineString1.md +++ b/typescript/docs/TypedGeometryMultiLineString.md @@ -1,5 +1,5 @@ -# MultiLineString1 +# TypedGeometryMultiLineString ## Properties @@ -11,12 +11,12 @@ Name | Type ## Example ```typescript -import type { MultiLineString1 } from '@geoengine/openapi-client' +import type { TypedGeometryMultiLineString } from '@geoengine/openapi-client' // TODO: Update the object below with actual values const example = { "multiLineString": null, -} satisfies MultiLineString1 +} satisfies TypedGeometryMultiLineString console.log(example) @@ -25,7 +25,7 @@ const exampleJSON: string = JSON.stringify(example) console.log(exampleJSON) // Parse the JSON string back to an object -const exampleParsed = JSON.parse(exampleJSON) as MultiLineString1 +const exampleParsed = JSON.parse(exampleJSON) as TypedGeometryMultiLineString console.log(exampleParsed) ``` diff --git a/typescript/docs/MultiPoint1.md b/typescript/docs/TypedGeometryMultiPoint.md similarity index 73% rename from typescript/docs/MultiPoint1.md rename to typescript/docs/TypedGeometryMultiPoint.md index 37c24e1f..aa92077e 100644 --- a/typescript/docs/MultiPoint1.md +++ b/typescript/docs/TypedGeometryMultiPoint.md @@ -1,5 +1,5 @@ -# MultiPoint1 +# TypedGeometryMultiPoint ## Properties @@ -11,12 +11,12 @@ Name | Type ## Example ```typescript -import type { MultiPoint1 } from '@geoengine/openapi-client' +import type { TypedGeometryMultiPoint } from '@geoengine/openapi-client' // TODO: Update the object below with actual values const example = { "multiPoint": null, -} satisfies MultiPoint1 +} satisfies TypedGeometryMultiPoint console.log(example) @@ -25,7 +25,7 @@ const exampleJSON: string = JSON.stringify(example) console.log(exampleJSON) // Parse the JSON string back to an object -const exampleParsed = JSON.parse(exampleJSON) as MultiPoint1 +const exampleParsed = JSON.parse(exampleJSON) as TypedGeometryMultiPoint console.log(exampleParsed) ``` diff --git a/typescript/docs/MultiPolygon1.md b/typescript/docs/TypedGeometryMultiPolygon.md similarity index 73% rename from typescript/docs/MultiPolygon1.md rename to typescript/docs/TypedGeometryMultiPolygon.md index 40b430a5..623b7c7e 100644 --- a/typescript/docs/MultiPolygon1.md +++ b/typescript/docs/TypedGeometryMultiPolygon.md @@ -1,5 +1,5 @@ -# MultiPolygon1 +# TypedGeometryMultiPolygon ## Properties @@ -11,12 +11,12 @@ Name | Type ## Example ```typescript -import type { MultiPolygon1 } from '@geoengine/openapi-client' +import type { TypedGeometryMultiPolygon } from '@geoengine/openapi-client' // TODO: Update the object below with actual values const example = { "multiPolygon": null, -} satisfies MultiPolygon1 +} satisfies TypedGeometryMultiPolygon console.log(example) @@ -25,7 +25,7 @@ const exampleJSON: string = JSON.stringify(example) console.log(exampleJSON) // Parse the JSON string back to an object -const exampleParsed = JSON.parse(exampleJSON) as MultiPolygon1 +const exampleParsed = JSON.parse(exampleJSON) as TypedGeometryMultiPolygon console.log(exampleParsed) ``` diff --git a/typescript/docs/NoGeometry1.md b/typescript/docs/TypedGeometryNoGeometry.md similarity index 72% rename from typescript/docs/NoGeometry1.md rename to typescript/docs/TypedGeometryNoGeometry.md index 53827fa4..cf939f01 100644 --- a/typescript/docs/NoGeometry1.md +++ b/typescript/docs/TypedGeometryNoGeometry.md @@ -1,5 +1,5 @@ -# NoGeometry1 +# TypedGeometryNoGeometry ## Properties @@ -11,12 +11,12 @@ Name | Type ## Example ```typescript -import type { NoGeometry1 } from '@geoengine/openapi-client' +import type { TypedGeometryNoGeometry } from '@geoengine/openapi-client' // TODO: Update the object below with actual values const example = { "data": null, -} satisfies NoGeometry1 +} satisfies TypedGeometryNoGeometry console.log(example) @@ -25,7 +25,7 @@ const exampleJSON: string = JSON.stringify(example) console.log(exampleJSON) // Parse the JSON string back to an object -const exampleParsed = JSON.parse(exampleJSON) as NoGeometry1 +const exampleParsed = JSON.parse(exampleJSON) as TypedGeometryNoGeometry console.log(exampleParsed) ``` diff --git a/typescript/docs/TypedGeometryOneOf.md b/typescript/docs/TypedGeometryOneOf.md deleted file mode 100644 index eb8af3d8..00000000 --- a/typescript/docs/TypedGeometryOneOf.md +++ /dev/null @@ -1,34 +0,0 @@ - -# TypedGeometryOneOf - - -## Properties - -Name | Type ------------- | ------------- -`data` | any - -## Example - -```typescript -import type { TypedGeometryOneOf } from '@geoengine/openapi-client' - -// TODO: Update the object below with actual values -const example = { - "data": null, -} satisfies TypedGeometryOneOf - -console.log(example) - -// Convert the instance to a JSON string -const exampleJSON: string = JSON.stringify(example) -console.log(exampleJSON) - -// Parse the JSON string back to an object -const exampleParsed = JSON.parse(exampleJSON) as TypedGeometryOneOf -console.log(exampleParsed) -``` - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - - diff --git a/typescript/docs/TypedGeometryOneOf1.md b/typescript/docs/TypedGeometryOneOf1.md deleted file mode 100644 index 908c4bbe..00000000 --- a/typescript/docs/TypedGeometryOneOf1.md +++ /dev/null @@ -1,34 +0,0 @@ - -# TypedGeometryOneOf1 - - -## Properties - -Name | Type ------------- | ------------- -`multiPoint` | [MultiPoint](MultiPoint.md) - -## Example - -```typescript -import type { TypedGeometryOneOf1 } from '@geoengine/openapi-client' - -// TODO: Update the object below with actual values -const example = { - "multiPoint": null, -} satisfies TypedGeometryOneOf1 - -console.log(example) - -// Convert the instance to a JSON string -const exampleJSON: string = JSON.stringify(example) -console.log(exampleJSON) - -// Parse the JSON string back to an object -const exampleParsed = JSON.parse(exampleJSON) as TypedGeometryOneOf1 -console.log(exampleParsed) -``` - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - - diff --git a/typescript/docs/TypedGeometryOneOf2.md b/typescript/docs/TypedGeometryOneOf2.md deleted file mode 100644 index b0bb39a6..00000000 --- a/typescript/docs/TypedGeometryOneOf2.md +++ /dev/null @@ -1,34 +0,0 @@ - -# TypedGeometryOneOf2 - - -## Properties - -Name | Type ------------- | ------------- -`multiLineString` | [MultiLineString](MultiLineString.md) - -## Example - -```typescript -import type { TypedGeometryOneOf2 } from '@geoengine/openapi-client' - -// TODO: Update the object below with actual values -const example = { - "multiLineString": null, -} satisfies TypedGeometryOneOf2 - -console.log(example) - -// Convert the instance to a JSON string -const exampleJSON: string = JSON.stringify(example) -console.log(exampleJSON) - -// Parse the JSON string back to an object -const exampleParsed = JSON.parse(exampleJSON) as TypedGeometryOneOf2 -console.log(exampleParsed) -``` - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - - diff --git a/typescript/docs/TypedGeometryOneOf3.md b/typescript/docs/TypedGeometryOneOf3.md deleted file mode 100644 index 5dfd2842..00000000 --- a/typescript/docs/TypedGeometryOneOf3.md +++ /dev/null @@ -1,34 +0,0 @@ - -# TypedGeometryOneOf3 - - -## Properties - -Name | Type ------------- | ------------- -`multiPolygon` | [MultiPolygon](MultiPolygon.md) - -## Example - -```typescript -import type { TypedGeometryOneOf3 } from '@geoengine/openapi-client' - -// TODO: Update the object below with actual values -const example = { - "multiPolygon": null, -} satisfies TypedGeometryOneOf3 - -console.log(example) - -// Convert the instance to a JSON string -const exampleJSON: string = JSON.stringify(example) -console.log(exampleJSON) - -// Parse the JSON string back to an object -const exampleParsed = JSON.parse(exampleJSON) as TypedGeometryOneOf3 -console.log(exampleParsed) -``` - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - - diff --git a/typescript/docs/TypedOperatorOneOf.md b/typescript/docs/TypedOperatorOneOf.md deleted file mode 100644 index 45c296da..00000000 --- a/typescript/docs/TypedOperatorOneOf.md +++ /dev/null @@ -1,36 +0,0 @@ - -# TypedOperatorOneOf - - -## Properties - -Name | Type ------------- | ------------- -`operator` | [VectorOperator](VectorOperator.md) -`type` | string - -## Example - -```typescript -import type { TypedOperatorOneOf } from '@geoengine/openapi-client' - -// TODO: Update the object below with actual values -const example = { - "operator": null, - "type": null, -} satisfies TypedOperatorOneOf - -console.log(example) - -// Convert the instance to a JSON string -const exampleJSON: string = JSON.stringify(example) -console.log(exampleJSON) - -// Parse the JSON string back to an object -const exampleParsed = JSON.parse(exampleJSON) as TypedOperatorOneOf -console.log(exampleParsed) -``` - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - - diff --git a/typescript/docs/TypedOperatorOneOf1.md b/typescript/docs/TypedOperatorOneOf1.md deleted file mode 100644 index 98c0dd0c..00000000 --- a/typescript/docs/TypedOperatorOneOf1.md +++ /dev/null @@ -1,36 +0,0 @@ - -# TypedOperatorOneOf1 - - -## Properties - -Name | Type ------------- | ------------- -`operator` | [RasterOperator](RasterOperator.md) -`type` | string - -## Example - -```typescript -import type { TypedOperatorOneOf1 } from '@geoengine/openapi-client' - -// TODO: Update the object below with actual values -const example = { - "operator": null, - "type": null, -} satisfies TypedOperatorOneOf1 - -console.log(example) - -// Convert the instance to a JSON string -const exampleJSON: string = JSON.stringify(example) -console.log(exampleJSON) - -// Parse the JSON string back to an object -const exampleParsed = JSON.parse(exampleJSON) as TypedOperatorOneOf1 -console.log(exampleParsed) -``` - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - - diff --git a/typescript/docs/TypedOperatorOneOf2.md b/typescript/docs/TypedOperatorOneOf2.md deleted file mode 100644 index 185f2bf3..00000000 --- a/typescript/docs/TypedOperatorOneOf2.md +++ /dev/null @@ -1,36 +0,0 @@ - -# TypedOperatorOneOf2 - - -## Properties - -Name | Type ------------- | ------------- -`operator` | [PlotOperator](PlotOperator.md) -`type` | string - -## Example - -```typescript -import type { TypedOperatorOneOf2 } from '@geoengine/openapi-client' - -// TODO: Update the object below with actual values -const example = { - "operator": null, - "type": null, -} satisfies TypedOperatorOneOf2 - -console.log(example) - -// Convert the instance to a JSON string -const exampleJSON: string = JSON.stringify(example) -console.log(exampleJSON) - -// Parse the JSON string back to an object -const exampleParsed = JSON.parse(exampleJSON) as TypedOperatorOneOf2 -console.log(exampleParsed) -``` - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - - diff --git a/typescript/docs/Values.md b/typescript/docs/Values.md deleted file mode 100644 index 80aa1694..00000000 --- a/typescript/docs/Values.md +++ /dev/null @@ -1,34 +0,0 @@ - -# Values - - -## Properties - -Name | Type ------------- | ------------- -`values` | [ValuesValues](ValuesValues.md) - -## Example - -```typescript -import type { Values } from '@geoengine/openapi-client' - -// TODO: Update the object below with actual values -const example = { - "values": null, -} satisfies Values - -console.log(example) - -// Convert the instance to a JSON string -const exampleJSON: string = JSON.stringify(example) -console.log(exampleJSON) - -// Parse the JSON string back to an object -const exampleParsed = JSON.parse(exampleJSON) as Values -console.log(exampleParsed) -``` - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - - diff --git a/typescript/docs/ValuesValues.md b/typescript/docs/ValuesValues.md deleted file mode 100644 index 030f02d0..00000000 --- a/typescript/docs/ValuesValues.md +++ /dev/null @@ -1,36 +0,0 @@ - -# ValuesValues - - -## Properties - -Name | Type ------------- | ------------- -`max` | number -`min` | number - -## Example - -```typescript -import type { ValuesValues } from '@geoengine/openapi-client' - -// TODO: Update the object below with actual values -const example = { - "max": null, - "min": null, -} satisfies ValuesValues - -console.log(example) - -// Convert the instance to a JSON string -const exampleJSON: string = JSON.stringify(example) -console.log(exampleJSON) - -// Parse the JSON string back to an object -const exampleParsed = JSON.parse(exampleJSON) as ValuesValues -console.log(exampleParsed) -``` - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - - diff --git a/typescript/docs/Volume1.md b/typescript/docs/Volume1.md deleted file mode 100644 index 8d90fa7f..00000000 --- a/typescript/docs/Volume1.md +++ /dev/null @@ -1,34 +0,0 @@ - -# Volume1 - - -## Properties - -Name | Type ------------- | ------------- -`volume` | string - -## Example - -```typescript -import type { Volume1 } from '@geoengine/openapi-client' - -// TODO: Update the object below with actual values -const example = { - "volume": null, -} satisfies Volume1 - -console.log(example) - -// Convert the instance to a JSON string -const exampleJSON: string = JSON.stringify(example) -console.log(exampleJSON) - -// Parse the JSON string back to an object -const exampleParsed = JSON.parse(exampleJSON) as Volume1 -console.log(exampleParsed) -``` - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - - diff --git a/typescript/docs/WcsBoundingbox.md b/typescript/docs/WcsBoundingbox.md deleted file mode 100644 index 13fe65bb..00000000 --- a/typescript/docs/WcsBoundingbox.md +++ /dev/null @@ -1,36 +0,0 @@ - -# WcsBoundingbox - - -## Properties - -Name | Type ------------- | ------------- -`bbox` | Array<number> -`spatialReference` | string - -## Example - -```typescript -import type { WcsBoundingbox } from '@geoengine/openapi-client' - -// TODO: Update the object below with actual values -const example = { - "bbox": null, - "spatialReference": null, -} satisfies WcsBoundingbox - -console.log(example) - -// Convert the instance to a JSON string -const exampleJSON: string = JSON.stringify(example) -console.log(exampleJSON) - -// Parse the JSON string back to an object -const exampleParsed = JSON.parse(exampleJSON) as WcsBoundingbox -console.log(exampleParsed) -``` - -[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md) - - diff --git a/typescript/package.json b/typescript/package.json index 9433df9f..b6711452 100644 --- a/typescript/package.json +++ b/typescript/package.json @@ -16,6 +16,7 @@ "prepare": "npm run build" }, "devDependencies": { - "typescript": "^4.0 || ^5.0" + "typescript": "^4.0 || ^5.0", + "vitest": "^4.1.4" } } diff --git a/typescript/src/models/Data.ts b/typescript/src/models/Data.ts new file mode 100644 index 00000000..5673fe78 --- /dev/null +++ b/typescript/src/models/Data.ts @@ -0,0 +1,52 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +/** + * + * @export + */ +export const Data = { + Data: 'data' +} as const; +export type Data = typeof Data[keyof typeof Data]; + + +export function instanceOfData(value: any): boolean { + for (const key in Data) { + if (Object.prototype.hasOwnProperty.call(Data, key)) { + if (Data[key as keyof typeof Data] === value) { + return true; + } + } + } + return false; +} + +export function DataFromJSON(json: any): Data { + return DataFromJSONTyped(json, false); +} + +export function DataFromJSONTyped(json: any, ignoreDiscriminator: boolean): Data { + return json as Data; +} + +export function DataToJSON(value?: Data | null): any { + return value as any; +} + +export function DataToJSONTyped(value: any, ignoreDiscriminator: boolean): Data { + return value as Data; +} + diff --git a/typescript/src/models/Data1.ts b/typescript/src/models/Data1.ts deleted file mode 100644 index d3e491bf..00000000 --- a/typescript/src/models/Data1.ts +++ /dev/null @@ -1,66 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Geo Engine API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.9.0 - * Contact: dev@geoengine.de - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { mapValues } from '../runtime'; -/** - * - * @export - * @interface Data1 - */ -export interface Data1 { - /** - * - * @type {any} - * @memberof Data1 - */ - data: any | null; -} - -/** - * Check if a given object implements the Data1 interface. - */ -export function instanceOfData1(value: object): value is Data1 { - if (!('data' in value) || value['data'] === undefined) return false; - return true; -} - -export function Data1FromJSON(json: any): Data1 { - return Data1FromJSONTyped(json, false); -} - -export function Data1FromJSONTyped(json: any, ignoreDiscriminator: boolean): Data1 { - if (json == null) { - return json; - } - return { - - 'data': json['data'], - }; -} - -export function Data1ToJSON(json: any): Data1 { - return Data1ToJSONTyped(json, false); -} - -export function Data1ToJSONTyped(value?: Data1 | null, ignoreDiscriminator: boolean = false): any { - if (value == null) { - return value; - } - - return { - - 'data': value['data'], - }; -} - diff --git a/typescript/src/models/DataPath.ts b/typescript/src/models/DataPath.ts index 50f68d9a..d5219f34 100644 --- a/typescript/src/models/DataPath.ts +++ b/typescript/src/models/DataPath.ts @@ -12,27 +12,27 @@ * Do not edit the class manually. */ -import type { Upload } from './Upload'; +import type { DataPathUpload } from './DataPathUpload'; import { - instanceOfUpload, - UploadFromJSON, - UploadFromJSONTyped, - UploadToJSON, -} from './Upload'; -import type { Volume1 } from './Volume1'; + instanceOfDataPathUpload, + DataPathUploadFromJSON, + DataPathUploadFromJSONTyped, + DataPathUploadToJSON, +} from './DataPathUpload'; +import type { DataPathVolume } from './DataPathVolume'; import { - instanceOfVolume1, - Volume1FromJSON, - Volume1FromJSONTyped, - Volume1ToJSON, -} from './Volume1'; + instanceOfDataPathVolume, + DataPathVolumeFromJSON, + DataPathVolumeFromJSONTyped, + DataPathVolumeToJSON, +} from './DataPathVolume'; /** * @type DataPath * * @export */ -export type DataPath = Upload | Volume1; +export type DataPath = DataPathUpload | DataPathVolume; export function DataPathFromJSON(json: any): DataPath { return DataPathFromJSONTyped(json, false); @@ -45,11 +45,11 @@ export function DataPathFromJSONTyped(json: any, ignoreDiscriminator: boolean): if (typeof json !== 'object') { return json; } - if (instanceOfUpload(json)) { - return UploadFromJSONTyped(json, true); + if (instanceOfDataPathUpload(json)) { + return DataPathUploadFromJSONTyped(json, true); } - if (instanceOfVolume1(json)) { - return Volume1FromJSONTyped(json, true); + if (instanceOfDataPathVolume(json)) { + return DataPathVolumeFromJSONTyped(json, true); } return {} as any; } @@ -65,11 +65,11 @@ export function DataPathToJSONTyped(value?: DataPath | null, ignoreDiscriminator if (typeof value !== 'object') { return value; } - if (instanceOfUpload(value)) { - return UploadToJSON(value as Upload); + if (instanceOfDataPathUpload(value)) { + return DataPathUploadToJSON(value as DataPathUpload); } - if (instanceOfVolume1(value)) { - return Volume1ToJSON(value as Volume1); + if (instanceOfDataPathVolume(value)) { + return DataPathVolumeToJSON(value as DataPathVolume); } return {}; } diff --git a/typescript/src/models/Upload.ts b/typescript/src/models/DataPathUpload.ts similarity index 56% rename from typescript/src/models/Upload.ts rename to typescript/src/models/DataPathUpload.ts index ce55ef10..f418cc67 100644 --- a/typescript/src/models/Upload.ts +++ b/typescript/src/models/DataPathUpload.ts @@ -16,30 +16,30 @@ import { mapValues } from '../runtime'; /** * * @export - * @interface Upload + * @interface DataPathUpload */ -export interface Upload { +export interface DataPathUpload { /** * * @type {string} - * @memberof Upload + * @memberof DataPathUpload */ upload: string; } /** - * Check if a given object implements the Upload interface. + * Check if a given object implements the DataPathUpload interface. */ -export function instanceOfUpload(value: object): value is Upload { +export function instanceOfDataPathUpload(value: object): value is DataPathUpload { if (!('upload' in value) || value['upload'] === undefined) return false; return true; } -export function UploadFromJSON(json: any): Upload { - return UploadFromJSONTyped(json, false); +export function DataPathUploadFromJSON(json: any): DataPathUpload { + return DataPathUploadFromJSONTyped(json, false); } -export function UploadFromJSONTyped(json: any, ignoreDiscriminator: boolean): Upload { +export function DataPathUploadFromJSONTyped(json: any, ignoreDiscriminator: boolean): DataPathUpload { if (json == null) { return json; } @@ -49,11 +49,11 @@ export function UploadFromJSONTyped(json: any, ignoreDiscriminator: boolean): Up }; } -export function UploadToJSON(json: any): Upload { - return UploadToJSONTyped(json, false); +export function DataPathUploadToJSON(json: any): DataPathUpload { + return DataPathUploadToJSONTyped(json, false); } -export function UploadToJSONTyped(value?: Upload | null, ignoreDiscriminator: boolean = false): any { +export function DataPathUploadToJSONTyped(value?: DataPathUpload | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } diff --git a/typescript/src/models/Volume1.ts b/typescript/src/models/DataPathVolume.ts similarity index 56% rename from typescript/src/models/Volume1.ts rename to typescript/src/models/DataPathVolume.ts index 87f85a8a..25ab9cf4 100644 --- a/typescript/src/models/Volume1.ts +++ b/typescript/src/models/DataPathVolume.ts @@ -16,30 +16,30 @@ import { mapValues } from '../runtime'; /** * * @export - * @interface Volume1 + * @interface DataPathVolume */ -export interface Volume1 { +export interface DataPathVolume { /** * * @type {string} - * @memberof Volume1 + * @memberof DataPathVolume */ volume: string; } /** - * Check if a given object implements the Volume1 interface. + * Check if a given object implements the DataPathVolume interface. */ -export function instanceOfVolume1(value: object): value is Volume1 { +export function instanceOfDataPathVolume(value: object): value is DataPathVolume { if (!('volume' in value) || value['volume'] === undefined) return false; return true; } -export function Volume1FromJSON(json: any): Volume1 { - return Volume1FromJSONTyped(json, false); +export function DataPathVolumeFromJSON(json: any): DataPathVolume { + return DataPathVolumeFromJSONTyped(json, false); } -export function Volume1FromJSONTyped(json: any, ignoreDiscriminator: boolean): Volume1 { +export function DataPathVolumeFromJSONTyped(json: any, ignoreDiscriminator: boolean): DataPathVolume { if (json == null) { return json; } @@ -49,11 +49,11 @@ export function Volume1FromJSONTyped(json: any, ignoreDiscriminator: boolean): V }; } -export function Volume1ToJSON(json: any): Volume1 { - return Volume1ToJSONTyped(json, false); +export function DataPathVolumeToJSON(json: any): DataPathVolume { + return DataPathVolumeToJSONTyped(json, false); } -export function Volume1ToJSONTyped(value?: Volume1 | null, ignoreDiscriminator: boolean = false): any { +export function DataPathVolumeToJSONTyped(value?: DataPathVolume | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } diff --git a/typescript/src/models/Histogram.ts b/typescript/src/models/Histogram.ts index e51e48a8..b84c7990 100644 --- a/typescript/src/models/Histogram.ts +++ b/typescript/src/models/Histogram.ts @@ -13,6 +13,13 @@ */ import { mapValues } from '../runtime'; +import type { SingleVectorOrRasterSource } from './SingleVectorOrRasterSource'; +import { + SingleVectorOrRasterSourceFromJSON, + SingleVectorOrRasterSourceFromJSONTyped, + SingleVectorOrRasterSourceToJSON, + SingleVectorOrRasterSourceToJSONTyped, +} from './SingleVectorOrRasterSource'; import type { HistogramParameters } from './HistogramParameters'; import { HistogramParametersFromJSON, @@ -20,13 +27,6 @@ import { HistogramParametersToJSON, HistogramParametersToJSONTyped, } from './HistogramParameters'; -import type { SingleRasterOrVectorSource } from './SingleRasterOrVectorSource'; -import { - SingleRasterOrVectorSourceFromJSON, - SingleRasterOrVectorSourceFromJSONTyped, - SingleRasterOrVectorSourceToJSON, - SingleRasterOrVectorSourceToJSONTyped, -} from './SingleRasterOrVectorSource'; /** * The `Histogram` is a _plot operator_ that computes a histogram plot either over attributes of a vector dataset or values of a raster source. @@ -57,10 +57,10 @@ export interface Histogram { params: HistogramParameters; /** * - * @type {SingleRasterOrVectorSource} + * @type {SingleVectorOrRasterSource} * @memberof Histogram */ - sources: SingleRasterOrVectorSource; + sources: SingleVectorOrRasterSource; /** * * @type {HistogramTypeEnum} @@ -100,7 +100,7 @@ export function HistogramFromJSONTyped(json: any, ignoreDiscriminator: boolean): return { 'params': HistogramParametersFromJSON(json['params']), - 'sources': SingleRasterOrVectorSourceFromJSON(json['sources']), + 'sources': SingleVectorOrRasterSourceFromJSON(json['sources']), 'type': json['type'], }; } @@ -117,7 +117,7 @@ export function HistogramToJSONTyped(value?: Histogram | null, ignoreDiscriminat return { 'params': HistogramParametersToJSON(value['params']), - 'sources': SingleRasterOrVectorSourceToJSON(value['sources']), + 'sources': SingleVectorOrRasterSourceToJSON(value['sources']), 'type': value['type'], }; } diff --git a/typescript/src/models/HistogramBounds.ts b/typescript/src/models/HistogramBounds.ts index af29016e..f99d257a 100644 --- a/typescript/src/models/HistogramBounds.ts +++ b/typescript/src/models/HistogramBounds.ts @@ -12,27 +12,27 @@ * Do not edit the class manually. */ -import type { Data1 } from './Data1'; +import type { Data } from './Data'; import { - instanceOfData1, - Data1FromJSON, - Data1FromJSONTyped, - Data1ToJSON, -} from './Data1'; -import type { Values } from './Values'; + instanceOfData, + DataFromJSON, + DataFromJSONTyped, + DataToJSON, +} from './Data'; +import type { HistogramBoundsValues } from './HistogramBoundsValues'; import { - instanceOfValues, - ValuesFromJSON, - ValuesFromJSONTyped, - ValuesToJSON, -} from './Values'; + instanceOfHistogramBoundsValues, + HistogramBoundsValuesFromJSON, + HistogramBoundsValuesFromJSONTyped, + HistogramBoundsValuesToJSON, +} from './HistogramBoundsValues'; /** * @type HistogramBounds * * @export */ -export type HistogramBounds = Data1 | Values; +export type HistogramBounds = Data | HistogramBoundsValues; export function HistogramBoundsFromJSON(json: any): HistogramBounds { return HistogramBoundsFromJSONTyped(json, false); @@ -45,11 +45,11 @@ export function HistogramBoundsFromJSONTyped(json: any, ignoreDiscriminator: boo if (typeof json !== 'object') { return json; } - if (instanceOfData1(json)) { - return Data1FromJSONTyped(json, true); + if (instanceOfData(json)) { + return DataFromJSONTyped(json, true); } - if (instanceOfValues(json)) { - return ValuesFromJSONTyped(json, true); + if (instanceOfHistogramBoundsValues(json)) { + return HistogramBoundsValuesFromJSONTyped(json, true); } return {} as any; } @@ -65,11 +65,11 @@ export function HistogramBoundsToJSONTyped(value?: HistogramBounds | null, ignor if (typeof value !== 'object') { return value; } - if (instanceOfData1(value)) { - return Data1ToJSON(value as Data1); + if (instanceOfData(value)) { + return DataToJSON(value as unknown as Data); } - if (instanceOfValues(value)) { - return ValuesToJSON(value as Values); + if (instanceOfHistogramBoundsValues(value)) { + return HistogramBoundsValuesToJSON(value as HistogramBoundsValues); } return {}; } diff --git a/typescript/src/models/ValuesValues.ts b/typescript/src/models/HistogramBoundsValues.ts similarity index 55% rename from typescript/src/models/ValuesValues.ts rename to typescript/src/models/HistogramBoundsValues.ts index 098600d5..9fc514d8 100644 --- a/typescript/src/models/ValuesValues.ts +++ b/typescript/src/models/HistogramBoundsValues.ts @@ -16,37 +16,37 @@ import { mapValues } from '../runtime'; /** * * @export - * @interface ValuesValues + * @interface HistogramBoundsValues */ -export interface ValuesValues { +export interface HistogramBoundsValues { /** * * @type {number} - * @memberof ValuesValues + * @memberof HistogramBoundsValues */ max: number; /** * * @type {number} - * @memberof ValuesValues + * @memberof HistogramBoundsValues */ min: number; } /** - * Check if a given object implements the ValuesValues interface. + * Check if a given object implements the HistogramBoundsValues interface. */ -export function instanceOfValuesValues(value: object): value is ValuesValues { +export function instanceOfHistogramBoundsValues(value: object): value is HistogramBoundsValues { if (!('max' in value) || value['max'] === undefined) return false; if (!('min' in value) || value['min'] === undefined) return false; return true; } -export function ValuesValuesFromJSON(json: any): ValuesValues { - return ValuesValuesFromJSONTyped(json, false); +export function HistogramBoundsValuesFromJSON(json: any): HistogramBoundsValues { + return HistogramBoundsValuesFromJSONTyped(json, false); } -export function ValuesValuesFromJSONTyped(json: any, ignoreDiscriminator: boolean): ValuesValues { +export function HistogramBoundsValuesFromJSONTyped(json: any, ignoreDiscriminator: boolean): HistogramBoundsValues { if (json == null) { return json; } @@ -57,11 +57,11 @@ export function ValuesValuesFromJSONTyped(json: any, ignoreDiscriminator: boolea }; } -export function ValuesValuesToJSON(json: any): ValuesValues { - return ValuesValuesToJSONTyped(json, false); +export function HistogramBoundsValuesToJSON(json: any): HistogramBoundsValues { + return HistogramBoundsValuesToJSONTyped(json, false); } -export function ValuesValuesToJSONTyped(value?: ValuesValues | null, ignoreDiscriminator: boolean = false): any { +export function HistogramBoundsValuesToJSONTyped(value?: HistogramBoundsValues | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } diff --git a/typescript/src/models/HistogramBuckets.ts b/typescript/src/models/HistogramBuckets.ts index a197be13..dd634acd 100644 --- a/typescript/src/models/HistogramBuckets.ts +++ b/typescript/src/models/HistogramBuckets.ts @@ -12,27 +12,27 @@ * Do not edit the class manually. */ -import type { Number } from './Number'; +import type { HistogramBucketsNumber } from './HistogramBucketsNumber'; import { - instanceOfNumber, - NumberFromJSON, - NumberFromJSONTyped, - NumberToJSON, -} from './Number'; -import type { SquareRootChoiceRule } from './SquareRootChoiceRule'; + instanceOfHistogramBucketsNumber, + HistogramBucketsNumberFromJSON, + HistogramBucketsNumberFromJSONTyped, + HistogramBucketsNumberToJSON, +} from './HistogramBucketsNumber'; +import type { HistogramBucketsSquareRootChoiceRule } from './HistogramBucketsSquareRootChoiceRule'; import { - instanceOfSquareRootChoiceRule, - SquareRootChoiceRuleFromJSON, - SquareRootChoiceRuleFromJSONTyped, - SquareRootChoiceRuleToJSON, -} from './SquareRootChoiceRule'; + instanceOfHistogramBucketsSquareRootChoiceRule, + HistogramBucketsSquareRootChoiceRuleFromJSON, + HistogramBucketsSquareRootChoiceRuleFromJSONTyped, + HistogramBucketsSquareRootChoiceRuleToJSON, +} from './HistogramBucketsSquareRootChoiceRule'; /** * @type HistogramBuckets * * @export */ -export type HistogramBuckets = Number | SquareRootChoiceRule; +export type HistogramBuckets = { type: 'number' } & HistogramBucketsNumber | { type: 'squareRootChoiceRule' } & HistogramBucketsSquareRootChoiceRule; export function HistogramBucketsFromJSON(json: any): HistogramBuckets { return HistogramBucketsFromJSONTyped(json, false); @@ -42,16 +42,14 @@ export function HistogramBucketsFromJSONTyped(json: any, ignoreDiscriminator: bo if (json == null) { return json; } - if (typeof json !== 'object') { - return json; - } - if (instanceOfNumber(json)) { - return NumberFromJSONTyped(json, true); - } - if (instanceOfSquareRootChoiceRule(json)) { - return SquareRootChoiceRuleFromJSONTyped(json, true); + switch (json['type']) { + case 'number': + return Object.assign({}, HistogramBucketsNumberFromJSONTyped(json, true), { type: 'number' } as const); + case 'squareRootChoiceRule': + return Object.assign({}, HistogramBucketsSquareRootChoiceRuleFromJSONTyped(json, true), { type: 'squareRootChoiceRule' } as const); + default: + return json; } - return {} as any; } export function HistogramBucketsToJSON(json: any): any { @@ -62,15 +60,13 @@ export function HistogramBucketsToJSONTyped(value?: HistogramBuckets | null, ign if (value == null) { return value; } - if (typeof value !== 'object') { - return value; - } - if (instanceOfNumber(value)) { - return NumberToJSON(value as Number); - } - if (instanceOfSquareRootChoiceRule(value)) { - return SquareRootChoiceRuleToJSON(value as SquareRootChoiceRule); + switch (value['type']) { + case 'number': + return Object.assign({}, HistogramBucketsNumberToJSON(value), { type: 'number' } as const); + case 'squareRootChoiceRule': + return Object.assign({}, HistogramBucketsSquareRootChoiceRuleToJSON(value), { type: 'squareRootChoiceRule' } as const); + default: + return value; } - return {}; } diff --git a/typescript/src/models/HistogramBucketsNumber.ts b/typescript/src/models/HistogramBucketsNumber.ts new file mode 100644 index 00000000..fe856737 --- /dev/null +++ b/typescript/src/models/HistogramBucketsNumber.ts @@ -0,0 +1,85 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface HistogramBucketsNumber + */ +export interface HistogramBucketsNumber { + /** + * + * @type {HistogramBucketsNumberTypeEnum} + * @memberof HistogramBucketsNumber + */ + type: HistogramBucketsNumberTypeEnum; + /** + * + * @type {number} + * @memberof HistogramBucketsNumber + */ + value: number; +} + + +/** + * @export + */ +export const HistogramBucketsNumberTypeEnum = { + Number: 'number' +} as const; +export type HistogramBucketsNumberTypeEnum = typeof HistogramBucketsNumberTypeEnum[keyof typeof HistogramBucketsNumberTypeEnum]; + + +/** + * Check if a given object implements the HistogramBucketsNumber interface. + */ +export function instanceOfHistogramBucketsNumber(value: object): value is HistogramBucketsNumber { + if (!('type' in value) || value['type'] === undefined) return false; + if (!('value' in value) || value['value'] === undefined) return false; + return true; +} + +export function HistogramBucketsNumberFromJSON(json: any): HistogramBucketsNumber { + return HistogramBucketsNumberFromJSONTyped(json, false); +} + +export function HistogramBucketsNumberFromJSONTyped(json: any, ignoreDiscriminator: boolean): HistogramBucketsNumber { + if (json == null) { + return json; + } + return { + + 'type': json['type'], + 'value': json['value'], + }; +} + +export function HistogramBucketsNumberToJSON(json: any): HistogramBucketsNumber { + return HistogramBucketsNumberToJSONTyped(json, false); +} + +export function HistogramBucketsNumberToJSONTyped(value?: HistogramBucketsNumber | null, ignoreDiscriminator: boolean = false): any { + if (value == null) { + return value; + } + + return { + + 'type': value['type'], + 'value': value['value'], + }; +} + diff --git a/typescript/src/models/HistogramBucketsSquareRootChoiceRule.ts b/typescript/src/models/HistogramBucketsSquareRootChoiceRule.ts new file mode 100644 index 00000000..52d198b1 --- /dev/null +++ b/typescript/src/models/HistogramBucketsSquareRootChoiceRule.ts @@ -0,0 +1,84 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface HistogramBucketsSquareRootChoiceRule + */ +export interface HistogramBucketsSquareRootChoiceRule { + /** + * + * @type {number} + * @memberof HistogramBucketsSquareRootChoiceRule + */ + maxNumberOfBuckets?: number; + /** + * + * @type {HistogramBucketsSquareRootChoiceRuleTypeEnum} + * @memberof HistogramBucketsSquareRootChoiceRule + */ + type: HistogramBucketsSquareRootChoiceRuleTypeEnum; +} + + +/** + * @export + */ +export const HistogramBucketsSquareRootChoiceRuleTypeEnum = { + SquareRootChoiceRule: 'squareRootChoiceRule' +} as const; +export type HistogramBucketsSquareRootChoiceRuleTypeEnum = typeof HistogramBucketsSquareRootChoiceRuleTypeEnum[keyof typeof HistogramBucketsSquareRootChoiceRuleTypeEnum]; + + +/** + * Check if a given object implements the HistogramBucketsSquareRootChoiceRule interface. + */ +export function instanceOfHistogramBucketsSquareRootChoiceRule(value: object): value is HistogramBucketsSquareRootChoiceRule { + if (!('type' in value) || value['type'] === undefined) return false; + return true; +} + +export function HistogramBucketsSquareRootChoiceRuleFromJSON(json: any): HistogramBucketsSquareRootChoiceRule { + return HistogramBucketsSquareRootChoiceRuleFromJSONTyped(json, false); +} + +export function HistogramBucketsSquareRootChoiceRuleFromJSONTyped(json: any, ignoreDiscriminator: boolean): HistogramBucketsSquareRootChoiceRule { + if (json == null) { + return json; + } + return { + + 'maxNumberOfBuckets': json['maxNumberOfBuckets'] == null ? undefined : json['maxNumberOfBuckets'], + 'type': json['type'], + }; +} + +export function HistogramBucketsSquareRootChoiceRuleToJSON(json: any): HistogramBucketsSquareRootChoiceRule { + return HistogramBucketsSquareRootChoiceRuleToJSONTyped(json, false); +} + +export function HistogramBucketsSquareRootChoiceRuleToJSONTyped(value?: HistogramBucketsSquareRootChoiceRule | null, ignoreDiscriminator: boolean = false): any { + if (value == null) { + return value; + } + + return { + + 'maxNumberOfBuckets': value['maxNumberOfBuckets'], + 'type': value['type'], + }; +} + diff --git a/typescript/src/models/HistogramParameters.ts b/typescript/src/models/HistogramParameters.ts index 4f3dfb6b..1b2f7c48 100644 --- a/typescript/src/models/HistogramParameters.ts +++ b/typescript/src/models/HistogramParameters.ts @@ -35,13 +35,8 @@ import { */ export interface HistogramParameters { /** - * Name of the (numeric) vector attribute or raster band to compute the histogram on. - * @type {string} - * @memberof HistogramParameters - */ - attributeName: string; - /** - * If `data`, it computes the bounds of the underlying data. If `values`, one can specify custom bounds. + * If `data`, it computes the bounds of the underlying data. + * If `{ "min": ..., "max": ... }`, one can specify custom bounds. * @type {HistogramBounds} * @memberof HistogramParameters */ @@ -52,6 +47,12 @@ export interface HistogramParameters { * @memberof HistogramParameters */ buckets: HistogramBuckets; + /** + * Name of the (numeric) vector attribute or raster band to compute the histogram on. + * @type {string} + * @memberof HistogramParameters + */ + columnName: string; /** * Flag, if the histogram should have user interactions for a range selection. It is `false` by default. * @type {boolean} @@ -64,9 +65,9 @@ export interface HistogramParameters { * Check if a given object implements the HistogramParameters interface. */ export function instanceOfHistogramParameters(value: object): value is HistogramParameters { - if (!('attributeName' in value) || value['attributeName'] === undefined) return false; if (!('bounds' in value) || value['bounds'] === undefined) return false; if (!('buckets' in value) || value['buckets'] === undefined) return false; + if (!('columnName' in value) || value['columnName'] === undefined) return false; return true; } @@ -80,9 +81,9 @@ export function HistogramParametersFromJSONTyped(json: any, ignoreDiscriminator: } return { - 'attributeName': json['attributeName'], 'bounds': HistogramBoundsFromJSON(json['bounds']), 'buckets': HistogramBucketsFromJSON(json['buckets']), + 'columnName': json['columnName'], 'interactive': json['interactive'] == null ? undefined : json['interactive'], }; } @@ -98,9 +99,9 @@ export function HistogramParametersToJSONTyped(value?: HistogramParameters | nul return { - 'attributeName': value['attributeName'], 'bounds': HistogramBoundsToJSON(value['bounds']), 'buckets': HistogramBucketsToJSON(value['buckets']), + 'columnName': value['columnName'], 'interactive': value['interactive'], }; } diff --git a/typescript/src/models/Number.ts b/typescript/src/models/Number.ts deleted file mode 100644 index 1bd448d2..00000000 --- a/typescript/src/models/Number.ts +++ /dev/null @@ -1,85 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Geo Engine API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.9.0 - * Contact: dev@geoengine.de - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { mapValues } from '../runtime'; -/** - * - * @export - * @interface Number - */ -export interface Number { - /** - * - * @type {NumberTypeEnum} - * @memberof Number - */ - type: NumberTypeEnum; - /** - * - * @type {number} - * @memberof Number - */ - value: number; -} - - -/** - * @export - */ -export const NumberTypeEnum = { - Number: 'number' -} as const; -export type NumberTypeEnum = typeof NumberTypeEnum[keyof typeof NumberTypeEnum]; - - -/** - * Check if a given object implements the Number interface. - */ -export function instanceOfNumber(value: object): value is Number { - if (!('type' in value) || value['type'] === undefined) return false; - if (!('value' in value) || value['value'] === undefined) return false; - return true; -} - -export function NumberFromJSON(json: any): Number { - return NumberFromJSONTyped(json, false); -} - -export function NumberFromJSONTyped(json: any, ignoreDiscriminator: boolean): Number { - if (json == null) { - return json; - } - return { - - 'type': json['type'], - 'value': json['value'], - }; -} - -export function NumberToJSON(json: any): Number { - return NumberToJSONTyped(json, false); -} - -export function NumberToJSONTyped(value?: Number | null, ignoreDiscriminator: boolean = false): any { - if (value == null) { - return value; - } - - return { - - 'type': value['type'], - 'value': value['value'], - }; -} - diff --git a/typescript/src/models/OgrSource.ts b/typescript/src/models/OgrSource.ts new file mode 100644 index 00000000..db14540a --- /dev/null +++ b/typescript/src/models/OgrSource.ts @@ -0,0 +1,99 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +import type { OgrSourceParameters } from './OgrSourceParameters'; +import { + OgrSourceParametersFromJSON, + OgrSourceParametersFromJSONTyped, + OgrSourceParametersToJSON, + OgrSourceParametersToJSONTyped, +} from './OgrSourceParameters'; + +/** + * The [`OgrSource`] is a source operator that reads vector data using OGR (part of GDAL). + * The counterpart for raster data is the [`GdalSource`]. + * + * ## Errors + * + * If the given dataset does not exist or is not readable, an error is thrown. + * + * @export + * @interface OgrSource + */ +export interface OgrSource { + /** + * + * @type {OgrSourceParameters} + * @memberof OgrSource + */ + params: OgrSourceParameters; + /** + * + * @type {OgrSourceTypeEnum} + * @memberof OgrSource + */ + type: OgrSourceTypeEnum; +} + + +/** + * @export + */ +export const OgrSourceTypeEnum = { + OgrSource: 'OgrSource' +} as const; +export type OgrSourceTypeEnum = typeof OgrSourceTypeEnum[keyof typeof OgrSourceTypeEnum]; + + +/** + * Check if a given object implements the OgrSource interface. + */ +export function instanceOfOgrSource(value: object): value is OgrSource { + if (!('params' in value) || value['params'] === undefined) return false; + if (!('type' in value) || value['type'] === undefined) return false; + return true; +} + +export function OgrSourceFromJSON(json: any): OgrSource { + return OgrSourceFromJSONTyped(json, false); +} + +export function OgrSourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): OgrSource { + if (json == null) { + return json; + } + return { + + 'params': OgrSourceParametersFromJSON(json['params']), + 'type': json['type'], + }; +} + +export function OgrSourceToJSON(json: any): OgrSource { + return OgrSourceToJSONTyped(json, false); +} + +export function OgrSourceToJSONTyped(value?: OgrSource | null, ignoreDiscriminator: boolean = false): any { + if (value == null) { + return value; + } + + return { + + 'params': OgrSourceParametersToJSON(value['params']), + 'type': value['type'], + }; +} + diff --git a/typescript/src/models/OgrSourceParameters.ts b/typescript/src/models/OgrSourceParameters.ts new file mode 100644 index 00000000..6afb2dc8 --- /dev/null +++ b/typescript/src/models/OgrSourceParameters.ts @@ -0,0 +1,74 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * Parameters for the [`OgrSource`] operator. + * @export + * @interface OgrSourceParameters + */ +export interface OgrSourceParameters { + /** + * *Optional*: list of attributes to include. When `None`, all attributes are included. + * @type {Array} + * @memberof OgrSourceParameters + */ + attributeProjection?: Array | null; + /** + * Dataset name or identifier to be loaded. + * @type {string} + * @memberof OgrSourceParameters + */ + data: string; +} + +/** + * Check if a given object implements the OgrSourceParameters interface. + */ +export function instanceOfOgrSourceParameters(value: object): value is OgrSourceParameters { + if (!('data' in value) || value['data'] === undefined) return false; + return true; +} + +export function OgrSourceParametersFromJSON(json: any): OgrSourceParameters { + return OgrSourceParametersFromJSONTyped(json, false); +} + +export function OgrSourceParametersFromJSONTyped(json: any, ignoreDiscriminator: boolean): OgrSourceParameters { + if (json == null) { + return json; + } + return { + + 'attributeProjection': json['attributeProjection'] == null ? undefined : json['attributeProjection'], + 'data': json['data'], + }; +} + +export function OgrSourceParametersToJSON(json: any): OgrSourceParameters { + return OgrSourceParametersToJSONTyped(json, false); +} + +export function OgrSourceParametersToJSONTyped(value?: OgrSourceParameters | null, ignoreDiscriminator: boolean = false): any { + if (value == null) { + return value; + } + + return { + + 'attributeProjection': value['attributeProjection'], + 'data': value['data'], + }; +} + diff --git a/typescript/src/models/SingleVectorOrRasterSource.ts b/typescript/src/models/SingleVectorOrRasterSource.ts new file mode 100644 index 00000000..5f0b19e0 --- /dev/null +++ b/typescript/src/models/SingleVectorOrRasterSource.ts @@ -0,0 +1,74 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Geo Engine API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.9.0 + * Contact: dev@geoengine.de + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +import type { SingleRasterOrVectorOperator } from './SingleRasterOrVectorOperator'; +import { + SingleRasterOrVectorOperatorFromJSON, + SingleRasterOrVectorOperatorFromJSONTyped, + SingleRasterOrVectorOperatorToJSON, + SingleRasterOrVectorOperatorToJSONTyped, +} from './SingleRasterOrVectorOperator'; + +/** + * A single vector or raster operator as source for this operator, keyed as "vector" in JSON. + * @export + * @interface SingleVectorOrRasterSource + */ +export interface SingleVectorOrRasterSource { + /** + * + * @type {SingleRasterOrVectorOperator} + * @memberof SingleVectorOrRasterSource + */ + vector: SingleRasterOrVectorOperator; +} + +/** + * Check if a given object implements the SingleVectorOrRasterSource interface. + */ +export function instanceOfSingleVectorOrRasterSource(value: object): value is SingleVectorOrRasterSource { + if (!('vector' in value) || value['vector'] === undefined) return false; + return true; +} + +export function SingleVectorOrRasterSourceFromJSON(json: any): SingleVectorOrRasterSource { + return SingleVectorOrRasterSourceFromJSONTyped(json, false); +} + +export function SingleVectorOrRasterSourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): SingleVectorOrRasterSource { + if (json == null) { + return json; + } + return { + + 'vector': SingleRasterOrVectorOperatorFromJSON(json['vector']), + }; +} + +export function SingleVectorOrRasterSourceToJSON(json: any): SingleVectorOrRasterSource { + return SingleVectorOrRasterSourceToJSONTyped(json, false); +} + +export function SingleVectorOrRasterSourceToJSONTyped(value?: SingleVectorOrRasterSource | null, ignoreDiscriminator: boolean = false): any { + if (value == null) { + return value; + } + + return { + + 'vector': SingleRasterOrVectorOperatorToJSON(value['vector']), + }; +} + diff --git a/typescript/src/models/SquareRootChoiceRule.ts b/typescript/src/models/SquareRootChoiceRule.ts deleted file mode 100644 index 81b2048e..00000000 --- a/typescript/src/models/SquareRootChoiceRule.ts +++ /dev/null @@ -1,84 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Geo Engine API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.9.0 - * Contact: dev@geoengine.de - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { mapValues } from '../runtime'; -/** - * - * @export - * @interface SquareRootChoiceRule - */ -export interface SquareRootChoiceRule { - /** - * - * @type {number} - * @memberof SquareRootChoiceRule - */ - maxNumberOfBuckets?: number; - /** - * - * @type {SquareRootChoiceRuleTypeEnum} - * @memberof SquareRootChoiceRule - */ - type: SquareRootChoiceRuleTypeEnum; -} - - -/** - * @export - */ -export const SquareRootChoiceRuleTypeEnum = { - SquareRootChoiceRule: 'squareRootChoiceRule' -} as const; -export type SquareRootChoiceRuleTypeEnum = typeof SquareRootChoiceRuleTypeEnum[keyof typeof SquareRootChoiceRuleTypeEnum]; - - -/** - * Check if a given object implements the SquareRootChoiceRule interface. - */ -export function instanceOfSquareRootChoiceRule(value: object): value is SquareRootChoiceRule { - if (!('type' in value) || value['type'] === undefined) return false; - return true; -} - -export function SquareRootChoiceRuleFromJSON(json: any): SquareRootChoiceRule { - return SquareRootChoiceRuleFromJSONTyped(json, false); -} - -export function SquareRootChoiceRuleFromJSONTyped(json: any, ignoreDiscriminator: boolean): SquareRootChoiceRule { - if (json == null) { - return json; - } - return { - - 'maxNumberOfBuckets': json['maxNumberOfBuckets'] == null ? undefined : json['maxNumberOfBuckets'], - 'type': json['type'], - }; -} - -export function SquareRootChoiceRuleToJSON(json: any): SquareRootChoiceRule { - return SquareRootChoiceRuleToJSONTyped(json, false); -} - -export function SquareRootChoiceRuleToJSONTyped(value?: SquareRootChoiceRule | null, ignoreDiscriminator: boolean = false): any { - if (value == null) { - return value; - } - - return { - - 'maxNumberOfBuckets': value['maxNumberOfBuckets'], - 'type': value['type'], - }; -} - diff --git a/typescript/src/models/TypedGeometry.ts b/typescript/src/models/TypedGeometry.ts index 6886f2d4..87a931ab 100644 --- a/typescript/src/models/TypedGeometry.ts +++ b/typescript/src/models/TypedGeometry.ts @@ -12,41 +12,41 @@ * Do not edit the class manually. */ -import type { MultiLineString1 } from './MultiLineString1'; +import type { TypedGeometryMultiLineString } from './TypedGeometryMultiLineString'; import { - instanceOfMultiLineString1, - MultiLineString1FromJSON, - MultiLineString1FromJSONTyped, - MultiLineString1ToJSON, -} from './MultiLineString1'; -import type { MultiPoint1 } from './MultiPoint1'; + instanceOfTypedGeometryMultiLineString, + TypedGeometryMultiLineStringFromJSON, + TypedGeometryMultiLineStringFromJSONTyped, + TypedGeometryMultiLineStringToJSON, +} from './TypedGeometryMultiLineString'; +import type { TypedGeometryMultiPoint } from './TypedGeometryMultiPoint'; import { - instanceOfMultiPoint1, - MultiPoint1FromJSON, - MultiPoint1FromJSONTyped, - MultiPoint1ToJSON, -} from './MultiPoint1'; -import type { MultiPolygon1 } from './MultiPolygon1'; + instanceOfTypedGeometryMultiPoint, + TypedGeometryMultiPointFromJSON, + TypedGeometryMultiPointFromJSONTyped, + TypedGeometryMultiPointToJSON, +} from './TypedGeometryMultiPoint'; +import type { TypedGeometryMultiPolygon } from './TypedGeometryMultiPolygon'; import { - instanceOfMultiPolygon1, - MultiPolygon1FromJSON, - MultiPolygon1FromJSONTyped, - MultiPolygon1ToJSON, -} from './MultiPolygon1'; -import type { NoGeometry1 } from './NoGeometry1'; + instanceOfTypedGeometryMultiPolygon, + TypedGeometryMultiPolygonFromJSON, + TypedGeometryMultiPolygonFromJSONTyped, + TypedGeometryMultiPolygonToJSON, +} from './TypedGeometryMultiPolygon'; +import type { TypedGeometryNoGeometry } from './TypedGeometryNoGeometry'; import { - instanceOfNoGeometry1, - NoGeometry1FromJSON, - NoGeometry1FromJSONTyped, - NoGeometry1ToJSON, -} from './NoGeometry1'; + instanceOfTypedGeometryNoGeometry, + TypedGeometryNoGeometryFromJSON, + TypedGeometryNoGeometryFromJSONTyped, + TypedGeometryNoGeometryToJSON, +} from './TypedGeometryNoGeometry'; /** * @type TypedGeometry * * @export */ -export type TypedGeometry = MultiLineString1 | MultiPoint1 | MultiPolygon1 | NoGeometry1; +export type TypedGeometry = TypedGeometryMultiLineString | TypedGeometryMultiPoint | TypedGeometryMultiPolygon | TypedGeometryNoGeometry; export function TypedGeometryFromJSON(json: any): TypedGeometry { return TypedGeometryFromJSONTyped(json, false); @@ -59,17 +59,17 @@ export function TypedGeometryFromJSONTyped(json: any, ignoreDiscriminator: boole if (typeof json !== 'object') { return json; } - if (instanceOfMultiLineString1(json)) { - return MultiLineString1FromJSONTyped(json, true); + if (instanceOfTypedGeometryMultiLineString(json)) { + return TypedGeometryMultiLineStringFromJSONTyped(json, true); } - if (instanceOfMultiPoint1(json)) { - return MultiPoint1FromJSONTyped(json, true); + if (instanceOfTypedGeometryMultiPoint(json)) { + return TypedGeometryMultiPointFromJSONTyped(json, true); } - if (instanceOfMultiPolygon1(json)) { - return MultiPolygon1FromJSONTyped(json, true); + if (instanceOfTypedGeometryMultiPolygon(json)) { + return TypedGeometryMultiPolygonFromJSONTyped(json, true); } - if (instanceOfNoGeometry1(json)) { - return NoGeometry1FromJSONTyped(json, true); + if (instanceOfTypedGeometryNoGeometry(json)) { + return TypedGeometryNoGeometryFromJSONTyped(json, true); } return {} as any; } @@ -85,17 +85,17 @@ export function TypedGeometryToJSONTyped(value?: TypedGeometry | null, ignoreDis if (typeof value !== 'object') { return value; } - if (instanceOfMultiLineString1(value)) { - return MultiLineString1ToJSON(value as MultiLineString1); + if (instanceOfTypedGeometryMultiLineString(value)) { + return TypedGeometryMultiLineStringToJSON(value as TypedGeometryMultiLineString); } - if (instanceOfMultiPoint1(value)) { - return MultiPoint1ToJSON(value as MultiPoint1); + if (instanceOfTypedGeometryMultiPoint(value)) { + return TypedGeometryMultiPointToJSON(value as TypedGeometryMultiPoint); } - if (instanceOfMultiPolygon1(value)) { - return MultiPolygon1ToJSON(value as MultiPolygon1); + if (instanceOfTypedGeometryMultiPolygon(value)) { + return TypedGeometryMultiPolygonToJSON(value as TypedGeometryMultiPolygon); } - if (instanceOfNoGeometry1(value)) { - return NoGeometry1ToJSON(value as NoGeometry1); + if (instanceOfTypedGeometryNoGeometry(value)) { + return TypedGeometryNoGeometryToJSON(value as TypedGeometryNoGeometry); } return {}; } diff --git a/typescript/src/models/MultiLineString1.ts b/typescript/src/models/TypedGeometryMultiLineString.ts similarity index 57% rename from typescript/src/models/MultiLineString1.ts rename to typescript/src/models/TypedGeometryMultiLineString.ts index 9052878c..a48586be 100644 --- a/typescript/src/models/MultiLineString1.ts +++ b/typescript/src/models/TypedGeometryMultiLineString.ts @@ -24,30 +24,30 @@ import { /** * * @export - * @interface MultiLineString1 + * @interface TypedGeometryMultiLineString */ -export interface MultiLineString1 { +export interface TypedGeometryMultiLineString { /** * * @type {MultiLineString} - * @memberof MultiLineString1 + * @memberof TypedGeometryMultiLineString */ multiLineString: MultiLineString; } /** - * Check if a given object implements the MultiLineString1 interface. + * Check if a given object implements the TypedGeometryMultiLineString interface. */ -export function instanceOfMultiLineString1(value: object): value is MultiLineString1 { +export function instanceOfTypedGeometryMultiLineString(value: object): value is TypedGeometryMultiLineString { if (!('multiLineString' in value) || value['multiLineString'] === undefined) return false; return true; } -export function MultiLineString1FromJSON(json: any): MultiLineString1 { - return MultiLineString1FromJSONTyped(json, false); +export function TypedGeometryMultiLineStringFromJSON(json: any): TypedGeometryMultiLineString { + return TypedGeometryMultiLineStringFromJSONTyped(json, false); } -export function MultiLineString1FromJSONTyped(json: any, ignoreDiscriminator: boolean): MultiLineString1 { +export function TypedGeometryMultiLineStringFromJSONTyped(json: any, ignoreDiscriminator: boolean): TypedGeometryMultiLineString { if (json == null) { return json; } @@ -57,11 +57,11 @@ export function MultiLineString1FromJSONTyped(json: any, ignoreDiscriminator: bo }; } -export function MultiLineString1ToJSON(json: any): MultiLineString1 { - return MultiLineString1ToJSONTyped(json, false); +export function TypedGeometryMultiLineStringToJSON(json: any): TypedGeometryMultiLineString { + return TypedGeometryMultiLineStringToJSONTyped(json, false); } -export function MultiLineString1ToJSONTyped(value?: MultiLineString1 | null, ignoreDiscriminator: boolean = false): any { +export function TypedGeometryMultiLineStringToJSONTyped(value?: TypedGeometryMultiLineString | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } diff --git a/typescript/src/models/MultiPoint1.ts b/typescript/src/models/TypedGeometryMultiPoint.ts similarity index 57% rename from typescript/src/models/MultiPoint1.ts rename to typescript/src/models/TypedGeometryMultiPoint.ts index 59879079..79bdc6ad 100644 --- a/typescript/src/models/MultiPoint1.ts +++ b/typescript/src/models/TypedGeometryMultiPoint.ts @@ -24,30 +24,30 @@ import { /** * * @export - * @interface MultiPoint1 + * @interface TypedGeometryMultiPoint */ -export interface MultiPoint1 { +export interface TypedGeometryMultiPoint { /** * * @type {MultiPoint} - * @memberof MultiPoint1 + * @memberof TypedGeometryMultiPoint */ multiPoint: MultiPoint; } /** - * Check if a given object implements the MultiPoint1 interface. + * Check if a given object implements the TypedGeometryMultiPoint interface. */ -export function instanceOfMultiPoint1(value: object): value is MultiPoint1 { +export function instanceOfTypedGeometryMultiPoint(value: object): value is TypedGeometryMultiPoint { if (!('multiPoint' in value) || value['multiPoint'] === undefined) return false; return true; } -export function MultiPoint1FromJSON(json: any): MultiPoint1 { - return MultiPoint1FromJSONTyped(json, false); +export function TypedGeometryMultiPointFromJSON(json: any): TypedGeometryMultiPoint { + return TypedGeometryMultiPointFromJSONTyped(json, false); } -export function MultiPoint1FromJSONTyped(json: any, ignoreDiscriminator: boolean): MultiPoint1 { +export function TypedGeometryMultiPointFromJSONTyped(json: any, ignoreDiscriminator: boolean): TypedGeometryMultiPoint { if (json == null) { return json; } @@ -57,11 +57,11 @@ export function MultiPoint1FromJSONTyped(json: any, ignoreDiscriminator: boolean }; } -export function MultiPoint1ToJSON(json: any): MultiPoint1 { - return MultiPoint1ToJSONTyped(json, false); +export function TypedGeometryMultiPointToJSON(json: any): TypedGeometryMultiPoint { + return TypedGeometryMultiPointToJSONTyped(json, false); } -export function MultiPoint1ToJSONTyped(value?: MultiPoint1 | null, ignoreDiscriminator: boolean = false): any { +export function TypedGeometryMultiPointToJSONTyped(value?: TypedGeometryMultiPoint | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } diff --git a/typescript/src/models/MultiPolygon1.ts b/typescript/src/models/TypedGeometryMultiPolygon.ts similarity index 57% rename from typescript/src/models/MultiPolygon1.ts rename to typescript/src/models/TypedGeometryMultiPolygon.ts index 783408c5..88fe6cf3 100644 --- a/typescript/src/models/MultiPolygon1.ts +++ b/typescript/src/models/TypedGeometryMultiPolygon.ts @@ -24,30 +24,30 @@ import { /** * * @export - * @interface MultiPolygon1 + * @interface TypedGeometryMultiPolygon */ -export interface MultiPolygon1 { +export interface TypedGeometryMultiPolygon { /** * * @type {MultiPolygon} - * @memberof MultiPolygon1 + * @memberof TypedGeometryMultiPolygon */ multiPolygon: MultiPolygon; } /** - * Check if a given object implements the MultiPolygon1 interface. + * Check if a given object implements the TypedGeometryMultiPolygon interface. */ -export function instanceOfMultiPolygon1(value: object): value is MultiPolygon1 { +export function instanceOfTypedGeometryMultiPolygon(value: object): value is TypedGeometryMultiPolygon { if (!('multiPolygon' in value) || value['multiPolygon'] === undefined) return false; return true; } -export function MultiPolygon1FromJSON(json: any): MultiPolygon1 { - return MultiPolygon1FromJSONTyped(json, false); +export function TypedGeometryMultiPolygonFromJSON(json: any): TypedGeometryMultiPolygon { + return TypedGeometryMultiPolygonFromJSONTyped(json, false); } -export function MultiPolygon1FromJSONTyped(json: any, ignoreDiscriminator: boolean): MultiPolygon1 { +export function TypedGeometryMultiPolygonFromJSONTyped(json: any, ignoreDiscriminator: boolean): TypedGeometryMultiPolygon { if (json == null) { return json; } @@ -57,11 +57,11 @@ export function MultiPolygon1FromJSONTyped(json: any, ignoreDiscriminator: boole }; } -export function MultiPolygon1ToJSON(json: any): MultiPolygon1 { - return MultiPolygon1ToJSONTyped(json, false); +export function TypedGeometryMultiPolygonToJSON(json: any): TypedGeometryMultiPolygon { + return TypedGeometryMultiPolygonToJSONTyped(json, false); } -export function MultiPolygon1ToJSONTyped(value?: MultiPolygon1 | null, ignoreDiscriminator: boolean = false): any { +export function TypedGeometryMultiPolygonToJSONTyped(value?: TypedGeometryMultiPolygon | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } diff --git a/typescript/src/models/NoGeometry1.ts b/typescript/src/models/TypedGeometryNoGeometry.ts similarity index 51% rename from typescript/src/models/NoGeometry1.ts rename to typescript/src/models/TypedGeometryNoGeometry.ts index 5cd25895..66fec8f1 100644 --- a/typescript/src/models/NoGeometry1.ts +++ b/typescript/src/models/TypedGeometryNoGeometry.ts @@ -16,30 +16,30 @@ import { mapValues } from '../runtime'; /** * * @export - * @interface NoGeometry1 + * @interface TypedGeometryNoGeometry */ -export interface NoGeometry1 { +export interface TypedGeometryNoGeometry { /** * * @type {any} - * @memberof NoGeometry1 + * @memberof TypedGeometryNoGeometry */ data: any | null; } /** - * Check if a given object implements the NoGeometry1 interface. + * Check if a given object implements the TypedGeometryNoGeometry interface. */ -export function instanceOfNoGeometry1(value: object): value is NoGeometry1 { +export function instanceOfTypedGeometryNoGeometry(value: object): value is TypedGeometryNoGeometry { if (!('data' in value) || value['data'] === undefined) return false; return true; } -export function NoGeometry1FromJSON(json: any): NoGeometry1 { - return NoGeometry1FromJSONTyped(json, false); +export function TypedGeometryNoGeometryFromJSON(json: any): TypedGeometryNoGeometry { + return TypedGeometryNoGeometryFromJSONTyped(json, false); } -export function NoGeometry1FromJSONTyped(json: any, ignoreDiscriminator: boolean): NoGeometry1 { +export function TypedGeometryNoGeometryFromJSONTyped(json: any, ignoreDiscriminator: boolean): TypedGeometryNoGeometry { if (json == null) { return json; } @@ -49,11 +49,11 @@ export function NoGeometry1FromJSONTyped(json: any, ignoreDiscriminator: boolean }; } -export function NoGeometry1ToJSON(json: any): NoGeometry1 { - return NoGeometry1ToJSONTyped(json, false); +export function TypedGeometryNoGeometryToJSON(json: any): TypedGeometryNoGeometry { + return TypedGeometryNoGeometryToJSONTyped(json, false); } -export function NoGeometry1ToJSONTyped(value?: NoGeometry1 | null, ignoreDiscriminator: boolean = false): any { +export function TypedGeometryNoGeometryToJSONTyped(value?: TypedGeometryNoGeometry | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } diff --git a/typescript/src/models/Values.ts b/typescript/src/models/Values.ts deleted file mode 100644 index 8fae85ee..00000000 --- a/typescript/src/models/Values.ts +++ /dev/null @@ -1,74 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Geo Engine API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.9.0 - * Contact: dev@geoengine.de - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { mapValues } from '../runtime'; -import type { ValuesValues } from './ValuesValues'; -import { - ValuesValuesFromJSON, - ValuesValuesFromJSONTyped, - ValuesValuesToJSON, - ValuesValuesToJSONTyped, -} from './ValuesValues'; - -/** - * - * @export - * @interface Values - */ -export interface Values { - /** - * - * @type {ValuesValues} - * @memberof Values - */ - values: ValuesValues; -} - -/** - * Check if a given object implements the Values interface. - */ -export function instanceOfValues(value: object): value is Values { - if (!('values' in value) || value['values'] === undefined) return false; - return true; -} - -export function ValuesFromJSON(json: any): Values { - return ValuesFromJSONTyped(json, false); -} - -export function ValuesFromJSONTyped(json: any, ignoreDiscriminator: boolean): Values { - if (json == null) { - return json; - } - return { - - 'values': ValuesValuesFromJSON(json['values']), - }; -} - -export function ValuesToJSON(json: any): Values { - return ValuesToJSONTyped(json, false); -} - -export function ValuesToJSONTyped(value?: Values | null, ignoreDiscriminator: boolean = false): any { - if (value == null) { - return value; - } - - return { - - 'values': ValuesValuesToJSON(value['values']), - }; -} - diff --git a/typescript/src/models/VectorOperator.ts b/typescript/src/models/VectorOperator.ts index 875f6b66..508eef62 100644 --- a/typescript/src/models/VectorOperator.ts +++ b/typescript/src/models/VectorOperator.ts @@ -19,6 +19,13 @@ import { MockPointSourceFromJSONTyped, MockPointSourceToJSON, } from './MockPointSource'; +import type { OgrSource } from './OgrSource'; +import { + instanceOfOgrSource, + OgrSourceFromJSON, + OgrSourceFromJSONTyped, + OgrSourceToJSON, +} from './OgrSource'; import type { RasterVectorJoin } from './RasterVectorJoin'; import { instanceOfRasterVectorJoin, @@ -39,7 +46,7 @@ import { * An operator that produces vector data. * @export */ -export type VectorOperator = { type: 'MockPointSource' } & MockPointSource | { type: 'RasterVectorJoin' } & RasterVectorJoin | { type: 'Reprojection' } & Reprojection; +export type VectorOperator = { type: 'MockPointSource' } & MockPointSource | { type: 'OgrSource' } & OgrSource | { type: 'RasterVectorJoin' } & RasterVectorJoin | { type: 'Reprojection' } & Reprojection; export function VectorOperatorFromJSON(json: any): VectorOperator { return VectorOperatorFromJSONTyped(json, false); @@ -52,6 +59,8 @@ export function VectorOperatorFromJSONTyped(json: any, ignoreDiscriminator: bool switch (json['type']) { case 'MockPointSource': return Object.assign({}, MockPointSourceFromJSONTyped(json, true), { type: 'MockPointSource' } as const); + case 'OgrSource': + return Object.assign({}, OgrSourceFromJSONTyped(json, true), { type: 'OgrSource' } as const); case 'RasterVectorJoin': return Object.assign({}, RasterVectorJoinFromJSONTyped(json, true), { type: 'RasterVectorJoin' } as const); case 'Reprojection': @@ -72,6 +81,8 @@ export function VectorOperatorToJSONTyped(value?: VectorOperator | null, ignoreD switch (value['type']) { case 'MockPointSource': return Object.assign({}, MockPointSourceToJSON(value), { type: 'MockPointSource' } as const); + case 'OgrSource': + return Object.assign({}, OgrSourceToJSON(value), { type: 'OgrSource' } as const); case 'RasterVectorJoin': return Object.assign({}, RasterVectorJoinToJSON(value), { type: 'RasterVectorJoin' } as const); case 'Reprojection': diff --git a/typescript/src/models/index.ts b/typescript/src/models/index.ts index 829e94e3..b89e84a1 100644 --- a/typescript/src/models/index.ts +++ b/typescript/src/models/index.ts @@ -29,9 +29,11 @@ export * from './CountAggregation'; export * from './CreateDataset'; export * from './CreateProject'; export * from './CsvHeader'; -export * from './Data1'; +export * from './Data'; export * from './DataId'; export * from './DataPath'; +export * from './DataPathUpload'; +export * from './DataPathVolume'; export * from './DataProviderResource'; export * from './DataUsage'; export * from './DataUsageSummary'; @@ -83,7 +85,10 @@ export * from './GridBoundingBox2D'; export * from './GridIdx2D'; export * from './Histogram'; export * from './HistogramBounds'; +export * from './HistogramBoundsValues'; export * from './HistogramBuckets'; +export * from './HistogramBucketsNumber'; +export * from './HistogramBucketsSquareRootChoiceRule'; export * from './HistogramParameters'; export * from './IdResponse'; export * from './InternalDataId'; @@ -128,20 +133,16 @@ export * from './MockPointSourceParameters'; export * from './MultiBandGdalSource'; export * from './MultiBandRasterColorizer'; export * from './MultiLineString'; -export * from './MultiLineString1'; export * from './MultiPoint'; -export * from './MultiPoint1'; export * from './MultiPolygon'; -export * from './MultiPolygon1'; export * from './MultipleRasterOrSingleVectorOperator'; export * from './MultipleRasterOrSingleVectorSource'; export * from './MultipleRasterSources'; export * from './Names'; export * from './NetCdfCfDataProviderDefinition'; -export * from './NoGeometry1'; -export * from './Number'; export * from './NumberParam'; export * from './OgrMetaData'; +export * from './OgrSource'; export * from './OgrSourceColumnSpec'; export * from './OgrSourceDataset'; export * from './OgrSourceDatasetTimeType'; @@ -154,6 +155,7 @@ export * from './OgrSourceDurationSpecInfinite'; export * from './OgrSourceDurationSpecValue'; export * from './OgrSourceDurationSpecZero'; export * from './OgrSourceErrorSpec'; +export * from './OgrSourceParameters'; export * from './OgrSourceTimeFormat'; export * from './OgrSourceTimeFormatAuto'; export * from './OgrSourceTimeFormatCustom'; @@ -223,6 +225,7 @@ export * from './SingleRasterOrVectorOperator'; export * from './SingleRasterOrVectorSource'; export * from './SingleRasterSource'; export * from './SingleVectorMultipleRasterSources'; +export * from './SingleVectorOrRasterSource'; export * from './SpatialBoundsDerive'; export * from './SpatialBoundsDeriveBounds'; export * from './SpatialBoundsDeriveDerive'; @@ -232,7 +235,6 @@ export * from './SpatialGridDescriptor'; export * from './SpatialGridDescriptorState'; export * from './SpatialPartition2D'; export * from './SpatialReferenceSpecification'; -export * from './SquareRootChoiceRule'; export * from './StacApiRetries'; export * from './StacQueryBuffer'; export * from './StaticColor'; @@ -264,6 +266,10 @@ export * from './TimeReference'; export * from './TimeStep'; export * from './TypedDataProviderDefinition'; export * from './TypedGeometry'; +export * from './TypedGeometryMultiLineString'; +export * from './TypedGeometryMultiPoint'; +export * from './TypedGeometryMultiPolygon'; +export * from './TypedGeometryNoGeometry'; export * from './TypedOperator'; export * from './TypedPlotOperator'; export * from './TypedPlotResultDescriptor'; @@ -279,7 +285,6 @@ export * from './UpdateLayer'; export * from './UpdateLayerCollection'; export * from './UpdateProject'; export * from './UpdateQuota'; -export * from './Upload'; export * from './UploadFileLayersResponse'; export * from './UploadFilesResponse'; export * from './UsageSummaryGranularity'; @@ -287,15 +292,12 @@ export * from './UserCredentials'; export * from './UserInfo'; export * from './UserRegistration'; export * from './UserSession'; -export * from './Values'; -export * from './ValuesValues'; export * from './VecUpdate'; export * from './VectorColumnInfo'; export * from './VectorDataType'; export * from './VectorOperator'; export * from './VectorResultDescriptor'; export * from './Volume'; -export * from './Volume1'; export * from './VolumeFileLayersResponse'; export * from './WcsRequest'; export * from './WcsService';