Quellcode durchsuchen

🐛 replace RVI index with NDVI

fzadrazil vor 3 Jahren
Ursprung
Commit
060ae0c8b9
2 geänderte Dateien mit 5 neuen und 4 gelöschten Zeilen
  1. 2 2
      src/app/app.service.ts
  2. 3 2
      src/app/calculator/calculator.service.ts

+ 2 - 2
src/app/app.service.ts

@@ -96,8 +96,8 @@ export class AppService {
           '&COUNT=100' +
           '&outputformat=geojson' +
           '&SRSNAME=EPSG:5514' +
-          `&BBOX=${extent ? extent.join(',') : ''}` +
-          `&<ogc:Filter xmlns:ogc="http://www.opengis.net/ogc"><ogc:PropertyIsEqualTo><ogc:PropertyName>kultura</ogc:PropertyName><ogc:Literal>${kulturaKod}</ogc:Literal></ogc:PropertyIsEqualTo></ogc:Filter>`
+          `&BBOX=${extent ? extent.join(',') : ''}`
+          // + `&<ogc:Filter xmlns:ogc="http://www.opengis.net/ogc"><ogc:PropertyIsEqualTo><ogc:PropertyName>kultura</ogc:PropertyName><ogc:Literal>${kulturaKod}</ogc:Literal></ogc:PropertyIsEqualTo></ogc:Filter>`
         );
         //%3Cgml:Box%3E%3Cgml:coordinates%3E${
         //extent.join(',')

+ 3 - 2
src/app/calculator/calculator.service.ts

@@ -16,11 +16,11 @@ import {FieldService} from './field.service';
 import {ZonesService} from './zones.service';
 import {imageWmsTLayer, imageWmsTSource} from './image-wms-t-layer';
 
-export type Index = 'EVI' | 'RVI4S1';
+export type Index = 'EVI' | 'NDVI';
 
 @Injectable({providedIn: 'root'})
 export class CalculatorService {
-  AVAILABLE_PRODUCTS = ['EVI', 'RVI4S1'] as const;
+  AVAILABLE_PRODUCTS = ['EVI', 'NDVI'] as const;
   BLUR_MIN_VALUE = 0 as const;
   BLUR_MAX_VALUE = 5 as const;
   MIN_LPIS_VISIBLE_ZOOM = 15 as const;
@@ -76,6 +76,7 @@ export class CalculatorService {
    */
   async getDates({product}: {product: Index}) {
     this.availableDates = undefined;
+    this.selectedDateCalendar = null;
     this._datesLoading = true;
     try {
       const data = await this.httpClient