|
POST
|
Hi, Unfortunately those methods from IMSegmentation2 are not currently in the GeometryEngine API. There are other methods on that interface that are also missing. We do have an issue for this in our backlog already and hope to complete this for the 2.6 release of ArcGIS Pro. Regards Narelle
... View more
03-17-2020
01:55 PM
|
2
|
2
|
1156
|
|
POST
|
Hi Lars, As you found, GML 2.0 format is not currently supported in the Pro API. I also don't have knowledge of the GDAL libraries you are using to create a shapefile, but I would check the following. Firstly a shapefile is composed of at least 3 files; a .shp, a .shx and a .dbf file. You need to make sure that all three of these files are created. Secondly I would attempt to load the output shapefile into ArcMap or ArcGIS Pro to ensure that you have geometries, and that the geometries match what you expect from your source data. After this you will need to read the shapefile. Rather than using the ImportFromEsriShape function (which does not work on an entire shapefile but on a feature by feature basis), you should use the geodatabase API which is available in ArcGIS.Core.Data to connect to the shapefile. Here is a snippet that should help https://github.com/Esri/arcgis-pro-sdk/wiki/ProSnippets-Geodatabase#opening-a-featureclass-from-a-shapefile-datastore Once you have the shapefile feature class open you should be able to use a search cursor to obtain all the rows and iterate through to obtain the geometries. I hope this helps. Let me know if you have additional questions. Regards Narelle
... View more
03-13-2020
02:05 PM
|
2
|
1
|
2459
|
|
POST
|
Brian, The best place to always look for information regarding the new release would be the Wiki page of the ArcGIS Pro SDK repo Home · Esri/arcgis-pro-sdk Wiki · GitHub Narelle
... View more
03-04-2020
10:31 AM
|
3
|
0
|
1847
|
|
POST
|
Hi Jeff, Yes I can confirm that there are bugs with this control when using custom spatial references. One in that the event does not fire when a custom spatial reference is selected. There is also another problem in that custom spatial references are not always displayed correctly when there are multiple items in the Favorites (they seem to display an incorrect name in the dialog, however selecting them and clicking the Details hyperlink shows the correct information). Thanks for letting us know about these issues. I will add bugs to our system and will look at getting them fixed for ArcGIS Pro 2.6. Narelle
... View more
03-04-2020
09:43 AM
|
0
|
8
|
2479
|
|
POST
|
Brian, Make sure your Visual Studio project targets the .Net Framework 4.8. That is likely to be the problem. Narelle
... View more
03-04-2020
09:26 AM
|
2
|
3
|
1847
|
|
POST
|
The sample has been added to the Community Samples located here arcgis-pro-sdk-community-samples/Editing/Inspector_AddAttributeAsync at master · Esri/arcgis-pro-sdk-community-samples ·…
... View more
11-15-2019
01:13 PM
|
1
|
0
|
2225
|
|
POST
|
Daniel, Here's a sample that illustrates how to use the AddAttributeAsync method. It contains a single tool which displays a grid requesting attribute values from the user. After entering values into the grid, the user is required to sketch a rectangle to identify features. The attributes entered will then be applied to the features identified. A couple of things to note. The sample is written to work in conjunction with the 'Interacting With Maps.aprx' from the Community Samples Data. It works specifically with the Police Stations layer in that project. In the sample I have added 2 attributes from a single layer into the inspector. However, there is no reason why you cannot have multiple attributes from multiple layers in the inspector at one time. It just depends on your purpose. As an example, Create Features only works with attributes from a single layer, whereas Tasks (in the GetAttributes action) allows attributes from multiple layers to be in the inspector grid at one time. The sample also illustrates the validation of the attributes via the Attribute.AddValidate routine. This is how the red border outline appears. Obviously if no errors are returned, (or no Validation occurs) the attribute is deemed to be valid. Let us know if you have any further questions or if you have trouble accessing this zip / sample. You may need to re-reference the ArcGIS dlls in the project according to your install location. I will also get this posted to the Pro SDK Community Samples github repository. Thanks Narelle
... View more
11-15-2019
11:19 AM
|
3
|
0
|
2225
|
|
POST
|
Thomas, That particular context menu is defined by esri_mapping_popupToolContextMenu It can be found in the mapping daml file arcgis-pro-sdk/ADMapping.daml.xml at master · Esri/arcgis-pro-sdk · GitHub
... View more
10-24-2019
08:52 AM
|
1
|
0
|
1678
|
|
POST
|
Thomas, take a look at this sample arcgis-pro-sdk-community-samples/Framework/InsertIntoContextMenu at master · Esri/arcgis-pro-sdk-community-samples · Git… The config.daml file illustrates how to update an existing context menu. Look at the <updateModule> section You will need to find the correct daml-ID for the menu you are interested in modifying.
... View more
10-23-2019
11:33 AM
|
1
|
4
|
1678
|
|
POST
|
Hi Greg, No, there is no color picker control in the Pro SDK. Thanks Narelle
... View more
10-08-2019
04:07 PM
|
1
|
0
|
1622
|
|
POST
|
Actually the exceptions on GetAllObjectIDs, GetSelectedObjectIDs, GetSelectedRowIndexes and Select methods should have been fixed in ArcGIS Pro 2.3.2. These methods should also work correctly in ArcGIS Pro 2.4 If you are using ArcGIS Pro 2.3, please upgrade to the latest service pack. It is currently Pro 2.3.3 I believe. If you are still seeing these errors using Pro 2.3.2 or above please post and so that we can investigate further. Regards Narelle
... View more
10-04-2019
02:36 PM
|
1
|
1
|
1210
|
|
POST
|
Hi David, The Add To Favorites, Remove From favorites menuitems are buttons we have written to add or remove the highlighted Edit tool from the Editing Tools Favorites group. Rather than placing them on the ribbon we have written them as a context driven button and use them within a dynamic menu object showing or hiding the appropriate menu item according to the whether the gallery item clicked on is in the favorites group. The gallery template we use for displaying the items has a standard WPF Grid control which uses the ContextMenu property to bind to this dynamic menu object. You could implement the exact same mechanism with your custom gallery. If you're not familiar with dynamic menus, here is a sample that illustrates the concept of dynamic menus arcgis-pro-sdk-community-samples/Framework/DynamicMenu at master · Esri/arcgis-pro-sdk-community-samples · GitHub Re your second question - can gallery items belong to more than one group. No, they cannot. If you want your gallery item to belong to a second group, then you will need to create a new gallery item with the same properties apart from the Group Name and add it to your gallery collection. I will make a note to update the Gallery sample to illustrate the concepts you've been asking about. That sample was originally written in 2017 so it's a few years old now. Hope this helps. Feel free to ask more questions if you get stuck. Narelle
... View more
09-05-2019
01:20 PM
|
0
|
0
|
1190
|
|
POST
|
Hi Martin, Try iterating through the geometries in the geometrybag, calling the Extent property on each, adding all the extents into a List<Geometry> Then use the GeometryEngine.Instance.Union method. Assuming all your geometries in the bag are of the same spatial reference this should work. I'll add an issue to make sure we look at adding an implementation for the GeometryBag.Extent function. Thanks Narelle
... View more
09-05-2019
12:31 PM
|
0
|
2
|
1679
|
|
POST
|
Carsten, Thanks for posting this question. We have found that there's a bug with using the EditOperation.Modify(Row ...) methods followed by other EditOperation methods. We will be fixing this in the next version of the software. In the meantime, what you have determined is an acceptable workaround. You could also implement the following without needing to subscribe to the RowChanged event. There is no problem with the EditOperation.Modify(layer, oid, ... ) methods. while (rowCursor.MoveNext()) { var feature = (Feature)rowCursor.Current; var geomTest = feature.GetShape(); if (geomTest != null) { var geomProjected = GeometryEngine.Instance.Project(geometry, geomTest.SpatialReference); // we are looking for polygons that are completely intersected by the cut line if (GeometryEngine.Instance.Relate(geomProjected, geomTest, "TT*F*****")) { oids.Add(rowCursor.Current.GetObjectID()); } } } var atts = new Dictionary<string, object>(); atts.Add("FSK", "MyNewFKZ"); foreach (var oid in oids) cutOperation.Modify(layer, oid, atts); cutOperation.Split(layer, oids, geometry); var operationResult = cutOperation.Execute(); Thanks Narelle
... View more
08-23-2019
10:07 AM
|
0
|
0
|
1814
|
|
POST
|
The "All Tools" option in the Edit gallery is written specifically to open the Modify Features pane and show the System Tools tab. It is not written in a way that depends on, or has a connection to the items in the gallery. If you have a gallery of your own objects (that are not Pro editing tools), then your version of "All Tools" could do a similar thing in displaying a dockpane with those items, but that dockpane and the way it displays the content is something you would have to write yourself. Narelle
... View more
08-21-2019
09:47 AM
|
0
|
1
|
1190
|
| Title | Kudos | Posted |
|---|---|---|
| 2 | 07-27-2025 06:04 PM | |
| 1 | 03-24-2025 06:53 PM | |
| 1 | 08-08-2024 09:44 PM | |
| 1 | 07-18-2024 04:46 PM | |
| 1 | 06-04-2024 07:18 PM |
| Online Status |
Offline
|
| Date Last Visited |
11-02-2025
02:15 PM
|