[MapServer-users] uvraster using vrt files from tileitem fails: GDALRasterIO() failed

Trygve Aspenes trygve at aspenes.priv.no
Wed Oct 29 05:49:03 PDT 2025


Hello

I have a layer using uvraster as connectiontype, with the data comming 
from a helper layer via tileitem.

So the helper layer is like this:

	LAYER
		PROJECTION
			"init=epsg:3857"
		END
		STATUS ON
		NAME "time_idx_vrt"
		TYPE POLYGON
		PROCESSING "CLOSE_CONNECTION=DEFER"
		DATA "geom from (select * from <table>) as foo using unique id using 
srid=3857"
		METADATA
			"wms_title" "x_timeindex"
			"wms_timeextent" "<time extent>"
			"wms_timeitem" "time"
			"wms_timedefault" "<default_time>"
			"wms_enable_request" "!*"
			"wms_srs"  "EPSG:3857"
		END
		CONNECTIONTYPE postgis
		CONNECTION "<connection parametes"
	END


And the layer:
     LAYER
         DEBUG 5
         NAME "TestLayer"
         METADATA
             "wms_title" "Test Layer"
             "wms_srs" "EPSG:3857 EPSG:4326"
             "wms_timeextent" 
"$sar_ocn_winds_vrt_sar_ocn_owi_speed_direction_timeextent"
             "wms_enable_request" "*"
             "wms_include_items" "all"
         END
         VALIDATION
             "TIME" "^[-0-9TZ:]{20}$"
             "DEFAULT_TIME" 
"$sar_ocn_winds_vrt_sar_ocn_owi_speed_direction_default"
         END
		TILEITEM "filename" #filepath is a column in postgis table with 
varchar of the filepath to each image
		TILEINDEX "time_idx_sar_ocn_winds_vrt"
		#FILTER (`[time]` = `2021-11-05T09:30:00Z`)

         # CLUSTER
         #     # Size of region around feature to keep clear of other 
features
         #     MAXDISTANCE 20
         #     REGION "ELLIPSE"
         # END
         # TOLERANCE 10 # Default 3

PROCESSING "BANDS=1,2"
         TYPE POINT
         STATUS ON
         CONNECTIONTYPE uvraster
         PROJECTION
             "init=EPSG:3857"
         END

         <all the class definition>
END


More information about the MapServer-users mailing list