[mapserver-users] time enabled WCS with tile index

Rousseau Lambert2, Louis-Philippe (EC) louis-philippe.rousseaulambert2 at canada.ca
Thu Jun 28 10:42:40 PDT 2018


hmm  looks like there is no "time" at all in my Describe coverage... I confirm that "time" is there in the WMS GetCapabilties.


 <?xml version="1.0" encoding="UTF-8"?>
<wcs:CoverageDescriptions xmlns:wcs="http://www.opengis.net/wcs/2.0" xmlns:ows="http://www.opengis.net/ows/2.0" xmlns:ogc="http://www.opengis.net/ogc" x
mlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:gml="http://www.opengis.net/gml/3.2" xmlns:gmlcov=
"http://www.opengis.net/gmlcov/1.0" xmlns:swe="http://www.opengis.net/swe/2.0" xsi:schemaLocation="http://www.opengis.net/wcs/2.0 http://schemas.opengis
.net/wcs/2.0/wcsAll.xsd ">
  <wcs:CoverageDescription gml:id="DCS.TN.HISTO.YEAR.ABS_PCTL25">
    <gml:boundedBy>
      <gml:Envelope srsName="http://www.opengis.net/def/crs/EPSG/0/4326" axisLabels="lat long" uomLabels="deg deg" srsDimension="2">
        <gml:lowerCorner>41.0000051 -140.9999644</gml:lowerCorner>
        <gml:upperCorner>83.4999949 -52.0000051</gml:upperCorner>
      </gml:Envelope>
    </gml:boundedBy>
    <wcs:CoverageId>DCS.TN.HISTO.YEAR.ABS_PCTL25</wcs:CoverageId>
    <gml:domainSet>
      <gml:RectifiedGrid dimension="2" gml:id="grid_DCS.TN.HISTO.YEAR.ABS_PCTL25">
        <gml:limits>
          <gml:GridEnvelope>
            <gml:low>0 0</gml:low>
            <gml:high>1067 509</gml:high>
          </gml:GridEnvelope>
        </gml:limits>
        <gml:axisLabels>long lat</gml:axisLabels>
        <gml:origin>
          <gml:Point gml:id="grid_origin_DCS.TN.HISTO.YEAR.ABS_PCTL25" srsName="http://www.opengis.net/def/crs/EPSG/0/4326">
            <gml:pos>83.458328 -140.958298</gml:pos>
          </gml:Point>
        </gml:origin>
        <gml:offsetVector srsName="http://www.opengis.net/def/crs/EPSG/0/4326">0 0.083333</gml:offsetVector>
        <gml:offsetVector srsName="http://www.opengis.net/def/crs/EPSG/0/4326">-0.083333 0</gml:offsetVector>
      </gml:RectifiedGrid>
    </gml:domainSet>
    <gmlcov:rangeType>
      <swe:DataRecord>
        <swe:field name="B1951">
          <swe:Quantity>
            <swe:nilValues/>
            <swe:uom code="W.m-2.Sr-1"/>
            <swe:constraint>
              <swe:AllowedValues>
                <swe:interval>-3.4028e+38 3.4028e+38</swe:interval>
                <swe:significantFigures>12</swe:significantFigures>
              </swe:AllowedValues>
            </swe:constraint>
          </swe:Quantity>
        </swe:field>
        <swe:field name="B1952">
          <swe:Quantity>
            <swe:nilValues/>
            <swe:uom code="W.m-2.Sr-1"/>
            <swe:constraint>
              <swe:AllowedValues>
                <swe:interval>-3.4028e+38 3.4028e+38</swe:interval>
                <swe:significantFigures>12</swe:significantFigures>
              </swe:AllowedValues>
            </swe:constraint>
          </swe:Quantity>
        </swe:field>...


LP





________________________________
De : Rahkonen Jukka (MML) <jukka.rahkonen at maanmittauslaitos.fi>
Envoyé : 28 juin 2018 11:52
À : Rousseau Lambert2, Louis-Philippe (EC); mapserver-users at lists.osgeo.org
Objet : Re: time enabled WCS with tile index


Hi,

I do not have Mapserver WCS with time up at the moment so I can’t do much testing. What if you use some of the timePositions as it appears in the GetCapabilities? Example here
https://beta-karttakuva.maanmittauslaitos.fi/wcs/service/ows?service=WCS&version=2.0.1&request=DescribeCoverage&coverageID=ortokuva__ortokuva

-Jukka Rahkonen-

Lähettäjä: Rousseau Lambert2, Louis-Philippe (EC) [mailto:louis-philippe.rousseaulambert2 at canada.ca]
Lähetetty: 28. kesäkuuta 2018 17:41
Vastaanottaja: Rahkonen Jukka (MML) <jukka.rahkonen at maanmittauslaitos.fi<mailto:jukka.rahkonen at maanmittauslaitos.fi>>; mapserver-users at lists.osgeo.org<mailto:mapserver-users at lists.osgeo.org>
Aihe: RE: time enabled WCS with tile index


Thanks for your answer, I'm indeed now testing my build in my command line.



But I'm still having the issue...



Query:

mapserv -nh "QUERY_STRING=map=/path/to/mapfile/climate-WCS-en.map&SERVICE=WCS&VERSION=2.0.1&REQUEST=GetCoverage&COVERAGEID=DCS.TN.HISTO.YEAR.ABS_PCTL25&FORMAT=image/tiff&SUBSET=time(%221978%22)"



I get the error:

 <?xml version="1.0" encoding="UTF-8"?>                                                                                                                  <ows:ExceptionReport xmlns:ows="http://www.opengis.net/ows/2.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="2.0.1" xml:lang="en-US" x
si:schemaLocation="http://www.opengis.net/ows/2.0 http://schemas.opengis.net/ows/2.0/owsExceptionReport.xsd<http://www.opengis.net/ows/2.0%20http:/schemas.opengis.net/ows/2.0/owsExceptionReport.xsd>">
  <ows:Exception exceptionCode="InvalidSubsetting" locator="subset">
    <ows:ExceptionText>msWCSParseTimeOrScalar20(): WCS server error. String "1978" could not be parsed to a time or scalar value
msParseTime(): Regular expression error. Unrecognized date or time format ("1978").</ows:ExceptionText>
  </ows:Exception>
</ows:ExceptionReport>



Any idea what might be causing this ?



I also tried adding the "ows_timeformat" "YYYY" at the WEB metadata level without success...



Thanks

LP
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20180628/d2ff7f58/attachment.html>


More information about the mapserver-users mailing list