|
POST
|
Hi @tanqidi , This possibility has been discussed, but we don’t have any immediate plans. Would you be willing to send me a direct message with your company name and any details of your project? This will help us better prioritize this functionality. Regards, Shelly
... View more
11-01-2022
07:58 AM
|
0
|
2
|
746
|
|
POST
|
Hi Kae, The GeometryEngine class has lots of geometry-on-geometry spatial operations - you can try the GeometryEngine.contains static method - GeometryEngine (ArcGIS Runtime SDK for Android 100.7.0) . There's a sample that demonstrates this method, along with a lot of other spatial relationships like intersects, within, etc - Spatial Relationships | ArcGIS for Developers . Hope this helps, Shelly
... View more
01-14-2020
04:07 AM
|
2
|
1
|
2461
|
|
POST
|
Good point Nathan, apologies for not being clear here. We have implemented the copy method on the specific types of Layer class, not up at the Layer superclass level. There was a few types of layer that we didn't support the copy method on, but I believe we're filling in this support in the upcoming release. Note however if you get an 'UnsupportedLayer' or 'UnknownLayer' (for example from a web map) then you won't be able to copy these I think.
... View more
10-14-2018
10:08 AM
|
0
|
5
|
2781
|
|
POST
|
> Only thing that occurs to me is that somehow we are getting this event at a point in the Activity lifecycle where the activity, and therefore the MapView, is no longer valid. Perhaps something is hanging on to a callback when it should have been disposed - have you got calls to pause and dispose the MapView in the activities onPause and onDestroy methods (e.g. like shown here )? Let me know, and I will pass on this info and post back if we can find the cause or if there's a workaround. Shelly
... View more
10-12-2018
04:55 AM
|
0
|
1
|
1322
|
|
POST
|
Hi, You should be able to open a map from an MMPK and add new layers to it just fine. Note that if the layer is not reprojectable, and it's spatial reference does not match that of the map you're adding them too, then you might not be able to see the data. For adding layers from one map to another map - if a layer already belongs to one map, you cannot add that to another map (you should get an exception to this effect); in this case you can try using the `copy` method to create a copy of the layer, and add that copy to the other map. This would be the same regardless of whether the layers are from a map loaded from an mmpk, or if the layers and maps were created programmatically from data directly. If you're still having issues, post your code and details about your data, and perhaps we can reproduce any problems you're seeing. Regards, Shelly
... View more
10-12-2018
04:04 AM
|
0
|
7
|
2781
|
|
POST
|
Hi there - I'm assuming here you're simply trying to create a SceneView, and the exception happens at that point - is that correct? What device are you seeing this error happening on? Can you give details of the OpenGL support on the device? (you can find a number of apps in the Play Store which report this information for you - I have used one called 'GLview' in the past). You should be able to create a SceneView on pretty much any modern device, but 3D does require a lot of system resources, so we would strongly recommend using a high-end device, and one that has OpenGL 3. Regards, Shelly
... View more
10-12-2018
03:57 AM
|
0
|
0
|
470
|
|
POST
|
Hi Nathan, Can you share more details to help us reproduce this problem? I can access the MapView's scale OK in a MapScaleChangedListener, and I'm using ArcGIS Runtime SDK for Android 100.3. Let us know about your device, which version of Android you have, and ideally some simple code that shows the problem for you. Regards, Shelly
... View more
09-25-2018
04:53 AM
|
0
|
3
|
1322
|
|
POST
|
Hi there - I have tested out this service, and there does seem to be some problem - I can use other tiled services with WebTiledLayer in 100.3 OK, but am not seeing this specific service display at 100.2 or 100.3 (works with same code in 100.1). I will report this to the team, and post back here with any information we find out. Thanks for reporting this issue, and apologies it took a while to reply. **Update** chen yangyang - We've looked into this issue and have found what we believe is the cause. Info I got from the developers is that at 100.2, we added a default referer value to the header of each HTTP/S request made by the ArcGIS Runtime SDK for Android (to address other issues and functionality). The referer value at 100.0 was empty, but the refer value at 100.2 will be, for example ArcGISRuntime-Android/100.2 (<android platform and device details here>) It appears that this referer value is not being accepted by the tianditu server - possibly it rejects referer strings that do not contain a valid URL, but I don't really know much about what would or would not be accepted. Perhaps the service documentation includes information about which referer values will be accepted and which will not? As a workaround, you can change the default request header for your specific layer here that is working with this server, e.g. RequestConfiguration requestConfiguration = new RequestConfiguration();
requestConfiguration.getHeaders().put("referer", "<Your own referer value here - for example your companies URL>");
yourTiandituWebTiledLayer.setRequestConfiguration(requestConfigurationWithYourReferer); For example, we found that a value of "referer", "http://www.arcgis.com" for the RequestConfiguration.getHeaders().put call worked OK, but you may want to experiment and use something appropriate for your specific case. It's also possible to change the default request header for all of the calls from the Runtime app by using the RequestConfiguration.setGlobalRequestConfiguration instead, but that would affect all the calls made by the runtime, so may not be as appropriate for you. Incidentally, have you ever used the Esri app (for example Collector, Explorer) with this server? I think this may be an issue there, and will pass this on to the apps teams. Regards, Shelly
... View more
09-17-2018
07:35 AM
|
1
|
2
|
2512
|
|
POST
|
Hi, When you call the queryFeaturesAsync method on ServiceFeatureTable, you can indicate which fields you want to be included in the returned features: this overload of queryFeaturesAsync lets you indicate you want IDS_ONLY, MINIMUM (fields that are needed for things like rendering, labeling), or LOAD_ALL attributes - see queryFeaturesAsync (QueryParameters queryParameters, ServiceFeatureTable.QueryFeatureFields queryFields) public ListenableFuture<FeatureQueryResult> queryFeaturesAsync (QueryParameters queryParameters, ServiceFeatureTable.QueryFeatureFieldsqueryFields) alternatively, if you are using MANUAL_CACHE mode for the ServiceFeatureTable, then the populateFromServiceAsync method allows you to control the specific fields loaded for all features present in the table (as well as explicitly controlling which features get requested from the service into the local in-memory table) - see this sample arcgis-runtime-samples-android/java/service-feature-table-manualcache at master · Esri/arcgis-runtime-samples-android · … public ListenableFuture<FeatureQueryResult> populateFromServiceAsync (QueryParameters query, boolean clearCache, Iterable<String> outFields) Hope this info helps. Regards, Shelly
... View more
08-07-2018
04:30 AM
|
0
|
0
|
1263
|
|
POST
|
Hi Shiva, I would guess that you might be missing the Android Framework permissions code that allow an app to access local storage, but without more details of the error you're seeing its difficult to be sure. There's no sample currently that is using an .slpk file, but there are a lot of samples that show accessing local storage and include the permissions code that you should have - you could check the arcgis-runtime-samples-android/java/open-mobile-mappackage at master · Esri/arcgis-runtime-samples-android · GitHub sample for an example of this code, and also refer to the Android Framework doc at Permissions overview | Android Developers . If that's not the problem then post back more details about your error. Shelly
... View more
08-03-2018
03:54 AM
|
1
|
0
|
873
|
|
POST
|
> Why are my features using one spatial reference whereas the location listener is receiving coordinates in different spatial reference? Location comes from the location provider in the Android framework - the data provided by that uses WGS84. You can combine data from many different data sources within a map view, and different data sources might have different spatial references. We preserve the spatial reference of the data that's there - we just reproject them automatically if possible (i.e. when the spatial reference is known) when we display them, so the data aligns with eachother. Unless otherwise specified, the map view will use the spatial reference of the first layer it loads (might typically be the basemap). > I see that I can create a new Point assigning it the same spatial reference as my feature and location as received from my location listener but is there a way to acquire/request the feature and/or point to use the same spatial reference? You can use the GeometryEngine.project method to project a geometry from one spatial reference to another, which results in a copy of the geometry (geometries are immutable). The feature belongs to it's containing dataset - you cant change the spatial reference of one feature's geometry. > Is it cheaper for me to re-create the point and assign the spatial ref or use the GeometryEngine.project method? Good question Charles, and I honestly don't know the answer. My guess would be if you've already got a handle to the spatial reference you want to use, then that might probably be quicker, but I'm really not sure.
... View more
07-31-2018
08:33 AM
|
1
|
0
|
1980
|
|
POST
|
Hi Charles, If you know the correct spatial reference of your feature layer, you can create the SpatialReference directly from a WKID for example, and then 'assign' it to a geometry that has a null spatial reference by using the GeometryEngine.project method - GeometryEngine| arcgis-android . Does your FeatureLayer also have a null spatial reference, or is it just the Feature's Geometry that is like that? Shelly
... View more
07-31-2018
03:19 AM
|
1
|
3
|
1980
|
|
POST
|
Hi Ludovic, M-values might be the same at many different vertices in a polygon or polyline - you can iterate through the Points in a polygon or polyline as shown here: Geometries—ArcGIS Runtime SDK for Android | ArcGIS for Developers I'm afraid there are no methods to scan through a multipart and return the set of points that have a specific m-value though - there's not much functionality in the Runtime currently for working with linear referencing. If you'd like to see new methods added, do let us know your overall use case. Hope this helps, Shelly
... View more
06-26-2018
07:24 AM
|
0
|
0
|
524
|
|
POST
|
Hi Lionel, I'm afraid that the SDK does not currently have support for group layers. Support for this is currently on our roadmap, but I don't have any information about when this would be released. Regards, Shelly
... View more
05-15-2018
03:44 AM
|
0
|
0
|
491
|
|
POST
|
Hi Asif, It's difficult to diagnose the problem from this information, but one thing that I'd check is what symbols you're using for the layer, check they are still working as expected (could some resources you rely on be missing?). Shelly
... View more
05-15-2018
03:38 AM
|
1
|
1
|
797
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 01-03-2024 10:08 AM | |
| 1 | 01-02-2024 08:09 AM | |
| 1 | 11-07-2023 01:44 AM | |
| 1 | 08-03-2018 03:54 AM | |
| 1 | 03-07-2017 02:12 AM |