code: public static LinearRing convert(LinearRing linearRing,int dimension) {
          return gf.createLinearRing(convertSequence(linearRing.getCoordinates(),dimension));
      }
docs: Force the dimension of the LinearRing and update correctly the coordinate
  dimension
  @param linearRing
  @param dimension
  @return