vivo手机怎么截屏是vivo y55a,请问微信旁边那东西怎么消除?弄半天了,请会的解答

26925人阅读
开源GIS(55)
地理信息网络GeoWeb(54)
GeoServer学习手记(一):GeoServer概述
保留所有版权。如需转载,请联系作者,并在醒目位置注明出处
题记:接触GeoServer已经很久了,但一直都只是使用它提供的服务。由于以前自己感兴趣或熟悉的代码只是C、C++、C#,所以一直没有意愿去分析GeoServer的代码。这段时间来,由于在做一个空间信息服务平台的设计,决定采用J2EE路线,才需要去参考和借鉴GeoServer的代码,同时,也是个机会。为了给开源社区做点贡献,也为了和大家一起学习,一起讨论,所以决定和以往一样,写一组博客,记录我分析的心得,希望大家踊跃留言,讨论,由于我是一边分析一边记录,肯定有很多写得不对的地方,也请大家批评指正。
GeoServer网上的介绍已经很多了,我在这做一些简单的总结,同时介绍一下最新版本的一些发展。
GeoServer是一个开源的服务器端软件,它使用的开发语言是Java,它主要的功能是基于OGC的WMS、WFS、WCS等规范发布空间数据。
下载地址:
它详细的功能(来源于官网)包括:
&Fully compliant to WMS 1.1.1, WFS (1.0 and 1.1, transactions and locking) and WCS (1.0 and 1.1) specifications, as tested by the CITE conformance tests. GeoServer additionally serves as Reference Implementation for WCS 1.1 and WFS 1.0 and 1.1(完全实现了WMS1.1.1,WFS(1.0 and 1.1, transactions and locking),WCS 1.1)
&Easy to use web-based configuration tool - no need to touch long, complicated config files. (易于使用的基于Web的配置工具)
&Mature support for PostGIS, Shapefile, ArcSDE, DB2 and Oracle. (对PostGIS, Shapefile, ArcSDE, DB2和Oracle支持比较成熟)
&VPF, MySQL, MapInfo, and Cascading WFS are also supported formats. (还支持VPF, MySQL, MapInfo, 和Cascading WFS)
&Native Java support for GeoTIFF, GTOPO30, ArcGrid, WorldImages, ImageMosiacs and Image Pyramids(本地JAVA语言实现了对GeoTIFF, GTOPO30, ArcGrid, WorldImages, ImageMosiacs和影像金字塔的支持)
&Support for MrSID, ECW, JPEG2000, DTED, Erdas Imagine, and NITF through . Any format that
can be added with a bit of coding. (通过实现对MrSID, ECW, JPEG2000, DTED, Erdas Imagine, 和NITF的支持)
&On the fly reprojection, for WMS and WFS, with an embedded EPSG database supporting hundreds of projections by default. (支持WMS和WFS的动态投影,通过内嵌EPSG数据库实现数百种投影的默认支持)
&Web Map output as JPEG, GIF, PNG, PDF, SVG, KML, . (网络地图支持的格式包括JPEG, GIF, PNG, PDF, SVG, KML, )
&Excellent , including advanced features like super overlays (vector and raster), 2.5D extrudes, Time, advanced template options for pop-ups and titles, and styling with SLD. (很好的支、持Google Earth,包括矢量栅格地图的叠加,2.5维、时态叠加、弹出窗口模板定制和基于SLD的矢量符号化)
&Ability to 'publish' data to Google's geo crawlers, so data from GeoServer can be exposed on Google Maps and Earth searches. (see , docs coming soon) (可发布数据到Google的geo crawlers,从而可以使用Google Maps和Earth的查找功能)
&Integration with , for accelerated tile mapping (like on Openlayers or Google Maps) (与集成,实现切片地图的显示)
&Raw vector data available as GML (2.1.2 and 3.1.1), GeoJSON, and zipped Shapefiles through the WFS. (矢量数据可以通过WFS提供GML,GeoJSON和压缩的shp文件)
&Anti-aliased images by default, with option to turn off or to use a
for increased performance. (缺省的图像反走样支持)
&Integrated
as a default ajax viewer and preview engine. (集成OpenLayers作为ajax浏览器和预览引擎)
&Standards compliant 'by default' - no need to figure out complex configuration options just to serve basic data. (缺省的配置)
&Performance, on par with the fastest open source mapping servers, and we are quite confident that we do faster rendering than any major proprietary server. See the
for more info. (优异的地图渲染性能)
&Support for atomic database transactions through the standard WFS-T protocol, available on all data formats. (支持数据事务操作)
& to support wiki-style history, attribution, and rollbacks on geospatial data. (带版本的WFS支持)
& through the powerful
java framework, to secure individual services and layers to groups of users. (集成 java安全框架)
&User Interface translated in to French, German, Spanish, Portuguese, Dutch, Japanese, Chinese, Russian and more. (多语言界面支持)
&Support for Component WMS / Feature Portrayal Service
&Long Transactions through a full implementation of the Locking portion of the WFS specification. (长事务支持)
&Streaming data readers: no memory bound limit to the amount of data that can be returned. (流数据读取器)
&Full SLD support, the open standard to define map styles, including both user defined (POST and GET) and used natively in styling configuration. (完全的SLD支持)
&Full Filter support on all data formats in WFS (but optimized for backend format where possible). (WFS Filter完全支持)
&Innovative Validation Engine that checks inserted features against a configured set of topological and attributed based rules, to maintain backend integrity. (拓扑和属性验证)
&Java (J2EE) servlet-based, can run in any servlet container. This means we easily support
architectures and advanced multi-threading capabilities. (基于J2EE servlet)
&Designed for extension, source code that's a pleasure to read. (扩展支持,代码可读性高)
&Easy to write new data formats with
DataStore interfaces and helper classes, making GeoServer the standards based interface to legacy data. (数据格式易于扩展)
&No need to recompile to support more data formats, GeoTools DataStores instantly plug-in to GeoServer, even showing up as an option in the configuration gui. (扩展数据格式不需要重编译)
&Modularized Codebase for pluggable services. (可插拔的服务)
modules, for developers to experiment with plug-ins before they are ready for core distribution, including modules for , as well as using REST for
and . Plus
(活跃的社区模块开发,包括REST API)
&True open source development style, built by a strong community, that you can join and become a part of, tailoring GeoServer for your needs. (开源开发支持)
& that details everything in easy to understand language. (详细的文档)
&Featured in books like .
for quick support.
&Commercial grade installation, support, customization and improvements
from an eco-system of companies, non-profits, and consulting individuals.
&&相关文章推荐
* 以上用户言论只代表其个人观点,不代表CSDN网站的观点或立场
访问:586871次
积分:6379
积分:6379
排名:第3527名
原创:55篇
转载:48篇
评论:164条
(1)(1)(3)(1)(1)(1)(6)(4)(4)(2)(1)(1)(2)(2)(15)(1)(6)(2)(4)(4)(3)(8)(4)(2)(4)(3)(4)(4)(4)(5)(1)(4)(1)测试版本为geoserver2.11.0。
两种方法都可以实现跨域设置:
下载跨域jar包jetty-servlets.jar(下载geoserver使用的对应jetty版本&&可以查看&Geoserver&\lib下jetty-servlet.jar的版本作为对照)并将jar包放到&Geoserver&\webapps\geoserver\WEB-INF\lib文件夹下。
下载地址:
打开&Geoserver&\webapps\geoserver\web.xml文件,找到文件中&filter&平级的位置,添加如下内容:
&filter-name&cross-origin&/filter-name&
&filter-class&org.eclipse.jetty.servlets.CrossOriginFilter&/filter-class&
&init-param&
&param-name&allowedOrigins&/param-name&
&param-value&*&/param-value&
&/init-param&
&init-param&
&param-name&allowedMethods&/param-name&
&param-value&GET,POST&/param-value&
&/init-param&
&init-param&
&param-name&allowedHeaders&/param-name&
&param-value&x-requested-with,content-type&/param-value&
&/init-param&
找到文件中&filter-mapping&平级的位置,添加如下内容:
&filter-mapping&
&filter-name&cross-origin&/filter-name&
&url-pattern&/*&/url-pattern&
&/filter-mapping&
下载cors-filter-1.7.jar,Java-property-utils-1.9.jar这两个库文件,放到&Geoserver&\webapps\geoserver\WEB-INF\lib目录下
下载地址:
打开&Geoserver&\webapps\geoserver\web.xml文件,找到文件中&filter&平级的位置,添加如下内容:
  &filter-name&CORS&/filter-name&
&filter-class&com.thetransactioncompany.cors.CORSFilter&/filter-class&
&init-param&
&param-name&cors.allowOrigin&/param-name&
&param-value&*&/param-value&
&/init-param&
&init-param&
&param-name&cors.supportedMethods&/param-name&
&param-value&GET, POST, HEAD, PUT, DELETE&/param-value&
&/init-param&
&init-param&
&param-name&cors.supportedHeaders&/param-name&
&param-value&Accept, Origin, X-Requested-With, Content-Type, Last-Modified&/param-value&
&/init-param&
&init-param&
&param-name&cors.exposedHeaders&/param-name&
&param-value&Set-Cookie&/param-value&
&/init-param&
&init-param&
&param-name&cors.supportsCredentials&/param-name&
&param-value&true&/param-value&
&/init-param&
找到文件中&filter-mapping&平级的位置,添加如下内容:
&filter-mapping&
&filter-name&CORS&/filter-name&
&url-pattern&/*&/url-pattern&
&/filter-mapping&
阅读(...) 评论()javascript(3)
Ajax POST请求调用Geoserver的WFS服务
在使用jquery的POST调用Geoserver的WFS服务遇到的问题
1、Geoserverde的WFS服务传入的参数是XML的String类型,Content-type为contentType:”text/charset=UTF-8”,开始没有注意到ajax的post请求的默认 contentType默认值: “application/x-www-form-urlencoded”。
&!DOCTYPE html&
lang="en"&
charset="UTF-8"&
src="../lib/ol-debug.js"&&
src="../lib/jquery.min.js"&&
href="../lib/ol.css" rel="stylesheet"&
onclick="request()"&请求&
type="text/javascript"&
var string1 = "&GetFeature xmlns=\"http://www.opengis.net/wfs\" service=\"WFS\" version=\"1.1.0\" outputFormat=\"application/json\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:schemaLocation=\"http://www.opengis.net/wfs http://schemas.opengis.net/wfs/1.1.0/wfs.xsd\"&&Query typeName=\"osm:water_areas\" srsName=\"EPSG:3857\" xmlns:osm=\"http://openstreemap.org\"&&Filter xmlns=\"http://www.opengis.net/ogc\"&&And&&PropertyIsLike wildCard=\"*\" singleChar=\".\" escapeChar=\"!\"&&PropertyName&name&/PropertyName&&Literal&Mississippi*&/Literal&&/PropertyIsLike&&PropertyIsEqualTo&&PropertyName&waterway&/PropertyName&&Literal&riverbank&/Literal&&/PropertyIsEqualTo&&/And&&/Filter&&/Query&&/GetFeature&";
function request(){
type: 'POST',
url: "/geoserver/wfs",
data: string1,
success: function (data) {
console.log(data);
error:function(data){
console.log(data);
contentType:"text/charset=UTF-8",
dataType: "json"
&&相关文章推荐
* 以上用户言论只代表其个人观点,不代表CSDN网站的观点或立场
访问:2529次
排名:千里之外
原创:13篇
(4)(1)(2)(1)(2)(2)(1)GeoServer中WMS、WFS的请求规范(转载)
时间: 23:18:17
&&&& 阅读:43
&&&& 评论:
&&&& 收藏:0
标签:&&&&&&&&&&&&&&&&&&&&&&&&&&&1.背景
1.1WMS简介
Web地图服务(WMS)利用具有地理空间位置信息的数据制作地图。其中将地图定义为地理数据可视的表现。这个规范定义了三个操作:GetCapabitities返回服务级元数据,它是对服务信息内容和要求参数的一种描述; GetMap返回一个地图影像,其地理空间参考和大小参数是明确定义了的;GetFeatureInfo(可选)返回显示在地图上的某些特殊要素的信息。
GeoServer官网上对其WMS规范的描述地址为。
1.2WFS简介
Web要素服务(WFS)返回的是要素级的GML编码,并提供对要素的增加、修改、删除等事务操作,是对Web地图服务的进一步深入。OGC Web要素服务允许客户端从多个Web要素服务中取得使用地理标记语言(GML)编码的地理空间数据,这个远东定义了五个操作:GetCapabilites返回Web要素服务性能描述文档(用XML描述);DescribeFeatureType返回描述可以提供服务的任何要素结构的XML文档;GetFeature为一个获取要素实例的请求提供服务;Transaction为事务请求提供服务;LockFeature处理在一个事务期间对一个或多个要素类型实例上锁的请求。
GeoServer官网上对其WFS规范的描述地址为。
2.WMS请求规范详解
2.1GetCapabitities(返回服务级元数据)
参数意义:
&&& & & & & & & & & & &
返回结果:
其返回结果为一个描述性XML文档,包含了以下三个要素:
2.2GetMap(获取影像)
参数意义:
这里对返回的格式(format)有如下选择:
返回结果:
注意:此请求同样支持XML格式请求,如下:
2.3GetFeatureInfo(返回要素信息)
参数意义:
&这里对返回的文本格式(info_format)有如下选择:
返回结果(忽略中文乱码):
3.WFS请求规范
3.1GetCapabilities(返回服务描述文档)
参数意义:
返回结果:
返回的结果为描述性XML,包含以下五个主要部分:
3.2DescribeFeatureType(返回图层描述信息)
参数意义:
&返回结果:
3.3GetFeature(获取图层要素)
3.3.1GET查询
这里首先给出一个例子:
此请求常见的参数有:typeNames,featureID,propertyName,Filter, count, sortBy。其中Filter参数最为重要,主要负责进行选择过滤。关于Filter的具体描述可参考:。
&返回结果为:
&{"type":"FeatureCollection","features":[{"type":"Feature","id":"jianfudan.322","geometry":{"type":"MultiPolygon","coordinates":[[[[30.056,120.20021],[30.033,120.20021],[30.26,120.22562],[30.543,120.01],[30.056,120.20021]]]]},"geometry_name":"the_geom","properties":{"limitid":71,"displayorder":null,"regionid":3,"validfromdate":"Z","validtodate":"Z","validflag":1,"media":null,"shape_length":null,"shape_area":null,"graphicid":322,"regionname":"江干区","eventtypes":null,"otherrequest":null,"limitname":"上报区域71"}},{"type":"Feature","id":"jianfudan.318","geometry":{"type":"MultiPolygon","coordinates":[[[[30.85,120.01],[30.85,120.196434],[30.833,120.20785],[30.57,120.203896],[30.704,120.187164],[30.85,120.01]]]]},"geometry_name":"the_geom","properties":{"limitid":72,"displayorder":null,"regionid":3,"validfromdate":"Z","validtodate":"Z","validflag":1,"media":"http://172.18.6.197:8081/MediaRoot/null//8bab--4ae8/机票预订.png","shape_length":null,"shape_area":null,"graphicid":318,"regionname":"江干区","eventtypes":"乱搭乱建,暴露垃圾,积存垃圾渣土,路面不洁,河道不洁(含沟渠、湖面)","otherrequest":"测试","limitname":"上报区域72"}}],"crs":{"type":"EPSG","properties":{"code":"4490"}}}
3.3.1.1点查询Filter
&Filter xmlns:ogc="http://www.opengis.net/ogc" xmlns:gml="http://www.opengis.net/gml"&
&Intersects&
&PropertyName&the_geom&/PropertyName&
&gml:Envelope srsName="EPSG:4326"&&&&&&
&gml:lowerCorner&120.75 30.9&/gml:lowerCorner&
&gml:upperCorner&120. 30.15&/gml:upperCorner&
&/gml:Envelope&
&/Intersects&
3.3.1.2自定义多边形查询Filter
&Filter&xmlns:ogc="http://www.opengis.net/ogc"&xmlns:gml="http://www.opengis.net/gml"&
&Intersects&&
&PropertyName&the_geom&/PropertyName&
&gml:MultiPolygon&srsName="EPSG:4326"&&
&gml:polygonMember&&
&gml:Polygon&&
&gml:outerBoundaryIs&&
&gml:LinearRing&
&gml:coordinates&xmlns:gml="http://www.opengis.net/gml"&decimal="."&cs=","&ts=""&
120.7&120.51&120.51&120.7&120.7
&/gml:coordinates&&&
&/gml:LinearRing&&&
&/gml:outerBoundaryIs&&&
&/gml:Polygon&&&
&/gml:polygonMember&&&
&/gml:MultiPolygon&
&/Intersects&
3.3.2Post查询
因为GET请求的数据量大小在4kb以内,所以Post为更常用的方法。以下为一个具体的例子:
其中直接发送的为一个XML文件,其Filter中可以填写的内容和GET中的Filter一样。
具体内容如下:
&?xml version=‘1.0‘ encoding=‘GBK‘?&&wfs:GetFeature service=‘WFS‘ version=‘1.0.0‘ outputFormat=‘JSON‘
xmlns:wfs=‘http://www.opengis.net/wfs‘
xmlns:ogc=‘http://www.opengis.net/ogc‘
xmlns:gml=‘http://www.opengis.net/gml‘ xmlns:xsi=‘http://www.w3.org/2001/XMLSchema-instance‘ xsi:schemaLocation=‘http://www.opengis.net/wfs&‘&
&wfs:Query typeName=‘cell‘&
&wfs:PropertyName&the_geom&/wfs:PropertyName&
&wfs:PropertyName&test1&/wfs:PropertyName&
&ogc:Filter&
&PropertyIsEqualTo&&PropertyName&test1&/PropertyName&&Literal&valuetest1&/Literal&&/PropertyIsEqualTo&
&PropertyIsEqualTo&&PropertyName&test2&/PropertyName&&Literal&valuetest2&/Literal&&/PropertyIsEqualTo&
&/ogc:Filter&
&/wfs:Query&
&/wfs:GetFeature&
3.4 Transaction(编辑要素)
该方法支持对要素的增删改。这里直接给出Post请求中发送的XML组织格式:
3.4.1添加要素
&wfs:Transaction service="WFS" version="1.0.0"&&&&&&&&& outputFormat="GML2"&&&&&&&&& xmlns:opengis=""&&&&&&&& xmlns:wfs=""&&&&&&&& xmlns:ogc=""&&&&&&&& xmlns:gml=""&&&&&&&& xmlns:xsi=""&&&&&&&& xsi:schemaLocation="&&&"&&&&&&&&&& &wfs:Insert handle="someprj1"&&&&&&&&&& &opengis:someprj&&&&&&&&&&&&& &opengis:the_geom&&&&&&&&&&&&&&&& &gml:Point srsName="" &&&&&&&&&&&&&&&&&&&&&&&&&&&&& &gml:coordinates decimal="." cs="," ts=""&,&/gml:coordinates&&&&&&&&&&&&&&&&& &/gml:Point&&&&&&&&&&&&& &/opengis:the_geom&&&&&&&&&&&&& &opengis:ssds&13&/opengis:ssds&&&&&&&&&&&&& &opengis:qqybh&12&/opengis:qqybh&&&&&&&&&&&&& &opengis:status&0&/opengis:status&&&&&&&&&& &/opengis:someprj&&&&&&& &/wfs:Insert&&&&&&&&&/wfs:Transaction&
3.4.2修改要素
&wfs:Transaction service="WFS" version="1.0.0"&&&&&&&&& outputFormat="GML2"&&&&&&&&& xmlns:opengis=""&&&&&&&& xmlns:wfs=""&&&&&&&& xmlns:ogc=""&&&&&&&& xmlns:gml=""&&&&&&&& xmlns:xsi=""&&&&&&&& xsi:schemaLocation="&&&"&&&&&&&&&& &wfs:Update typeName="opengis:qqyproject"&&&&&&&&wfs:Property&&&&&&&&& &wfs:Name&qqybh&/wfs:Name&&&&&&& &wfs:Value&12&/wfs:Value&&&&&&&/wfs:Property&&&&&& &ogc:Filter&&&&&&&&&&&&ogc:PropertyIsEqualTo&&&&&&&&ogc:PropertyName&qqybh&/ogc:PropertyName&&&&&&&&ogc:Literal&0&/ogc:Literal&&&&&&&&/ogc:PropertyIsEqualTo&&&&&&&&/ogc:Filter&&&&&&&&&&& &/wfs:Update&&&&&&&&&&/wfs:Transaction&
3.4.3删除要素
&wfs:Transaction service="WFS" version="1.0.0"&&&&&&&&& outputFormat="GML2"&&&&&&&&& xmlns:opengis=""&&&&&&&& xmlns:wfs=""&&&&&&&& xmlns:ogc=""&&&&&&&& xmlns:gml=""&&&&&&&& xmlns:xsi=""&&&&&&&& xsi:schemaLocation="&&&"&&&&&&&&&& &wfs:Delete typeName="opengis:qqyproject"&&&&&&& &ogc:Filter&&&&&&&&&&&&ogc:PropertyIsLessThan&&&&&&&&ogc:PropertyName&qqybh&/ogc:PropertyName&&&&&&&&ogc:Literal&12&/ogc:Literal&&&&&&&&/ogc:PropertyIsLessThan&&&&&&&&&ogc:PropertyIsGreaterThan&&&&&&&&ogc:PropertyName&qqybh&/ogc:PropertyName&&&&&&&&ogc:Literal&0&/ogc:Literal&&&&&&&&/ogc:PropertyIsGreaterThan&&&&&&&&/ogc:Filter&&&&&&&&&&& &/wfs:Delete&&&&&&&&&&/wfs:Transaction&
a.动态出图可以使用WMS中的GetMap请求。
b.矢量查询可以使用WFS中的GetFeature请求。
c.要素编辑可以使用WFS中的Transaction请求。
--------------------------------------------------------------------------------------------------------------------------------
注:本文转载于博客园李晓晖个人博客Naa(),感谢原文作者!标签:&&&&&&&&&&&&&&&&&&&&&&&&&&&原文:/GISQZC/p/5538455.html
教程昨日排行
&&国之画&&&& &&&&&&
&& &&&&&&&&&&&&&&
鲁ICP备号-4
打开技术之扣,分享程序人生!

我要回帖

更多关于 vivo手机怎么截屏 的文章

 

随机推荐