POST
|
In ArcObjects, IFeatureCursor.UpdateFeature method is much faster than IFeature.Store. I just could not find a similar way of UpdateFeature in ArcGIS Pro. What is the equivalent of UpdateFeature in Pro?
... View more
08-04-2020
09:17 AM
|
0
|
1
|
397
|
POST
|
Updating data to a feature class will be slow when there are some tables joined to it. The following is the function we used to update the data. The performances on a feature class with table joined and without table joined are very different. We are able to duplicate this issue in 2.3, 2.4 and 2.5. private async Task<bool> UpdateType(FeatureLayer pFeatLyr, List<long> oidSet, string sType) { var op = new EditOperation(); FeatureClass pFeatCls = await CHaLayerSrv.GetFeatureClass(pFeatLyr); //FeatureClass pFeatCls = ((FeatureLayer)pFeatLyr).GetFeatureClass(); try { op.Callback(async context => { StringBuilder sb = new StringBuilder(); sb.Append("OBJECTID IN("); foreach (long objId in oidSet) { sb.Append(objId.ToString() + ","); } sb.Remove(sb.Length - 1, 1).Append(")"); string query = sb.ToString(); using (RowCursor pFeatCur = await CHaMapSelection.SearchFeatures(pFeatCls, query, "", false)) { while (pFeatCur != null && pFeatCur.MoveNext()) { using (Feature pFeat = (Feature)pFeatCur.Current) { context.Invalidate(pFeat); pFeat[GlobalConst.SHAPE_TITLE_TYPE] = sType; pFeat.Store(); context.Invalidate(pFeat); } } } }, pFeatCls); if (!op.Execute()) { Console.WriteLine(op.ErrorMessage); return false; } else { return true; } } catch (Exception ex) { Console.WriteLine(ex.Message); return false; } finally { if (pFeatCls != null) { pFeatCls.Dispose(); pFeatCls = null; } } } We have reported similar issue before. But we are still not able to solve this problem. Any help will be greatly appreciated.
... View more
04-27-2020
04:41 PM
|
0
|
0
|
257
|
POST
|
Does anyone have experienced any issues in MapView.Active.RedrawAsync()? It does redrew map symbols but leave labels unchanged. We can duplicate this issue on both 2.3 and 2.4.
... View more
10-22-2019
11:24 AM
|
0
|
2
|
496
|
POST
|
Domain is a read-only member of SpatialReferenceBuilder. But I need to expand the coordinate system to fix out of bound during editing. But I can not do so through Domain since it is read-only. Is there a way to that?
... View more
06-07-2019
11:18 AM
|
0
|
1
|
382
|
POST
|
Hi Uma, Maybe it is to do with ArcGIS Pro version. It is not working in 2.2. But I tested in an ArcGIS 2.3 machine and it is working fine. Thank you for your help! Best regards, Fayu
... View more
04-23-2019
01:25 PM
|
0
|
0
|
562
|
POST
|
Hi Uma, Thank you very much for your help. Is it possible to a CAD file without add it to Map control? Best regards, Fayu
... View more
04-23-2019
09:02 AM
|
0
|
1
|
541
|
POST
|
I still cannot get this to work. Any help will be greatly appreciated.
... View more
04-23-2019
09:00 AM
|
0
|
2
|
562
|
POST
|
I was trying to read a CAD feature class from a DWG file but could not find any Pro APIs related to it. Any help will be greatly appreciated!
... View more
04-22-2019
02:34 PM
|
0
|
3
|
587
|
POST
|
Hi Wolfgang, That is really an idea. I tried to implement this in my program and I got the following error: System.ArgumentNullException: Value cannot be null. Parameter name: Spatial reference is null. The spatial reference of screen geometry is empty. That may cause the exception. But how to create a screen geometry with valid spatial reference? Best regards, Fayu
... View more
03-27-2019
01:58 PM
|
0
|
1
|
756
|
POST
|
I was trying to select a layer from ArcGIS Online using the following code. I can click the layer but pDialog.Items also return empty. Any ideas? var pDialog = new ArcGIS.Desktop.Catalog.OpenItemDialog(); pDialog.MultiSelect = false; pDialog.Filter = "tables_all"; pDialog.ShowDialog(); var pItems = pDialog.Items; if (pItems == null) return; var pList = pItems.ToList<ArcGIS.Desktop.Core.Item>(); if (pList.Count < 1) return; var pItem = pList[0]; if (pItem == null) return;
... View more
03-27-2019
10:28 AM
|
0
|
3
|
618
|
POST
|
I am trying to do the similar thing too. But I would like to do in ArcGIS Pro. Any example code will be very helpful.
... View more
03-27-2019
10:16 AM
|
0
|
2
|
3782
|
POST
|
Hi Wolfgang, Is it possible to convert a geometry in screen coordinates to one in map coordinates? Or from map coordinates to screen coordinates? In ArcObjects, you are able to do so. But I could not find the similar APIs in Pro.
... View more
03-26-2019
02:15 PM
|
0
|
3
|
756
|
POST
|
I got the following error when I was trying to select features using a geometry from a SketchTool. var pFeatures = pActiveView.GetFeatures(pGeometry); "3D views only support selecting features interactively using geometry in screen coordinates relative to the top-left corner of the view." I changed SketchOutputMode from Map to Screen. I had the same error. Any ideas?
... View more
03-15-2019
05:15 PM
|
0
|
6
|
900
|
POST
|
Is this a Pro API bug? Any help will be greatly appreciated.
... View more
10-31-2018
04:43 PM
|
0
|
0
|
711
|
Title | Kudos | Posted |
---|---|---|
1 | 10-05-2018 10:19 AM |
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|