|
POST
|
I'm trying to save an annotation layer into an aprx with an enterprise geodatabase connection without saving the password. When I close and reopen the aprx the annoation layer has a red exclamation. Can somebody confirm this behavior? Steps to recreate: New database connection (Oracle/Postgres, Database authentication) Enter username and password Uncheck Save User/Password Connect Add annotation feature class (newly created by ArcGIS Pro 2.6) to a map Save and close the project. Upon reopening the project enter username/password when prompted. The annotation layer comes up with the red exclamation (click to repair layers datasource).
... View more
08-19-2020
02:00 PM
|
0
|
1
|
750
|
|
IDEA
|
This was first reported to me before 2.5, although you show it working at 2.3. I finally tried it at 2.5.1 and it didn't work. I look forward to seeing it working in a future release.
... View more
05-14-2020
12:32 PM
|
1
|
0
|
1851
|
|
IDEA
|
In the attributes pane when you hover over a column name a tool-tip of the field definition is displayed. This is not helpful to editors as it covers up the values. It would be nice if this feature could be toggled off.
... View more
05-14-2020
08:02 AM
|
29
|
12
|
3388
|
|
IDEA
|
When long text is presented in the attributes pane it will be trimmed to the width of the pane (first image). To see the contents you have to click into the field (second image). It would better to have the text show up like the second image without clicking into it. A hover tooltip would also be acceptable.
... View more
05-14-2020
07:46 AM
|
9
|
4
|
1935
|
|
POST
|
Thanks for the prompt responses. I spend more time today trying to find out what’s happening. I can create features in the UI with no issues I copied some features to a file gdb and the code works. I have been able to use the EditOperation.Duplicate and EditOperation.Update successfully on the same the enterprise sde feature class The error message reported is “Edit Operation failed” It’s just when I use EditOperation.Create against enterprise sde classic versioning that it fails. There are attribute rules I will disable them and try this tomorrow. Any other suggestions would be helpful?
... View more
04-21-2020
09:04 PM
|
0
|
0
|
1349
|
|
POST
|
https://github.com/Esri/arcgis-pro-sdk/wiki/ProSnippets-Editing#create-feature-from-a-modified-inspector I copied this code and ran it against a versioned feature class in enterprise sde (Oracle 12.1). It fails with "Edit operation failed." as the edit operation error message. I'm trying to take the selected feature make a copy and update some attributes is this the best way? Should I try some other method? ArcGIS.Desktop.Framework.Threading.Tasks.QueuedTask.Run(() =>
{
var insp = new ArcGIS.Desktop.Editing.Attributes.Inspector();
var layer = ArcGIS.Desktop.Mapping.MapView.Active.Map.FindLayers("WATERLINE").FirstOrDefault() as BasicFeatureLayer;
insp.Load(layer, 364323);
// modify attributes if necessary
// insp["Field1"] = newValue;
insp["STATUS"] = 9;
//Create new feature from an existing inspector (copying the feature)
var createOp = new ArcGIS.Desktop.Editing.EditOperation();
createOp.Name = "Create from insp";
createOp.Create(insp.MapMember, insp.ToDictionary(a => a.FieldName, a => a.CurrentValue));
createOp.Execute();
});
... View more
04-20-2020
05:18 PM
|
0
|
4
|
1409
|
|
POST
|
It appears that this has been confirmed as a bug BUG-000124734: In ArcGIS Pro, the Sort Coded Value Domain tool fail..
... View more
03-31-2020
12:39 PM
|
1
|
0
|
797
|
|
POST
|
I have attempted to use the Sort Coded Value Domain geoprocessing tool using by description but it sorts by code every time. Using ArcGIS Pro 2.5.0, Oracle 12.1 enterprise sde. Can anyone confirm this behavior?
... View more
03-19-2020
04:50 PM
|
0
|
1
|
891
|
|
POST
|
Yes I am using traditional versioning and yes currently only working with direct children of default. I finally think I see what's happening using (DifferenceCursor differenceCursor = defaultFc.Differences(versionFc, differenceType)) As Default "hey version what changes do I have that you don't know about" (everything you haven't reconciled yet plus your updates) What I want to do is As Version "hey Default what changes do I have that you don't know about" (everything changed in the version but haven't post): using (DifferenceCursor differenceCursor = versionFc.Differences(defaultFc, differenceType))
... View more
01-22-2020
09:19 AM
|
1
|
1
|
5046
|
|
POST
|
I've added this code after line 8: var rd = new ReconcileDescription
{
WithPost = false
};
version.Reconcile(rd);
I am now consistently getting the correct updates but not any inserts or deletes. The primary database is Oracle 12.1. I have also confirmed that it behaves the same in postgres 11.2
... View more
01-14-2020
12:27 PM
|
0
|
0
|
5046
|
|
POST
|
Created a support case for this and it was a known issue. Expected to be fixed in 2.5.
... View more
01-14-2020
09:56 AM
|
0
|
3
|
2422
|
|
POST
|
Get the version from the first feature layer in the TOC and feature class names from all feature layers in the TOC public List<VersionChanges> GetChanges(Version version, List<string> featureclassnames)
{
List<VersionChanges> retval = new List<VersionChanges>();
using (Geodatabase versiongdb = version.Connect())
{
var defaultversion = versiongdb.GetVersionManager().GetVersions().First(v => v.GetParent() == null);
using (Geodatabase g = defaultversion.Connect())
{
foreach (var item in featureclassnames)
{
var versionchanges = GetVersionChangesByFeatureClass(g, versiongdb, item);
if (versionchanges != null)
retval.Add(versionchanges);
}
}
}
return retval;
}
private VersionChanges GetVersionChangesByFeatureClass(Geodatabase g, Geodatabase versiongdb, string featureclassname)
{
try
{
using (FeatureClass defaultFc = g.OpenDataset<FeatureClass>(featureclassname))
{
using (FeatureClass versionFc = versiongdb.OpenDataset<FeatureClass>(featureclassname))
{
var rtype = versionFc.GetRegistrationType();
if (rtype.Equals(RegistrationType.Nonversioned))
return null;
List<VersionChange> diffs = GetAllDifferences(defaultFc, versionFc);
return new VersionChanges { featureClassName = featureclassname, Changes = diffs };
}
}
}
catch (GeodatabaseEnterpriseException)
{
//Table is not versioned
return null;
}
catch (GeodatabaseTableException)
{
//Table not found
return null;
}
}
//https://github.com/esri/arcgis-pro-sdk/wiki/ProConcepts-Geodatabase#versioning
private List<VersionChange> GetAllDifferences(FeatureClass defaultFc, FeatureClass versionFc)
{
List<VersionChange> retval = new List<VersionChange>();
retval.AddRange(GetDifferences(defaultFc, versionFc, DifferenceType.DeleteNoChange));
retval.AddRange(GetDifferences(defaultFc, versionFc, DifferenceType.DeleteUpdate));
retval.AddRange(GetDifferences(defaultFc, versionFc, DifferenceType.Insert));
retval.AddRange(GetDifferences(defaultFc, versionFc, DifferenceType.UpdateDelete));
retval.AddRange(GetDifferences(defaultFc, versionFc, DifferenceType.UpdateNoChange));
retval.AddRange(GetDifferences(defaultFc, versionFc, DifferenceType.UpdateUpdate));
return retval;
}
private List<VersionChange> GetDifferences(FeatureClass defaultFc, FeatureClass versionFc, DifferenceType differenceType)
{
List<VersionChange> retval = new List<VersionChange>();
using (DifferenceCursor differenceCursor = defaultFc.Differences(versionFc, differenceType))
{
List<long> diffs = new List<long>();
while (differenceCursor.MoveNext())
{
diffs.Add(differenceCursor.ObjectID);
}
retval.AddRange(diffs.Select(s => new VersionChange { objectId = s, differenceType = differenceType }));
}
return retval;
}
public class VersionChange
{
public DifferenceType differenceType { get; set; }
public long objectId { get; set; }
}
public class VersionChanges
{
public string featureClassName { get; set; }
public List<VersionChange> Changes {get;set;}
}
... View more
01-06-2020
08:52 AM
|
0
|
5
|
5046
|
|
POST
|
ArcGIS Pro version is 2.4.3 and SDE for .NET version 2.4.0.19948. A couple of months ago I asked about using ArcGIS Pro sdk to Get all edits in a version. I'm testing this code against and Oracle 12.1 database and I'm seeing invalid results. In the image below the OOTB version changes tool is showing 13 edits in the current version. I ran my code with and selected by objectid each layer on the map and I get 8 changes in the version (updates only). Is there something different that needs to be done to get the objectids of Deletes/Updates? I tried a second example version this time it OOTB tool shows 1 edit and I get 106,067 changes in the version. My assumption that a reconcile might help this and it does, after reconcile it correctly shows the one edit. Question two is it expected that I would add code to reconcile before checking for changes? The SDK WIKI doesn't mention that it might be necessary to reconcile. TIA, Jimmy
... View more
01-02-2020
05:03 PM
|
0
|
7
|
5258
|
|
POST
|
Using ArcGIS Pro 2.4.3. I'm attempting to create a project package that is connected to an enterprise database (Oracle or postgres). The aprx was created with no user/password saved, so that credentials have to be entered each time the aprx is opened. When I attempt to publish this project I am prompted for a Database connection username and password as expected. When I enter a username and password and hit Ok, a new Database dialog comes up (this continues every time I hit ok. If I cancel a message saying "Failed to connect to the specified server." Then the Share Project Package fails. I checked the logs on our postgres server and it doesn't seem to even try to connect. On a co workers machine the Database connection dialog doesn't come up but the process fails. Error message: ERROR 001707: Data cannot be opened: SDE(SERVER=development;INSTANCE=sde:oracle11g:development;DBCLIENT=oracle;DB_CONNECTION_PROPERTIES=development;PROJECT_INSTANCE=sde;VERSION=SDE.DEFAULT;AUTHENTICATION_MODE=DBMS) Should we be able to create a project package without storing a username and password? arcgispro 2.4 project package
... View more
01-02-2020
01:48 PM
|
2
|
5
|
2593
|
|
POST
|
The issue in the Oracle instance where this failed to work was that there was a version set to public but it's parent was set to private. When the version manager is opened in ArcGIS Pro this version was marked red and version tools would not behave until this issue was cleared up.
... View more
11-18-2019
01:42 PM
|
1
|
1
|
2659
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 02-07-2023 04:56 PM | |
| 1 | 03-19-2025 03:48 PM | |
| 11 | 03-19-2025 04:45 PM | |
| 2 | 09-17-2024 10:47 AM | |
| 5 | 02-08-2024 09:04 AM |
| Online Status |
Offline
|
| Date Last Visited |
a week ago
|