File tree Expand file tree Collapse file tree
src/main/java/org/runnect/server/common/module/convert Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -43,12 +43,16 @@ public static List<List<Double>> pathConvertCoor(LineString path) {
4343 }
4444
4545 private static LineString getLineString (List <CoordinateDto > coordinateDtos ) {
46+ StringBuilder sb = new StringBuilder ();
4647 GeometryFactory geometryFactory = new GeometryFactory (new PrecisionModel (), 4326 );
4748 Coordinate [] coordinates = new Coordinate [coordinateDtos .size ()];
4849 for (int i = 0 ; i < coordinateDtos .size (); i ++) {
4950 coordinates [i ] = new Coordinate (coordinateDtos .get (i ).getLatitude (), coordinateDtos .get (i ).getLongitude ());
51+ sb .append ("(" + coordinateDtos .get (i ).getLatitude () + ", " + coordinateDtos .get (i ).getLongitude () + ")" );
5052 }
5153 LineString lineString = geometryFactory .createLineString (coordinates );
54+ log .info ("create course!" );
55+ log .info (sb .toString ());
5256 return lineString ;
5357 }
5458}
You can’t perform that action at this time.
0 commit comments