laptop and a wrench

Bug

Certain geometries cannot be copied and pasted using the JAVA API.

Last Published: August 25, 2014 No Product Found
Bug ID Number NIM008463
SubmittedMay 1, 2007
Last ModifiedJune 5, 2024
Applies toNo Product Found
Version found9.2
Version Fixed9.3
StatusFixed

Workaround

There is a simple workaround for it: dump the shape to binary; create a new shape from the binary; and then insert the new shape. ArcGIS desktop uses the same way during copy / past. For instance, in the repro case: case SeColumnDefinition.TYPE_SHAPE: System.out.println(i + ":\t" + colDef.getName() + " : SHAPE" ); SeShape shp = in_srcRow.getShape(i); // in_destRow.setShape(i, shp); int size=shp.getBinarySize(); java.util.ArrayList binArry=shp.asBinary(size+1); SeShape newShape=new SeShape(CoordRef_of_the_Target_Layer) ; byte[] bytes=(byte[])binArry.get(1); newShape.generateFromBinary(bytes); in_destRow.setShape(i, newShape);

Steps to Reproduce

Bug ID: NIM008463

Software:

  • No Product Found

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