[Geoserver-users] bbox problems using wfs on "line" or "polygon" layer

---------- 已转发邮件 ----------
发件人: chen zhao <dreamthinkinger@anonymised.com>
日期: 2010年10月22日 下午4:22
主题: bbox problems using wfs on “line” or “polygon” layer
收件人: geoserver-users-request@anonymised.come.net

Hi,

I send a wfs request for a layer that the geometry is “multilinestring or muttipolygon”.But the response is wrong.

The request is :

Ext.Ajax.request({
url:‘http://localhost:8080/geoserver/wfs’,
params:{
REQUEST: “GetFeature”,
service: ‘wfs’,
BBOX:


106.14509703466915,34.26036477499476,114.50996194293484,39.27246983665966

,
sortBy:‘gid’,
varAsync:false,
typeName: ’


'ShenBuZhongLiCeXianFenBu

',
propertyName: getColumn(dataLayer[0][1]),
version: ‘1.0.0’, //if the version is 1.1.0,I get nothing
srsName:‘EPSG:4326’
},

success:function(response){
setHTML(response);
},

failure:function(){
myMask.hide();
Ext.MessageBox.show({
title:‘网络异常’,
msg:‘连接数据库失败’,
width:300,
icon:Ext.MessageBox.INFO,
buttons:Ext.MessageBox.OK,
animEl:document.body
});
}
});//ajax

The response is

{"type":"FeatureCollection",
 "features":[{
     "type":"Feature",
     "id":"ShenBuZhongLiCeXianFenBu.4",

     "geometry":{
              "type":"MultiLineString",
              "coordinates":[[[88.13333999995956,47.850030000305296],[89.81667999996395,47.19167000030552],[90.28472999996683,43.820850000302165],

               [93.90001999997536,42.70501000030107],[95.41055999997921,41.06528000029775],[94.26527999997728,39.40417000029308],
               [95.35833999998003,37.852790000288344],[97.35833999998427,37.36806000028696],[99.65333999998951,33.7555700002724],

               [101.48222999999315,33.41890000027098],[101.70834999999362,32.90502000026853],[106.56668000000295,29.558350000250762],
               [107.74168000000512,29.313900000249276],[109.60918000000842,27.94280000024091],[113.54168000001538,26.80113000023321],

               [114.24167000001665,26.93335000023395],[117.83891000002274,25.697240000225072],[118.58750000002384,24.919450000219605]]]},

    "geometry_name":"the_geom",
    "properties":{
           "id":21000004,
           "project_id":"GC5004",
            "project_name":"黑水-泉州重磁场研究",

            "starting_longitude":"88.13334",
            "starting_latitude":"47.85003",
            "ending_longitude":"118.5875",

            "ending_latitude":"24.91946",
            "source_of_task":"阿勒泰-泉州地学断面",
"commissioning_unit":"阿勒泰-泉州地学断面",
"funding_sources":"原地质矿产部科技司",

"undertaking_unit":"地质矿产部航空物探遥感中心",
"person_in_charge":"王懋基","duration":"1988",
"instrument_model":null,

"instrument_quantity":null,
"accuracy_of_gravity_meter":null,
"profile_length":"4280",
"profile_measuring_points":"864",

"profile_dot_pitch":"5",
"g0":"1980年国际正常重力公式",
"check_points":null,
"observed_mean_square":null,
"abnormal_total_accuracy":null,

"elevation_datum":null,
"fixed_point_method":null,
"planar_point_potentiometer":null,
"elevation_standard_deviation":null,
"disc_id":"G5Y00001",

"grid_lines":"287",
"grid_points":"291",
"grid_spacing":"10",
"grid_pitch":"10",
"supplement":"重力剖面的数据是由重力图上读取。"}}],

"crs":{"type":"EPSG","properties":{"code":"4326"}},"bbox":[88.1333399999596,24.9194500002196,118.587500000024,47.8500300003053]}

The request's bbox is "106.145,34.260,114.509,39.272".In the bbox's area the layer doesn't exist,so I think that the reponse should not include information about
 the layer.
But the response's bbox is "88.133,24.919,118.587,47.850",the bbox is much bigger than the request'bbox.And I can get some information about the layer.

The layer's srsName is "EPSG:4326" and I can get the layer's picture in geoserver->layer Preview ->openlayers .

I have confused with the problem for one week.Who can help me? I am a chinese,my English is very poor.I don't know if you understand me.

Please advise.

Zhao