Hi everyone,

I've got a layer published as Image Mosaic, filtering each of the 3
granules via a TIME property. I'm using the SLD REST Service
<https://docs.geoserver.org/stable/en/user/extensions/sldservice/index.html>
to create a dynamic SLD by quantiles and it works well , using the first
granule:
http://localhost:8081/geoserver/rest/sldservice/granules/classify.xml?attribute=0&method=quantile&intervals=4&ramp=red&fullSLD=true

I need the SLD to generate the quantiles for the values of the other two
granules, but it always uses the first granule, regardless of the env
parameter:
http://localhost:8081/geoserver/rest/sldservice/granules/classify.xml?attribute=0&method=quantile&intervals=4&ramp=red&fullSLD=true&env=subset:http://www.opengis.net/def/axis/OGC/0/time(
"2021-01-03T00:00:00.000+0000")

I've tried env=filter:time EQ 2021-01-03T00:00:00.000Z and many other
filter/time formats, but I can't find the correct way to filter via the env
parameter. Am I doing something wrong? Can someone point me to the
documentation on how to classify?

Thank you so much in advance. Here is the JSON of the layer:
//
http://localhost:8081/geoserver/rest/workspaces/granules/coveragestores/granules/coverages/granules/index/granules.json

{
  "type": "FeatureCollection",
  "bbox": [
    304753.7099,
    4819360.9538,
    311753.7099,
    4825360.9538
  ],
  "crs": {
    "type": "name",
    "properties": {
      "name": "EPSG:25830"
    }
  },
  "features": [
    {
      "type": "Feature",
      "geometry": {
        "type": "MultiPolygon",
        "coordinates": [
          [
            [
              [
                304753.7099,
                4819360.9538
              ],
              [
                304753.7099,
                4825360.9538
              ],
              [
                311753.7099,
                4825360.9538
              ],
              [
                311753.7099,
                4819360.9538
              ],
              [
                304753.7099,
                4819360.9538
              ]
            ]
          ]
        ]
      },
      "properties": {
        "location": "A_2021-01-01_1_42.tif",
        "time": "2021-01-01T00:00:00.000+0000"
      },
      "id": "granules.1"
    },
    {
      "type": "Feature",
      "geometry": {
        "type": "MultiPolygon",
        "coordinates": [
          [
            [
              [
                304753.7099,
                4819360.9538
              ],
              [
                304753.7099,
                4825360.9538
              ],
              [
                311753.7099,
                4825360.9538
              ],
              [
                311753.7099,
                4819360.9538
              ],
              [
                304753.7099,
                4819360.9538
              ]
            ]
          ]
        ]
      },
      "properties": {
        "location": "A_2021-01-03_4_168.tif",
        "time": "2021-01-03T00:00:00.000+0000"
      },
      "id": "granules.2"
    },
    {
      "type": "Feature",
      "geometry": {
        "type": "MultiPolygon",
        "coordinates": [
          [
            [
              [
                304753.7099,
                4819360.9538
              ],
              [
                304753.7099,
                4825360.9538
              ],
              [
                311753.7099,
                4825360.9538
              ],
              [
                311753.7099,
                4819360.9538
              ],
              [
                304753.7099,
                4819360.9538
              ]
            ]
          ]
        ]
      },
      "properties": {
        "location": "A_2021-01-02_2_84.tif",
        "time": "2021-01-02T00:00:00.000+0000"
      },
      "id": "granules.3"
    }
  ]
}

Martí Pericay
www.geomatico.es

*Política de Protección de Datos de Carácter Personal - **Responsable:
GEOMATICO, S. COOP. GALEGA - **CIF:  F-27875327 - **Teléfono de contacto:
623 066 080 - **Correo electrónico:  i...@geomatico.es
<i...@geomatico.es> - **Dirección postal: C/ Pi y Margall, 60, entlo.
ofic-2, 36202, Vigo, Pontevedra. **Los datos de carácter personal
contenidos en el presente y futuros correos electrónicos quedarán
incorporados en nuestro Registro interno de actividades de tratamiento, con
la finalidad de poder llevar a cabo una adecuada gestión de las
comunicaciones (envíos, respuestas y reenvíos), así como para mantenerle
informado de mis novedades comerciales y distintas ofertas promocionales.
Los datos proporcionados se conservarán mientras se mantenga la relación
comercial. **Asimismo, los datos no serán cedidos a terceros salvo en
aquellos casos en que exista una obligación legal. **Tiene derecho a
conocer en mayor detalle nuestra política de privacidad, acceder a sus
datos personales, rectificar los datos inexactos, solicitar su supresión,
limitar alguno de los tratamientos u oponerse a algún uso (por ej. oponerse
posteriormente al envío de publicidad, si fuera el caso), vía e-mail,
personalmente o mediante correo postal.*
_______________________________________________
Geoserver-users mailing list

Please make sure you read the following two resources before posting to this 
list:
- Earning your support instead of buying it, but Ian Turton: 
http://www.ianturton.com/talks/foss4g.html#/
- The GeoServer user list posting guidelines: 
http://geoserver.org/comm/userlist-guidelines.html

If you want to request a feature or an improvement, also see this: 
https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer


Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to