Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
jaysnm opened this issue Nov 9, 2023 · 1 comment
Open

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

jaysnm opened this issue Nov 9, 2023 · 1 comment

Comments

@jaysnm
Copy link

jaysnm commented Nov 9, 2023

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
@jaysnm jaysnm changed the title Dimensions attributesare not properly passed in the demo service Dimensions attributes are not properly passed in the demo service Nov 9, 2023
@mricca
Copy link

mricca commented Sep 27, 2024

Hi,
I installed mapcache (1.15.0 on ubuntu 24.04.1 LTS installed from source) and the same behavior occurs.
Also, with dimensions enabled, getcapabilities does not work.
Regards

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants