<div dir="ltr">Hello,<div><br><div>I'm trying to implement second level SQLite dimension as explained in the doc</div><div><a href="https://mapserver.org/mapcache/dimensions.html#second-level-dimensions">https://mapserver.org/mapcache/dimensions.html#second-level-dimensions</a><br></div><div><br></div></div><div>Following that exemple on mapcache v1.12, I'm expecting that the below conf, with WMS request on 'mosa_test' tileset with 'dim_sensor=phr', shall use<span style="color:rgb(62,67,73);font-family:Arial,sans-serif;font-size:12.8px"> </span><span style="color:rgb(62,67,73);font-family:Arial,sans-serif;font-size:12.8px">the “product” sub-dimension values to query the data source 'mosa_source' on tileset 'test_primary' with 'dim_product' for each product returned by the 2nd level dimension request (cache 'test_cache' is pre-existing) ...</span></div><div><span style="color:rgb(62,67,73);font-family:Arial,sans-serif;font-size:12.8px"><br></span></div><div><span style="color:rgb(62,67,73);font-family:Arial,sans-serif;font-size:12.8px">```</span></div><div><cache name="test_cache" type="sqlite3"></div><div>    <dbfile>/nfs_tiles/test/{dim:product}.sqlite3</dbfile><br></cache><br><tileset name="test_primary"><br>    <cache>test_cache</cache><br>    <grid>worldwind</grid><br>    <dimensions><br>       <dimension name="product" type="regex" default="spot-img1"><br>         <regex>.*</regex><br>       </dimension><br>    </dimensions><br>    <format>PNG</format><br></tileset><br><cache name="mosa_cache" type="sqlite3"><br>    <dbfile>/nfs_tiles/test/mosa_{dim:sensor}.sqlite3</dbfile><br></cache><br><tileset name="mosa_test"><br>    <format>PNG</format><br>    <grid>worldwind</grid><br>    <cache>mosa_cache</cache><br>    <source>mosa_source</source><br>    <dimensions><br>      <dimension name="sensor" type="sqlite" default="default"><br>        <dbfile>/nfs_tiles/test/mosa.db</dbfile><br>        <validate_query>select product from mosa where sensor=:dim</validate_query><br>        <list_query>select product from mosa</list_query><br>      </dimension><br>    </dimensions><br></tileset><br><source name="mosa_source" type="wms"><br>    <http><br>       <url><a href="http://server/mapcache/">http://server/mapcache/</a></url><br>    </http><br>    <getmap><br>        <params><br>            <FORMAT>PNG</FORMAT><br>            <LAYERS>test_primary</LAYERS><br>            <TRANSPARENT>true</TRANSPARENT><br>        </params><br>    </getmap></div><div></source><span style="color:rgb(62,67,73);font-family:Arial,sans-serif;font-size:12.8px"><br></span></div><div><span style="color:rgb(62,67,73);font-family:Arial,sans-serif;font-size:12.8px">```</span></div><div><span style="color:rgb(62,67,73);font-family:Arial,sans-serif;font-size:12.8px"><br></span></div><div>However all I get is a mapcache error in the httpd log, as follows :</div><div>`dimension (sensor) for tileset (mosa_test) returned invalid number (X) of subdimensions (1 expected)`</div><div>If my 'sensor' dimension returns X products (which is the use case), I get the error above, and if my 'sensor' dimension returns 1 product (let say spot-img2), I get an error on the mapcache generated WMS request to the source 'mosa_source' on tileset 'test_primary' with parameters '&sensor=spot-img2&DIM_sensor=spot-img2' ... which can obviously not work !</div><div>Why is mapcache not using 'dim_product' in the WMS request ?</div><div><br></div><div>Have I missed something ?</div><div>Thanks,</div><div>Johannes</div></div>