MAP
NAME "Cloudless Mozaik"
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" "Cloudless Mozaik"
"wms_onlineresource" "http://localhost/cgi-bin/mapserv?map=/var/www/mapbender/piramida_cloudless2.map" #must change mapfile path
"wms_srs" "EPSG:3857 EPSG:4326 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"
"wcs_enable_request" "*"
END
END
############################################################################
# Tile Index Overview
LAYER
DEBUG 5
STATUS OFF
NAME "time_idx_overview"
TYPE POLYGON
CONNECTIONTYPE postgis
CONNECTION ":)"
DATA "geom from (select * from plua_overview WHERE timestamp >= '%start%' AND timestamp <= '%stop%') subquerry using unique unique_id"
PROJECTION
"init=epsg:3857"
END
VALIDATION
'maxCC' '^[0-9]{1,3}$'
'default_maxCC' '100'
'start' '.*'
'stop' '.*'
'default_start' '2022-02-24'
'default_stop' '2023-07-24'
END
METADATA
"wms_title" "tile-index-cloud"
"wms_timeextent" "2022-02-24/2023-07-24/PT7D"
"wms_timeitem" "timestamp"
"wms_timedefault" "2023-07-01"
"wms_enable_request" "!*"
END
END
############################################################################
# Tile Index
LAYER
DEBUG 5
STATUS OFF
NAME "time_idx"
TYPE POLYGON
CONNECTIONTYPE postgis
CONNECTION ":)"
DATA "geometry from (select * from plua WHERE timestamp >= '%start%' AND timestamp <= '%stop%' order by \"maxCC\" desc) as subquerry using unique unique_id"
PROJECTION
"init=epsg:3857"
END
VALIDATION
'maxCC' '^[0-9]{1,3}$'
'default_maxCC' '100'
'start' '.*'
'stop' '.*'
'default_start' '2022-02-24'
'default_stop' '2023-07-24'
END
METADATA
"wms_title" "tile-index-cloud"
"wms_timeextent" "2022-02-24/2023-07-24/PT7D"
"wms_timeitem" "timestamp"
"wms_timedefault" "2023-07-01"
"wms_enable_request" "!*"
END
END
############################################################################
LAYER
DEBUG 5
NAME "test3"
TYPE RASTER
STATUS OFF
DEBUG ON
PROJECTION
"+init=epsg:3857"
END
MINSCALEDENOM 120000
METADATA
"wms_timeextent" "2022-02-24/2023-07-24/PT7D"
"wms_timeitem" "timestamp"
"wms_timedefault" "2023-07-01"
"wms_enable_request" "*"
"wcs_label" "120m"
"wcs_rangeset_name" "120m"
"wcs_rangeset_label" "120m Resolution Raster Data"
"wcs_extent" "-20037508.34 -20048966.1 20037508.34 20048966.1"
"wcs_size" "26109 18374"
"wcs_resolution" "120 120"
END
TILEITEM "overview"
TILEINDEX "time_idx_overview"
FILTER (`[timestamp]` = `2023-07-01`)
END
############################################################################
LAYER
DEBUG 5
NAME "test2"
TYPE RASTER
STATUS OFF
DEBUG ON
PROJECTION
"+init=epsg:3857"
END
MAXSCALEDENOM 120000
#MINSCALEDENOM 50000
METADATA
"wms_timeextent" "2022-02-24/2023-07-24/PT7D"
"wms_timeitem" "timestamp"
"wms_timedefault" "2023-07-01"
"wms_enable_request" "*"
"wcs_label" "60m"
"wcs_rangeset_name" "60m"
"wcs_rangeset_label" "60m Resolution Raster Data"
"wcs_extent" "-20037508.34 -20048966.1 20037508.34 20048966.1"
"wcs_size" "1830 1830"
"wcs_resolution" "60 60"
END
TILEITEM "cloudless_60"
TILEINDEX "time_idx"
TILESRS "EPSG"
PROCESSING "NODATA=0"
FILTER (`[timestamp]` = `2023-07-01`)
END
#############################################################################
LAYER
DEBUG 5
NAME "test1"
TYPE RASTER
STATUS OFF
DEBUG ON
PROJECTION
"+init=epsg:3857"
END
#MASK "scl"
MAXSCALEDENOM 50000
MINSCALEDENOM 25000
METADATA
"wms_timeextent" "2022-02-24/2023-07-24/PT7D"
"wms_timeitem" "timestamp"
"wms_timedefault" "2023-07-01"
"wms_enable_request" "*"
"wcs_label" "20m"
"wcs_rangeset_name" "20m"
"wcs_rangeset_label" "20m Resolution Raster Data"
"wcs_extent" "-20037508.34 -20048966.1 20037508.34 20048966.1"
"wcs_size" "5490 5490"
"wcs_resolution" "20 20"
END
TILEITEM "cloudless_20"
TILEINDEX "time_idx"
TILESRS "EPSG"
PROCESSING "NODATA=0"
FILTER (`[timestamp]` = `2023-07-01`)
END
#############################################################################
LAYER
DEBUG 5
NAME "test"
TYPE RASTER
STATUS OFF
DEBUG ON
PROJECTION
"+init=epsg:3857"
END
#MASK "scl"
MAXSCALEDENOM 25000
METADATA
"wms_timeextent" "2022-02-24/2023-07-24/PT7D"
"wms_timeitem" "timestamp"
"wms_timedefault" "2023-07-01"
"wms_enable_request" "*"
"wcs_label" "10m"
"wcs_rangeset_name" "10m"
"wcs_rangeset_label" "10m Resolution Raster Data"
"wcs_extent" "-20037508.34 -20048966.1 20037508.34 20048966.1"
"wcs_size" "10980 10980"
"wcs_resolution" "10 10"
END
TILEITEM "cloudless_10"
TILEINDEX "time_idx"
TILESRS "EPSG"
PROCESSING "NODATA=0"
FILTER (`[timestamp]` = `2023-07-01`)
END
#############################################################################
END