简体   繁体   English

如何解决MGOS 2.2中的“ MgIndexOutOfRangeException”?

[英]How to resolve “MgIndexOutOfRangeException” in MGOS 2.2?

I am working on a GIS based application. 我正在研究基于GIS的应用程序。 I am using the following tools: 我正在使用以下工具:

  1. MapGuide Open Source 2.2 MapGuide开源2.2
  2. MapGuide Maestro 3.5.0.6071 MapGuide Maestro 3.5.0.6071
  3. Oracle 10g 甲骨文10g
  4. Oracle SQL Developer 3.0.04 Oracle SQL开发人员3.0.04
  5. PHP 5 PHP 5

In MapGuide Meastro, Whenever I add a new SHP Provider feature resource and preview it in the browser, it gives the following message: 在MapGuide Meastro中,每当我添加新的SHP Provider功能资源并在浏览器中预览时,它都会显示以下消息:

Failed to retrieve message for "MgIndexOutOfRangeException". 无法检索“ MgIndexOutOfRangeException”的消息。 The value is invalid because it is too large. 该值无效,因为它太大。

However, when I add an Oracle Provider feature resource, and preview it in browser, it works fine. 但是,当我添加Oracle Provider功能资源并在浏览器中预览时,它可以正常工作。

Googling the error message with the above configuration gives ALMOST 0 useful results. 使用上述配置对错误消息进行谷歌搜索将为ALMOST 0提供有用的结果。 I have posted the same question even the support site, osgeo.org , long ago, but have not received a reply yet. 我很久以前甚至在支持网站osgeo.org上都发布了相同的问题,但尚未收到回复。

Does anyone working on these technologies have any idea? 从事这些技术工作的人有任何想法吗?

EDIT 编辑
At least, I have found the root of the problem. 至少,我找到了问题的根源。 It is in 它在

C:\\Program Files\\OSGeo\\MapGuide\\Web\\www\\schemareport\\displayschema.php C:\\ Program Files \\ OSGeo \\ MapGuide \\ Web \\ www \\ schemareport \\ displayschema.php

on line: 61 在线:61

$firstClass = substr(strrchr($classCollection->GetItem(0), ":"), 1); $ firstClass = substr(strrchr($ classCollection-> GetItem(0),“:”),1);

I resolved the issue by downgrading the MapGuide Maestro from 3.5.0.6071 to 2.1.1.5078 . 我通过将MapGuide Maestro从3.5.0.6071降级到2.1.1.5078解决了该问题。 The interface is not as user-friendly as the latter version, but it resolved not only the problem in question, but some other problems with database connectivity also. 该界面不如后者版本易于使用,但它不仅解决了有问题的问题,而且还解决了数据库连接的其他一些问题。

One more drawback, it has no support for composite geometry shapes. 另一个缺点是,它不支持复合几何形状。

Thanks 谢谢

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM