POST
|
The Geodatabase constructor will throw a RuntimeException if you don't have write access to the directory containing the .geodatabase file, so that is one possibility. ~Elise
... View more
07-30-2014
08:30 AM
|
0
|
1
|
275
|
POST
|
It's hard to say without more info about the service, how you're obtaining the token, and perhaps some context around the code. You could try debugging using a program like Fiddler to see the chat to and from the service? For reference here's some ArcGIS Server (10.2) doc on tokens: About ArcGIS Tokens ~Elise
... View more
07-30-2014
04:28 AM
|
0
|
0
|
495
|
POST
|
Have you tried not calling setUserToken? Normally setting the username and password in the credentials is all that's required, the API does the rest. Is it a specific service giving you grief? ~Elise
... View more
07-28-2014
10:03 AM
|
0
|
1
|
495
|
POST
|
Hi, The ArcGIS Runtime SDK for Android doesn't have a WMTSLayer at the 10.2.3 release (as you've discovered) but we're working on this and aim to support WMTS layers at the next release of Android as well as Java SE. ~elise
... View more
07-14-2014
08:54 AM
|
0
|
0
|
220
|
POST
|
Hi, A Point (com.esri.core.geometry.Point) in the API consists of an x coordinate and a y coordinate, so to create a point from lat and lon values, you can do: Point point = new Point(lon, lat); // x is longitude and y is latitude) So far the Point doesn't care about the spatial reference. When you come to add it to a map, however, you need to make sure your Point has x and y values in the correct units/spatial reference, i.e. the ones of your map. Lat-lon coordinates describe points in the 4326 or WGS84 spatial reference, and you want to project the points to the 102100 spatial reference. We have methods in the GeometryEngine class to project geometries (such as Points) from one spatial reference to another. One is project(double x, double y, SpatialReference sr) and it takes lon/lat coordinates, and returns a point in the specified spatial reference. So in your case you can do something like: Point projectedPoint = GeometryEngine.project(lon, lat, SpatialReference.create(102100)); or more generally, just use the spatial reference of your map: Point projectedPoint = GeometryEngine.project(lon, lat, map.getSpatialReference()); ~elise
... View more
07-09-2014
03:54 AM
|
1
|
5
|
1637
|
POST
|
It's actually just that the sample is using a tpk (.tpk file, tile package on disk) as a basemap. The tpk has only the first few top levels of tiles so as to not take up too much space on disk, and so the map won't let you zoom into beyond the largest scale level. Replace the ArcGISLocalTiledLayer in the sample with an ArcGISTiledMapServiceLayer for example, and you should no longer see these scale constraints. ~elise
... View more
07-09-2014
03:10 AM
|
0
|
0
|
254
|
POST
|
Do we have any mechanism to show offline navigation/route calculation on a JQuery mobile application. The application is being built for iOS and Android? Hi, If you're building a JavaScript app you'd be better off posting in the JavaScript forum - this forum is for Java (desktop, native) apps. Alternatively if you're building a native app for Android, you can do offline routing provided you have a network dataset stored locally on the machine - more details in the Finding a route Android Guide topic. It will be similar for iOS, but this is for native apps not JavaScript. ~elise
... View more
07-03-2014
01:37 AM
|
0
|
0
|
243
|
POST
|
You should be able to download the 10.2 version on the downloads page (when logged in) at https://developers.arcgis.com/en/downloads/. Next to the 'ArcGIS Runtime SDK for Java' title there's a drop down where you can switch from the 10.2.3 downloads to the 10.2 ones, pictured below. [ATTACH=CONFIG]34862[/ATTACH] ~elise
... View more
06-25-2014
01:41 AM
|
0
|
0
|
460
|
POST
|
If that's the exact code you're using then (in second code snippet) I don't see where you are using the 'i' from your for loop? Also note that GraphicsLayer has methods to deselect all selected graphics in the layer (clearSelection()) and to get the IDs of all selected graphics (getSelectionIDs()), so those might be handy depending on what you're doing. ~elise
... View more
06-04-2014
02:18 AM
|
0
|
0
|
217
|
POST
|
Direct read of shapefiles is being worked on for the summer release. With 10.2.3 it is still using dynamic workspaces. ~Elise
... View more
05-30-2014
12:53 AM
|
0
|
0
|
403
|
POST
|
You can download the 10.2 version of ArcGIS Runtime SDK for Java on the homepage here: https://developers.arcgis.com/java/ (download links for the supported platforms). The 10.2.3 version will be released shortly and will be available at the above link from that point on. ~elise
... View more
05-15-2014
01:33 AM
|
0
|
0
|
512
|
POST
|
Hi, If you're trying to develop desktop applications using ArcGIS Runtime SDK for Java, in your IDE you can manually add to your project the .jar files contained in the subfolder '\sdk\jars' of where you installed the SDK. The default installation directory on Windows 64-bit is 'C:\Program Files (x86)\ArcGIS SDKs\java10.2', so on this platform the jars would be in 'C:\Program Files (x86)\ArcGIS SDKs\java10.2\sdk\jars' unless you've specified another install location. The jars include the com.esri.map package as well as the rest of the API listed in the API reference. As an alternative to manually adding the jars, if you're using Eclipse and have installed the Eclipse plug-in, you can create an eclipse project as described in Create a simple map application that will automatically link to the jars. ~elise
... View more
05-14-2014
02:22 AM
|
0
|
0
|
512
|
POST
|
Hi again, At the upcoming release of the Runtime SDK for Java (10.2.2), Image Service layers will support time awareness. Thanks for flagging this up, ~Elise
... View more
03-05-2014
07:24 AM
|
0
|
1
|
361
|
POST
|
Hi, Thanks for your post, from what you're saying this could be a bug, we're going to take a look at this so stay tuned. ~Elise
... View more
02-27-2014
09:57 AM
|
0
|
0
|
361
|
POST
|
Could you expand on your workflow? I'm wondering why you are trying to access the mpk info via a geoprocessing package. As an alternative I would suggest spinning up a map service via creating a local dynamic layer from the mpk, then you can get the spatial reference of the map service. For example:
ArcGISLocalDynamicMapServiceLayer serviceLayer = new ArcGISLocalDynamicMapServiceLayer("c:\\USCitiesStates.mpk");
serviceLayer.addLayerInitializeCompleteListener(new LayerInitializeCompleteListener() {
@Override
public void layerInitializeComplete(LayerInitializeCompleteEvent e) {
SpatialReference spRef = ((ArcGISLocalDynamicMapServiceLayer)e.getSource()).getDefaultSpatialReference();
System.out.println(spRef) ;
}
});
serviceLayer.initializeAsync();
... View more
11-14-2013
08:33 AM
|
0
|
0
|
438
|
Title | Kudos | Posted |
---|---|---|
1 | 09-18-2014 10:18 AM | |
1 | 07-09-2014 03:54 AM |
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:24 AM
|