|
POST
|
Sorry, without database I can't help you. Try to comment SubFields and WhereClause properties, then uncomment one by one and check how it works
... View more
07-18-2023
07:46 AM
|
0
|
0
|
2228
|
|
POST
|
I mean write string like below: var queryDefinition = new QueryDef
{
Tables = @"dbo.Table1
LEFT JOIN dbo.Table2 ON dbo.Table1.ID = dbo.Table2.Table1ID
LEFT JOIN dbo.Table3 ON dbo.Table2.ID = dbo.Table3.Table2ID",
WhereClause = $"dbo.Table1.Name = {name}"
}; Another one thing that "WhereClause" doesn't know about "table1", which is defined in "Tables" string.
... View more
07-18-2023
07:07 AM
|
0
|
2
|
2240
|
|
POST
|
Hi, I think problem is related with query definition string. Have you tried to specify fields directly (without table1, table2, table3)?
... View more
07-18-2023
06:45 AM
|
0
|
4
|
2248
|
|
POST
|
Hi, SchemaBuilder object has methods for relationship management but not in 2.9. https://pro.arcgis.com/en/pro-app/latest/sdk/api-reference/topic40915.html More documentation and samples in ProConcepts DDL
... View more
07-03-2023
11:43 AM
|
0
|
0
|
1918
|
|
POST
|
Hi, Look at the ArcGIS Pro community sample BackStage_PropertyPage. Add-in module has two overridden methods: OnReadSettingsAsync and OnWriteSettingsAsync. They could help you to save your info to project and get it back.
... View more
06-27-2023
04:11 AM
|
0
|
0
|
1681
|
|
POST
|
Hi, As I mentioned in ArcHydro tools question spatial analyst output parameter can migrate. Try specify snap distance after output raster path. In addition check validation messages sent from geoprocessing tool execute.
... View more
06-26-2023
08:10 AM
|
1
|
1
|
1445
|
|
POST
|
Hi @Tanner_Yould , I will try to make simple application according to your suggested sample with our data and inform about testing results
... View more
06-23-2023
02:51 AM
|
0
|
0
|
1954
|
|
POST
|
Hi @MichaelBranscomb , I have added some separate pieces of my code. Creating feature layer: function addSubLayer(featureServiceLayerUrl, lyrid, container) {
let sublayerurl = featureServiceLayerUrl + "/" + lyrid
let serviceFeatureTable = ArcGISRuntimeEnvironment.createObject("ServiceFeatureTable", {url: sublayerurl});
let customLayer = ArcGISRuntimeEnvironment.createObject("FeatureLayer", {featureTable: serviceFeatureTable,spatialReference: Factory.SpatialReference.createWebMercator()});
customLayer.layerId = lyrid
container.append(customLayer)
if (customLayer.loadStatus !== Enums.LoadStatusLoaded) {
customLayer.loadStatusChanged.connect(function(){
if (customLayer.loadStatus === Enums.LoadStatusLoaded){
//
}
})
customLayer.load()
}
else {
//
}
} Identifying part: onMouseClicked: {
if(panelDockItem.visible) return
if(identifyInProgress) return
if (mapView.map.loadStatus === Enums.LoadStatusLoaded) {
mapView.populateVisibleLayers()
// store the selected buffer point
mapView.selectedBufferPoint = mouse.mapPoint
busyIndicatorText.text = strings.kIdentifying
busyIndicator.visible=true
//console.debug("identifyFeatures")
identifyInProgress = true
identifyFeatures (mouse.x, mouse.y, mapView.bufferDistance, mapView.measureUnits)
}
}
function identifyFeatures (x, y, bufferRadius, measurementUnits, returnPopupsOnly, maxResults) {
//console.debug("cancelAllTasks")
cancelAllTasks()
//if (typeof tolerance === "undefined") tolerance = 10
if (typeof returnPopupsOnly === "undefined") returnPopupsOnly = false
if (typeof maxResults === "undefined") maxResults = 10
mapView.featuresModel.clearAll();
mapView.layerResults=[];
mapView.identifyProperties.reset();
mapView.featuresModel.searchMode = searchMode.spatial;
var id = mapView.identifyLayersWithMaxResults(x, y, 22, returnPopupsOnly, maxResults)
//var id = mapView.identifyLayers(x, y, 10, returnPopupsOnly)
console.debug("Tasks ID: %1".arg(id))
mapView.tasksInProgress.push(id)
spatialQueryTimer.currentTaskId = id;
spatialQueryTimer.start();
}
... View more
06-22-2023
07:06 AM
|
0
|
0
|
1966
|
|
POST
|
Hi, Have you read this thread https://community.esri.com/t5/arcgis-pro-sdk-questions/unit-testing-with-a-database-file-for-arcgis-pro/m-p/853088 ?
... View more
06-22-2023
01:11 AM
|
0
|
1
|
2016
|
|
POST
|
Try to specify z_limit as third parameter. Sometimes spatial analyst tools inserts output parameter in second or in third position. So if you have found that output parameter is second then z_limit parameter could be third
... View more
06-21-2023
11:29 AM
|
0
|
0
|
1601
|
|
POST
|
I have application running ArcGIS Runtime 100.15. My application has some feature service layers. I am trying to identify features on mouse click. Sometimes it works, sometimes is not. identifyLayers or identifyLayersWithMaxResults methods from MapView does not generate IdentifyLayersStatusChanged event. I have a timer in my app and after 1 minute application hides busy indicator. It stops somewhere in the code of these methods. I have tried to use Fiddler to check how request are moving but without success. Code stops working after first feature service layer or before first layer. Layer is not the same each time. It could depend on map scale because I am work with visible layers only. There is more than one visible layer always. Usually it does not work at all after first unsuccessful identify. But I have some success after I try to move or scale map. These feature service layers are public.
... View more
06-21-2023
06:07 AM
|
0
|
5
|
1986
|
|
POST
|
Hi, Spatial Analyst has its own way of setting parameters for tools which have return value. They order differs in Python and .NET. Because Fill tool has 2 input parameters and 1 output, so output parameter could be in third place. You need to check it. Set for example 1 for z_limit. https://pro.arcgis.com/en/pro-app/latest/tool-reference/spatial-analyst/fill.htm Another one thing I am not sure about geoprocessing tool name. It could be named like "Fill_sa" as other spatial analyst tools which I have used. For example "Reclassify_sa", "RasterCalculator_sa". There is no description about that. Add validation checking to your geoprocessing call like in code below: string sIputRaster = @"C:\Support\ESRI_LocalGovernment.gdb\FiveMeterSurface";
string sRaterPath = @"C:\Support\Fill.tif";
var parameters = Geoprocessing.MakeValueArray(sIputRaster, 1, sRaterPath);
var cts = new CancellationTokenSource();
var results = await Geoprocessing.ExecuteToolAsync("Fill_sa", parameters, null, cts.Token,
(eventName, o) =>
{
System.Diagnostics.Debug.WriteLine($@"GP event: {eventName}");
if (eventName == "OnMessage")
{
IGPMessage gpMsg = o as IGPMessage;
if (gpMsg != null)
{
Logger.Info(gpMsg.Text);
}
else
{
Logger.Info($@"{o.ToString()}");
}
}
if (eventName == "OnValidate")
{
List<IGPMessage> gpMsgs = (o as IGPMessage[]).ToList();
if (gpMsgs != null)
{
foreach (var gpMsg in gpMsgs)
{
if (gpMsg.ErrorCode == 0)
{
continue;
}
// Fill with your logging
}
}
else
{
// Fill with your logging
}
}
if (eventName == "OnProgressMessage")
{
// Fill with your logging
}
}, GPExecuteToolFlags.None);
if (results.IsFailed)
{
MessageBox.Show("Failed to create fill layer. Error " + results.ErrorCode);
return;
}
... View more
06-21-2023
05:22 AM
|
2
|
2
|
1615
|
|
POST
|
Hi, There is ArcGIS Pro sdk community sample CallScriptFromNet . It could help you.
... View more
06-19-2023
04:52 AM
|
0
|
0
|
2305
|
|
POST
|
There is no ready to use code for your case. You need to develop it. Show your code, say in which step you need help and then we could help you.
... View more
06-19-2023
12:17 AM
|
0
|
0
|
1953
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | Tuesday | |
| 1 | 3 weeks ago | |
| 1 | 3 weeks ago | |
| 2 | 04-24-2026 08:33 AM | |
| 1 | 03-23-2026 11:44 AM |
| Online Status |
Offline
|
| Date Last Visited |
yesterday
|