From 9b78d891c1b1a9a2d4ec41fff1afd2cb67fc09fb Mon Sep 17 00:00:00 2001 From: Luc Maisonobe <luc@orekit.org> Date: Tue, 25 Nov 2014 13:48:19 +0100 Subject: [PATCH] Fixed example code. --- src/site/markdown/tutorials/direct-location-with-DEM.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/site/markdown/tutorials/direct-location-with-DEM.md b/src/site/markdown/tutorials/direct-location-with-DEM.md index 904aa126..b01453f8 100644 --- a/src/site/markdown/tutorials/direct-location-with-DEM.md +++ b/src/site/markdown/tutorials/direct-location-with-DEM.md @@ -124,7 +124,7 @@ In a similar way as in the first tutorial [direct location](./direct-location.ht int lineStep = (maxLine - minLine) / nbLineStep; int pxStep = (maxPx - minPx) / nbPxStep; - ArrayList<GeodeticPoint> pointList = new ArrayList<GeodeticPoint>(); + List<GeodeticPoint> pointList = new ArrayList<GeodeticPoint>(); for (int i = 0; i < nbLineStep; i++) { int currentLine = minLine + i * lineStep; for (int j = 0; j < nbPxStep; j++) { @@ -143,7 +143,7 @@ In a similar way as in the first tutorial [direct location](./direct-location.ht } // Store the GeodeticPoint to write longitude and altitude later pointList.add(point); - } + } for (GeodeticPoint point : pointList) { if (point != null) { -- GitLab