SeShape.changeCoordRef method gives 'java.lang.NullPointerException' when projecting shape from GCS_North_American_1983_CSRS to GCS_North_American_1983 and vise-versa.
上次发布: August 25, 2014ArcSDE/Enterprise Geodatabase
漏洞 ID 编号
NIM054296
已提交
February 18, 2010
上次修改时间
June 5, 2024
适用范围
ArcSDE/Enterprise Geodatabase
找到的版本
10.0 Beta
操作系统
Windows OS
操作系统版本
XP
修正版本
N/A
状态
Fixed
此漏洞已得到修复。 有关详细信息,请参阅“版本修复”和“其他信息”(如果适用)。
解决办法
Projected the shape to WGS84 and then to NAD83. Following is the code snippet: pntShape = getShape(pointLyr,"1"); polyShape = getShape(PolyLyr,"1"); tempShape = getShape(tempLyr, "1"); PeGeogTransformations geogTran1 = null; geogTran1 = PeFactory.geogtran(PeGTDefs.PE_GT_NAD_1983_CSRS_TO_WGS_1984); SeShape tempshpPrj = pntShape.changeCoordRef(tempShape.getCoordRef(), geogTran1); geogTran1 = PeFactory.geogtran(PeGTDefs.PE_GT_NAD_1983_TO_WGS_1984_1); SeShape shpPointPrj = tempshpPrj.changeCoordRef(polyShape.getCoordRef(),geogTran1 );