Skip to content

Dimensions attributes are not properly passed in the demo service #324

Description

@jaysnm

Dear mapcache maintainers,

Much appreciations for your relentless work and effort in making mapcache the great software it is.

I have enabled dimensions at tileset level having read dimensions documentation on Tileset Dimensions and mapcache config. Below is my dimensions config

<dimensions>
       <dimension type="regex" name="SELECTED_YEAR" default="2023">
          <regex>^[2][0-9]{3}$</regex>
       </dimension>
       <dimension type="regex" name="SELECTED_MONTH" default="10">
          <regex>^[01][0-9]$</regex>
       </dimension>
       <dimension type="values" name="SELECTED_TENDAYS" default="01">
          <value>01</value>
          <value>11</value>
          <value>21</value>
       </dimension>
</dimensions>

Viewing the layer on demo service show only one dimension is passed to the viewer (the first dimension) and the default value was ignored. Instead, the regex pattern was passed as the value.

image

However, if I pass dimension parameters to mapcache wms service, the tile is drawn.

I build main branch with libpcre2-dev. Here are my build flags

cmake -DWITH_APACHE=1 -DCMAKE_BUILD_TYPE=Release -DWITH_MEMCACHE=1 -DWITH_FCGI=0 -DWITH_CGI=0 \ 
    -DWITH_GDAL=1 -DWITH_GEOS=1 -DWITH_OGR=1 -DWITH_PIXMAN=1 -DWITH_POSTGRESQL=1 -DWITH_PCRE=0 DWITH_PCRE2=1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions