Untitled

mail@pastecode.io avatar
unknown
plain_text
a year ago
2.9 kB
35
Indexable
Never
MAP
        NAME "S2MSI2A Ukraine"

        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 1024 1024
        IMAGETYPE PNG
        SHAPEPATH "/data/"
        PROJECTION
            "init=epsg:3857"
        END
        WEB
            IMAGEPATH "/tmp/"
            IMAGEURL "/tmp/"
            METADATA
              "wms_title"           "S2MSI2A Ukraine"
              "wms_onlineresource"  "http://localhost/cgi-bin/mapserv?map=/var/www/mapbender/S2-PT-60.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 ON
 NAME "time_idx"
 TYPE POLYGON
 CONNECTION "/var/www/mapbender/tile-index-S2-60m.gpkg"
 CONNECTIONTYPE OGR
 DATA 'SELECT * from "tile-index-S2-60m" WHERE ("tile-index-S2-60m"."maxCC" <= "%maxCC%")'
 
 VALIDATION
    'maxCC' '^[0-9]{1,3}$'
    'default_maxCC' '100'
 END
 
 METADATA
   "wms_title" "tile-index-S2-60m"
   "wms_timeextent" "2023-05-01/2023-05-31"
   "wms_timeitem" "timestamp"
   "wms_timedefault" "2023-05-01"
   "wms_enable_request" "*"
 END 
END
############################################################################
LAYER
 DEBUG 5
 NAME "S2MSI2A Ukraine"
 TYPE RASTER
 STATUS ON
 DEBUG ON
 PROJECTION
   "init=epsg:3857"
 END
 
 #MAXSCALEDENOM 1100000
 #GROUP "Sentinel-1 IW_GRDH_1S"
 
 METADATA
   "wms_timeextent" "2023-05-01/2023-05-31"
   "wms_timeitem" "timestamp"
   "wms_timedefault" "2023-05-01"
   "wms_enable_request" "*"
 END
 
 TILEITEM "location"
 TILEINDEX "time_idx"
 TILESRS "srs_srs"
 
 FILTER (`[timestamp]` = `2023-05-01`)
  
END
############################################################################
END