|
POST
|
The first thing I would do is to try hard-coding an assignment to the DEPOTAREA field in code. E.g., insp["DEPOTAREA"] = "value here"; Where "Value here" is a valid domain code for the depot area field. I *think* the code is crashing on this assignment, not inside GetIntersectingField(), but this would confirm it. Then I would check to make sure there is a field called DEPOTAREA in the result, and that the index of the field makes sense.
... View more
10-17-2018
10:55 AM
|
0
|
18
|
3713
|
|
POST
|
Hi Brian, I've been working on this with Uma Harano. When you create a Join between two different workspaces, the join has to be computed client-side, so you cannot get a Definition from it. When both tables exist in the same workspace, sometimes the underlying database can create a database View, which we can use to create a definition. There is another routine that might help you- BasicFeatureLayer.GetFieldDescriptions() facID_field = currentLayer.GetFieldDescriptions().Any(f => f.Alias == "FACILITYID"); Should help you with the specific answer you have listed above. I hope this helps, --Rich
... View more
10-16-2018
11:36 AM
|
2
|
1
|
3713
|
|
POST
|
James, This will be fixed in Pro 2.3, expected early 2019. --Rich
... View more
10-16-2018
08:43 AM
|
0
|
2
|
2314
|
|
POST
|
The Pro SDK does not support DDL (data definition language) tasks such as adding fields or creating feature classes. You need to use Python or geoprocessing to perform these operations.
... View more
10-08-2018
08:55 AM
|
1
|
0
|
1002
|
|
POST
|
Michelle-- Ah, ok. This is the software development kit forum. I think if I tag ArcGIS Pro they will see it, but you might also try posting it at the Ask ArcGIS Pro section of GeoNet.
... View more
10-04-2018
09:21 AM
|
0
|
3
|
3960
|
|
POST
|
Michelle, Are you trying to do this with the ArcGIS Pro user interface or with C# code? If you're doing it with C# code, what classes are you trying to use? Thanks, --Rich
... View more
10-04-2018
09:04 AM
|
0
|
5
|
3960
|
|
POST
|
Hi Michelle, Could you please provide a code snippet showing what you are trying to accomplish? Thanks, --Rich
... View more
10-03-2018
12:16 PM
|
0
|
7
|
3960
|
|
POST
|
I've been investigating this issue. Are you using the Pro SDK (i.e., Table.Search(QueryFilter)) to execute this query, or going directly against the REST endpoint? What is your underlying database type? Thanks, --Rich
... View more
10-02-2018
11:47 AM
|
0
|
1
|
904
|
|
POST
|
My example shown above will only load a subset of data from the database. In fact, it will only fetch those rows that appear within the current map extent (or close to it) *and* meet the query criteria.
... View more
09-26-2018
09:14 AM
|
0
|
0
|
2368
|
|
POST
|
CIMSqlQueryDataConnection isn't designed to be used like this. Your best bet to show a subset of features in a layer is to use FeatureLayer.SetDefinitionQuery (http://prodev.arcgis.com/en/pro-app/sdk/api-reference/#topic11393.html). These's an example showing how to use this here: ProConcepts Map Authoring · Esri/arcgis-pro-sdk Wiki · GitHub --Rich
... View more
09-25-2018
12:15 PM
|
0
|
2
|
2368
|
|
POST
|
Thomas, My apologies for not answering this earlier. I spent some time investigating this today. As currently implemented, the OpenRelationshipClass() method only works with feature service databases. We will review this implementation in a future release to see if we can extend it to cover additional database types. And we’ll definitely clarify the documentation as soon as possible. To open a relationship class with an SDE or file geodatabase, you need to use the Geodatabase.OpenDataset<RelationshipClass> method, passing in the name of the relationship class. If you don’t know the name of the relationship class you can find it and open it up using code like the following: IReadOnlyList<RelationshipClass> OpenRelationshipClass(Geodatabase geodatabase, string originClassName,
string destinationClassName)
{
List<RelationshipClass> relationshipClasses = new List<RelationshipClass>();
IReadOnlyList<RelationshipClassDefinition> relationshipClassDefinitions = geodatabase.GetDefinitions<RelationshipClassDefinition>();
foreach (RelationshipClassDefinition relationshipClassDefinition in relationshipClassDefinitions)
{
if (relationshipClassDefinition.GetOriginClass() == originClassName && relationshipClassDefinition.GetDestinationClass() == destinationClassName)
{
relationshipClasses.Add(geodatabase.OpenDataset<RelationshipClass>(relationshipClassDefinition.GetName()));
}
relationshipClassDefinition.Dispose();
}
return relationshipClasses;
} I hope this helps, --Rich
... View more
09-14-2018
04:39 PM
|
2
|
0
|
2642
|
|
POST
|
Drew, I don't entirely understand the code fragment above, but based on my limited understanding I have two suggestions that might help. 1. CreateChainedOperation() is used when you need to use information from one operation to feel another, and you want to create a single item on the Pro operation stack. I don't see this happening here. It looks safe to delete that line of code. 2. I would move the call to createOperation.Execute() out of both loops. You're left with a. Create an edit operation using new EditOperation() b. step through your loop, creating points that are within the block polygon using EditOperation.Create() c. Call to EditOperation.Execute(), which should create all of your points at once Let me know if this works for you, --Rich
... View more
09-14-2018
12:31 PM
|
0
|
0
|
3256
|
|
POST
|
Drew, Could you share some of the code showing how you are editing the features? Are you using the EditOperation class, an edit operation callback, or using the low-level geodatabase editing routines? What kind of data source are you editing? (File gdb, shape file, sde, etc.) Thanks, --Rich
... View more
09-14-2018
09:20 AM
|
0
|
2
|
3256
|
|
POST
|
This should be fixed in ArcGIS Pro 2.3 (anticipated early 2019).
... View more
09-12-2018
11:16 AM
|
0
|
2
|
2535
|
|
POST
|
We can reproduce this in-house and will do more investigation.
... View more
08-27-2018
05:15 PM
|
0
|
0
|
2535
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 12-13-2024 11:22 AM | |
| 2 | 01-29-2026 09:34 AM | |
| 2 | 01-28-2026 08:20 AM | |
| 1 | 12-10-2025 09:15 AM | |
| 2 | 11-30-2025 12:23 PM |
| Online Status |
Offline
|
| Date Last Visited |
Friday
|