POST
|
Thank you for bringing this bug to our attention. We will fix it in Pro SDK 3.3.
... View more
Tuesday
|
0
|
0
|
14
|
POST
|
How about using the recycling cursor during the search as below? Dim rc As RowCursor = tblLayer.Search(qf, True) The recycling cursors offer performance advantages by allocating a single row object and rehydrating it on each fetch of reading data. They can be used to optimize read-only access.
... View more
Tuesday
|
0
|
0
|
8
|
POST
|
The CoreHost has access to two namespaces, ArcGIS.CoreHost and ArcGIS.Core, to work with the geodatabase and geometry classes. Therefore, ArcGISPortalManager is unavailable for the CoreHost app. However, you can call services from the CoreHost by registering a sign-on handler and resolving the credentials using the pattern described in ArcGIS.Core.System.Core.ArcGISSignOn with a complete authentication example illustrated in the ISignOnHandler interface.
... View more
Tuesday
|
0
|
0
|
45
|
POST
|
The DisableControllerWithEditOperation should create a dirty area, and calling ValidateNetworkTopologyInEditOperation should clean it so you don't see it.
... View more
2 weeks ago
|
0
|
1
|
152
|
POST
|
ArcGIS works with specific database management systems (DBMS) data types. Depending on the DBMS type, a field's precision, scale, or geometry type (Geometry vs ST_Geometry) may change. Some DBMSs don't support the field types that exist in another DBMS. File and mobile geodatabase data types are the same as ArcGIS data types. For DBMS, ArcGIS data types map to database data types and can differ depending on the DBMS. Here is the mapping table of supported field data types for each DBMS. Users should be responsible for creating a properly mapped schema before migrating data. With this mapping information, could you please tell us which field values/types are not copied from one environment to another?
... View more
2 weeks ago
|
1
|
1
|
63
|
POST
|
For data insert, have you looked into the insert cursor? For further details, please refer to the conceptual doc.
... View more
2 weeks ago
|
0
|
3
|
81
|
POST
|
For data insert, have you looked into the insert cursor? For further details, please refer to the conceptual doc.
... View more
2 weeks ago
|
0
|
0
|
59
|
POST
|
Refer to- https://community.esri.com/t5/arcgis-pro-sdk-questions/obtaining-featureclass-names-from-sde-file-path/m-p/1393344/highlight/true#M11215
... View more
03-08-2024
10:48 AM
|
1
|
0
|
113
|
POST
|
In ArcGIS, user accounts determine who owns what data. User accounts also provide a way to control what type of access a person or client application has to a database or geodatabase and its datasets. ArcGIS generally recommends that the owner and schema have matching names. The Catalog UI does the following - // Get the currently logged user
DatabaseConnectionProperties connectionProperties= geodatabase.GetConnector() as DatabaseConnectionProperties;
string user = connectionProperties.User;
// Filter feature classes based on the user
IReadOnlyList<FeatureClassDefinition> featureClassDefinitions = geodatabase.GetDefinitions<FeatureClassDefinition>();
List<FeatureClassDefinition> filteredDefinitions = featureClassDefinitions.Where(def =>
{
SQLSyntax sqlSyntax = geodatabase.GetSQLSyntax();
(string dbName, string ownerName, string tableName) = sqlSyntax.ParseTableName(def.GetName());
return ownerName == user;
}).ToList(); If you find something else, please log a bug from tech support for further investigation.
... View more
03-08-2024
10:45 AM
|
0
|
1
|
190
|
POST
|
I am presuming that you are trying to find the connected user. DatabaseConnectionProperties connectionProperties= geodatabase.GetConnector() as DatabaseConnectionProperties;
string user = connectionProperties.User; DatabaseConnectionProperties
... View more
03-07-2024
06:50 AM
|
0
|
3
|
226
|
POST
|
The following should work. Could you pls try? The SQLSyntax parses the fully qualified dataset name to the db, owner, and dataset names. IReadOnlyList<FeatureClassDefinition> featureClassDefinitions = geodatabase.GetDefinitions<FeatureClassDefinition>();
List<FeatureClassDefinition> filteredDefinitions = featureClassDefinitions.Where(def =>
{
SQLSyntax sqlSyntax = geodatabase.GetSQLSyntax();
(string dbName, string ownerName, string tableName) = sqlSyntax.ParseTableName(def.GetName());
return ownerName == "your_owner_name";
}).ToList();
... View more
03-06-2024
02:55 PM
|
1
|
6
|
252
|
POST
|
Hi @TimSexton1 The joined table doesn't have a data store; by design, part of it can be from two different data stores. There are two ways to get the data store info from a map member: first, directly from the feature layer using the CIM connection, featurelayer.GetDataConnection(), and second, from the feature class, as you have written. However, in both cases, you need to check for any existing joins on a member and tell SDK explicitly which data store you are referring, origin or destination. If no joins exist, it always points to the source. Using feature class: // GetDefinitionFromLayer - This code works even if the layer has a join to another table
private TableDefinition GetDefinitionFromLayer(FeatureLayer featureLayer)
{
// Get feature class from the layer
FeatureClass featureClass = featureLayer.GetFeatureClass();
// Determine if feature class is a join
if (featureClass.IsJoinedTable())
{
// Get join from feature class
Join join = featureClass.GetJoin();
// Get origin table from join
Table originTable = join.GetOriginTable();
// Return feature class definition from the join's origin table
return originTable.GetDefinition();
}
else
{
return featureClass.GetDefinition();
}
} Using feature layer: CIMRelQueryTableDataConnection cim = featureLayer.GetDataConnection() as CIMRelQueryTableDataConnection;
CIMStandardDataConnection sourceTable = cim.SourceTable as CIMStandardDataConnection ;
WorkspaceFactory wsFactory = sourceTable.WorkspaceFactory;
string path = sourceTable.WorkspaceConnectionString;
path = path.Replace("DATABASE=", "");
string datasetSetName = sourceTable.Dataset;
if (wsFactory == WorkspaceFactory.FileGDB)
{
Geodatabase geodatabase = new Geodatabase(new FileGeodatabaseConnectionPath(new Uri(path, UriKind.Absolute)));
FeatureClass featureClass = geodatabase.OpenDataset<FeatureClass>(datasetSetName);
FeatureClassDefinition featureClassDefinition = featureClass.GetDefinition();
}
... View more
03-06-2024
12:08 PM
|
0
|
2
|
165
|
POST
|
If possible, could you please post the sample data to help us reproduce the issue? Thank you.
... View more
03-05-2024
06:26 AM
|
0
|
0
|
95
|
POST
|
@sumalain1 , it seems like the catalog's view-only behavior for the owner, and the API shows everything the user has access to.
... View more
02-29-2024
07:30 AM
|
0
|
2
|
179
|
Title | Kudos | Posted |
---|---|---|
1 | 2 weeks ago | |
1 | 03-08-2024 10:48 AM | |
1 | 03-06-2024 02:55 PM | |
2 | 01-28-2024 05:23 PM | |
1 | 10-18-2023 01:27 PM |