public MultiPoint fromTransferObject ( MultiPointTo input , CrsId crsId ) { if ( input == null ) { return null ; } crsId = getCrsId ( input , crsId ) ; isValid ( input ) ; Point [ ] points = new Point [ input . getCoordinates ( ) . length ] ; for ( int i = 0 ; i < points . length ; i ++ ) { points [ i ] = createPoint ( input . getCoordinates ( ) [ i ] , crsId ) ; } return new MultiPoint ( points ) ; }
Creates a multipoint object starting from a transfer object .