MAP
NAME "Sentinel 2 Ukraine TileIndex GPKG"
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"
EXTENT -20037508.34 -20048966.1 20037508.34 20048966.1
UNITS METERS
SIZE 512 512
IMAGETYPE PNG
SHAPEPATH "/data/"
PROJECTION
"init=epsg:3857"
END
WEB
IMAGEPATH "/tmp/"
IMAGEURL "/tmp/"
METADATA
"wms_title" "Sentinel 2 Ukraine"
"wms_srs" "EPSG:3857 EPSG:2180 EPSG:4326 EPSG:2176 EPSG:2178 EPSG:2179"
"wms_onlineresource" "http://localhost/cgi-bin/mapserv?map=/var/www/mapbender/TileIndex.map" #must change mapfile path
"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.gpkg"
CONNECTIONTYPE OGR
DATA "tile-index"
METADATA
"wms_title" "time_idx"
"wms_srs" "EPSG:3857"
"wms_timeextent" "2023-02-01/2023-02-05"
"wms_timeitem" "timestamp"
"wms_timedefault" "2023-02-02"
"wms_enable_request" "*"
END
END
LAYER
DEBUG 5
NAME "rasters"
TYPE RASTER
STATUS ON
DEBUG ON
PROJECTION
"init=epsg:3857"
END
METADATA
"wms_srs" "EPSG:3857"
"wms_extent" "-20037508.34 -20048966.1 20037508.34 20048966.1"
"wms_timeextent" "2023-02-01/2023-02-05"
"wms_timeitem" "timestamp"
"wms_timedefault" "2023-02-02"
"wms_enable_request" "*"
END
OFFSITE 0 0 0
TILEITEM "location"
TILEINDEX "time_idx"
FILTER (`[timestamp]` = `2023-02-02`)
END
END