POST
|
Hi Frédéric SCHETTINI , could you please share your data? I would like to test. You don't need to share the whole dataset - remove fields that I don't need for testing. Thanks, Nobbir (GP SDK Team)
... View more
06-29-2020
11:19 AM
|
0
|
1
|
996
|
POST
|
If you are in Geoprocessing world then you have to use Spatial Join for one-to-many option. Add Join doesn't have that option. GDB .Net SDK might have this option to get it done using PRo SDK - but I'm not knowledgeable of GDB SDK. I'll try to find out.
... View more
06-26-2020
01:05 PM
|
0
|
1
|
996
|
POST
|
If the layer to which records are joined is a Feature Class then you can persist by using Copy Features (management) tool - if it is a Table then you can use Copy (management) tool. You can save to scratch workspace if you set one in Analysis environment:
... View more
06-26-2020
12:23 PM
|
0
|
3
|
996
|
POST
|
There could be several ways to joining data based on spatial relationship. However, using the GP tool Spatial Join is simpler and gives more leverage. Here is a complete code snippet for running Spatial Join with ArcGIS Pro SDK: protected override async void OnClick() { var environments = Geoprocessing.MakeEnvironmentArray(overwriteoutput: true); var parameters = await QueuedTask.Run(() => { var target_feats = @"C:\\data.gdb\\Buildings"; var join_feats = @"C:\\data.gdb\\Points"; var output_feats = @"C:\\data.gdb\\Points_to_Poly"; var join_operation = "JOIN_ONE_TO_MANY"; var match_option = "INTERSECT"; // WITHIN, WITHIN_A_DISTANCE, CONTAINS etc var search_radius = "220 Feet"; var field_map = ""; // empty string means default field map that contains all the fields from target and join return Geoprocessing.MakeValueArray(target_feats, join_feats, output_feats, join_operation, "KEEP_ALL", field_map, match_option, search_radius); }); GPExecuteToolFlags flags = GPExecuteToolFlags.AddOutputsToMap | GPExecuteToolFlags.GPThread; var toolResult = await Geoprocessing.ExecuteToolAsync("SpatialJoin_analysis", parameters, environments, null, null, flags); Geoprocessing.ShowMessageBox(toolResult.Messages, "GP Messages", toolResult.IsFailed ? GPMessageBoxStyle.Error : GPMessageBoxStyle.Default); } Jeff King - we're in the process of bringing the tool syntax in SDK - like we have now for python for each tool.
... View more
06-26-2020
10:57 AM
|
1
|
2
|
365
|
POST
|
Hi Yu Luo, here are two topics that you can consult as to how to handle SDE data. https://desktop.arcgis.com/en/arcmap/latest/manage-data/gdbs-in-sql-server/geodatabase-locks.htm https://desktop.arcgis.com/en/arcmap/latest/manage-data/gdbs-in-sql-server/manage-geodatabase-locks.htm When you handle SDE data you need to be aware of whether data is locked or not. Delete will fail if you don't have proper permission to manipulate the data.
... View more
06-16-2020
12:33 PM
|
0
|
1
|
1738
|
POST
|
I'll investigate. Meanwhile, could you please share snippet of your code? Thanks, Nobbir GP Team.
... View more
06-15-2020
03:24 PM
|
0
|
4
|
1738
|
POST
|
As of now, the snippets show how to run "any" geoprocessing tool with some examples. It says to get the syntax from documentation or from Python examples and process using MakeEnvironmentArray. Not only you - we have heard from many other users who are confused like you We are working on documentation to provide C# examples for each tool in main tool documentation. For now, please get the tool syntax from the documentation. You can follow the pattern from tool doc with Python example. For example, Spatial Join's Python syntax is: SpatialJoin(target_features, join_features, out_feature_class, {join_operation}, {join_type}, {field_mapping}, {match_option}, {search_radius}, {distance_field_name}) all values can be passed as string - bundle them in MakeEnvironmentArray and pass the array to ExecuteToolAsync. You'll find some examples in the snippets section. We understand your confusion - we'll try to create c#-specific syntax as soon as possible. SDK team is working on it.
... View more
06-03-2020
10:59 AM
|
0
|
1
|
2149
|
POST
|
Our public documentation, samples and snippets are on public Github: Home · Esri/arcgis-pro-sdk Wiki · GitHub Once there, you'll see links for concept, snippets, and samples. At the top you'll find a link for Samples - GitHub - Esri/arcgis-pro-sdk-community-samples: ArcGIS Pro SDK for Microsoft .NET Framework Community Samples Clicking the link will take you to a public Github repo - if you clone the repo you'll get samples for all areas. Geoprocessing samples are in also there. Any geoprocessing tool follows a regular pattern - you'll find the pattern in the snippets and samples - namely: Please review that to refine your questions - I'll be able to take you from there Thanks for the question.
... View more
06-03-2020
08:47 AM
|
0
|
0
|
2149
|
POST
|
If you don't want to create a new layer (output), you'll have to transfer attributes (based on the chosen spatial relationship between two input feature classes) from Join Features to Target Features. But it's not always possible based on what parameter options you chose from all the other parameters. Spatial Join is a very versatile tool with many options to spatially compare two feature classes or layers. You can use any of the eighteen spatial relationship via the options provided by 'Match Option' parameter, such as, Intersect, Within, Contains, Closest, Within a Distance and whether to keep all or only relevant related features, and so on. Each of the relationship could limit the search by providing a Search Distance within which the relationship is sought for. The Join Operation parameter's 'Join one to many' option will create an output containing more records than the records in the Target Features - this will be little troublesome if you want to join fields from Join Features parameter to Target Features. Then there is the useful parameter called Field Mapping - (in Pro it's named Fields). You can add new fields and store values from multiple join or target features. You can have a totally new set of fields in the output - each of which can store values as set by the Field Map parameter. One way I can think of using Spatial Join to update/add/remove fields in Target Features (your first input) to use a Script Tool or Python script to capture all the values form both inputs and all other parameter values as set and internally update the Target Features. Or, you can elaborately state what's the purpose or goal of your project/exercise. You can also email me at nahmed@esri.com
... View more
05-06-2020
01:18 PM
|
1
|
0
|
1412
|
POST
|
So, you have two layers/feature classes and you want to join fields from one of the layers to the other, right? Could you please elaborate your goal? I can guess but it's be better to gather as much details as possible.
... View more
05-05-2020
10:24 AM
|
0
|
0
|
1412
|
POST
|
Hi Gintautas, we are in the process of adding Pro SDK C# snippets/examples along with Python examples. So, when you'll open a tool reference/help page you'll see one or more C# code examples. However, it may take some time - don't know the final schedule yet. Thanks again to the GeoNet community
... View more
04-24-2020
07:47 AM
|
0
|
2
|
1507
|
POST
|
Could you please share your data (or a slice of it)? I would like to test. Please send data to nahmed@esri.com
... View more
04-20-2020
10:05 AM
|
0
|
1
|
794
|
POST
|
In this youtube channel you'll find all presentations made during Developer Summit 2020: Esri 2020 Developer Summit Tech Sessions - YouTube Of the many presentations, I think the following one will help you most: https://www.youtube.com/watch?v=1HgPRTmNAOM&list=PLaPDDLTCmy4Ys8vfmC7DbX3FHSsyosvh7&index=17&t=186s Let me know how it goes. If you have any question please post it here.
... View more
04-16-2020
02:32 PM
|
0
|
1
|
1313
|
Title | Kudos | Posted |
---|---|---|
1 | 12-18-2019 03:56 PM | |
1 | 05-06-2020 01:18 PM | |
1 | 07-23-2021 10:33 AM | |
1 | 07-28-2020 09:10 AM | |
2 | 07-29-2020 08:24 AM |
Online Status |
Offline
|
Date Last Visited |
10-25-2021
03:13 PM
|