Re: [mapserver-users] time enabled WCS with tile index

2018-06-28 Thread Rousseau Lambert2, Louis-Philippe (EC)
hmm  looks like there is no "time" at all in my Describe coverage... I confirm 
that "time" is there in the WMS GetCapabilties.


 
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 ">
  

  http://www.opengis.net/def/crs/EPSG/0/4326; 
axisLabels="lat long" uomLabels="deg deg" srsDimension="2">
41.051 -140.644
83.449 -52.051
  

DCS.TN.HISTO.YEAR.ABS_PCTL25

  

  
0 0
1067 509
  

long lat

  http://www.opengis.net/def/crs/EPSG/0/4326;>
83.458328 -140.958298
  

http://www.opengis.net/def/crs/EPSG/0/4326;>0 
0.08
http://www.opengis.net/def/crs/EPSG/0/4326;>-0.08 
0
  


  

  



  
-3.4028e+38 3.4028e+38
12
  

  


  



  
-3.4028e+38 3.4028e+38
12
  

  
...


LP






De : Rahkonen Jukka (MML) 
Envoyé : 28 juin 2018 11:52
À : Rousseau Lambert2, Louis-Philippe (EC); mapserver-users@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=2.0.1=DescribeCoverage=ortokuva__ortokuva

-Jukka Rahkonen-

Lähettäjä: Rousseau Lambert2, Louis-Philippe (EC) 
[mailto:louis-philippe.rousseaulambe...@canada.ca]
Lähetetty: 28. kesäkuuta 2018 17:41
Vastaanottaja: Rahkonen Jukka (MML) 
mailto:jukka.rahko...@maanmittauslaitos.fi>>;
 mapserver-users@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=WCS=2.0.1=GetCoverage=DCS.TN.HISTO.YEAR.ABS_PCTL25=image/tiff=time(%221978%22)"



I get the error:

  
 
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">
  
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").
  




Any idea what might be causing this ?



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



Thanks

LP
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users

Re: [mapserver-users] time enabled WCS with tile index

2018-06-28 Thread Rahkonen Jukka (MML)

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=2.0.1=DescribeCoverage=ortokuva__ortokuva

-Jukka Rahkonen-

Lähettäjä: Rousseau Lambert2, Louis-Philippe (EC) 
[mailto:louis-philippe.rousseaulambe...@canada.ca]
Lähetetty: 28. kesäkuuta 2018 17:41
Vastaanottaja: Rahkonen Jukka (MML) 
mailto:jukka.rahko...@maanmittauslaitos.fi>>;
 mapserver-users@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=WCS=2.0.1=GetCoverage=DCS.TN.HISTO.YEAR.ABS_PCTL25=image/tiff=time(%221978%22)"



I get the error:

  
 
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">
  
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").
  




Any idea what might be causing this ?



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



Thanks

LP
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users

Re: [mapserver-users] time enabled WCS with tile index

2018-06-28 Thread Rousseau Lambert2, Louis-Philippe (EC)
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=WCS=2.0.1=GetCoverage=DCS.TN.HISTO.YEAR.ABS_PCTL25=image/tiff=time(%221978%22)"


I get the error:

  
 
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;>
  
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").
  



Any idea what might be causing this ?


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


Thanks

LP


De : Rahkonen Jukka (MML) 
Envoyé : 28 juin 2018 09:46
À : Rousseau Lambert2, Louis-Philippe (EC); mapserver-users@lists.osgeo.org
Objet : Re: time enabled WCS with tile index

Hi,

I would like to say that you should not waste your time with using QGIS as a 
WCS client because it is rather useless for that. It tries to use WCS as a poor 
substitute for WMS as you can see from your example query that includes 
=6=3.

I suggest to switch to WCS 2.0.1, write your requests by hand and send them 
with curl, wget, or browser.

Here is an example about WCS 2.0.1 GetCoverage query syntax with time dimension
https://beta-karttakuva.maanmittauslaitos.fi/wcs/service/ows?service=WCS=2.0.1=GetCoverage=ortokuva__ortokuva=E(393450,393650)=N(7495450,7495650)=image/tiff=time(%222010-12-31T00:00:00.000Z%22)

-Jukka Rahkonen-


