Skip to content

Commit 211c09b

Browse files
authored
Replace scene service (#765)
1 parent 6c40a03 commit 211c09b

File tree

4 files changed

+11
-8
lines changed

4 files changed

+11
-8
lines changed

analysis/distance-measurement-analysis/src/main/java/com/esri/samples/distance_measurement_analysis/DistanceMeasurementAnalysisController.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,8 @@ public void initialize() {
6767

6868
// add base surface for elevation data
6969
Surface surface = new Surface();
70-
surface.getElevationSources().add(new ArcGISTiledElevationSource("http://scene.arcgis.com/arcgis/rest/services/BREST_DTM_1M/ImageServer"));
70+
surface.getElevationSources().add(new ArcGISTiledElevationSource(
71+
"https://elevation3d.arcgis.com/arcgis/rest/services/WorldElevation3D/Terrain3D/ImageServer"));
7172
scene.setBaseSurface(surface);
7273

7374
final String buildings = "http://tiles.arcgis.com/tiles/P3ePLMYs2RVChkJx/arcgis/rest/services/Buildings_Brest/SceneServer/layers/0";

analysis/viewshed-geoelement/src/main/java/com/esri/samples/viewshed_geoelement/ViewshedGeoElementSample.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,8 +95,9 @@ public void start(Stage stage) {
9595

9696
// add base surface for elevation data
9797
Surface surface = new Surface();
98-
final String localElevationImageService = "https://scene.arcgis.com/arcgis/rest/services/BREST_DTM_1M/ImageServer";
99-
surface.getElevationSources().add(new ArcGISTiledElevationSource(localElevationImageService));
98+
final String elevationImageService = "https://elevation3d.arcgis.com" +
99+
"/arcgis/rest/services/WorldElevation3D/Terrain3D/ImageServer";
100+
surface.getElevationSources().add(new ArcGISTiledElevationSource(elevationImageService));
100101
scene.setBaseSurface(surface);
101102

102103
// add a scene layer

analysis/viewshed-location/src/main/java/com/esri/samples/viewshed_location/ViewshedLocationController.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,9 @@ public void initialize() {
6666

6767
// add base surface for elevation data
6868
Surface surface = new Surface();
69-
final String localElevationImageService = "http://scene.arcgis" +
70-
".com/arcgis/rest/services/BREST_DTM_1M/ImageServer";
71-
surface.getElevationSources().add(new ArcGISTiledElevationSource(localElevationImageService));
69+
final String elevationImageService = "https://elevation3d.arcgis.com" +
70+
"/arcgis/rest/services/WorldElevation3D/Terrain3D/ImageServer";
71+
surface.getElevationSources().add(new ArcGISTiledElevationSource(elevationImageService));
7272
scene.setBaseSurface(surface);
7373

7474
// add a scene layer

scene/scene-layer/src/main/java/com/esri/samples/scene_layer/SceneLayerSample.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,9 @@ public void start(Stage stage) {
6464

6565
// add base surface for elevation data
6666
Surface surface = new Surface();
67-
final String localElevationImageService = "https://scene.arcgis.com/arcgis/rest/services/BREST_DTM_1M/ImageServer";
68-
surface.getElevationSources().add(new ArcGISTiledElevationSource(localElevationImageService));
67+
final String elevationImageService = "https://elevation3d.arcgis.com" +
68+
"/arcgis/rest/services/WorldElevation3D/Terrain3D/ImageServer";
69+
surface.getElevationSources().add(new ArcGISTiledElevationSource(elevationImageService));
6970
scene.setBaseSurface(surface);
7071

7172
// add a scene layer

0 commit comments

Comments
 (0)