POST
|
Hi, Annotation layers haven't labels. Showing of annotations is organized with sublayers. CIMAnnotationLayer Sublayers property is array of CIMAnnotationSubLayer.
... View more
06-17-2024
11:39 PM
|
0
|
5
|
315
|
POST
|
Hi, You can open featurelayer as table or featureclass from geodatabase object: const string LAYER_ID = "0";
using (Geodatabase geodatabase = new Geodatabase(new ServiceConnectionProperties(new Uri("https://sdkexamples.esri.com/server/rest/services/GrandTeton/FeatureServer")))
using (var table = geodatabase.OpenDataset<Table>(LAYER_ID))
{
} More details in that thread
... View more
06-16-2024
10:24 PM
|
0
|
2
|
329
|
POST
|
Hi, The best way to solve questions like yours is to use CIMViewer. Compile code, run ArcGIS Pro. Open CIMVIewr and select your layer. All settings you will find in CIMViewer. XML tags are same as objects and properties names. In your case you need to set up Label Property of CIMClassBreak . How to work with CIMClassRenderer you can find in ArcGIS Pro community sample GetSymbolSwatch sample
... View more
06-10-2024
12:36 AM
|
0
|
0
|
154
|
POST
|
Hi, There are two similar tools: "Spatial Join" and "Add Spatial Join". They work a little bit different. Try "Add Spatial Join" tool.
... View more
05-30-2024
05:05 AM
|
0
|
0
|
238
|
POST
|
Hi, Set additional property to maplexLabelPlacementProps: var maplexLabelPlacementProps = new CIMMaplexLabelPlacementProperties
{
ThinDuplicateLabels = true,
FeatureType = LabelFeatureType.Polygon,
PolygonPlacementMethod = MaplexPolygonPlacementMethod.HorizontalInPolygon
}; I would recommend you use CIM Viewer for that kind of investigation
... View more
05-30-2024
04:43 AM
|
0
|
1
|
211
|
POST
|
Hi, Text from ProConcepts: "Edits can be attempted on all editable layers and standalone tables, i.e. MapMembers, determined by the CanEditData property on BasicFeatureLayer, StandAloneTable and IDisplayTable. This property is a combination of the editability of the data source (read/write), and the IsEditable property of those classes which represents the check box state on the List by Editing view of the table of contents." ProConcepts Editing · Esri/arcgis-pro-sdk Wiki · GitHub
... View more
05-28-2024
12:37 AM
|
0
|
0
|
111
|
POST
|
Hi, You need to create new layer from scratch. I have modified ArcGIS Maps SDK sample to work without Already Owner fail. Code below: #region FeatureLayer
// Get the full path for the mobile geodatabase.
string geodatabasePath = DataManager.GetDataFolder("e12b54ea799f4606a2712157cf9f6e41", "ContingentValuesBirdNests.geodatabase");
// Load the geodatabase.
Geodatabase geodatabase = await Geodatabase.OpenAsync(geodatabasePath);
// Load the Geodatabase, GeodatabaseFeatureTable and the ContingentValuesDefinition.
// Get the 'BirdNests' geodatabase feature table from the mobile geodatabase.
_geodatabaseFeatureTable = geodatabase.GetGeodatabaseFeatureTable("BirdNests");
// Asynchronously load the 'BirdNests' geodatabase feature table.
await _geodatabaseFeatureTable.LoadAsync();
// Asynchronously load the contingent values definition.
await _geodatabaseFeatureTable.ContingentValuesDefinition.LoadAsync();
// Create a FeatureLayer based on the GeoDatabaseFeatureTable.
FeatureLayer nestLayer = new FeatureLayer(_geodatabaseFeatureTable);
// Add the FeatureLayer to the OperationalLayers.
MyMapView.Map.OperationalLayers.Add(nestLayer);
try
{
Geodatabase geodatabase1 = await Geodatabase.OpenAsync(geodatabasePath);
var table = geodatabase1.GetGeodatabaseFeatureTable("BirdNests");
// Create a FeatureLayer based on the GeoDatabaseFeatureTable.
FeatureLayer nestLayer1 = new FeatureLayer(table);
// Add the FeatureLayer to the OperationalLayers.
MyMapView.Map.OperationalLayers.Add(nestLayer1);
}
catch (Exception ex)
{
throw;
}
#endregion FeatureLayer
... View more
05-28-2024
12:06 AM
|
1
|
1
|
267
|
POST
|
There is no documentation for each tool of geoprocessing in .NET. From python tool description you need to take only order of parameters and their types. Only ArcMap has direct access to raster manipulation. All other new products (ArcGIS Pro, ArcGIS Maps) use geoprocessing for that purpose. // Create the geoprocessing parameters
GeoprocessingParameters gpParams = new GeoprocessingParameters(GeoprocessingExecutionType.AsynchronousSubmit);
// Add the interval parameter to the geoprocessing parameters
gpParams.Inputs["ContourInterval"] = new GeoprocessingDouble(MyContourSlider.Value); In code above you need to delete setting "ContourInterval" parameter and fill your tool parameters:
... View more
05-23-2024
12:38 PM
|
2
|
0
|
418
|
POST
|
Local Server | ArcGIS Maps SDK for .NET | ArcGIS Developers It is important: "Local Server is supported with ArcGIS Maps SDK for .NET on Windows when using either Windows Presentation Foundation (WPF) or Windows UI Library (WinUI) 3. Local Server is not supported for apps developed using .NET MAUI (Multi-platform App UI) or Universal Windows Platform (UWP)."
... View more
05-23-2024
05:45 AM
|
1
|
0
|
440
|
POST
|
No matter which geoprocessing tool you want execute. Differences are geoprocessing package path and set of parameters. Parameters for Create Raster Dataset you can find here
... View more
05-23-2024
05:36 AM
|
1
|
2
|
441
|
POST
|
You need ArcGIS Pro to create geoprocessing package. Another one thing you need to have Standard license for ArcGIS Maps Local server.
... View more
05-23-2024
05:29 AM
|
1
|
2
|
444
|
POST
|
Hi, You can add your suggestion to ArcGIS Pro SDK Ideas.
... View more
05-22-2024
11:48 PM
|
0
|
0
|
477
|
POST
|
Hi, You can do it by using geoprocessing. Local server supported geoprocessing tools are here. You need to create geoprocessing package with Create Raster Dataset tool. Sample how to execute tool is here. Creating geoprocessing package is here.
... View more
05-22-2024
11:45 PM
|
1
|
4
|
455
|
POST
|
Hi, I would suggest you invest a little bit in geoprocessing events handling. More info you can find here (section Executing a tool with event handling). Be careful with _cts.Cancel();. It could close your tool and with right workflow. It will let you to find invalid parameters and get more information about process workflow.
... View more
05-21-2024
11:14 AM
|
0
|
0
|
218
|
POST
|
When trying to solve route with travel mode "Walking" sometimes I get error message: "Distance between stops is too large to solve using the walking travel mode". The same routing service from web doesn't throw such error message. Is it native application library restriction? I can't say exactly but restriction distance could be about 50 km. Environment: .Net8, Esri.ArcGISRuntime.Maui 200.4
... View more
05-21-2024
05:35 AM
|
0
|
1
|
313
|
Title | Kudos | Posted |
---|---|---|
1 | 07-10-2024 03:23 AM | |
1 | 01-25-2023 04:03 AM | |
1 | 11-17-2023 02:12 AM | |
1 | 07-04-2024 07:28 AM | |
1 | 06-27-2024 07:25 AM |
Online Status |
Offline
|
Date Last Visited |
Thursday
|