Lähettäjä: mapserver-users [mailto:mapserver-users-boun...@lists.osgeo.org] 
Puolesta Rousseau Lambert2, Louis-Philippe (EC)
Lähetetty: 28. kesäkuuta 2018 16:20
Vastaanottaja: mapserver-users@lists.osgeo.org
Aihe: [mapserver-users] time enabled WCS with tile index


Hi guys,



I'm working on a project which requires WMS and WCS time enabled layers.



I'm using the tile index for time support, which is working fine for WMS but I 
can't get the time to work for WCS request...



In my shapefile I have a column for the data path and one (timestamp) for the 
time.



Exemple request form Qgis WCS:

mapserv -nh 
"QUERY_STRING=map=/path/to/mapfile/WCS-en.map=WCS=1.0.0=GetCoverage=GTiff=DCS.TN.HISTO.YEAR.ABS_PCTL25=1978=-96.74998463567416707,62.125300248,-96.2499848643258531,62.374699752=EPSG:4326_CRS=EPSG:4326=6=3"
 > dcs.tif



I get an error:

 
 
http://www.opengis.net/ogc; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance; 
xsi:schemaLocation="http://www.opengis.net/ogc http://schemas.o
pengis.net/wcs/1.0.0/OGC-exception.xsd<http://www.opengis.net/ogc%20http:/schemas.o%0bpengis.net/wcs/1.0.0/OGC-exception.xsd>">
  msGetGDALBandList(): Image handling error. BANDS PROCESSING 
directive has wrong number of bands, expected at most 4, got 55.
  




At the base I have one netcdf file with 55 bands each representing a different 
time step. In order to use the shapefile index, I created 55 VRTs each pointing 
to a band in the original NetCDF. Than in the shapefile index, I'm pointing to 
those VRT for each time step. It works fine for WMS but not WCS...



Here is my mapfile:

MAP

STATUS ON

WEB

METADATA

"wcs_description" "The weather can have an incredible influence on 
our daily lives. It affects the growth of crops and the availability of water. 
It dictates which regions of the world are habitable or uninhabitable"

"ows_extent" "-141,42,-52,84"

"ows_contactinstructions" "During hours of service"

"wcs_label" "Meteorological Service of Canada Geospatial Web 
Services 0.1.0"

"ows_title" "title"

"wcs_enable_request" "*"

END

END

PROJECTION

"init=epsg:4326"

END

NAME "climate"

QUERYMAP

STATUS OFF

COLOR 255 255 0

STYLE HILITE

SIZE 500 300

END

LAYER

STATUS OFF

NAME "DCS.TN.HISTO.YEAR.ABS_PCTL25-tileindex"

DATA 
"/path/to/tileindex/ts_absolute_p25_historical_1951_2005_tn_ann.shp"

TYPE POLYGON

FILTERITEM 'timestamp'

FILTER '%timestamp%'

METADATA

"ows_enable_request" "!*"

END

END

LAYER

STATUS ON


[mapserver-users] time enabled WCS with tile index

2018-06-28 Thread Rousseau Lambert2, Louis-Philippe (EC)
Hi guys,


I'm working on a project which requires WMS and WCS time enabled layers.


I'm using the tile index for time support, which is working fine for WMS but I 
can't get the time to work for WCS request...


In my shapefile I have a column for the data path and one (timestamp) for the 
time.


Exemple request form Qgis WCS:

mapserv -nh 
"QUERY_STRING=map=/path/to/mapfile/WCS-en.map=WCS=1.0.0=GetCoverage=GTiff=DCS.TN.HISTO.YEAR.ABS_PCTL25=1978=-96.74998463567416707,62.125300248,-96.2499848643258531,62.374699752=EPSG:4326_CRS=EPSG:4326=6=3"
 > dcs.tif


I get an error:

 
 
http://www.opengis.net/ogc; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance; 
xsi:schemaLocation="http://www.opengis.net/ogc http://schemas.o
pengis.net/wcs/1.0.0/OGC-exception.xsd">
  msGetGDALBandList(): Image handling error. BANDS PROCESSING 
directive has wrong number of bands, expected at most 4, got 55.
  



