Cannot enable WMS Time vizualization

68 views
Skip to first unread message
Assigned to offth...@gmail.com by me

Maël REBOUX

unread,
Mar 16, 2021, 7:07:44 AM3/16/21
to mapstore-users

Hello from Britanny

 

I'm currently trying to set up a map context to show datas with a time dimension.

 

So :

 

I set up a WMS layer in GeoServer with a date attribute. The capacities seem OK because I see :

        <Dimension name="time" default="current" units="ISO8601">1995-01-01T00:00:00.000Z/2021-01-01T00:00:00.000Z/PT1S</Dimension>

 

Then I set up a new map context with the Timeline plugin enabled.

 

Then I load this map context but nothing appens : no timeline.

Big disappointment, I read here this advertise : "Timeline actually works only with WMTS-Multidim extension (WMS time in capabilities is not fully supported). From now on, the layers that the Timeline can manage will be addressed as time layers."

 

Okay… let's configure a cached version of my layer in the embeded GeoWebCache.

Quite easy. I think all is correct because I see this in the capacities :

      <Dimension>
        <ows:Identifier>time</ows:Identifier>
        <Default>current</Default>
        <Value>1995-01-01T00:00:00.000Z--2021-01-01T00:00:00.000Z</Value>
      </Dimension>

 

The I modify my map to load the WMTS version layer. But still nothing : no timeline.

 

As I read the plugin documentation, TimeLine requires the playback plugin

https://mapstore.geo-solutions.it/mapstore/docs/api/plugins#plugins.Timeline

https://mapstore.geo-solutions.it/mapstore/docs/api/plugins#plugins.Playback

 

OK but the doc mention the TimeLine reducer.

Should I always create a specific JSON configuration in the timeline plugin to make it work ?

As I understand the reducer is here only to reduce bounds in case of big datas.

I believed that the time functionality is auto setting when you load a wms time layer. Isn't it ?

 

Thank you for your advices and help.

 

 

Maël REBOUX
Service Information Géographique Rennes Métropole
Chargé de mission données et diffusion

02 99 86 63 71

Twitter : @mael_reboux_ig

 

https://public.sig.rennesmetropole.fr   |  https://data.rennesmetropole.fr

 

 

 

 

 

 

 

 

Maël REBOUX

unread,
Mar 16, 2021, 9:28:10 AM3/16/21
to mapstor...@googlegroups.com

Well. I just detected that I get a 400 http error while clicking on one of of the point of my layer.

 

I don't know if it related to my problem but obviously MS2 create a request beside ?

 

 

#GWC demo

/geoserver/gwc/service/wmts?VERSION=1.0.0&LAYER=trp_rout:v_comptage_station_stats

&SERVICE=WMTS

&REQUEST=GetFeatureInfo

&INFOFORMAT=text/html

&FORMAT=image/png

&STYLE=

&TILEMATRIX=EPSG:3857:13

&TILEMATRIXSET=EPSG:3857

&TileCol=4057

&TileRow=2846

&I=6

&J=71

 

# mapstore

https://portail-test.sig.rennesmetropole.fr/geoserver/gwc/service/wmts?layer=trp_rout:v_comptage_station_stats

&service=WMTS

&request=GetFeatureInfo

&infoformat=text/plain

&style=point

&tilematrix={"identifier":"EPSG:3857:13","ranges":{"cols":{"min":"4051","max":"4062"},"rows":{"min":"2836","max":"2849"}}}

&tilematrixset=EPSG:3857

&tilecol=4057

&tilerow=2846

&i=6

&j=70

 

 

The error

 

<?xml version="1.0" encoding="UTF-8"?>

