|
POST
|
Thank you. I tried like in the link but it doesn't work. After program starts the Earth surface on the screen is empty without any data. Maybe i have some problem in my code. I have opened this .tif file with ArcGIS Pro without any problems. (It is georeferenced country surface image. It weighs 100gb) private void addCountrySurface() { Raster raster = new Raster("E:\\Map\\countrySurface.tif"); RasterLayer rasterLayer = new RasterLayer(raster); //rasterLayer.loadAsync();//tried with loadAsync() it doesn't work too rasterLayer.addDoneLoadingListener(() -> { if (rasterLayer.getLoadStatus() == LoadStatus.LOADED) { JOptionPane.showMessageDialog(null, "Map downloaded"); } else { JOptionPane.showMessageDialog(null, "Error"); } }); arcscene.getOperationalLayers().add(rasterLayer); }
... View more
03-16-2021
02:45 PM
|
0
|
0
|
4322
|
|
POST
|
Can i use .tif, .jpg or .bmp surface images for creating a basemap? I use .tpk files from ArcGIS Pro as world surface image but i want to try other formats(.tif is preferable). What i use now that works but only with .tpk files: TileCache tileCache = new TileCache("C:\\Users\\user\\Downloads\\WorldImagery1.tpk"); ArcGISTiledLayer[] tiledLayers = new ArcGISTiledLayer[1]; tiledLayers[0] = new ArcGISTiledLayer(tileCache); Basemap basemap = new Basemap(Arrays.asList(tiledLayers), null); arcscene = new ArcGISScene(basemap); sceneView.setArcGISScene(arcscene);
... View more
03-10-2021
06:45 AM
|
0
|
16
|
6816
|
|
POST
|
How to download a large satellite image (country size) with high resolution? I tried to use ArcGIS Pro.The highest available resolution is 1:71(but for small areas). I tried to download country satellite image but the highest resolution i could choose for large scale is 1:36112 so nothing is readable on such satellite image. Can i download or buy satellite image of large area in high resolution (1cm in 30m or better)?
... View more
02-25-2021
11:48 PM
|
0
|
0
|
963
|
|
POST
|
Thank you! It works fine. I have one more qestion. If i have several circles, can i mark their intersection zone in some different color?
... View more
02-17-2021
06:56 AM
|
0
|
1
|
3897
|
|
POST
|
How to draw a circle using Arcgis Java SDK on the arcgis Scene?
... View more
02-15-2021
11:48 PM
|
0
|
4
|
3982
|
|
POST
|
Right mouse button doesn't work on the Scene after i've added mouse listener for middle mouse button and i cant rotate the scene using right mouse button now. Left click still works and i can move on the scene. sceneView.setInteractionListener(new DefaultInteractionListener(sceneView) { public void onMousePressed(javafx.scene.input.MouseEvent e) { if(e.getButton() == MouseButton.MIDDLE) { javafx.geometry.Point2D screenPoint = new javafx.geometry.Point2D(Math.round(e.getX()), Math.round(e.getY())); com.esri.arcgisruntime.geometry.Point surfacePoint = sceneView.screenToBaseSurface(screenPoint); JOptionPane.showMessageDialog(null, "Elevation: "+surfacePoint.getZ()+" Longitude: "+surfacePoint.getX()+" Latitude: "+surfacePoint.getY()); } } });
... View more
02-02-2021
04:56 AM
|
0
|
2
|
1847
|
|
POST
|
How to add symbol image to arcScene using local .png or .img file? I used this code but it doesnt work: GraphicsOverlay graphicsOverlay = new GraphicsOverlay(); sceneView.getGraphicsOverlays().add(graphicsOverlay); // An image file on the hard drive. File file = new File("C:\\Users\\user\\Documents\\IMG1.jpg"); String localUri = file.toURI().toString(); PictureMarkerSymbol markerSymbol = new PictureMarkerSymbol(localUri); markerSymbol.setHeight(100); markerSymbol.setWidth(100); markerSymbol.loadAsync(); com.esri.arcgisruntime.geometry.Point symbolPoint = new com.esri.arcgisruntime.geometry.Point(20, 20, SpatialReferences.getWgs84()); Graphic symbolGraphic = new Graphic(symbolPoint, markerSymbol); markerSymbol.addDoneLoadingListener(() -> graphicsOverlay.getGraphics().add(symbolGraphic));
... View more
01-31-2021
09:57 AM
|
0
|
3
|
1513
|
|
POST
|
Java arcgis docs returns 404 error! and i didn't find java code examples If somebody is interested in how to get elevation and coordinates by mouse click on the scene(map) @Override public void start(Stage stage) { StackPane stackPane = new StackPane(); Scene scene = new Scene(stackPane); stage.setTitle("Map"); stage.setWidth(600); stage.setHeight(350); stage.setScene(scene); stage.show(); sceneView = new SceneView(); setupScene(); addTrailheadsLayer(); addElevationData(); sceneView.setInteractionListener(new DefaultInteractionListener(sceneView) { public void onMousePressed(javafx.scene.input.MouseEvent e) { javafx.geometry.Point2D screenPoint = new javafx.geometry.Point2D(Math.round(e.getX()), Math.round(e.getY())); com.esri.arcgisruntime.geometry.Point surfacePoint = sceneView.screenToBaseSurface(screenPoint); JOptionPane.showMessageDialog(null, "Elevation: "+surfacePoint.getZ()+" Longitude: "+surfacePoint.getX()+" Latitude: "+surfacePoint.getY()); } }); stackPane.getChildren().add(sceneView); } all libraries i used: import javafx.application.Application; import javafx.scene.Scene; import javafx.scene.*; import javafx.scene.layout.StackPane; import javafx.stage.Stage; import java.util.Arrays; import java.awt.*; import java.awt.Point; import java.util.ArrayList; import java.util.concurrent.ExecutionException; import java.lang.*; import javax.swing.JOptionPane; import com.esri.arcgisruntime.concurrent.ListenableFuture; import com.esri.arcgisruntime.data.ServiceFeatureTable; import com.esri.arcgisruntime.layers.FeatureLayer; import com.esri.arcgisruntime.mapping.ArcGISScene; import com.esri.arcgisruntime.mapping.ArcGISTiledElevationSource; import com.esri.arcgisruntime.mapping.Basemap; import com.esri.arcgisruntime.mapping.view.Camera; import com.esri.arcgisruntime.mapping.view.SceneView; import com.esri.arcgisruntime.mapping.view.SceneView.DefaultInteractionListener; import com.esri.arcgisruntime.layers.ArcGISTiledLayer; import com.esri.arcgisruntime.data.TileCache; import com.esri.arcgisruntime.mapping.Surface; import com.esri.arcgisruntime.mapping.RasterElevationSource; import com.esri.arcgisruntime.geometry.*;
... View more
01-28-2021
10:22 PM
|
0
|
0
|
1479
|
|
POST
|
How can i get elevation at some point on the screen of the scene using Java SDK?
... View more
01-28-2021
11:50 AM
|
0
|
2
|
1503
|
|
POST
|
I have .tpk file and want to make it georeferenced. How can i do it (maybe Arcmap or arcgis .net facilities)? The problem is when add tpk file to basemap it is automatically situated in coordinates(x,y,z) 22.5, -0.01, 374.6 but not in the coordinates it should be on the Earth globe (27 and 53). It seems like tpk file is automatically located near the center of Earth globe image.
... View more
10-22-2020
02:47 AM
|
0
|
0
|
987
|
|
POST
|
Here is my soution. if somebody is interested in: ArcGISTiledLayer tiledBasemapLayer1 = new ArcGISTiledLayer(new TileCache("C:\\Users\\user\\Documents\\ArcGIS\\01102020\\map1.tpk"); await tiledBasemapLayer1.LoadAsync(); ArcGISTiledLayer tiledBasemapLayer2 = new ArcGISTiledLayer(new TileCache("C:\\Users\\user\\Documents\\ArcGIS\\01102020\\map2.tpk"); await tiledBasemapLayer2.LoadAsync(); Scene newScene = new Scene(); newScene.Basemap = new Basemap(new ArcGISTiledLayer[] { tiledBasemapLayer1, tiledBasemapLayer2 }); Scene = newScene;
... View more
10-20-2020
01:13 AM
|
0
|
2
|
2196
|
|
POST
|
I want to create basemap using several map .tpk file. Basemap creation with one .tpk file works fine: ArcGISTiledLayer tiledBasemapLayer = new ArcGISTiledLayer(new TileCache("C:\\Users\\user\\Documents\\ArcGIS\\01102020\\map1.tpk"); await tiledBasemapLayer.LoadAsync(); Scene newScene = new Scene(); newScene.Basemap = new Basemap(tiledBasemapLayer); Scene = newScene; The question is how to make this with two or more .tpk files? ArcGISTiledLayer tiledBasemapLayer = new ArcGISTiledLayer(new TileCache("C:\\Users\\user\\Documents\\ArcGIS\\01102020\\map1.tpk", "C:\\Users\\osipa\\Documents\\ArcGIS\\011020200\\map2.tpk") ; -------error "tileCache doesn't contain constructor that takes 2 arguments."
... View more
10-19-2020
12:25 PM
|
0
|
4
|
2250
|
| Online Status |
Offline
|
| Date Last Visited |
04-11-2022
04:10 AM
|