当前位置: 首页 > news >正文

搜狐快站做网站教程网络舆情管理

搜狐快站做网站教程,网络舆情管理,广西住房和城乡建设厅证件查询,小树建站平台GeoServer是一个基于java的服务器,它允许用户查看和编辑地理空间数据。使用OGC制定的开放标准,GeoServer在地图创建和数据共享方面具有极大的灵活性。 功能概述: Open and Share Your Spatial Data GeoServer允许您向世界显示您的空间信息。G…

GeoServer是一个基于java的服务器,它允许用户查看和编辑地理空间数据。使用OGC制定的开放标准,GeoServer在地图创建和数据共享方面具有极大的灵活性。

功能概述:

  • Open and Share Your Spatial Data

     GeoServer允许您向世界显示您的空间信息。GeoServer实现了Web地图服务(WMS)标准,可以创建各种输出格式的地图。OpenLayers是一个免费的地图库,集成到GeoServer中,使地图生成快速简便。GeoServer是建立在GeoTools上的GeoTools是一个开源的Java GIS工具包。除了精美的地图,GeoServer还有更多的功能。GeoServer符合Web Feature Service (WFS)标准和Web Coverage Service (WCS)标准,后者允许共享和编辑用于生成地图的数据。

  • Integrate With Mapping APIs

    我们推荐OpenLayers和Leaflet,当它们与GeoServer结合时,为您的web映射需求提供了一个开源的解决方案。GeoServer还可以在任何流行的地图应用程序上显示数据,如谷歌地图、谷歌地球、微软必应地图和MapBox。此外,GeoServer还可以与传统GIS架构(如ESRI ArcGIS)对接

 下载与安装:

安装包有exe桌面形式和war包等形式,选取特定包形式并安装,要注意的是要查看下载包与电脑下载的java版本是否兼容 

 

  •  war包形式:geoserver 安装部署发部_geoserver-2.24.1-war 部署-CSDN博客
  • exe形式:geoserver 下载安装_geoserver下载-CSDN博客

发布 shapefile:

Publishing a shapefile — GeoServer 2.26.x User Manual

Publishing a shapefile

This tutorial walks through the steps of publishing a Shapefile with GeoServer.

This tutorial assumes that GeoServer is running at http://localhost:8080/geoserver.

Data preparation

First let’s gather that the data that we’ll be publishing.

  1. Download the file nyc_roads.zip. This archive contains a shapefile of roads from New York City that will be used during in this tutorial.

  2. Unzip the nyc_roads.zip into a new directory named nyc_roads. The archive contains the following four files:

    nyc_roads.shp
    nyc_roads.shx
    nyc_roads.dbf
    nyc_roads.prj
    
  3. Move the nyc_roads directory into <GEOSERVER_DATA_DIR>/data, where <GEOSERVER_DATA_DIR> is the root of the GeoServer data directory. If no changes have been made to the GeoServer file structure, the path is geoserver/data_dir/data/nyc_roads.

若是war包部署在Tomcat,需要重新启动Tomcat

D:\software\Tomcat\apache-tomcat-8.5.92\webapps\geoserver\data\data

Creating a new workspace

The next step is to create a workspace for the shapefile. A workspace is a container used to group similar layers together.

Note

This step is optional if you’d like to use an existing workspace. Usually, a workspace is created for each project, which can include stores and layers that are related to each other.

  1. In a web browser, navigate to http://localhost:8080/geoserver.

  2. Log into GeoServer as described in the Logging In section.

  3. Navigate to Data ‣ Workspaces.

    ../../_images/data_workspaces.png

    Workspaces page

  4. Click the Add new workspace button.

  5. You will be prompted to enter a workspace Name and Namespace URI.

    ../../_images/new_workspace.png

    Configure a new workspace

  6. Enter the Name as nyc and the Namespace URI as http://geoserver.org/nyc.

    Note

     

    A workspace name is an identifier describing your project. It must not exceed ten characters or contain spaces. A Namespace URI (Uniform Resource Identifier) can usually be a URL associated with your project with an added trailing identifier indicating the workspace. The Namespace URI filed does not need to resolve to an actual valid web address.

    ../../_images/workspace_nycroads.png

    nyc workspace

  7. Click the Submit button. The nyc workspace will be added to the Workspaces list.

