使用 SQL Server 2008 视图创建 GeoServer 功能
我们试图在 SQL Server 2008 中的视图之上(而不是表)在 GeoServer 中创建一个要素(图层)。 我们能够创建该功能,但它不会显示任何数据,因为 GeoServer (JDBC) 无法检测用作 FID 的主键。 据我所知,不可能使视图列看起来为主键,并且我们无法弄清楚如何强制 GeoServer 将特定列识别为 FID。
任何帮助将不胜感激。
We are trying to create a feature (layer) in GeoServer on top of a view in SQL Server 2008, rather than a table. We are able to create the feature, but it won't display any data because GeoServer (JDBC) can't detect a primary key to use as the FID. To the best of my knowledge, it is not possible to make a view column appear to be a primary key, and we can't figure out how to force GeoServer to recognize a specific column as the FID.
Any help would be greatly appreciated.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这显然是 SQL 08 GeoServer 驱动程序中的一个已知错误。 他们已经解决了这个问题,并且可以通过下载他们的夜间版本之一来获得修复版本。 您需要获取 GeoServer 和 SQL Server 驱动程序的最新副本。
This was apparently a known bug in the SQL 08 GeoServer driver. They have since fixed the problem, and the fixed version can be obtained by downloading one of their nightly builds. You'll need to get the latest copy of both GeoServer and the SQL Server driver.