[Geoserver-users] WCS-use filter

Hello dear Justin,
I find there are only few wcs-samples.And in WCS specification,the samples are different from theose in Geoserver1.5.1.And I find the phrasing of using WCS like using WMS in the preview sample. Now that,I want to know can I use the cql_filter or filter in WCS as using WMS? The code segment is as follows.Thank you very much!
Best wishes for you!
Sincerely yours,
Yang

var wmsLayer = new OpenLayers.Layer.WMS(
“topp:E060N40”, “http://localhost:8080/geoserver/wms”,
{
height: ‘550’,
srs: ‘EPSG:4326’,
width: ‘490’,
styles: ‘’,
layers: ‘topp:E060N40’,
format: ‘image/png’, tiled: ‘true’, tilesOrigin : “60.00000000000001,-9.999999999980012”

//I added the follow code,but it return false.
“cql_filter”:‘bbox=60.00000000000001,-9.999999999980012,99.99999999998401,39.99999999999999’
}


150 万 人 同 时 在 玩 的 网 游,你 不 试 试 吗 ?

yangzhaohui ha scritto:

Hello dear Justin,
    I find there are only few wcs-samples.And in WCS specification,the samples are different from theose in Geoserver1.5.1.And I find the phrasing of using WCS like using WMS in the preview sample. Now that,I want to know can I use the cql_filter or filter in WCS as using WMS? The code segment is as follows.Thank you very much!
         Best wishes for you!
                                        Sincerely yours, Yang
                      var wmsLayer = new OpenLayers.Layer.WMS(
            "topp:E060N40", "http://localhost:8080/geoserver/wms",
            {
              height: '550',
              srs: 'EPSG:4326',
              width: '490',
              styles: '',
              layers: 'topp:E060N40',
              format: 'image/png', tiled: 'true', tilesOrigin : "60.00000000000001,-9.999999999980012"
                //I added the follow code,but it return false.
             "cql_filter":'bbox=60.00000000000001,-9.999999999980012,99.99999999998401,39.99999999999999'
            }

I see quite some confusion here. WCS is a protocol which is more similar
to WFS in the intent, that is, it's designed to give you the data, not a
pretty picture, so there is no use of it in OpenLayers.
If you want to display raster data, just issue plain WMS requests against raster layers and you should be ok.

Cheers
Andrea