Untitled

mail@pastecode.io avatar
unknown
plain_text
a year ago
4.1 kB
14
Indexable
Never
MAP
        NAME "CLD Masking"

        CONFIG "AWS_S3_ENDPOINT" "data.cloudferro.com"
        CONFIG "AWS_ACCESS_KEY_ID" "ACCESS"
        CONFIG "AWS_SECRET_ACCESS_KEY" "DATA"
        CONFIG "AWS_HTTPS" "NO"
        CONFIG "AWS_VIRTUAL_HOSTING" "FALSE"
        CONFIG "AWS_REQUEST_PAYER" "requester"
        CONFIG "VSI_CACHE" "TRUE"
        CONFIG "VSI_CACHE_SIZE" "5000000"
        CONFIG "GDAL_HTTP_MULTIPLEX" "YES"
        CONFIG "CPL_VSIL_CURL_CACHE_SIZE" "20000000"
        CONFIG "GDAL_HTTP_MERGE_CONSECUTIVE_RANGES" "YES"
        CONFIG "GDAL_HTTP_TCP_KEEPALIVE" "YES"
        CONFIG "GDAL_DISABLE_READDIR_ON_OPEN" "EMPTY_DIR"
        CONFIG "CPL_VSIL_CURL_CHUNK_SIZE" "10485760"
        CONFIG "MS_ERRORFILE" "/var/www/mapbender/ms_error.txt"
        CONFIG "CPL_DEBUG" "ON"
        DEBUG 5
        CONFIG "PROJ_DEBUG" "ON"

        

        EXTENT -20037508.34 -20048966.1 20037508.34 20048966.1
        UNITS METERS
        SIZE 256 256
        IMAGETYPE PNG
        SHAPEPATH "/data/"
        PROJECTION
            "init=epsg:3857"
        END
        WEB
            IMAGEPATH "/tmp/"
            IMAGEURL "/tmp/"
            METADATA
              "wms_title"           "CLD Masking"
              "wms_onlineresource"  "http://localhost/cgi-bin/mapserv?map=/var/www/mapbender/piramida.map" #must change mapfile path
              "wms_srs"             "EPSG:4326 EPSG:3857 EPSG:2180"
              "wms_enable_request"  "*"
              "wms_server_version" "1.3.0"
              "wms_feature_info_mime_type" "text/html"
              "wms_include_items" "all"
              "wms_getcapabilities_version" "1.3.0"
              #"wms_allow_getmap_without_styles" "true"
              "wms_timeitem" "timestamp"
            END
        END
############################################################################        
#  Tile Index

LAYER

 DEBUG 5
 STATUS OFF
 NAME "time_idx"
 TYPE POLYGON
 
 CONNECTIONTYPE postgis
 CONNECTION "user=***** password=***** dbname=**** host=localhost port=****"

 DATA 'geometry FROM plua using unique location_60 WHERE (plua."maxCC" <= %maxCC%);'
 
 PROJECTION
   "init=epsg:3857"
 END
 
 VALIDATION
    'maxCC' '^[0-9]{1,3}$'
    'default_maxCC' '100'
 END
 
 METADATA
   "wms_title" "tile-index-cloud"
   "wms_timeextent" "2022-02-24/2023-06-30"
   "wms_timeitem" "timestamp"
   "wms_timedefault" "2023-06-30"
   "wms_enable_request" "!*"
 END 
END
############################################################################

############################################################################
LAYER
 DEBUG 5
 NAME "S2 Masking"
 TYPE RASTER
 STATUS OFF
 DEBUG ON
 PROJECTION
   "+init=epsg:3857"
 END
 
 
 #MASK "scl"
 
 MINSCALEDENOM 80000
 
 METADATA
   "wms_timeextent" "2022-02-24/2023-06-30"
   "wms_timeitem" "timestamp"
   "wms_timedefault" "2023-06-30"
   "wms_enable_request" "*"
 END
 
 TILEITEM "location_60"
 TILEINDEX "time_idx"
 TILESRS "EPSG"
 PROCESSING "NODATA=0"
 
 FILTER (`[timestamp]` = `2023-06-30`)
  
END
############################################################################
LAYER
 DEBUG 5
 NAME "S2 Masking"
 TYPE RASTER
 STATUS OFF
 DEBUG ON
 PROJECTION
   "+init=epsg:3857"
 END
 
 
 #MASK "scl"
 MAXSCALEDENOM 80000
 MINSCALEDENOM 40000
 
 METADATA
   "wms_timeextent" "2022-02-24/2023-06-30"
   "wms_timeitem" "timestamp"
   "wms_timedefault" "2023-06-30"
   "wms_enable_request" "*"
 END
 
 TILEITEM "location_20"
 TILEINDEX "time_idx"
 TILESRS "EPSG"
 PROCESSING "NODATA=0"
 
 FILTER (`[timestamp]` = `2023-06-30`)
  
END
############################################################################
LAYER
 DEBUG 5
 NAME "S2 Masking"
 TYPE RASTER
 STATUS OFF
 DEBUG ON
 PROJECTION
   "+init=epsg:3857"
 END
 
 
 #MASK "scl"
 
 MAXSCALEDENOM 40000
 
 METADATA
   "wms_timeextent" "2022-02-24/2023-06-30"
   "wms_timeitem" "timestamp"
   "wms_timedefault" "2023-06-30"
   "wms_enable_request" "*"
 END
 
 TILEITEM "location_10"
 TILEINDEX "time_idx"
 TILESRS "EPSG"
 PROCESSING "NODATA=0"
 
 FILTER (`[timestamp]` = `2023-06-30`)
  
END
############################################################################
END