laptop and a wrench

Bug

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

Zuletzt veröffentlicht: August 25, 2014 No Product Found
Bug-ID-Nummer NIM008463
EingereichtMay 1, 2007
Zuletzt geändertJune 5, 2024
Gilt fürNo Product Found
Gefunden in Version9.2
Behoben in Version9.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);

Schritte zur Reproduzierung

Bug-ID: NIM008463

Software:

  • No Product Found

Benachrichtigung erhalten, wenn sich der Status eines Bugs ändert

Esri Support App herunterladen

Weitere Informationen zu diesem Thema erkunden

Unterstützung durch ArcGIS-Experten anfordern

An den technischen Support wenden

Esri Support App herunterladen

Zu Download-Optionen wechseln