<ExceptionReport version="1.1.0" xmlns="http://www.opengis.net/ows/1.1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.opengis.net/ows/1.1 http://geowebcache.org/schema/ows/1.1.0/owsExceptionReport.xsd">

 

    <Exception exceptionCode="InvalidParameterValue" locator="TILEMATRIX">

        <ExceptionText>

            Unknown TILEMATRIX {&#34;identifier&#34;:&#34;EPSG:3857:13&#34;,&#34;ranges&#34;:{&#34;cols&#34;:{&#34;min&#34;:&#34;4051&#34;,&#34;max&#34;:&#34;4062&#34;},&#34;rows&#34;:{&#34;min&#34;:&#34;2836&#34;,&#34;max&#34;:&#34;2849&#34;}}}

        </ExceptionText>

    </Exception>

</ExceptionReport>

 

 

 

De : mapstor...@googlegroups.com [mailto:mapstor...@googlegroups.com] De la part de Maël REBOUX
Envoyé : mardi 16 mars 2021 12:08
À : 'mapstore-users' <mapstor...@googlegroups.com>
Objet : [NEWSLETTER] [mapstore-users] Cannot enable WMS Time vizualization

--
You received this message because you are subscribed to the Google Groups "mapstore-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mapstore-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mapstore-users/007301d71a54%2495c80e10%24c1582a30%24%40rennesmetropole.fr.

Maël REBOUX

unread,
Mar 16, 2021, 10:07:28 AM3/16/21
to mapstor...@googlegroups.com

 

Maybe a MS2 : I had to delete my map because it still use a bad tile matrix despite erasing a reloading several times the layer. Should I create an issue ?

 

So : all new map context with the same layer.

Here the GetFeatureInfo query is better :

 

/geoserver/gwc/service/wmts?layer=trp_rout:v_comptage_station_stats

&service=WMTS

&request=GetFeatureInfo

&infoformat=text/plain

&style=point

&tilematrix={"identifier":"EPSG:3857:15","ranges":{"cols":{"min":"16204","max":"16250"},"rows":{"min":"11347","max":"11399"}}}

&tilematrixset=EPSG:3857

&tilecol=16232

&tilerow=11375

&i=94

&j=255

 

But I still get a http 400 bad request answer.

 

 

 

De : mapstor...@googlegroups.com [mailto:mapstor...@googlegroups.com] De la part de Maël REBOUX
Envoyé : mardi 16 mars 2021 14:28
À : mapstor...@googlegroups.com
Objet : [NEWSLETTER] RE:[mapstore-users] Cannot enable WMS Time vizualization

Lorenzo Natali

unread,
Mar 16, 2021, 1:01:27 PM3/16/21
to mapstore-users
Hi, 
the documentation is unclear about this point, as I specified in this issue, I'm going to change the doc to make this point less hard for users.

You need the WMTS-Multidim extension, but you need to use WMS layers anyway. This because MapStore doesn't support WMS time values in WMS GetCapabilities yet, and  it works only using the extension's services.
The support for time value in WMTS layers is still to be implemented, too.
If you want to follow progress of them: 

issue to support time values from WMS Capabilities
issue to support time parameter WMTS layers

So to use the timeline you need WMS layers from a server where WMTS-Multidim extension is installed.
About creating a context, I successfully created a context in geOrchestra adding the Timeline plugin (the playback plugin is included automatically, hidden in the UI) and a WMS layer from a GeoServer with WMTS-Multidim plugin installed).

So the first attempt was correct,  we need to find out why the timeline was not shown . Do you have more information about this (errors in console, failing requests ...)?  


screenshot-georchestra.geo-solutions.it-2021.03.16-17_40_52.png

Maël REBOUX

unread,
Mar 17, 2021, 5:42:14 AM3/17/21
to mapstor...@googlegroups.com

Thank you for these complete answer Lorenzo.

 

We don't have the where WMTS-Multidim extension installed in our GeoServer.

 

I'll install it and come back here after.

 

De : mapstor...@googlegroups.com [mailto:mapstor...@googlegroups.com] De la part de Lorenzo Natali
Envoyé : mardi 16 mars 2021 18:01
À : mapstore-users <mapstor...@googlegroups.com>
Objet : Re: RE:[mapstore-users] Cannot enable WMS Time vizualization

image001.png

Maël REBOUX

unread,
Mar 18, 2021, 11:23:02 AM3/18/21
to mapstor...@googlegroups.com

OK. I'm on the way.

 

I set up a all new (vanilla) GeoServer

And install the jar in the /lib/ directory

Mount a layer

Check the DescribeDomains query  --> I've got  a <SpaceDomain> answer

 

So all seems good but…

I cannot acces to my new GS from mapstore2 : nothing just an error message.

 

Is there something to configure in the LocalConfig.json ?

This server is on my LAN

 

 

