|
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
|
709
|
|
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
|
1965
|
|
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
|
1965
|
|
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
|
1965
|
|
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
|
558
|
|
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
|
1568
|
|
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
|
1568
|
|
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
|
1782
|
|
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
|
2187
|
|
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
|
2187
|
|
POST
|
This should be fixed in ArcGIS Pro 2.3 (anticipated early 2019).
... View more
09-12-2018
11:16 AM
|
0
|
2
|
1662
|
|
POST
|
We can reproduce this in-house and will do more investigation.
... View more
08-27-2018
05:15 PM
|
0
|
0
|
1662
|
|
POST
|
He's asking about the Table.CalculateStatistics() method in the C# API, not about a geoprocessing tool.
... View more
08-21-2018
02:31 PM
|
0
|
0
|
1082
|
|
POST
|
While there is no direct way to call CalculateStatistics on a Selection object, you might be able to do what you want for this particular instance. Instead of calling Layer.Select(yourSpatialQuery), you can get the underlying Table from the layer (e.g., BasicFeatureLayer.GetTable()). Then you could call Table.CalculateStatistics() on that underlying table, setting TableStatisticsDescription.QueryFilter equal to yourSpatialQuery. --Rich
... View more
08-21-2018
12:07 PM
|
0
|
0
|
710
|
|
POST
|
Hi Mike, There is no direct way to do this. The best solution at this point is to create a temporary table from your selection using geoprocessing tools and use that to run Table.CalculateStatistics(). (I already answered in another thread, but wanted to duplicate the answer here in case others see it) --Rich
... View more
08-21-2018
11:41 AM
|
0
|
0
|
3081
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | Wednesday | |
| 2 | 2 weeks ago | |
| 1 | 07-17-2025 08:47 AM | |
| 1 | 08-12-2022 01:35 PM | |
| 1 | 06-28-2018 04:25 PM |
| Online Status |
Offline
|
| Date Last Visited |
yesterday
|