|
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
|
2508
|
|
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
|
1888
|
|
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
|
2531
|
|
POST
|
Hi, You can use SetVisibility method from Layer type object
... View more
10-12-2021
12:02 AM
|
1
|
1
|
2478
|
|
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
|
2109
|
|
POST
|
Hi, I am running AppStudio 5.1.80. Other system info below: Timeout longs about 20 seconds
... View more
09-29-2021
10:18 PM
|
0
|
0
|
2110
|
|
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
|
2163
|
|
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
|
1421
|
|
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
|
1180
|
|
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
|
998
|
|
POST
|
Hi, Change + and "MEASUREDLENGTHUPPERLIMIT >= " to + " and MEASUREDLENGTHUPPERLIMIT >= "
... View more
08-08-2021
11:45 PM
|
0
|
5
|
6265
|
|
POST
|
From your question I understood that you want to have Esri layer content pane. Check your layers control binding and try to update binding property in overridden OnActivate method. It is hard to help without the code.
... View more
07-28-2021
10:45 PM
|
0
|
0
|
2627
|
|
POST
|
Hi, Have you tried this: System.IO.Path.GetDirectoryName(System.Windows.Forms.Application.ExecutablePath); It works from add-in.
... View more
07-28-2021
10:34 PM
|
0
|
1
|
1823
|
|
POST
|
Hi It seems like a bug. I would recommend to start new thread in ArcGIS Pro SDK. Maybe some from Esri could help you.
... View more
07-28-2021
06:36 AM
|
1
|
0
|
1982
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | Tuesday | |
| 1 | Tuesday | |
| 2 | 04-24-2026 08:33 AM | |
| 1 | 03-23-2026 11:44 AM | |
| 1 | 05-22-2024 11:48 PM |
| Online Status |
Online
|
| Date Last Visited |
Tuesday
|