Revision 3051
Added by perry about 18 years ago
src/edu/ucsb/nceas/metacat/spatial/SpatialDocument.java | ||
---|---|---|
348 | 348 |
|
349 | 349 |
// Handle the case of crossing the dateline and poles |
350 | 350 |
// Assumes all coordinates are confined to -180 -90 180 90 |
351 |
Float dl = new Float("180.0"); |
|
352 |
Float _dl = new Float("-180.0"); |
|
353 |
Float pl = new Float("90.0"); |
|
354 |
Float _pl = new Float("-90.0"); |
|
355 | 351 |
|
356 | 352 |
if ( w > e && s > n ) { |
357 | 353 |
log.info( "Crosses both the dateline and the poles .. " ); |
Also available in: Unified diff
fixed point centroid calculation to reflect bboxs that cross the dateline