Ticket #1856 (closed defect: fixed)
wcs with postgis TIME filter not working
| Reported by: | dnadeau@… | Owned by: | sdlime |
|---|---|---|---|
| Priority: | high | Milestone: | |
| Component: | WCS Server | Version: | unspecified |
| Severity: | major | Keywords: | |
| Cc: | dnadeau@… |
Description (last modified by hobu) (diff)
Time filter is not set correctly with tileindex.
mapwcs.c R1.71 line 1159 should read something like
if(params->time) {
.....
/* finally set the filter */
msLayerSetTimeFilter(&tlp, params->time, tlp->filteritem);
}
and not
msLoadExpressionString(&tlp->filter, params->time);
Right now filter is set to (2003-01-10)
and postgis does not work
.... WHERE (2001-03-01) and (the_geom && setSRID( 'BOX3D(-180 -90,180....
WHERE (2001-03-01) should be replace by
WHERE date_trunc('day', time) = '2001-03-01' ... (from mappostgis.c)
Regards,
Denis
MAPFILE
LAYER
STATUS ON
NAME "AIRX3STD_TD_IDX"
TYPE POLYGON
CONNECTIONTYPE POSTGIS
CONNECTION "dbname=mapserver password=xxxxx user=dnadeau port=5432"
DATA "the_geom from airx3std_temperature_a"
METADATA
"wms_title" "TIME INDEX"
END
END
...
LAYER
NAME 'AIRX3STD_TEMP_D'
TYPE RASTER
STATUS ON
DEBUG ON
DUMP TRUE
TRANSPARENCY 100
PROJECTION
"init=epsg:4326"
END
METADATA
ows_title "AIRXSTD Temperature descendant"
wcs_label "AIRXSTD Temperature descendant"
wcs_resolution "1.0 1.0"
wcs_formats 'GEOTIFF_FLOAT'
wcs_nativeformat 'HDF4'
wcs_bandcount '24'
wcs_rangeset_axes 'bands'
wcs_rangeset_label 'test'
wcs_rangeset_name 'bands'
wcs_rangeset_description 'test levels'
wcs_timeposition
'2001-01-01T06:00:00,2001-03-01T12:00:00,2001-01-01T18:00:00,2001-01-02T00:00:00'
# wcs_timeposition '2000-01-01/2006-12-31'
wcs_timeitem 'time'
ows_timeextent "2002-08-31/2006-08-06"
ows_bandcount "24"
ows_srs "EPSG:4326"
ows_timeitem "time"
ows_timedefault "2006-06-28"
ows_extent "-180.0 -90.0 180.0 102.96" # 102.96 for the banner!!
END
OFFSITE 0 0 0 #make black tramparent
TILEITEM "location" #filepath is a column in postgis table with
varchar of the filepath to each image
TILEINDEX "AIRX3STD_TD_IDX"
END
Change History
Note: See
TracTickets for help on using
tickets.
