<div dir="ltr">Hi all,<div>I have several raster images (Orthophotos) and want the wms client (e.g. QGIS) to show the GetFeatureInfo response from a PostGIS table.</div><div><br><div>Initial position:</div></div><div><ul><li>several raster images (Orthophotos)</li><li>PostGIS table with the perimeter from each image and its metadata (e.g. name, date of creation, drone)</li><li>MapServer 7.4.5</li></ul><div>Use case:</div></div><div><div><ul><li>The user show (GetMap) and request (GetFeatureInfo) the raster layer.</li><li>Instead of showing the attributes from the raster (RGB info) the attributes of the vector layer / PostGIS shall be shown.</li></ul><div>Ideas:</div></div></div><div><ul><li>I can group the raster and vector layer to one (1) group. The vector layer will have an invisible style and is queryable, wheras the raster layer is not. The user will see the raster and get the result of the vector layer when clicking into the image.<br>This sound promising, but can get confusing. By now I have about 150 raster images. I'll have to add 150 vector layers.<br>Furthermore some clients do not support adding wms groups to the map.</li><li>I read about <a href="https://mapserver.org/output/template_output.html">Template-Driven Output</a>. Is it possible to configure a database connection within a template file?</li></ul><div>Questions:</div></div><div><ul><li>Are there any other approaches for that issue?</li><li>Did I miss any further steps?</li></ul><div>Thanks in advance!</div></div><div>Cheers,<br>MariaKa</div></div>