GeoServer学习手记(五):Servlet及HTTP派发过程之二

 

GeoServer学习手记(五):Servlet及HTTP派发过程之二

粟卫民http://www.gisdev.cn/ http://blog.csdn.net/suen/ 日期:2009-10-29

保留所有版权。如需转载,请联系作者,并在醒目位置注明出处

 

接上篇《GeoServer学习手记(四):Servlet及HTTP派发过程之一》(http://blog.csdn.net/suen/archive/2009/11/02/4759332.aspx)。

Request

A request can be sent to Geoserver as a GET or a POST, both are handled similarly.

The getFeature process keeps the distinction between a GET and POST until it hits the FeatureRequest object: org.vfny.geoserver.wfs.requests.FeatureRequest. Once you hit FeatureRequest, the code isn't forked and the request works from one spot, execute(). Read on for more details.

GET and POST

Here is an example HTTP GET request

http://localhost:8080/geoserver/wfs?
request=getfeature&
service=wfs&
version=1.0.0&
typename=states&
filter=

xmlns:ogc="http://ogc.org" xmlns:gml="http://www.opengis.net/gml">
the_geom
-73.99312376470733,40.76203427979042 -73.9239210030026,40.80129519821393

clip_image001

Try it

If you have Geoserver set up locally on port 8080, you can enter the above URL and Geoserver will process it.
 
Try it with this

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 2
    评论
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值