boolean function ( CoordinateSequence arg0 ) { int loc0 = arg0 . size ( ) ; if ( loc0 == 0 ) return true ; if ( loc0 <= 3 ) return false ; return arg0 . getOrdinate ( 0 , CoordinateSequence . X ) == arg0 . getOrdinate ( loc0 - 1 , CoordinateSequence . X ) && arg0 . getOrdinate ( 0 , CoordinateSequence . Y ) == arg0 . getOrdinate ( loc0 - 1 , CoordinateSequence . Y ) ; }
tests whether a coordinatesequence forms a valid linearring , by checking the sequence length and closure whether the first and last points are identical in 2d . self-intersection is not checked . concode_field_sep PlaceHolder placeHolder concode_field_sep CoordinateSequence extend concode_elem_sep void copyCoord concode_elem_sep void swap concode_elem_sep boolean isEqual concode_elem_sep String toString concode_elem_sep void copy concode_elem_sep void reverse concode_elem_sep CoordinateSequence createClosedRing concode_elem_sep CoordinateSequence ensureValidRing