POST
|
Ok, offline is quite a complex topic so please refer to the documentation on offline here and here.
... View more
08-07-2023
05:53 AM
|
0
|
5
|
669
|
POST
|
Shapefile feature table can load a shapefile from a file so shouldn't need any network connection. See https://developers.arcgis.com/java/api-reference/reference/com.esri.arcgisruntime/com/esri/arcgisruntime/data/ShapefileFeatureTable.html#%3Cinit%3E(java.lang.String). You can load a shapefile with the Local Server but I believe ShapeFileFeatureTable is now the recommended way.
... View more
08-07-2023
03:12 AM
|
0
|
7
|
729
|
POST
|
Hi, Take a look at https://github.com/Esri/arcgis-maps-sdk-java-samples/tree/main/feature_layers/feature-layer-shapefile to see how to create a feature layer from a shapefile.
... View more
08-07-2023
01:20 AM
|
0
|
9
|
740
|
POST
|
Hi, Are you able to provide some reproducer code? Thanks.
... View more
04-14-2023
08:56 AM
|
0
|
4
|
1948
|
POST
|
You should be be able to change this through the selection properties object by using the property on GeoView and modifying the returned object.
... View more
02-09-2023
11:51 PM
|
0
|
0
|
1120
|
POST
|
Hi, I took a look through the code and the strings object IDs you see are further processed before being sent to the server. So, while there might be a problem I don't think it is related to processing the parameters. I was wondering if you were trying to delete a feature newly created by apply edits and the object ID from the local feature object doesn't match the one in the table. You may need to call `Feature.refresh()` so that the OID of your local feature is updated to match that in the table. This isn't my area of expertise but I'm sure a colleague post with better information if this is wrong. Colin
... View more
07-21-2022
06:14 AM
|
0
|
0
|
341
|
POST
|
Hi, It looks like your code is missing some elements. For example, I don't see where you load the FXML that defines your UI so the buttons won't appear. I would suggest trying to structure it more like the sample code. With your current code if you call sketchEditor.start() after you have set the sketch editor on the view you can probably begin sketching but the buttons etc. won't work. Colin
... View more
07-21-2022
05:59 AM
|
0
|
1
|
487
|
POST
|
Our current plan is to fully support M1 at the 100.15.0 release. Colin
... View more
07-12-2022
08:12 AM
|
0
|
0
|
1568
|
POST
|
Hi, Hopefully one of my colleagues will be along soon with the exact instructions but I believe currently the solution is you have to install the Intel architecture version of the JDK instead of the M1 version and that should get your apps working. Colin
... View more
03-08-2022
09:26 AM
|
1
|
0
|
2863
|
BLOG
|
@MarkCederholm, for the Opt 3 Java case I think that the API could definitely be optimized to handle PointCollection better but you don't actually need to use a PointCollection here. When constructing a MultipointBuilder it takes an Iterable<Point> which means you can just create a List<Point> e.g. var points = new ArrayList<Point>(); for (int i = 0; i < iNumPoints; i++) { double dX = dXMin + (dXMax - dXMin) * _rand.nextDouble(); double dY = dYMin + (dYMax - dYMin) * _rand.nextDouble(); points.add(new Point(dX, dY)); } MultipointBuilder mb = new MultipointBuilder(points, _sr); which on my machine takes about 10s vs 25s when you use a PointCollection. Hopefully PointCollection handling can be optimized in a future release.
... View more
12-09-2021
10:22 AM
|
1
|
0
|
875
|
POST
|
Here's a basic example - the line extends from lat/lon 0.0, 0.0 across the surface of the globe to where ever the mouse is. To do this properly you should create your own interaction listener on the scene view as that way you can add mouse interactions with less chance of breaking the existing built in interactions. Also there's no error checking and there are probably optimizations possible such as not having to create a new graphic/clear old graphics each move. If you only want to change the length of the line on a fixed azimuth then you'll need to do a little more code e.g. decide how the mouse point is interpreted to give your new length. import java.util.List;
import com.esri.arcgisruntime.geometry.Point;
import com.esri.arcgisruntime.geometry.PointCollection;
import com.esri.arcgisruntime.geometry.Polyline;
import com.esri.arcgisruntime.geometry.SpatialReferences;
import com.esri.arcgisruntime.mapping.ArcGISScene;
import com.esri.arcgisruntime.mapping.Basemap;
import com.esri.arcgisruntime.mapping.view.Graphic;
import com.esri.arcgisruntime.mapping.view.GraphicsOverlay;
import com.esri.arcgisruntime.mapping.view.SceneView;
import com.esri.arcgisruntime.symbology.ColorUtil;
import com.esri.arcgisruntime.symbology.SimpleLineSymbol;
import javafx.application.Application;
import javafx.application.Platform;
import javafx.geometry.Point2D;
import javafx.scene.Scene;
import javafx.scene.layout.BorderPane;
import javafx.scene.paint.Color;
import javafx.stage.Stage;
public class App extends Application {
private SceneView sceneView = new SceneView();
@Override
public void start(Stage stage) {
Platform.setImplicitExit(true);
var borderPane = new BorderPane();
var scene = new Scene(borderPane);
stage.setScene(scene);
stage.setWidth(500);
stage.setHeight(500);
stage.show();
var map = new ArcGISScene(Basemap.createDarkGrayCanvasVector());
sceneView.setArcGISScene(map);
borderPane.setCenter(sceneView);
var graphicsOverlay = new GraphicsOverlay();
sceneView.getGraphicsOverlays().add(graphicsOverlay);
// add a mouse move listener
sceneView.setOnMouseMoved(m -> {
// convert the mouse point to screen coords
var point = sceneView.screenToBaseSurface(new Point2D(m.getX(), m.getY()));
// create a polyline from (0.0, 0.0) to the mouse point
var pointCollection = new PointCollection(SpatialReferences.getWgs84());
pointCollection.addAll(List.of(new Point(0.0, 0.0), point));
var ployline = new Polyline(pointCollection);
// create and show the graphic
graphicsOverlay.getGraphics().clear();
var graphic = new Graphic(ployline, new SimpleLineSymbol(SimpleLineSymbol.Style.SOLID,
ColorUtil.colorToArgb(Color.RED), 5.0f));
graphicsOverlay.getGraphics().add(graphic);
});
}
@Override
public void stop() {
if (sceneView != null) {
sceneView.dispose();
}
}
public static void main(String[] args) {
launch(args);
}
}
... View more
11-24-2021
03:05 AM
|
1
|
0
|
1058
|
POST
|
Update: I wonder if the DirectX capability detection used by the runtime has some issues. I have another test user who experiences extremely poor performance any time the map view updates despite having a very capable laptop. In this particular case the laptop has dual GPUs, an Nvidia discrete mobile GPU and an Intel 630 CPU-integrated GPU. The runtime seems to always select the integrated GPU but is also melting the CPU leaving the discrete GPU idle. If you pan the map view while a heatmap is displayed there is a pause of up to a minute while the heatmap rerenders. For this case there is usually an option in the Nvidia settings to choose which graphics card to use. I think it is also possible to disable the built in Intel graphics - possibly at the driver settings level or in the bios.
... View more
10-25-2021
02:05 AM
|
0
|
0
|
2216
|
POST
|
Sorry, slight correction - jnilibs needs to go where the JAR report says it is looking for it. In your case this is C:\Users\osipa\AppData\Local\SceneBuilder. Colin
... View more
06-07-2021
09:38 AM
|
1
|
0
|
2568
|
POST
|
Hi, The error output indicates that the native libs for runtime cannot be found when SceneBuilder tries to construct the controls. One way to fix that would be to copy the jniLIbs folder into SceneBuilder's library folder. Colin
... View more
06-07-2021
01:29 AM
|
1
|
1
|
2582
|
POST
|
I placed filter.txt (with the lines from above) and arcgis-java-100.11.0.jar into SceneBuilder's library location and I could see MapView and SceneView as custom controls. Maybe try deleting SceneBuilder's library and starting again. I think if you have the filter correct then you should not see AttributionControl in the custom controls. I will see if I can find someone else to verify that this works just in case I have missed something. You could also check what SceneBuilder says in the JAR report e.g. From that same menu you can also confirm the library location. Colin
... View more
06-03-2021
07:01 AM
|
1
|
1
|
2627
|
Title | Kudos | Posted |
---|---|---|
1 | 03-08-2022 09:26 AM | |
1 | 12-09-2021 10:22 AM | |
1 | 11-24-2021 03:05 AM | |
1 | 06-07-2021 09:38 AM | |
1 | 06-07-2021 01:29 AM |
Online Status |
Offline
|
Date Last Visited |
03-19-2024
02:46 PM
|