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
|
77
|
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
|
45
|
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
|
114
|
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
|
68
|
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
|
7
|
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
|
10
|
POST
|
I still cannot get this to work. Any help will be greatly appreciated.
... View more
04-23-2019
09:00 AM
|
0
|
2
|
7
|
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
|
56
|
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
|
18
|
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
|
63
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|