|
POST
|
Absolutely! Just use a NetworkAttributeComparison object instead. You can use the And and Or classes to combine multiple tests together. Depending on what you are trying to do, you'd add it to the Traversability, Filter, or OutputCondition properties of TraceConfiguration. --Rich
... View more
09-01-2020
03:58 PM
|
0
|
0
|
1892
|
|
POST
|
Hi Kieren, You do this by creating a CategoryComparison object, and setting it in the TraceConfiguration, like this: CategoryComparison categoryComparison = new CategoryComparison(CategoryOperator.IsEqual, “Protective Device”);
traceConfiguration.Traversability.Barriers = categoryComparison; If you haven't read it already, this doc walks through all of the different trace classes and how they are used. Also, we have a Load Report sample that demonstrates the use of a CategoryComparison. I hope this helps. Please let us know if you have further questions. --Rich
... View more
08-25-2020
11:10 AM
|
0
|
3
|
1892
|
|
POST
|
Hi Jan, I'm not that familiar with the layer-level query routines that you're using. Have you tried just calling FeatureLayer.GetFeatureClass() and querying against that? --Rich
... View more
08-24-2020
08:06 AM
|
0
|
0
|
2465
|
|
POST
|
There are no plans that I am aware of. Many customers are using CoreHost for data migration and similar applications. --Rich
... View more
08-21-2020
12:57 PM
|
0
|
1
|
4426
|
|
POST
|
We haven't looked at it yet, but we're scheduled to investigate during the Pro 2.7 release cycle (now through fall). --Rich
... View more
08-17-2020
05:06 PM
|
0
|
1
|
2677
|
|
POST
|
Hi Joe! Hope you and your family are doing well. We've had a couple of developers looking at this, and cannot find a way to reproduce it. Is there a chance you can use Fiddler, and send us the input/output from the calls to GetFeaturesForElementsAsync for the two different calls to CreateAsync()? Obviously, if your .NET app runs on Windows as well as the iPad this is straightforward. Otherwise you might need to follow these directions here. It's probably easiest to just e-mail the Fiddler files to rruh@esri.com. If this isn't something you can easily do, let me know and we'll see if we can find another approach. Thanks, --Rich
... View more
08-13-2020
01:12 PM
|
0
|
1
|
4095
|
|
POST
|
Hi Ryan, If you are creating a single-threaded application, like a command-line app, you shouldn't use QueuedWorker. QueuedWorker really only exists to allow WPF standalone apps to run operations in the background (on a COM compatible thread) whilst allowing the UI to remain responsive. Does this make sense? --Rich
... View more
08-12-2020
11:06 AM
|
0
|
0
|
3489
|
|
POST
|
This is not yet part of the Pro SDK, although we are considering it for a future release. For now, you have to update the row and call Store(). --Rich
... View more
08-11-2020
11:06 AM
|
0
|
0
|
575
|
|
POST
|
Hi Mody, I've been working with Nobbir Ahmed on your question. There's no direct way to work with in-memory feature classes using the Pro SDK, but there is an indirect way. When you run your geoprocessing tool with the Pro SDK, set it up to output your results to a map. If you do that, a FeatureLayer is added to the map. You can then call FeatureLayer.GetFeatureClass() to get a FeatureClass object. You should be able to treat that as a regular feature class. (Note that If you call FeatureClass.GetDatastore() you get back an object with type UnknownDatastore, which isn't especially useful). I hope this helps, --Rich
... View more
07-30-2020
10:04 AM
|
1
|
0
|
4445
|
|
POST
|
With the release of ArcGIS Pro 2.6, the FeatureLayer.GetPath method is now available.
... View more
07-29-2020
01:07 PM
|
1
|
0
|
2212
|
|
POST
|
The AuthenticationMode property should now be returning the correct value in Pro 2.6.
... View more
07-29-2020
01:05 PM
|
0
|
2
|
2470
|
|
POST
|
As promised, the Pro 2.6 release adds an InsertCursor class, accessible via Table.CreateInsertCursor.
... View more
07-29-2020
01:05 PM
|
1
|
1
|
3284
|
|
POST
|
In Pro 2.6, GetPath() is now available on tables and other datasets.
... View more
07-29-2020
01:03 PM
|
0
|
0
|
2660
|
|
POST
|
The ability to change the owner of a version was added to Pro 2.6. This functionality is only available with branch versioning.
... View more
07-29-2020
01:01 PM
|
0
|
0
|
1169
|
|
POST
|
Hi Ryan, Unfortunately, I'm still not able to reproduce this in CoreHost. My stripped down test code (which does nothing interesting with the results) is attached. You could change out the service name and table name and see if it works on your system. Let me know how it turns out, --Rich using ArcGIS.Core.Hosting;
using System;
using System.Collections.Generic;
using System.Linq;
using ArcGIS.Core.Data;
using Version = ArcGIS.Core.Data.Version;
namespace CoreHostSandbox
{
class Program
{
//[STAThread] must be present on the Application entry point
[STAThread]
static void Main(string[] args)
{
//Call Host.Initialize before constructing any objects from ArcGIS.Core
Host.Initialize();
Sandbox mySandbox = new Sandbox();
mySandbox.Do();
}
}
class Sandbox
{
const string FeatureServiceName = @"https://richruh.esri.com/server/rest/services/TableTestBranchVersioning/FeatureServer";
const string EditVersionName = "VersionDifferencesTestSuiteVersion";
const string CityTableName = "L0Cities";
const DifferenceType DifferenceTypeToCheck = DifferenceType.Insert;
private Version _defaultVersion = null;
private Geodatabase _defaultGeodatabase = null;
private FeatureClass _defaultCitiesFeatureClass = null;
private Version _editVersion = null;
private Geodatabase _editGeodatabase = null;
private FeatureClass _editCitiesFeatureClass = null;
public void Do()
{
ServiceConnectionProperties serviceConnectionProperties = new ServiceConnectionProperties(new Uri(FeatureServiceName));
using (Geodatabase geodatabase = new Geodatabase(serviceConnectionProperties))
{
TestSuiteSetup(geodatabase);
try
{
// Fetch all of the ObjectIDs found in the cursor
List<long> differences = new List<long>();
using (DifferenceCursor differenceCursor = _editCitiesFeatureClass.Differences(_defaultCitiesFeatureClass, DifferenceTypeToCheck))
{
while (differenceCursor.MoveNext())
{
differences.Add(differenceCursor.ObjectID);
if (DifferenceTypeToCheck != DifferenceType.DeleteNoChange)
{
differenceCursor.Current.Dispose();
}
}
}
Console.WriteLine("Differences= " + differences.ToString());
}
catch (Exception e)
{
Console.WriteLine("FAIL: Exception thrown: " + e.Message + "\n");
}
TestSuiteTeardown();
}
}
//TestSuiteSetup
private void TestSuiteSetup(Geodatabase geodatabase)
{
using (VersionManager versionManager = geodatabase.GetVersionManager())
using (Version currentVersion = versionManager.GetCurrentVersion())
{
// Connect to the default version
_defaultVersion = GetDefaultVersion(currentVersion);
_defaultGeodatabase = _defaultVersion.Connect();
_defaultCitiesFeatureClass = _defaultGeodatabase.OpenDataset<FeatureClass>(CityTableName);
// Connect to the edit version
_editVersion = versionManager.GetVersions().First(v => v.GetName().Contains(EditVersionName));
_editGeodatabase = _editVersion.Connect();
_editCitiesFeatureClass = _editGeodatabase.OpenDataset<FeatureClass>(CityTableName);
}
}
//TestSuiteTeardown - clean up the stuff we created in TestSuiteSetup
private void TestSuiteTeardown()
{
_defaultVersion.Dispose();
_defaultGeodatabase.Dispose();
_defaultCitiesFeatureClass.Dispose();
_editCitiesFeatureClass.Dispose();
_editGeodatabase.Dispose();
_editVersion.Dispose();
}
private Version GetDefaultVersion(Version version)
{
Version parentVersion = version.GetParent();
if (parentVersion == null)
{
return version;
}
else
{
return parentVersion;
}
}
}
}
... View more
07-27-2020
03:41 PM
|
2
|
3
|
3489
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 12-10-2025 09:15 AM | |
| 2 | 11-30-2025 12:23 PM | |
| 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 |
12-12-2025
12:03 PM
|