Skip to content

Commit eb3ae35

Browse files
committed
bug fix: request to WCS server should be limited to extent of data it has for the layer, or the request may fail. See https://forum.worldwindcentral.com/forum/world-wind-java-forums/development-help/158241-wcs-elevation-model-with-partial-data.
1 parent 1855da5 commit eb3ae35

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/gov/nasa/worldwind/terrain/BasicElevationModel.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -385,6 +385,8 @@ protected ElevationTile createTile(TileKey key)
385385
Angle minLongitude = ElevationTile.computeColumnLongitude(key.getColumn(), dLon, lonOrigin);
386386

387387
Sector tileSector = new Sector(minLatitude, minLatitude.add(dLat), minLongitude, minLongitude.add(dLon));
388+
// Clip tile sector by the layer's coverage extent
389+
tileSector = levels.getSector().intersection(tileSector);
388390

389391
return new ElevationTile(tileSector, level, key.getRow(), key.getColumn());
390392
}

0 commit comments

Comments
 (0)