laptop and a wrench

Bug

SeShape.changeCoordRef method gives 'java.lang.NullPointerException' when projecting shape from GCS_North_American_1983_CSRS to GCS_North_American_1983 and vise-versa.

Last Published: August 25, 2014 ArcSDE/Enterprise Geodatabase
Bug ID Number NIM054296
SubmittedFebruary 18, 2010
Last ModifiedJune 5, 2024
Applies toArcSDE/Enterprise Geodatabase
Version found10.0 Beta
Operating SystemWindows OS
Operating System VersionXP
Version FixedN/A
StatusFixed

Workaround

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 );

Steps to Reproduce

Bug ID: NIM054296

Software:

  • ArcSDE/Enterprise Geodatabase

Get notified when the status of a bug changes

Download the Esri Support App

Discover more on this topic

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options