POST
|
On the following page ProConcepts Map Authoring · Esri/arcgis-pro-sdk Wiki · GitHub is stated that the Map object has a map scale property, but I cannot find this property. MapView.Active doesn't have a map scale property neither. So how can I get and set the map scale?
... View more
07-22-2020
03:33 AM
|
0
|
3
|
2329
|
POST
|
Hello Than Aung, thank you for your reply! I already use the MVVM pattern using a ViewModel class. Yes, you are right, adding items to the combo box is not inside the MCT thread, so I removed the following code: lock (lockObject)
{
...
} However, I need the following line of code because getting coded value pairs from domain is done inside the MCT thread: BindingOperations.EnableCollectionSynchronization(_streetItems, lockObject); Otherwise, the combo box remains empty. I still have the problem that I can only fill one combo box with the domain values. The other combo box (whether it is the first or the second) always remains empty.
... View more
07-22-2020
01:14 AM
|
0
|
4
|
1988
|
POST
|
I have a ProWindow with two combo boxes on it. The combo box items are retrieved from coded value domains. I followed the guidelines for thread safe data binding with WPF on ProConcepts Framework · Esri/arcgis-pro-sdk Wiki · GitHub (section Thread safe data binding with WPF). The data binding is as follows: public ReadOnlyObservableCollection<string> StreetItems
{
get { return _streetItems; }
}
public ReadOnlyObservableCollection<string> RiverItems
{
get { return _riverItems; }
} The code for filling the first combo box is as follows (the second combo box is filled accordingly): var items = new ObservableCollection<string>();
_streetItems= new ReadOnlyObservableCollection<string>(items);
object lockObject = new object();
BindingOperations.EnableCollectionSynchronization(_streetItems, lockObject);
var codedValuePairs = await GetCodedValuePairsFromDomainAsync(layerName, fieldName);
lock (lockObject)
{
foreach (var keyValuePair in codedValuePairs)
{
items.Add(keyValuePair.Value);
}
} The problem is that I can only fill one combo box with the domain values. The other combo box (whether it is the first or the second) always remains empty. What am I doing wrong?
... View more
07-21-2020
07:48 AM
|
0
|
8
|
2122
|
POST
|
Hello Narelle, this was my error, sorry about that. The two feature classes didn't have the same spatial reference. Barbara
... View more
07-20-2020
05:15 AM
|
0
|
0
|
1125
|
POST
|
Narelle, thank you for your help! I get the first point of my sketch polyline like you described above using GetCurrentSketchAsync(). This works fine. Now I want to check whether the first point of my sketch intersects a point of a point feature layer. The problem is that the test always returns false because the coordinates of the first point of my sketch polyline and the point in the point feature layer are different, even if I snapped the sketch to the point. What does snapping actually do? Barbara
... View more
07-17-2020
04:16 AM
|
0
|
2
|
1125
|
POST
|
Hello Narelle, thank you for your reply! I have to catch the event when the user starts the sketch, i.e. the first OnMouseDown because I have to perform a test whether the first point of the sketch intersects another layer. In your answer, you mentioned something about sketch start. Is there a way to do this? I haven't found out how. Thank you, Barbara
... View more
07-14-2020
01:03 AM
|
0
|
4
|
1125
|
POST
|
I would like to create an editing tool with which I can draw freehand. In the constructor of the tool, I set the following: IsSketchTool = true;
SketchType = SketchGeometryType.OpenLasso; In the method HandleMouseDownAsync(MapViewMouseButtonEventArgs e), I get the current sketch because I want to add the clicked point to it: Polyline sketchPolyline = await base.GetCurrentSketchAsync() as Polyline; In the method OnToolMouseMove(MapViewMouseEventArgs e), I do the same as above. My question: what geometry type does the method GetCurrentSketchAsync() return? It is not a polyline. But what else? Thank you for your reply in advance.
... View more
07-13-2020
07:54 AM
|
0
|
6
|
1209
|
POST
|
I want to save some custom project settings (see ProGuide Custom settings · Esri/arcgis-pro-sdk Wiki · GitHub ). When I manually save the project, the function "OnWriteSettingsAsync()" is called. However, when I programmatically save the project using "Project.Current.SaveAsync()", the function "OnWriteSettingsAsync()" is not called. Is there a workaround for this? Thanks, Barbara
... View more
04-15-2020
07:41 AM
|
0
|
2
|
528
|
POST
|
Hello, I haven't found out how to set the sticky move tolerance in ArcGIS Pro SDK. We want our users not to move features. Thanks, Barbara
... View more
04-02-2020
03:48 AM
|
0
|
3
|
2896
|
POST
|
Hi Gintautas, do you use InstallShield to create an installer for the managed configuration? If yes, I would like to ask you a question concerning InstallShield.
... View more
03-16-2020
07:57 AM
|
0
|
1
|
1148
|
POST
|
I am writing a feature to an Oracle Enterprise Geodatabase using an edit operation: var editOperation = new EditOperation();
// Assign shape and attributes
var attributes = new Dictionary<string, object>();
attributes.Add(shapeFieldName, shape);
attributes.Add("myField", row["myField"]);
// Create new feature
editOperation.Create(featClass, attributes);
bool succeeded = editOperation.Execute(); When executing the editOperation fails, I have no information what went wrong, i.e. if I violated a unique key constraint. Is there a possibilty to get the error? Or is there a better way to write features to an Enterprise Geodatabase? Thanks, Barbara
... View more
03-13-2020
07:05 AM
|
0
|
1
|
3904
|
POST
|
Hi Sean, I haven't found any code to validate a topology. Is this not supported in the Pro SDK yet?
... View more
03-09-2020
09:11 AM
|
0
|
1
|
786
|
POST
|
ArcGIS Pro API is a DML-only (Data Manipulation Language) API, so all schema creation and modification operations need to be performed using the Geoprocessing API, which is quite slow. In our workflow, we perform a lot of schema creation operations. Are there any plans for the ArcGIS Pro API to become a DDL (Data Definition Language)?
... View more
03-09-2020
08:55 AM
|
0
|
1
|
516
|
POST
|
Hi Gintautas, thank you. Now I understand, I have to create an installer. I already have InstallShield Express installed.
... View more
03-03-2020
05:49 AM
|
0
|
0
|
1148
|
POST
|
Hi Gintautas, I'm not sure whether I understand your answer right. What I do now: - To install my managed configuration, I add an installation folder path in the registry in ConfigurationFolders. I then copy the file <MyConfig>.proConfigX to this installation folder. - To uninstall my managed configuration, I just manually delete the file <MyConfig>.proConfigX in this installation folder.
... View more
03-03-2020
05:16 AM
|
0
|
1
|
1148
|
Title | Kudos | Posted |
---|---|---|
1 | 09-20-2020 02:31 AM | |
12 | 03-06-2024 02:24 AM | |
2 | 02-28-2024 05:37 AM | |
1 | 01-08-2024 05:13 AM | |
1 | 12-22-2023 04:37 AM |
Online Status |
Offline
|
Date Last Visited |
3 weeks ago
|