CoordinatesBuilder function ( ) { Coordinate loc0 = points . get ( 0 ) ; Coordinate loc1 = points . get ( points . size ( ) - 1 ) ; if ( loc0 . x != loc1 . x || loc0 . y != loc1 . y ) { points . add ( loc0 ) ; } return this ; }
makes a closed ring out of the current coordinates by adding the starting point as the end point . will have no effect of starting and end point are already the same coordinate . concode_field_sep List<Coordinate> points concode_field_sep CoordinatesBuilder coordinate concode_elem_sep CoordinatesBuilder coordinate concode_elem_sep List<Coordinate> build concode_elem_sep CoordinatesBuilder coordinates concode_elem_sep CoordinatesBuilder coordinates