POST
|
I have your issue reproduced. Support will submit a bug. Thank you for reporting this.
... View more
12-31-2014
11:32 AM
|
0
|
0
|
155
|
POST
|
Would you please send the sample project code to mguo@esri.com
... View more
12-10-2014
09:04 AM
|
0
|
0
|
148
|
POST
|
com.esri.core.tasks.ags.query.QueryTask is replaced by com.esri.core.tasks.query.QueryTask. Class name remain the same but package name changed. Query is replaced by QueryParameters.
... View more
12-09-2014
04:34 PM
|
0
|
1
|
148
|
POST
|
com.esri.core.tasks.ags.query.QueryTask is deprecated in 10.2.4 and the replacement should be com.esri.core.tasks.query.QueryTask. QueryTask | ArcGIS Android 10.2.4 API QueryTask | ArcGIS Android 10.2.4 API Notice that execute method asks for a different parameter in the two class. It should work if you are using ArcGIS Runtime SDK 10.2.3 but maybe not 10.2.4. I'm not sure if the issue is caused by this but I see the error message: "Caused by: java.lang.NoClassDefFoundError: com.esri.core.tasks.ags.query.Query 12-09" Maybe try QueryParameters instead of Query, and use queryTask.execute(QueryParameters) method for query. And double check your query parameters since you mentioned the same code works. // Define a new query and set parameters QueryParameters mParams = new QueryParameters(); mParams.setWhere(whereClause); mParams.setReturnGeometry(true); // Define the new instance of QueryTask QueryTask queryTask = new QueryTask(mFeatureServiceURL); FeatureResult results; try { // run the querytask results = queryTask.execute(mParams); return results; } catch (Exception e) { e.printStackTrace(); } return null;
... View more
12-09-2014
01:30 PM
|
0
|
2
|
436
|
POST
|
12-09 12:53:15.329: E/dalvikvm(29724): Could not find class 'com.esri.core.tasks.ags.query.Query', referenced from method com.example.tablaanalisis.MainActivity$AsyncQueryTask.doInBackground May I verify the ArcGIS Runtime SDK version?
... View more
12-09-2014
11:45 AM
|
0
|
1
|
436
|
POST
|
Query query = new Query(); change it to com.esri.core.tasks.ags.query.Query query = new Query();
... View more
12-09-2014
09:31 AM
|
1
|
1
|
436
|
POST
|
I tested Arabic Language and found the same issue. I will add a note to that bug.
... View more
12-08-2014
03:06 PM
|
0
|
1
|
299
|
POST
|
For your information, Chinese characters, as well as Japanese and Korean, do not display at all in ArcGIS Runtime SDK for Android 10.2. http://support.esri.com/en/bugs/nimbus/role/beta10_1/TklNMDk3NjE3 Now we didn't find a workaround. I think Arabic Language may encounter a same issue.
... View more
12-08-2014
11:38 AM
|
0
|
0
|
299
|
POST
|
Please check out the sample: Query Feature Service Table | ArcGIS for Developers However, this sample is a query on GeodatabaseFeatureServiceTable. Since you mentioned that you published a points-layer as a runtime content, it should be GeodatabaseFeatureTable instead. The difference between GeodatabaseFeatureServiceTable and GeodatabaseFeatureTable is: In a connected workflow, the type of feature table you create and edit is a GeodatabaseFeatureServiceTable. In a disconnected workflow, the type of feature table you create and edit is a GeodatabaseFeatureTable. The class hierarchy between these is GeodatabaseFeatureServiceTable is inherited from GeodatabaseFeatureTable. Now let's go over the code: In onClick_okButton method: // Create query parameters, based on the constructed where clause. QueryParameters queryParams = new QueryParameters(); queryParams.setWhere(whereClause); // Execute the query and create a callback for dealing with the results of the query. featureServiceTable.queryFeatures(queryParams, new CallbackListener<FeatureResult>() { @Override public void onError(Throwable ex) { // Highlight errors to the user. showToast("Error querying FeatureServiceTable"); } @Override public void onCallback(FeatureResult objs) { // If there are no query results, inform user. if (objs.featureCount() < 1) { showToast("No results"); return; } // Report number of results to user. showToast("Found " + objs.featureCount() + " features."); // Iterate the results and select each feature. for (Object objFeature : objs) { Feature feature = (Feature) objFeature; featureLayer.selectFeature(feature.getId()); } } }); } Note that featureServiceTable.queryFeatures, you can change it to GeodatabaseFeatureTable.queryFeatures, and set up the parameters in QueryParameters. See the API reference for the detailed information: GeodatabaseFeatureTable | ArcGIS Android 10.2.4 API Let me know if you have any questions.
... View more
12-08-2014
11:19 AM
|
1
|
1
|
330
|
POST
|
I found this error: Caused by: java.lang.NoClassDefFoundError: com.esri.core.tasks.ags.query.Query I would suggest try com.esri.core.tasks.ags.query.Query instead of Query in your definition.
... View more
12-08-2014
10:41 AM
|
0
|
1
|
436
|
POST
|
I think right now the API doesn't have this functionality. However, you can only have one version of Runtime API in one app. So I would suggest just hard code the version in Help-About.
... View more
12-04-2014
03:45 PM
|
1
|
0
|
274
|
POST
|
URL like http:// <catalog-url>/<serviceName>/MapServer is a Map Service. And URL like http:// <mapservice-url>/layers represents all the layers and stand-alone tables under a map service published using ArcGIS for Server. It provides basic information about the layers and tables such as name, type, parent and sub-layers, fields, min and max scales, extent, and copyright text. Do you mean that you want to add a certain layer to your map? What type is your layer?
... View more
12-02-2014
03:08 PM
|
0
|
1
|
538
|
POST
|
Thank you for providing additional information. From what you described, I think maybe check spacial reference of your basemap, layers and the point. You can also post your simplified code here so that I can get a better idea of what happened.
... View more
11-21-2014
10:17 AM
|
0
|
0
|
895
|
POST
|
I tested the following code and it works for both animated true and false. AGSTiledMapServiceLayer *tiledLayer = [[AGSTiledMapServiceLayer alloc] initWithURL:[NSURL URLWithString:@"http://services.arcgisonline.com/ArcGIS/rest/services/World_Topo_Map/MapServer"]]; [self.mapView addMapLayer:tiledLayer withName:@"Tiled Layer"]; [self.mapView zoomToEnvelope:[[AGSEnvelope alloc]initWithXmin:-14225623 ymin:3997718 xmax:-12139951 ymax:5041807 spatialReference:[[AGSSpatialReference alloc] initWithWKID:102100] ] animated:false]; Please also check Navigating the map—ArcGIS Runtime SDK for iOS | ArcGIS for Developers Is there anything different in your code?
... View more
11-20-2014
04:08 PM
|
0
|
8
|
895
|
POST
|
I see. However, com.esri.core.geometry.Point is the subclass of Geometry. So I think Graphic pointGraphic = new Graphic(pointGeometry, simpleMarker); should work for com.esri.core.geometry.Point The reason why it gives the error maybe Point you are using is the Point class in Android rather than com.esri.core.geometry.Point. You can also try import com.esri.core.geometry and use Point directly. Anyway, I'm glad your issue is solved:)
... View more
11-20-2014
02:01 PM
|
0
|
0
|
544
|
Title | Kudos | Posted |
---|---|---|
1 | 01-21-2016 04:58 PM | |
1 | 12-04-2014 03:45 PM | |
1 | 10-21-2015 11:49 AM | |
1 | 02-24-2015 10:42 AM | |
1 | 12-16-2015 03:35 PM |
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|