POST
|
First step would be read the data from the database. Here is an example using JDBC - Lesson: JDBC Introduction (The Java™ Tutorials > JDBC(TM) Database Access). Next step is to create a Graphic using the Runtime API. Examples at Add graphics and text to graphics overlays—ArcGIS Runtime SDK for Java (Quartz Beta) | ArcGIS for Developers For example if you have read fields called lat and lng in your database table, then you could create a Graphic like this: SpatialReference wgs84 = SpatialReferences.getWgs84(); Point location = new Point(lng, lat, wgs84); SimpleMarkerSymbol marker = new SimpleMarkerSymbol(new RgbColor(255, 0, 0, 255), 10, SimpleMarkerSymbol.Style.CIRCLE); Graphic graphic = new Graphic(location, marker); graphicOverlay.getGraphics().add(graphic);
... View more
06-20-2016
09:29 AM
|
1
|
0
|
715
|
POST
|
You would need to create a Feature Service using ArcMap (see What is a feature service?—Documentation | ArcGIS for Server ). It can then be added as a FeatureLayer to the Java application (Example: Feature layer feature service—ArcGIS Runtime SDK for Java (Quartz Beta) | ArcGIS for Developers ). If you simply want to display the data from the database, you could read data from the database (using JDBC for example), and then add the data as Graphics to a GraphicsOverlay (Example: Add graphics overlays to your app—ArcGIS Runtime SDK for Java (Quartz Beta) | ArcGIS for Developers )
... View more
06-17-2016
10:23 AM
|
1
|
2
|
715
|
POST
|
Given a starting point (lat, lon), distance, and angle to a destination point, you could calculate the destination (lat,lon) using a formula like the one mentioned here http://stackoverflow.com/questions/7222382/get-lat-long-given-current-point-distance-and-bearing . Once you know the lat,lon of the starting and destination points, you could create a Polyline.
... View more
06-03-2016
01:21 PM
|
0
|
0
|
753
|
POST
|
Could you try the solution at ArcGIS Runtime SDK for Java and Virtualization OK, so I think I've figured out what caused the problem. If I use the 3d acceleration mechanism offered by VMs the rendering doesn't work, however if the acceleration is turned off it works flawlessly.
... View more
06-03-2016
01:09 PM
|
0
|
0
|
454
|
POST
|
I just tested ArcGISRuntime 10.2.4 with Eclipse 4.5.1. It worked. Does it compile if you use the method? It should.
... View more
06-03-2016
01:05 PM
|
0
|
0
|
492
|
POST
|
ArcGIS Runtime Java does not support running as an applet. Oracle/Java is planning to move away from the applet technology. Moving to a Plugin-Free Web (Java Platform Group, Product Management blog)
... View more
06-03-2016
01:00 PM
|
1
|
1
|
543
|
POST
|
You could use the toolkit sources jar to view the java documentation. Jar file: ...\java10.2.4\sdk\jars\ArcGIS_Runtime_Java_Toolkit-sources.jar
... View more
06-03-2016
12:53 PM
|
0
|
0
|
337
|
POST
|
You could get the exception using the getException() method on the layer. This method could be invoked after the layer has initialized. dynamicLayer = new ArcGISDynamicMapServiceLayer(URL_DYNAMIC_LAYER);
dynamicLayer.addLayerInitializeCompleteListener(new LayerInitializeCompleteListener() {
@Override
public void layerInitializeComplete(LayerInitializeCompleteEvent e) {
System.out.println("Error: " + dynamicLayer.getException());
}
});
... View more
11-17-2015
01:36 PM
|
1
|
2
|
1063
|
POST
|
Note that to download features, the FeatureLayer/Service has to be published with Sync capability. ArcGIS REST API
... View more
01-15-2015
09:38 AM
|
0
|
0
|
532
|
POST
|
The supported format for a geodatabase file is a ".geodatabase". That database is created through a GeodatabaseFeatureTable - basically, it connects to a FeatureLayer and downloads data into a file. The workflow is described at Offline editing workflow | ArcGIS for Developers . An example is also available in the samples (Editing -> Offline editing workflow).
... View more
01-15-2015
09:33 AM
|
2
|
0
|
532
|
POST
|
I guess you are using Eclipse and that it has been running since before the installation. You could restart (Exit and then start, instead of File->Restart) Eclipse - that will pick up the environment variable.
... View more
01-15-2015
09:14 AM
|
0
|
0
|
275
|
POST
|
Hi Julien, There is a lot of computation here that could be avoided. Instead of checking intersection of every point with every polygon, you could create a spatial index using the polygons and then check every point against the spatial index. The complexity for the first case is O(n points x m polygons). In the second case, it could be reduced to O(m) + O(n x log m) (O(m) for building the index). The polygons in your data seem to be static, so a spatial index such as a grid-based or a quad-tree could be a good fit. An example of quad tree implementation is at http://gamedevelopment.tutsplus.com/tutorials/quick-tip-use-quadtrees-to-detect-likely-collisions-in-2d-space--gamedev-3… ). Another spatial index at aled/jsi · GitHub Some other thoughts: 1) You could spawn multiple threads that run concurrently. 2) In general, using Geometry.intersects() takes less time compared to Geometry.intersect() followed by checking whether it returned something. Vijay
... View more
01-07-2015
03:21 PM
|
0
|
1
|
589
|
POST
|
Hi Jerry, We don't an API to do that. However, since the source code of ScaleBarOverlay is publicly available, you could customize it. Here is the source code of ScaleBarOverlay that does not display miles - ScaleBarOverlay without miles. The changes made are: 1) In createScaleBar(), I have commented out the code that was creating the second row and text (miles). 2) In onPaint(), I removed code that was drawing the second row and text.
... View more
01-02-2015
11:02 AM
|
0
|
0
|
340
|
POST
|
Hi Jerry, You could have a look at the source code of ScaleBarOverlay (class com.esri.toolkit.overlays.ScaleBarOverlay in the sdk/jars/ArcGIS_Runtime_Java_Toolkit-sources.jar). If you don't really need an overlay, try the sample called Render Graphics (in Graphics Layers). We also have a class called LocationOnMap that is used by our toolkit. That could be of some use in your application. Vijay
... View more
12-31-2014
10:11 AM
|
0
|
0
|
357
|
POST
|
Hi Sachin, I assume you are using LabelingInfo class. That requires the symbol to be a TextSymbol. Our TextSymbol does not support a background color property yet, so there is no API. It worked with local server because it uses a different rendering pipeline. Thanks, Vijay
... View more
12-30-2014
01:17 PM
|
0
|
1
|
340
|
Title | Kudos | Posted |
---|---|---|
1 | 06-03-2016 01:00 PM | |
1 | 06-20-2016 09:29 AM | |
1 | 06-17-2016 10:23 AM | |
1 | 11-17-2015 01:36 PM | |
2 | 01-15-2015 09:33 AM |
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:24 AM
|