@@ -153,10 +153,10 @@ class AooEoo extends SlaveProcess {
153
153
' <table >' +
154
154
' <tr><td>Number of records used for the calculations</td><td>' + occurrenceCount + " </td></tr>" +
155
155
' <tr><td>Species</td><td>' + species. name + ' </td></tr>' +
156
- " <tr><td>Area of Occupancy (AOO: ${ gridSize} degree grid)</td><td>" + String . format(' %.0f' , aoo) + ' sq km</td></tr>' +
157
- ' <tr><td>Area of Occupancy (Points with radius: ' + String . format(" %.0f" , radius) + ' m)</td><td>' + String . format(' %.0f' , circleArea) + ' sq km</td></tr>' +
158
- ' <tr><td>Extent of Occurrence (EOO: Minimum convex hull)</td><td>' + (String . format(' %.0f' , eoo)) + ' sq km</td></tr>' +
159
- ((alphaHull != null ) ? " <tr><td>Alpha Hull (Alpha: ${ alpha} )</td><td>" + String . format(' %.0f' , alphaHull) + ' sq km</td></tr>' : " " ) +
156
+ " <tr><td>Area of Occupancy (AOO: ${ gridSize} degree grid)</td><td>" + String . format(Locale . US , ' %.0f' , aoo) + ' sq km</td></tr>' +
157
+ ' <tr><td>Area of Occupancy (Points with radius: ' + String . format(Locale . US , " %.0f" , radius) + ' m)</td><td>' + String . format(Locale . US , ' %.0f' , circleArea) + ' sq km</td></tr>' +
158
+ ' <tr><td>Extent of Occurrence (EOO: Minimum convex hull)</td><td>' + (String . format(Locale . US , ' %.0f' , eoo)) + ' sq km</td></tr>' +
159
+ ((alphaHull != null ) ? " <tr><td>Alpha Hull (Alpha: ${ alpha} )</td><td>" + String . format(Locale . US , ' %.0f' , alphaHull) + ' sq km</td></tr>' : " " ) +
160
160
' </table></body></html>' +
161
161
' </div>'
162
162
@@ -216,7 +216,7 @@ class AooEoo extends SlaveProcess {
216
216
try {
217
217
// point=latitude,longitude
218
218
String [] ll = point. replace(' \" ' , ' ' ). split(' ,' )
219
- String s = String . format(' POINT(%.6f %.6f)' , Double . parseDouble(ll[1 ]), Double . parseDouble(ll[0 ]))
219
+ String s = String . format(Locale . US , ' POINT(%.6f %.6f)' , Double . parseDouble(ll[1 ]), Double . parseDouble(ll[0 ]))
220
220
if (pointCount > 0 ) {
221
221
sb. append(' ,' )
222
222
}
@@ -277,7 +277,7 @@ class AooEoo extends SlaveProcess {
277
277
float x = (float ) point. x
278
278
float y = (float ) point. y
279
279
280
- String s = String . format(' ((%.6f %.6f,%.6f %.6f,%.6f %.6f,%.6f %.6f,%.6f %.6f))' ,
280
+ String s = String . format(Locale . US , ' ((%.6f %.6f,%.6f %.6f,%.6f %.6f,%.6f %.6f,%.6f %.6f))' ,
281
281
x, y,
282
282
x, y + gridsize,
283
283
x + gridsize, y + gridsize,
0 commit comments