Create a store

Once the workspace is created, we are ready to add a new store. The store tells GeoServer how to connect to the shapefile.

  1. Navigate to Data‣Stores.

  2. You should see a list of stores, including the type of store and the workspace that the store belongs to.

  3. In order to add the shapefile, you need to create a new store. Click the Add new Store button. You will be redirected to a list of the data sources supported by GeoServer. Note that the data sources are extensible, so your list may look slightly different.

    ../../_images/stores_nycroads.png

    Stores

  4. Click Shapefile. The New Vector Data Source page will display.

  5. Begin by configuring the Basic Store Info.

    • Select the workspace nyc from the drop down menu.

    • Enter the Data Source Name as NYC Roads

    • Enter a brief Description (such as “Roads in New York City”).

  6. Under Connection Parameters, browse to the location URL of the shapefile, typically nyc_roads/nyc_roads.shp.

    ../../_images/new_shapefile.png

    Basic Store Info and Connection Parameters

  7. Click Save. You will be redirected to the New Layer page in order to configure the nyc_roads layer.

Creating a layer

Now that the store is loaded, we can publish the layer.

  1. On the New Layer page, click Publish beside the nyc_roads layer name.

    ../../_images/new_layer.png

    New layer

  2. The Edit Layer page defines the data and publishing parameters for a layer. Enter a short Title and an Abstract for the nyc_roads layer.

    ../../_images/new_data.png

    Basic Resource Information

  3. Generate the layer’s bounding boxes by clicking the Compute from data and then Compute from native bounds links.

    ../../_images/boundingbox1.png

    Generating bounding boxes

  4. Click the Publishing tab at the top of the page.

  5. We can set the layer’s style here. Under WMS Settings, ensure that the Default Style is set to line.

    ../../_images/style1.png

    Select Default Style

  6. Finalize the layer configuration by scrolling to the bottom of the page and clicking Save.

Previewing the layer

In order to verify that the nyc_roads layer is published correctly, we can preview the layer.

  1. Navigate to the Layer Preview screen and find the nyc:nyc_roads layer.

    ../../_images/layer_preview.png

  2. Click the OpenLayers link in the Common Formats column.

  3. An OpenLayers map will load in a new tab and display the shapefile data with the default line style. You can use this preview map to zoom and pan around the dataset, as well as display the attributes of features.

    ../../_images/openlayers4.png

http://www.ds6.com.cn/news/61278.html

相关文章:

  • 做什么网站好网站推广费用一般多少钱
  • 世界500强企业招聘网站凡科网站登录入口
  • 做网站页面文件最新军事动态最新消息
  • mip 网站靠谱的seo收费
  • 沈阳做网站建设域名解析查询
  • 做网站的时候说需求的专业术语网络推广长沙网络推广
  • 在网站上做教学直播平台多少钱软文模板app
  • php 网站缓存武汉百度推广公司
  • 推广文案类型西安新站网站推广优化
  • jquery+js网站模板免费下载网站流量查询站长之家
  • 郴州网站建设公司电话国家市场监督管理总局官网
  • 给自己企业怎么做网站百度公司在哪里
  • 许昌旅游网站建设现状seo软件视频教程
  • 做网站公众号关键词快速排名seo怎么优化
  • 手机网站在线制作百度云官网首页
  • 个人网站需要哪些内容长沙seo网站管理
  • 龙岗做手机网站宁波网站建设推广公司价格
  • 法院网站建设视频优化软件
  • 网站建设初期网络公司名字大全
  • 山东seo第一徐州seo推广优化
  • 网站ip地址 转向域名企业网页制作
  • 极简个人网站模板厦门网页搜索排名提升
  • 酒店网站的开发及其设计方案网络销售培训
  • 黑龙江省建设厅网站优化网站排名推广
  • 旅游景区网站开发的政策可行性网站手机优化
  • 网站怎么添加导航栏新品牌推广策略
  • 微信网页版下载郑州seo外包阿亮
  • 工信和信息化部网站可以营销的十大产品
  • 明年做啥网站能致富营销网络是什么意思
  • 三峡建设管理有限公司网站网站搜索工具