|
POST
|
Hi, Look at Esri ArcObjects sample Edit event listener
... View more
11-05-2021
07:50 AM
|
0
|
0
|
1247
|
|
POST
|
Hi Tim, I use ArcGIS Pro 2.7.2. In ArcGIS Pro Trace geoprocessing tool works as expected and selects some network elements. I have copied Python script and placed it in my application, but I don't know how to get selection from it. I have checked all results of arcpy.tn.Trace and my selection must be in element number 2. My python script: result = arcpy.tn.Trace(traceNetworkDataset, "UPSTREAM", startPointsFC, None, "NO_DIRECTION", '', "EXCLUDE_BARRIERS",
"DO_NOT_VALIDATE_CONSISTENCY", "DO_NOT_IGNORE_BARRIERS_AT_STARTING_POINTS", "IGNORE_INDETERMINATE_FLOW",
None, None, "BOTH_JUNCTIONS_AND_EDGES", None, None, "SELECTION", "NEW_SELECTION", "CLEAR_ALL_PREVIOUS_TRACE_RESULTS", '',
"Trace_Results_Aggregated_Points", "Trace_Results_Aggregated_Lines", None, "DO_NOT_USE_TRACE_CONFIGURATION", '') Your scripts don't use selection but maybe you know how to get it?
... View more
10-19-2021
10:27 AM
|
0
|
2
|
7381
|
|
POST
|
Hi Ben, Have you succeeded with trace results? From ArcGIS Pro trace selects features what I need but from python I don't know how to make the same selection.
... View more
10-19-2021
07:16 AM
|
0
|
0
|
2109
|
|
POST
|
Hi, As I understand from your first question you need code like this: protected override async void OnClick()
{
FeatureLayer fl = MapView.Active.Map.FindLayers("O_Klad_ZTM10").First() as FeatureLayer;
if (fl == null)
return;
QueuedTask.Run(() = >
{
QueryFilter qf = new QueryFilter();
string whereClause = "ZTM10_nom LIKE '0602%'";
qf.WhereClause = whereClause;
fl.Select(qf)
});
var rozsah = 200;
CalculateBuffer(fl, @"C:\Users\mrazekd\Desktop\ukoly\ProAppModule1\buffers.shp", rozsah, "Meters");
} You need to check asynchronous things. of that code
... View more
10-14-2021
11:45 PM
|
1
|
3
|
2617
|
|
POST
|
Hi, Your code removes selected elements of graphics layer. To remove graphics layer you need to remove map layer using QueuedTask.Run like this : MapView.Active.Map.RemoveLayer(graphicsLayer);
... View more
10-14-2021
10:15 PM
|
2
|
1
|
1949
|
|
POST
|
Hi, MakeValueArray first parameter must be FeatureLayer, second - output path. It's enough to make selection on featurelayer (fl.Select(qf)) and pass it to MakeValueArray. Geoprocessing checks is selection empty. Dependent on it geoprocessing tool calculates on all featurelayer or feature layer selection Below working function code to make buffer layer: public static bool CalculateBuffer(FeatureLayer featureLayer, string sOutputPath, double dDistance, string sUnits)
{
try
{
var parameters = Geoprocessing.MakeValueArray(featureLayer, sOutputPath,
string.Format("{0} {1}", Convert.ToString(dDistance, System.Globalization.CultureInfo.InvariantCulture), sUnits));
var gpResult = Geoprocessing.ExecuteToolAsync("Buffer_analysis", parameters, null, CancelableProgressor.None,
GPExecuteToolFlags.None);
gpResult.Wait();
return !gpResult.Result.IsFailed;
}
catch (Exception ex)
{
System.Diagnostics.Debug.WriteLine(ex.ToString(), System.Reflection.Assembly.GetExecutingAssembly().FullName);
throw;
}
} After layer selection you can call that function. And specify full path for output. For example full path to shapefile (c:\Temp\buffers.shp)
... View more
10-14-2021
06:16 AM
|
1
|
5
|
2640
|
|
POST
|
Hi, You can use SetVisibility method from Layer type object
... View more
10-12-2021
12:02 AM
|
1
|
1
|
2547
|
|
POST
|
Hi, I have found reason for delay. I work from home now and sometimes use company VPN. Delay appears when I work without VPN connection. I think delay appears when application checks group security policies or finds some unmounted network storage disks. I have tried the same application on Android mobile device and it works without delay Thanks for efforts
... View more
09-30-2021
03:29 AM
|
0
|
0
|
2190
|
|
POST
|
Hi, I am running AppStudio 5.1.80. Other system info below: GintautasKmieliauskas_0-1632978901729.png Timeout longs about 20 seconds
... View more
09-29-2021
10:18 PM
|
0
|
0
|
2191
|
|
POST
|
Hi, I develop application using Quick Report template. After clicking "Next" in "Add location" page I have long timeout until next page comes up. I use original data. Application output between two pages: QMetaProperty::read: Unable to handle unregistered datatype 'QQmlWebChannel*' for property 'QQuickWebEngineView::webChannel' ArcGIS.AppFramework.Network: bool __cdecl AppFramework::isOnline(void) *** DEPRECATED. Use Networking.isOnline instead. *** ArcGIS.AppFramework.Network: bool __cdecl Network::isOnline(void) const *** DEPRECATED. Use Networking.isOnline instead. *** ArcGIS.AppFramework.Platform: ***DocumentDialog is in beta and not officially supported. The interfaces may change in future AppStudio release and it is not to be relied upon.*** Focus mode selection is not supported Focus mode selection is not supported qml: filePath undefined ArcGIS.AppFramework.Multimedia: ***CameraDialog is in beta and not officially supported.The interfaces may change in future AppStudio release and it is not to be relied upon.*** ArcGIS.AppFramework.Platform: ***DocumentDialog is in beta and not officially supported. The interfaces may change in future AppStudio release and it is not to be relied upon.*** QMetaProperty::read: Unable to handle unregistered datatype 'QQmlWebChannel*' for property 'QQuickWebEngineView::webChannel' ArcGIS.AppFramework.Network: bool __cdecl AppFramework::isOnline(void) *** DEPRECATED. Use Networking.isOnline instead. *** ArcGIS.AppFramework.Network: bool __cdecl Network::isOnline(void) const *** DEPRECATED. Use Networking.isOnline instead. *** QMetaProperty::read: Unable to handle unregistered datatype 'QQmlWebChannel*' for property 'QQuickWebEngineView::webChannel' ArcGIS.AppFramework.Network: bool __cdecl AppFramework::isOnline(void) *** DEPRECATED. Use Networking.isOnline instead. *** ArcGIS.AppFramework.Network: bool __cdecl Network::isOnline(void) const *** DEPRECATED. Use Networking.isOnline instead. *** qml: ThemeChanged current: 1 Can some point me how to find delaying? Thank you
... View more
09-23-2021
05:22 AM
|
0
|
3
|
2244
|
|
POST
|
Hi, You need to check CreateRasterDataset function parameters you pass depending on this link info: https://desktop.arcgis.com/en/arcmap/10.3/manage-data/raster-and-images/supported-raster-dataset-file-formats.htm Have you tried IRasterWorkspace2.CreateRasterDataset with less parameters?
... View more
09-02-2021
10:33 PM
|
0
|
0
|
1455
|
|
POST
|
Hi, I have found this: com.esri.arcgis.datasourcesraster Class IMosaicDatasetOperation3Proxy java.lang.Object extended by com.esri.arcgis.interop.Dispatch extended by com.esri.arcgis.datasourcesraster.IMosaicDatasetOperationProxy extended by com.esri.arcgis.datasourcesraster.IMosaicDatasetOperation2Proxy extended by com.esri.arcgis.datasourcesraster.IMosaicDatasetOperation3Proxy All Implemented Interfaces: IMosaicDatasetOperation, IMosaicDatasetOperation2, IMosaicDatasetOperation3, java.io.Externalizable, java.io.Serializable Deprecated. Internal use only. Proxy for COM Interface 'IMosaicDatasetOperation3'. Generated 3/19/2015 1:20:55 PM from 'C:\ArcGIS\COM\esriDataSourcesRaster.olb' https://desktop.arcgis.com/en/arcobjects/latest/java/api/arcobjects/com/esri/arcgis/datasourcesraster/IMosaicDatasetOperation3Proxy.html
... View more
08-29-2021
10:45 PM
|
0
|
0
|
1213
|
|
POST
|
Hi, Your geometries have different spatial references. E_GEOMETRY_INCONSISTANT_SPATIAL_REFERENCE 533 (0x80040215) Input geometries do not have same spatial reference. https://developers.arcgis.com/enterprise-sdk/api-reference/net/esriGeometry/esriGeometryError/
... View more
08-16-2021
01:33 AM
|
1
|
0
|
1043
|
|
POST
|
Hi, Change + and "MEASUREDLENGTHUPPERLIMIT >= " to + " and MEASUREDLENGTHUPPERLIMIT >= "
... View more
08-08-2021
11:45 PM
|
0
|
5
|
6540
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | a month ago | |
| 1 | a month ago | |
| 1 | 06-30-2026 10:14 PM | |
| 1 | 06-30-2026 01:43 PM | |
| 2 | 04-24-2026 08:33 AM |
| Online Status |
Offline
|
| Date Last Visited |
Monday
|