调用westdc的搜索功能

如何调用westdc的搜索功能?
WESTDC的搜索地址为:http://westdc.westgis.ac.cn/DataServices/SearchMetadata.aspx
而参数的传递方法可以使用GET,也可以使用POST。
具体参数包括:
q, 全文搜索的关键词
e, 经度(东)
w, 经度(西)
s, 纬度(南)
n, 纬度(北)

比如,使用get方法的时候,您可以直接调用:

http://westdc.westgis.ac.cn/DataServices/SearchMetadata.aspx?q=沙漠&e=100&w=50&s=50&n=70

也可以使用POST方法调用,代码如下:

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
</head>
<body>
<form action="http://westdc.westgis.ac.cn/DataServices/SearchMetadata.aspx" method="post" name="form1">
<input type="text" name="q">
<input type="submit" value="submit">
</form>
</body>
</html>

效果如下:

This entry was posted in westdc and tagged , . Bookmark the permalink.

One Response to 调用westdc的搜索功能

  1. wlx [微博 ] says:

    注意,网页编码一定要采用UTF8,否则会产生错误。

发表评论

电子邮件地址不会被公开。 必填项已用 * 标注

*

您可以使用这些 HTML 标签和属性: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Please copy the string REInvd to the field below:

以新浪微博帐号登录