De : mapstor...@googlegroups.com [mailto:mapstor...@googlegroups.com] De la part de Maël REBOUX
Envoyé : mercredi 17 mars 2021 10:42
À : mapstor...@googlegroups.com
Objet : [NEWSLETTER] RE: RE:[mapstore-users] Cannot enable WMS Time vizualization

image001.png

Maël REBOUX

unread,
Mar 19, 2021, 10:19:09 AM3/19/21
to mapstor...@googlegroups.com

OK.

We have updated the proxy.properties file and the hostnameWhitelist

So I can load the WMS and WMTS layer in mapstore.

 

Now, I have the WMS layaer and WMTS layer loaded in my map.

But nothing happens : no timeline controls    :(

 

And I cannot query the WMTS layer

Is it linked ?

 

https://portail-test.sig.rennesmetropole.fr/mapstore/proxy/?url=http://sig-geonetwork.mutu.local/geoserver/gwc/service/wmts?service=WMTS&request=GetFeatureInfo&layer=trp_rout%3Av_comptage_station_stats&infoformat=text%2Fplain&style=trp_rout%3Acomptage_station&tilecol=32464&tilerow=22751&tilematrix=&tilematrixset=EPSG%3A3857&i=86&j=192

 

 

<?xml version="1.0" encoding="UTF-8"?>

<ExceptionReport version="1.1.0" xmlns="http://www.opengis.net/ows/1.1"

  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

  xsi:schemaLocation="http://www.opengis.net/ows/1.1 http://geowebcache.org/schema/ows/1.1.0/owsExceptionReport.xsd">

  <Exception exceptionCode="InvalidParameterValue" locator="TILEMATRIX">

    <ExceptionText>Unknown TILEMATRIX </ExceptionText>

  </Exception>

</ExceptionReport>

 

 

 

De : mapstor...@googlegroups.com [mailto:mapstor...@googlegroups.com] De la part de Maël REBOUX
Envoyé : jeudi 18 mars 2021 16:23
À : mapstor...@googlegroups.com
Objet : [NEWSLETTER] RE: RE: RE:[mapstore-users] Cannot enable WMS Time vizualization

image001.png

Maël REBOUX

unread,
Mar 19, 2021, 10:34:49 AM3/19/21
to mapstor...@googlegroups.com

Well.

 

I read many times your answer : " WMS layer from a GeoServer with WMTS-Multidim plugin installed".

 

So I load the same layer with 3 differents ways :

-          WMS layer from GeoServer WMS

-          WMTS layer from the GeoWebCache embedded in GeoServer

-          WMS (WMS-C) layer from the GeoWebCache embedded in GeoServer

 

Anyway : the timeline controls are not present.

Note : I can getFeatureInfo with the WMS-C layer.

 

What do I miss ?

 

 

 

De : Maël REBOUX [mailto:m.re...@rennesmetropole.fr]
Envoyé : vendredi 19 mars 2021 15:19
À : mapstor...@googlegroups.com
Objet : RE: RE: RE: RE:[mapstore-users] Cannot enable WMS Time vizualization

image001.png

Lorenzo Natali

unread,
Mar 23, 2021, 8:07:46 AM3/23/21
to mapstore-users
Hi
Everything looks correct...
If you are working with GeOrchestra, I noticed that some extensions do not correctly update the map layout, and then they break the position (bottom) property that is needed to timeline, so the timeline is present but not visible.

So you could try to uninstall your extensions to see if this solves the problem.

Please let me know

Maël REBOUX

unread,
Mar 24, 2021, 11:36:54 AM3/24/21
to mapstor...@googlegroups.com

That was it Lorenzo !

Since we have disable third party plugins : the timeline plugins is working.

 

FYI : one have to set up only a WMS layer. No need to have a WMTS layer.

But I want to make more tests because I saw a different behaviout between our georchestra geoserver and a vanilla geoserver.

 

Maël

 

 

De : mapstor...@googlegroups.com <mapstor...@googlegroups.com> De la part de Lorenzo Natali
Envoyé : mardi 23 mars 2021 13:08
À : mapstore-users <mapstor...@googlegroups.com>
Objet : Re: RE: RE: RE:[mapstore-users] Cannot enable WMS Time vizualization

Reply all
Reply to author
Forward
0 new messages