Unable to retrieve the EPSG code for the SpatialReference from the WebContext using WebContext.getSpatialReferenceId() or WebContext.getSpatialReference().getId(). The methods always return -1.
上次发布: August 25, 2014ArcGIS Server (Java)
漏洞 ID 编号
NIM040065
已提交
November 12, 2008
上次修改时间
June 5, 2024
适用范围
ArcGIS Server (Java)
找到的版本
9.2
编程语言
Java
操作系统
Windows OS
操作系统版本
2003
状态
Will Not Be Addressed
开发团队已考虑过该问题或请求,并决定不会解决该问题。 问题的“其他信息”部分可能包含进一步说明。
附加信息
No Public Explanation
解决办法
Using the Spatial Reference Definition String, the PeCoordinateSystem, and PeFactory the EPSG code can be obtained.Sample code:String defString = context.getSpatialReferenceDefinitionString();PeCoordinateSystem pecoordinatesystem = PeCoordinateSystem.fromString(defString);int EPSG = PeFactory.getCode(pecoordinatesystem);