POST
|
Is there any update on this? I managed to get around by querying my data directly but some others might not be able to do that easily. I just tried again on the service and I still have the same problem with long fields. Thanks,
... View more
05-24-2018
12:04 PM
|
0
|
0
|
1293
|
POST
|
I'm trying to get the domain of value for a field with 23 characters and it fails. Here is the query I'm doing on 10.5: queryf=json &where=1=1 &returnGeometry=false &spatialRel=esriSpatialRelIntersects &outFields=UTILISATEURMODIFICATION &returnDistinctValues=true &orderByFields=UTILISATEURMODIFICATION It returns {"error":{"code":400,"message":"Failed to execute query.","details":[]}} When I remove the returnDistinctValues, it works fine but I get every records. I tried the same exact query on 10.3 with the same MXD and data and the returnDistinct works fine. Here is the log from the server: Geodatabase error: Attribute column not found [42S22:[Microsoft][SQL Server Native Client 11.0][SQL Server]Invalid column name 'UTILISATEURMODIFICATIO'.] . It seems the last characters are truncated. I have the same problem with other fields: Geodatabase error: Attribute column not found [42S22:[Microsoft][SQL Server Native Client 11.0][SQL Server]Invalid column name 'INDICATEURPROTECTIONGE'.]
... View more
10-13-2017
11:22 AM
|
0
|
8
|
2091
|
POST
|
I'm trying to create a Feature with an esriFieldTypeBlob but it crashes with an UnsupportedOperationException. The value of the attribute is a byte array. The FeatureLayer is a Feature service with the edition and addition enabled. Map<String, Object> attributesMap = new HashMap<>();
for (Attribute attribute : attributeListAdapter.getAllAttribute()) {
attributesMap.put(attribute.getName(), attribute.getValue());
}
final FeatureTable featureTable = featureLayer.getFeatureTable();
//the createFeature cause the exception
feature = featureTable.createFeature(attributesMap, sketch.getGeometry());
FATAL EXCEPTION: main Process: com.cgi.cgis, PID: 20311
java.lang.UnsupportedOperationException: Conversion to CoreElement not implemented: class [B
at com.esri.arcgisruntime.internal.n.g.a(SourceFile:528)
at com.esri.arcgisruntime.internal.n.k$b.a(SourceFile:452)
at com.esri.arcgisruntime.internal.n.k$b.add(SourceFile:399)
at com.esri.arcgisruntime.internal.n.g.a(SourceFile:762)
at com.esri.arcgisruntime.data.FeatureTable.createFeature(SourceFile:535)
at com.cgi.cgis.core.edition.manager.EditionManager.createFeature(EditionManager.java:321) If I put anything else in this attribute, I get a mismatch error, and if I put null, the creation runs fine and I can push it to the service.
... View more
09-13-2017
05:02 AM
|
0
|
1
|
506
|
POST
|
Hello, We have a MapImageLayer and a FeatureLayer from a service on the map. We tried to use the identifyLayersAsync() of the MapView but there is no result for the FeatureLayer. final ListenableFuture<List<IdentifyLayerResult>> future = viewerModel.getMapView().identifyLayersAsync(clickedPoint.getScreenPoint(), tolerance, false, 1000); future.addDoneListener(new Runnable() { @Override public void run() { try { List<IdentifyLayerResult> identifyLayerResults = future.get(); for (IdentifyLayerResult result : identifyLayerResults) { //NO RESULT FOR FEATUE LAYER HERE BUT IMAGELAYER IS OK } } catch (Exception e) {} }); We use Energy/Geology (FeatureServer) and USA (MapServer) Thanks,
... View more
08-18-2017
11:43 AM
|
0
|
1
|
594
|
POST
|
Well, when I identify, I also want to select the features. The on tap is good with the mapView.identifyLayersAsync as you mentioned. The problem with the selection is what do I do with my polygon to send it to the service so I can select and identify everything in it? I also want to search features in a certain image layer. How do I do that?
... View more
08-02-2017
01:13 PM
|
0
|
1
|
543
|
POST
|
I'm using Energy/HSEC (MapServer) for testing right now. Am I bound to use only a Point with tolerance or can I use a Polygon for the selection? And to execute a search on the image layer, what should I use?
... View more
08-02-2017
07:32 AM
|
0
|
3
|
543
|
POST
|
I'm trying to identify the features in a ArcGISMapImageServiceLayer. In 10.2.8 I was using QueryTask to query services, but it's been removed in 100 and I cannot seem to find the equivalent. There's no sample code either. Thanks,
... View more
08-02-2017
06:53 AM
|
0
|
5
|
959
|
POST
|
Every users using this feature will be impacted, so a potential thousand right now.
... View more
07-18-2017
06:40 AM
|
0
|
1
|
199
|
POST
|
Hello Alexander, I did some testing with the other creation mode yesterday and I just reverted to the freehand and it seems to works fine now, beside the bug that you mentioned: if I draw a shape quickly, the map moves at the end of the movement. We already had that problem when we created our own drawing tool, so you only have to override some more listener during the FREEHAND_POLYGON and FREEHAND_LINE. mapView.setOnTouchListener(new DefaultMapViewOnTouchListener(context, mapView) { @Override public boolean onFling(MotionEvent from, MotionEvent to, float velocityX, float velocityY) { boolean handled = false; if (mapView.getSketchEditor().getSketchCreationMode().equals(SketchCreationMode.FREEHAND_LINE)
|| mapView.getSketchEditor().getSketchCreationMode().equals(SketchCreationMode.FREEHAND_POLYGON) {
handled = true;
} return handled; } });
... View more
07-11-2017
06:26 AM
|
0
|
5
|
926
|
POST
|
If I override the onTouch listener with nothing, the map won't do much... The problem is, when I draw freehand on the map, the paning should be desactivated. The SketchEditor.start() overwrites the touch listeners since it needs to know where the user draw. The problem in the SDK is probably just because super.onScroll() is called in the overriding.
... View more
07-10-2017
12:52 PM
|
0
|
7
|
926
|
POST
|
Yes, I already tried that. mapView.setOnTouchListener(new DefaultMapViewOnTouchListener(viewerModel.getContext(), mapView) {
@Override
public boolean onScroll(MotionEvent from, MotionEvent to, float distanceX, float distanceY) {
System.out.println("test");
return true;
}
});
When I set it before the .start(), I have the same behavior and there's no log. The drawing is showing but it's just a mess of line below my finger since the map is paning.
When I set it after, no drawing is showing, the test log is shown and the pan is desactivated.
... View more
07-10-2017
09:47 AM
|
0
|
9
|
926
|
POST
|
I tried to use the new SketchEditor. There's not much info on it beside the API doc, so here's my code: if (viewerModel.getMapView().getSketchEditor() == null) { SketchEditor sketch = new SketchEditor(); viewerModel.getMapView().setSketchEditor(sketch); sketch.start(SketchCreationMode.FREEHAND_LINE); } else {
viewerModel.getMapView().getSketchEditor().stop();
viewerModel.getMapView().setSketchEditor(null);
} When I start the freehand sketch, the map pan with my movement so the line created is barely moving. I tried to overide the map onTouchListener onScroll , but it seems the SketchEditor is already doing that. There's probably another step I need to make I guess? Can you help?
... View more
07-10-2017
08:26 AM
|
0
|
11
|
1542
|
POST
|
Found the solution: Just add <item name="windowActionModeOverlay">true</item> to my style. Now the bar properly display over my existing bar. Now, can I change the style of that bar? And can the style and text of the list (Distance / Area/ Select Unit, etc.) be modified?
... View more
04-27-2016
10:28 AM
|
0
|
0
|
224
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:24 AM
|