At the base I have one netcdf file with 55 bands each representing a different 
time step. In order to use the shapefile index, I created 55 VRTs each pointing 
to a band in the original NetCDF. Than in the shapefile index, I'm pointing to 
those VRT for each time step. It works fine for WMS but not WCS...


Here is my mapfile:

MAP
STATUS ON
WEB
METADATA
"wcs_description" "The weather can have an incredible influence on 
our daily lives. It affects the growth of crops and the availability of water. 
It dictates which regions of the world are habitable or uninhabitable"
"ows_extent" "-141,42,-52,84"
"ows_contactinstructions" "During hours of service"
"wcs_label" "Meteorological Service of Canada Geospatial Web 
Services 0.1.0"
"ows_title" "title"
"wcs_enable_request" "*"
END
END
PROJECTION
"init=epsg:4326"
END
NAME "climate"
QUERYMAP
STATUS OFF
COLOR 255 255 0
STYLE HILITE
SIZE 500 300
END
LAYER
STATUS OFF
NAME "DCS.TN.HISTO.YEAR.ABS_PCTL25-tileindex"
DATA 
"/path/to/tileindex/ts_absolute_p25_historical_1951_2005_tn_ann.shp"
TYPE POLYGON
FILTERITEM 'timestamp'
FILTER '%timestamp%'
METADATA
"ows_enable_request" "!*"
END
END
LAYER
STATUS ON
TILEITEM "location"
NAME "DCS.TN.HISTO.YEAR.ABS_PCTL25"
DUMP TRUE
TILEINDEX "DCS.TN.HISTO.YEAR.ABS_PCTL25-tileindex"
CLASS
GROUP "TEMP-ABSOLUTE"
STYLE
DATARANGE -60 -28
COLORRANGE 10 40 100 51 102 217
END
EXPRESSION ([pixel] < -28 AND [pixel] > -95)
NAME "< -28"
END
TEMPLATE "ttt.html"
CLASSGROUP "TEMP-ABSOLUTE"
METADATA
"ows_timeextent" "1951/2005/P1Y"
"wcs_timeposition" 
'1951,1952,1953,1954,1955,1956,1957,1958,1959,1960,1961,1962,1963,1964,1965,1966,1967,1968,1969,1970,1971,1972,1973,1974,1975,1976,1977,1978,1979,1980,1981,1982,1983,1984,1985,1986,1987,1988,1989,1990,1991,1992,1993,1994,1995,1996,1997,1998,1999,2000,2001,2002,2003,2004,2005'
"wcs_band_names" "B1951 B1952 B1953 B1954 B1955 B1956 B1957 B1958 
B1959 B1960 B1961 B1962 B1963 B1964 B1965 B1966 B1967 B1968 B1969 B1970 B1971 
B1972 B1973 B1974 B1975 B1976 B1977 B1978 B1979 B1980 B1981 B1982 B1983 B1984 
B1985 B1986 B1987 B1988 B1989 B1990 B1991 B1992 B1993 B1994 B1995 B1996 B1997 
B1998 B1999 B2000 B2001 B2002 B2003 B2004 B2005"
"wms_timeitem" "timestamp"
"wcs_timeitem" "timestamp"
"ows_extent" "-140.644 41.051 -52.051 83.449"
"ows_title" "title"
"wms_timedefault" "2005"
"ows_enable_request" "*"
"ows_layer_group" "//Downscale climate scenarios (DCS)/Maximum 
temperature/Historical/Annual"
"wcs_label" "Mean temperature"
"wcs_resolution" "0.08295198278 -0.08313348017"
"wcs_size" "1068 510"
"wcs_bandcount" "55"

END
TYPE RASTER
PROJECTION
"+proj=longlat +datum=WGS84 +no_defs "
END
END
IMAGECOLOR 255 255 255
MAXSIZE 4096
OUTPUTFORMAT
MIMETYPE "image/tiff"
NAME "GEOTIFF_32"
EXTENSION "tif"
DRIVER "GDAL/GTiff"
IMAGEMODE FLOAT32
END
END
EXTENT -141 42 -52 84
DEBUG OFF
TRANSPARENT ON
IMAGETYPE "PNG"
SIZE 500 300
END

Thanks for the help!


LP


___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users