@Test public void testXYZPoints2JTS() throws Exception { final String coordinates = "30.808316439 -98.493787625 322.596 30.595455667 -98.548865351 333.987 30.552856751 -98.279153369 223.123 30.765657846 -98.223211343 387.1 30.808316439 -98.493787625 322.596"; final String expected = "-98.493787625 30.808316439,-98.548865351 30.595455667,-98.279153369 30.552856751,-98.223211343 30.765657846,-98.493787625 30.808316439"; final String gmlPoints = Sentinel2Utils.xYZpoints2JTS(coordinates); Assert.assertEquals(expected, gmlPoints); }
public static String xYZpoints2JTS(final String pointsString) { final String PATTERN = "%2$s%3$s%1$s%4$s"; final String COORD_SEPARATOR = " "; final String POINT_SEPARATOR = ","; logger.debug("(xYZpoints2JTS)(pointsString:" + pointsString + ")|start"); final String result = Sentinel2Utils.processXYZPoints(pointsString, PATTERN, COORD_SEPARATOR, POINT_SEPARATOR); logger.debug("(xYZpoints2JTS) return:" + result + "|end"); return result; }
Sentinel2Utils { public static String xYZpoints2JTS(final String pointsString) { final String PATTERN = "%2$s%3$s%1$s%4$s"; final String COORD_SEPARATOR = " "; final String POINT_SEPARATOR = ","; logger.debug("(xYZpoints2JTS)(pointsString:" + pointsString + ")|start"); final String result = Sentinel2Utils.processXYZPoints(pointsString, PATTERN, COORD_SEPARATOR, POINT_SEPARATOR); logger.debug("(xYZpoints2JTS) return:" + result + "|end"); return result; } }
Sentinel2Utils { public static String xYZpoints2JTS(final String pointsString) { final String PATTERN = "%2$s%3$s%1$s%4$s"; final String COORD_SEPARATOR = " "; final String POINT_SEPARATOR = ","; logger.debug("(xYZpoints2JTS)(pointsString:" + pointsString + ")|start"); final String result = Sentinel2Utils.processXYZPoints(pointsString, PATTERN, COORD_SEPARATOR, POINT_SEPARATOR); logger.debug("(xYZpoints2JTS) return:" + result + "|end"); return result; } private  Sentinel2Utils(); }
Sentinel2Utils { public static String xYZpoints2JTS(final String pointsString) { final String PATTERN = "%2$s%3$s%1$s%4$s"; final String COORD_SEPARATOR = " "; final String POINT_SEPARATOR = ","; logger.debug("(xYZpoints2JTS)(pointsString:" + pointsString + ")|start"); final String result = Sentinel2Utils.processXYZPoints(pointsString, PATTERN, COORD_SEPARATOR, POINT_SEPARATOR); logger.debug("(xYZpoints2JTS) return:" + result + "|end"); return result; } private  Sentinel2Utils(); static String xYZpoints2GML(final String pointsString); static String xYZpoints2JTS(final String pointsString); static String xYPoints2GML(final String pointsString); static String xYPoints2JTS(final String pointsString); static String getEndPositionByStart(final String startTime); static String getSatelliteByProductName(final String productName); static String filterUselessZeros(final String integer); static String getAbsoluteOrbitFromDatatakeFilename(
         final String datatakeFileName); static String getFormattedTimeString(final String rawTimeString); static String formatNumber(double value); }
Sentinel2Utils { public static String xYZpoints2JTS(final String pointsString) { final String PATTERN = "%2$s%3$s%1$s%4$s"; final String COORD_SEPARATOR = " "; final String POINT_SEPARATOR = ","; logger.debug("(xYZpoints2JTS)(pointsString:" + pointsString + ")|start"); final String result = Sentinel2Utils.processXYZPoints(pointsString, PATTERN, COORD_SEPARATOR, POINT_SEPARATOR); logger.debug("(xYZpoints2JTS) return:" + result + "|end"); return result; } private  Sentinel2Utils(); static String xYZpoints2GML(final String pointsString); static String xYZpoints2JTS(final String pointsString); static String xYPoints2GML(final String pointsString); static String xYPoints2JTS(final String pointsString); static String getEndPositionByStart(final String startTime); static String getSatelliteByProductName(final String productName); static String filterUselessZeros(final String integer); static String getAbsoluteOrbitFromDatatakeFilename(
         final String datatakeFileName); static String getFormattedTimeString(final String rawTimeString); static String formatNumber(double value); static final String DATE_TIME_FORMAT; static final long SENSING_TIME; }