用于分析 WMS 或 WFS 服务等 OGC 服务的请求日志的好工具
背景
有很多工具可以分析来自 Apache HTTP 服务器等服务器的日志文件,但我需要一个来分析对地理空间服务、WMS 和 WFS 的请求
对 OGC 服务(如 WMS 或 WFS)的请求有什么特别之处?该协议包括使用地理请求参数(请参见例如 参数WMS GetMap 请求),如边界框,或地理过滤器,即 OGC 过滤器。
我想要回答的问题示例包括:
- 请求的最常见的边界框是什么,boundingbox = (minX,minY,maxX,maxY)
- 请求中的边界框是否形成“网格”,如果是,是哪些网格?
我可以将所有日志行导入到像 PostGIS 这样的空间数据库中,然后问题就减少到编写 SQL,这也可以。但是,在我当前拥有的系统上导入这么多行并不是一件容易的事,而且我仍然需要良好的 SQL 公式。
所以,理想情况下,我想要一个能够处理日志行并理解 OGC WMS、WCS、WFS、CSW 等的工具。
谷歌搜索这个问题的问题是与 Web 日志分析器的接近度,WMS = Windows Media Server,以及相对模糊性区域(地理空间)。也许您提供的答案是一个很好的谷歌搜索公式?
问题
是否有工具可以分析 OGC 请求日志,以发现重复出现的空间模式等内容?
Background
There are many tools to analyze logfiles from servers like Apache HTTP server, but I need one to analyze requests to geospatial services, WMS and WFS
What is special about a request to a OGC service like WMS or WFS? The protocol includes use of geographical request parameters (see e.g. parameters for WMS GetMap request), like a bounding box, or geographical filter, i.e. OGC filter.
Examples of questions I want answered include:
- What is the most common bounding box being requested, boundingbox = (minX,minY,maxX,maxY)
- Do bounding boxes in requests form a "grid", and if so, which grids?
I could import all the log-lines into a spatial database like PostGIS, and then the problem reduces to writing SQL, which is also ok. But it is not trivial to import that many rows on the system I currently have, and then I still need good formulations in SQL.
So, Ideally I'd like a tool that eats log lines and understands OGC WMS, WCS, WFS, CSW etc.
The problem of Googling this question is the proximity to web log analizers, and WMS = windows media server, and the relative obscurity of the area (geospatial). Maybe the answer you provide is a good google search formulation?
Question
Does a tool exist to analyze OGC request logs, to discover things like a recurring spatial pattern?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我们为法国地质调查局做了这样一个工具。它分析 apache 日志并从 ogc 请求中检索服务、层、srs、用户代理、服务器,并构建有关它的图表和表格。它还可以记录每个请求的bbox,以便显示服务使用情况的热图。
它可以很容易地引入开源,所以请随时与我联系以进行进一步的讨论。
此致
We have done such a tool for the French Geological Survey. It analyzes apache logs and retrieves services, layers, srs, user-agents, servers from ogc requests and build charts and tables about it. It can also record bbox of each request in order to display a heat map of service usage.
It could be easily brought up to OpenSource, so don't hesitate to contact me for further discussion.
Best regards
我在 https://github.com/tomkralidis/pyowslog 上转储了一些初始代码。总体思路已实现,但需要额外的工作来进行 bbox 分析。
There's a dump of some initial code I did awhile back at https://github.com/tomkralidis/pyowslog. The general idea is implemented, but would need additional work for bbox analysis.