geoserver服务查询

1.geoserver服务支持wfs服务的查询

2.geoserver服务wms服务支持调取和显示,不支持查询

3.geoserver的查询参数,大部分都是固定的,其中查询条件和拓扑查询条件,均在cql_filter字段中设置

4.例如:点查询

var params={
          service: 'WFS',
          version: '1.0.0',
          request: 'GetFeature',
          typeName: 'sgz:mylayer',
          outputFormat: 'application/json',
          maxFeatures: 50,
          srsName: 'EPSG:4546',
          CQL_FILTER: 'INTERSECTS(the_geom,POINT(' + pt.lat + ' ' + pt.lng + '))'
      }
 
//条件查询
   // var params = {
    //   version: "1.0.0",
    //   service: "WFS",
    //   request: "GetFeature",
    //   typeName: "sgz:mylayer",
    //   maxFeatures: "50",
    //   outputFormat: "application/json",
    //   cql_filter: "Name=’地块名称',
    // };
5.目前vue中存在一些问题,axios去请求解析params参数时,无法正确解析中文
posted @ 2022-07-29 18:08  成神之路~  阅读(927)  评论(0编辑  收藏  举报