|
POST
|
Bill, A couple of question - what type of attributes do you have on the feature class? Maybe one of them is the problem. What happens if you set the SubFields on your spatial query filter to just be ObjectId, Shape? Do you see the same problem if you pass null to the Table.Search? that is you're iterating through all records rather than those that match your spatial filter? Finally, if you reorganize your code so that the cursor iteration occurs immediately after the search, do you still see the same problem? You should also wrap your OpenDataset and Search methods in a using statement. for example see this snippet as a suggestion of how to iterate. We generally don't recommend caching objects such as RowCursors. https://github.com/Esri/arcgis-pro-sdk/wiki/ProSnippets-Geodatabase#searching-a-table-using-queryfilter Let me know if these suggestions don't help to track down your issue. If you're still having problems, maybe we can get your data for further investigation. Narelle
... View more
05-14-2020
03:55 PM
|
1
|
0
|
1342
|
|
POST
|
Bill, A couple of suggestions - check the byte buffer length - maybe it is 0. Also is the textureMap a JPEGTexture or an UncompressedTexture? Narelle
... View more
05-14-2020
03:46 PM
|
1
|
0
|
1056
|
|
POST
|
Hello, Unfortunately when configuring a Task, all layers and feature classes that you wish to reference need to already exist in your project. As an example, there is no way to configure a task to execute the GP Buffer tool in one step and then in the following step manipulate the output of that Buffer tool. Regards Narelle
... View more
04-02-2020
02:55 PM
|
0
|
2
|
2146
|
|
POST
|
Hi Stephan, You can definitely hide this toolbar or even replace it with your own toolbar. Look at the ContextToolbarID property on the MapTool class. If you want to remove the toolbar, set this property to the empty string. public ConstructionTool1()
{
IsSketchTool = true;
UseSnapping = true;
SketchType = SketchGeometryType.Line;
UsesCurrentTemplate = true;
ContextToolbarID = "";
//ContextMenuID = "";
} You might want to also take a look at the ContextMenuID property which provides the right click context menu for sketching tools. The default context menu has many similar options for sketching curves. If you want some of the tools to appear you can build your own toolbar in daml and then reference your toolbar damlId Here is the default toolbar from the editing daml file that is used by sketching tools. <miniToolbar id="esri_editing_SegmentSketchContextToolbar">
<row>
<button refID="esri_editing_LineConstructor"/>
<buttonPallete refID="esri_editing_LinePalette"/>
<buttonPallete refID="esri_editing_ArcConstructorPalette"/>
<button refID="esri_editing_TraceConstructorPalette"/>
<button refID="esri_editing_StretchVertices" separator="true" />
<button refID="esri_editing_FinishSketch" separator="true"/>
<button refID="esri_editing_ClearSketch" />
</row>
</miniToolbar> You could build your own which references the first and last two buttons and then reference it in your tool constructor. For example <miniToolbar id="mySketchContextToolbar">
<row>
<button refID="esri_editing_LineConstructor"/>
<button refID="esri_editing_FinishSketch" separator="true"/>
<button refID="esri_editing_ClearSketch" />
</row>
</miniToolbar>
public ConstructionTool1()
{
IsSketchTool = true;
UseSnapping = true;
SketchType = SketchGeometryType.Line;
UsesCurrentTemplate = true;
ContextToolbarID = "mySketchContextToolbar";
//ContextMenuID = "";
} Let me know if you have more questions. Regards Narelle
... View more
03-27-2020
09:35 AM
|
2
|
1
|
2321
|
|
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
|
1505
|
|
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
|
2902
|
|
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
|
2278
|
|
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
|
3372
|
|
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
|
2278
|
|
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
|
2895
|
|
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
|
2895
|
|
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
|
2284
|
|
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
|
2284
|
|
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
|
1882
|
|
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
|
1694
|
| 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 |
2 weeks ago
|