WebGIS:Geoserver简单使用方法总结(leaflet)

1、常用参考网站

geoserver手册:GeoServer User Manual — GeoServer 2.26.x User ManualCSS 样式 — GeoServer 2.26.x 用户手册GeoServer User Manual — GeoServer 2.26.x User Manual

2、地图服务简介

关于OGC中地图服务,详细请参考以下文章,博主介绍的详细易懂map - OGC WebGIS 常用服务标准(WMS/WMTS/TMS/WFS)速查 - 空间的一粟 - SegmentFault 思否

3、在地图上加载图层

利用wms服务的GetMap能力,在leaflet上加载中国区域省界线

 this.map.addLayer(
     L.tileLayer.wms("geoserver/china/wms", {
          layers: "china:region", // 工作空间:图层名 GeoServer中定义的图层名称
          styles: "china:region", // 图层的样式
          service: "WMS",  // 地图服务
          format: "image/png",
          transparent: true, // 返回瓦片背景色设置为透明
          srs: "EPSG:4326", // 坐标系,需要和底图坐标系保持一致
})

效果:

4、利用css修改geoserver样式

通过Geoserver官方提供的Reatful接口,利用请求修改样式文件,Geoserver官方提供的使用手册中详细记录了如何根据图层数据情况书写样式的案例:

CSS Styling — GeoServer 2.26.x User Manual

1、查看图层属性

方法一:在左侧菜单栏选择“图层预览”,找到需要叠加的图层,点击“openLayer”

接着点击图层任何区域,图层显示区下方会出现一个表格,表头信息即可筛选表格内容的要素

方法二:在左侧菜单栏选择“样式”,点击“样式名称”列下的样式文件,切换至“Layer Attribute”,点击Previewing on layer: 后面的蓝色字体,切换当前图层为需要叠加的图层。

下方表格中name:图层要素,type:要素数据类型(String、Float等)

效果:给不同区域加载不同颜色。

const headers = {
        Accept: "application/vnd.geoserver.geocss+css",
        Authorization: "Basic YWRtaW46Z2Vvc2VydmVy"
};
// css样式文件
 let style =
        "*{stroke-width:1px;stroke:#000200;fill:#2ee000;stroke-opacity: 1;}[id='110000'] {fill:#FF4848;fill-opacity: 0.5;} ";
axios
    .put(`geoserver/rest/workspaces/${工作空间}/styles/${图层名}?raw=true`, style, {headers})
        .then(() => {
           this.map.addLayer(
              L.tileLayer.wms("geoserver/${工作空间}/wms", {
              layers: `${工作空间}:${图层名}` // 工作空间:图层名 GeoServer中定义的图层名称
              styles: `${工作空间}:${图层名}`, // 图层的样式
              service: "WMS",  // 地图服务
              format: "image/png",
              transparent: true, // 返回瓦片背景色设置为透明
              srs: "EPSG:4326", // 坐标系,需要和底图坐标系保持一致
            })
         }).catch(e => {
          console.log(e);
        });

5、利用CQL_FILTER过滤要素

CQL_FILTER的语法可以参考这篇文章,博主的介绍很清晰,这里只了举一个例子

Geoserver中CQL_FILTER的使用 - 简书

5.1、WMS服务中通过传递CQL_FILTER参数选择在地图上展示的图层要素

 L.tileLayer.wms("geoserver/china/wms", {
      layers: "china:region", // GeoServer中定义的图层名称
       // styles: 'china:region', // 图层的样式,默认通常是'default'
      styles: "china:region", // 图层的样式,默认通常是'default'
      service: "WMS",
      format: "image/png",
      transparent: true,
      srs: "EPSG:4326",
      CQL_FILTER: "id in ('640000','650000','710000')" // 通过要素对要素值筛选
})

5.2、点击图层弹出信息

1、利用WFS服务实现点击图层要素弹出信息,完成属性查询,wfs的GetFeature也可用于获取要素数据后根据数据修改图层样式

 this.map.on("click", res => {
      const latlng = res.latlng;
      let pt = crs.project(res.latlng);
      this.getCilckFeatrue(latlng, pt);
});

/**
  * 获取点击位置geoserver图层信息
  */
getCilckFeatrue(latlng, pt) {
  var urlString = "geoserver/china/wfs";
  var param = {
    service: "WFS",
    version: "1.0.0",
    request: "GetFeature",
    typeName: "china:region",
    outputFormat: "application/json",
    maxFeatures: 3200,
    srsName: "EPSG:4326",
    // propertyName: "name" // 获取图层指定字段的信息
    // CQL_FILTER: `INTERSECTS(geom,POLYGON((${pt.x + 0.01} ${pt.y -
    //   0.01}, ${pt.x + 0.01} ${pt.y + 0.01}, ${pt.x - 0.01} ${pt.y +
    //   0.01}, ${pt.x - 0.01} ${pt.y - 0.01}, ${pt.x + 0.01} ${pt.y -
    //   0.01})))` //利用多边形来定义一个包围盒
    //使用了 DWITHIN 操作符来检查要素的几何形状(geom)是否在指定点(POINT(${pt.x} ${pt.y}))的 0.01 公里范围内。这将筛选出与点击点距离小于 0.01 公里的要素。
    CQL_FILTER: `DWITHIN(geom,POINT(${pt.x} ${pt.y}), 0.01, kilometers)`
  };
  axios({
    method: "GET",
    url: urlString + L.Util.getParamString(param, urlString)
  })
    .then(res => {
      if (res.status === 200) {
        console.log(res.data.features);
        let arr = [];
        res.data.features.map(item => {
          arr.push(`${item.properties.name},`);
        });
        let str = arr.join(",");
        L.popup()
          .setLatLng(latlng)
          .setContent(str)
          .openOn(this.map);
      }
    })
    .catch(e => {
      console.log("Error fetching feature info:", e);
    });
},

效果:

2、利用WMS服务实现点击图层要素弹出信息,完成属性查询,wfs的GetFeatureInfo也可用于获取要素数据后根据数据修改图层样式

this.map.on("click", res => {
  const latlng = res.latlng;
  // 将 latlng 转换为地图容器的像素坐标
  const point = this.map.latLngToContainerPoint(latlng); 
  this.getCilckFeatrue(latlng, point);
});

/**
 * 获取点击位置geoserver图层信息
 */
getCilckFeatrue(latlng, pt, layer_name) {
  const mapSize = this.map.getSize(); // 获取地图大小
  const bbox = this.map.getBounds().toBBoxString(); // 获取当前地图视图的边界
  var urlString = "geoserver/china/ows";
  var param = {
    service: "WMS",
    version: "1.1.1",
    request: "GetFeatureInfo",
    layers: "china:region", // 要加载的图层名
    query_layers: "china:region", //图层服务名
    srs: "EPSG:4326",
    height: mapSize.y,
    width: mapSize.x,
    info_format: "application/json",
    x: Math.floor(pt.x),
    y: Math.floor(pt.y),
    bbox: bbox, // 添加边界参数
    feature_count: 10 // 可选:请求返回的特性数量
  };
  axios({
    method: "GET",
    url: urlString + L.Util.getParamString(param, urlString)
  })
    .then(res => {
      if (res.status === 200) {
        console.log(res);
        let arr = [];
        res.data.features.map(item => {
          arr.push(`${item.properties.name},`);
        });
        let str = arr.join(",");
        L.popup()
          .setLatLng(latlng)
          .setContent(str)
          .openOn(this.map);
      }
    })
    .catch(e => {
      console.log("Error fetching feature info:", e);
    });
}

效果:

1 Introduction 3 1.1 Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 1.2 History . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 1.3 Getting involved . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4 1.4 License . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 2 Installation 7 2.1 Windows installer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 2.2 Windows binary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14 2.3 Mac OS X installer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 2.4 Mac OS X binary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16 2.5 Linux binary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18 2.6 Web archive . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19 2.7 Upgrading existing versions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20 3 Getting Started 23 3.1 Web Administration Interface Quickstart . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23 3.2 Publishing a Shapefile . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 3.3 Publishing a PostGIS Table . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36 4 GeoServer Data Directory 43 4.1 Creating a New Data Directory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43 4.2 Setting the Data Directory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44 4.3 Structure of the Data Directory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46 4.4 Migrating a Data Directory between different versions . . . . . . . . . . . . . . . . . . . . . . 49 5 Web Administration Interface 53 5.1 Interface basics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53 5.2 Server . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55 5.3 Layer Preview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 67 5.4 Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 70 5.5 Services . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 96 5.6 Tile Caching . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 106 5.7 Security . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 124 5.8 Demos . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 150 6 Working with Vector Data 155 6.1 Shapefile . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 155 6.2 Directory of spatial files . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 157 i 6.3 Java Properties . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 159 6.4 GML . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 161 6.5 VPF . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 161 6.6 Pregeneralized Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 163 7 Working with Raster Data 165 7.1 GeoTIFF . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 165 7.2 GTOPO30 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 166 7.3 WorldImage . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 167 7.4 ImageMosaic . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 168 7.5 ArcGrid . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 169 7.6 GDAL Image Formats . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 171 7.7 Oracle Georaster . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 177 7.8 Postgis Raster . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 180 7.9 ImagePyramid . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 180 7.10 Image Mosaic JDBC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 182 7.11 Custom JDBC Access for image data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 182 7.12 Coverage Views . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 183 8 Working with Databases 187 8.1 PostGIS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 187 8.2 H2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 192 8.3 ArcSDE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 194 8.4 DB2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 200 8.5 MySQL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 201 8.6 Oracle . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 204 8.7 Microsoft SQL Server and SQL Azure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 208 8.8 Teradata . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 210 8.9 Database Connection Pooling . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 218 8.10 JNDI . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 219 8.11 SQL Views . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 220 8.12 Controlling feature ID generation in spatial databases . . . . . . . . . . . . . . . . . . . . . . 224 8.13 Custom SQL session start/stop scripts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 226 8.14 Using SQL session scripts to control authorizations at the database level . . . . . . . . . . . . 226 9 Working with Application Schemas 229 9.1 Complex Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 229 9.2 Installation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 233 9.3 WFS Service Settings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 233 9.4 Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 234 9.5 Mapping File . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 235 9.6 Application Schema Resolution . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 243 9.7 Supported GML Versions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 245 9.8 Secondary Namespaces . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 246 9.9 CQL functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 248 9.10 Property Interpolation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 252 9.11 Data Stores . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 253 9.12 Feature Chaining . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 259 9.13 Polymorphism . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 266 9.14 Data Access Integration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 272 9.15 WMS Support . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 274 9.16 WFS 2.0 Support . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 278 9.17 Joining Support For Performance . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 279 9.18 Tutorial . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 280 ii 10 Working with Cascaded Services 289 10.1 External Web Feature Server . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 289 10.2 Cascaded Web Feature Service Stored Queries . . . . . . . . . . . . . . . . . . . . . . . . . . . 291 10.3 External Web Map Server . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 293 11 Filtering in GeoServer 297 11.1 Supported filter languages . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 297 11.2 Filter Encoding Reference . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 298 11.3 ECQL Reference . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 303 11.4 Filter functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 306 11.5 Filter Function Reference . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 308 12 Styling 317 12.1 Introduction to SLD . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 317 12.2 Working with SLD . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 319 12.3 SLD Cookbook . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 321 12.4 SLD Reference . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 378 12.5 SLD Extensions in GeoServer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 419 12.6 SLD Tips and Tricks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 463 13 Services 473 13.1 Web Feature Service . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 473 13.2 Web Map Service . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 489 13.3 Web Coverage Service . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 517 13.4 Virtual OWS Services . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 520 14 REST configuration 525 14.1 REST configuration API reference . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 525 14.2 REST configuration examples . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 551 15 Advanced GeoServer Configuration 575 15.1 Coordinate Reference System Handling . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 575 15.2 Advanced log configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 585 15.3 WMS Decorations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 586 16 Security 589 16.1 Role system . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 589 16.2 Authentication . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 598 16.3 Passwords . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 608 16.4 Root account . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 611 16.5 Service Security . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 611 16.6 Layer security . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 614 16.7 REST Security . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 617 16.8 Disabling security . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 619 16.9 Tutorials . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 619 17 Running in a Production Environment 659 17.1 Java Considerations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 659 17.2 Container Considerations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 662 17.3 Configuration Considerations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 663 17.4 Data Considerations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 665 17.5 Linux init scripts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 667 17.6 Other Considerations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 668 17.7 Troubleshooting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 668 17.8 Make cluster nodes identifiable from the GUI . . . . . . . . . . . . . . . . . . . . . . . . . . . 674 iii 18 Caching with GeoWebCache 675 18.1 Using GeoWebCache . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 675 18.2 Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 678 18.3 Seeding and refreshing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 683 18.4 HTTP Response Headers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 683 18.5 GeoWebCache REST API . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 686 18.6 Troubleshooting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 696 19 Google Earth 699 19.1 Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 699 19.2 Quickstart . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 699 19.3 KML Styling . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 701 19.4 Tutorials . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 716 19.5 Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 730 20 Extensions 741 20.1 Control flow module . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 741 20.2 CSS Styling . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 744 20.3 Catalog Services for the Web (CSW) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 879 20.4 DXF OutputFormat for WFS and WPS PPIO . . . . . . . . . . . . . . . . . . . . . . . . . . . . 885 20.5 Excel WFS Output Format . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 888 20.6 GeoSearch . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 889 20.7 Imagemap . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 891 20.8 Importer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 892 20.9 INSPIRE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 925 20.10 JP2K Plugin . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 929 20.11 libjpeg-turbo Map Encoder Extension . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 929 20.12 Monitoring . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 932 20.13 OGR based WFS Output Format . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 948 20.14 OGR based WPS Output Format . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 951 20.15 GeoServer Printing Module . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 952 20.16 Cross-layer filtering . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 978 20.17 Web Processing Service . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 982 20.18 XSLT WFS output format module . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 998 20.19 Web Coverage Service 2.0 Earth Observation extensions . . . . . . . . . . . . . . . . . . . . . 1003 21 Tutorials 1015 21.1 Freemarker Templates . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1015 21.2 GeoRSS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1017 21.3 GetFeatureInfo Templates . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1020 21.4 Paletted Images . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1026 21.5 Serving Static Files . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1033 21.6 WMS Reflector . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1033 21.7 WMS Animator . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1036 21.8 CQL and ECQL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1039 21.9 Using the ImageMosaic plugin . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1045 21.10 Using the ImageMosaic plugin for raster time-series data . . . . . . . . . . . . . . . . . . . . . 1058 21.11 Using the ImageMosaic plugin for raster with time and elevation data . . . . . . . . . . . . . 1070 21.12 Using the ImageMosaic plugin with footprint mangement . . . . . . . . . . . . . . . . . . . . 1073 21.13 Building and using an image pyramid . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1080 21.14 Storing a coverage in a JDBC database . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1083 21.15 Using the GeoTools feature-pregeneralized module . . . . . . . . . . . . . . . . . . . . . . . . 1090 21.16 Setting up a JNDI connection pool with Tomcat . . . . . . . . . . . . . . . . . . . . . . . . . . 1097 21.17 geoserver on JBoss . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1102 iv 22 Community 1105 22.1 Key authentication module . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1105 22.2 DDS/BIL(World Wind Data Formats) Extension . . . . . . . . . . . . . . . . . . . . . . . . . . 1108 22.3 NetCDF . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1110 22.4 Python . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1112 22.5 Scripting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1116 22.6 SpatiaLite . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1136 22.7 NetCDF Output format . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1139 22.8 Dynamic colormap generation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1141 22.9 JDBCConfig . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1145 22.10 MBTiles Extension . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1147 22.11 GeoPackage Extension . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1149 22.12 GRIB format . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1154 22.13 REST PathMapper Plugin . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1155 22.14 PGRaster . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1156 22.15 WPS download community module . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1158 22.16 JMS based Clustering . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1160 22.17 SOLR data store . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1173 22.18 SLD REST Service . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1181 22.19 Resumable REST Upload Plugin . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1188 22.20 GeoMesa data store . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1190 22.21 GWC Distributed Caching community module . . . . . . . . . . . . . . . . . . . . . . . . . . 1190 22.22 Geofence Internal Server . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1191 22.23 GDAL based WCS Output Format . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1196 22.24 GWC S3 BlobStore plugin . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1200
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值