public void move ( GeometryIndex [ ] indices , JsArray < JsArrayObject > coordinates ) { List < List < Coordinate >> coords = new ArrayList < List < Coordinate > > ( coordinates . length ( ) ) ; for ( int i = 0 ; i < coordinates . length ( ) ; i ++ ) { JsArrayObject jsObj = coordinates . get ( i ) ; coords . add ( Arrays . asList ( ExporterUtil . toArrObject ( jsObj , new Coordinate [ jsObj . length ( ) ] ) ) ) ; } try { delegate . move ( Arrays . asList ( indices ) , coords ) ; } catch ( GeometryOperationFailedException e ) { throw new RuntimeException ( e . getMessage ( ) ) ; } }
Move a set of indices to new locations . These indices can point to vertices edges or sub - geometries . For each index a list of new coordinates is provided .