POST
|
Hi, Look here: https://community.esri.com/t5/arcgis-pro-sdk-questions/how-do-i-get-all-of-the-tablenames-from-the-fgdb/m-p/1156733#M7960
... View more
05-10-2022
06:59 AM
|
1
|
0
|
631
|
POST
|
Hi, You can use Alter Field geoprocessing tool: https://pro.arcgis.com/en/pro-app/2.8/tool-reference/data-management/alter-field-properties.htm How to call geoprocessing tool here: arcgis-pro-sdk/ProSnippets.cs at master · Esri/arcgis-pro-sdk · GitHub
... View more
05-09-2022
10:40 PM
|
0
|
0
|
739
|
POST
|
Hi, ArcGIS Enterprise 10.9.1 (server) is based on ArcObjects 10.9.1. You can still develop extensions for ArcGIS Enterprise 10.9.1 using ArcObjects. It is not possible to upgrade desktop applications code to 10.9.1 ArcObjects. https://enterprise.arcgis.com/en/system-requirements/latest/windows/arcobjects-sdk-system-requirements.htm
... View more
05-06-2022
11:47 AM
|
0
|
0
|
317
|
POST
|
Hi, Look here: https://community.esri.com/t5/arcgis-pro-sdk-questions/namespace-problems-in-xaml/m-p/1090296
... View more
05-04-2022
07:15 AM
|
0
|
0
|
700
|
POST
|
If your polylineBorder is polyline so you need change createPart parameter of SplitAtPoint to "true". "createPart - Determines if parts are to be created. MUST be false for polygons. For polylines, if true, the part on which the new split point falls is split into two parts with the newly added vertex serving as the end of the first part and the beginning of the second." If it is polygon then you need to rearrange polygon to polyline and after make split .
... View more
04-27-2022
03:50 AM
|
1
|
1
|
785
|
POST
|
Your splitMethod variable returns result Multipart. So need to make cycle for each of Multipart parts and get centroid of part not of multipart.
... View more
04-27-2022
01:17 AM
|
1
|
5
|
828
|
POST
|
Lets start from the beginning. What is final result of your task? Polyline Feature in FeatureLayer(FeatureClass) or Polyline Geometry? If your result is Polyline Feature then you need to create Polyline Feature from polygon geometry and after that split created feature using EditOperation. If your result is Polyline geometry then you can use GeometryEngine SplitAtPoint method. More info here: ArcGIS Pro 2.9 API Reference Guide - SplitAtPoint Method—ArcGIS Pro
... View more
04-27-2022
12:05 AM
|
1
|
7
|
834
|
POST
|
Hi, Have tried EditOperation Split, SplitAtPoint, SplitAtPoints methods? More info here: https://pro.arcgis.com/en/pro-app/latest/sdk/api-reference/#topic20421.html API reference show less methods than intellisense.
... View more
04-26-2022
07:06 AM
|
1
|
9
|
857
|
POST
|
Hi, I will not use Geoprocessing at all. Open raster and make SaveAs from ArcObjects. It is very simple. I have no possibility to check VB code, but it could be like this: Dim oRaster As IRaster
Dim pRasterWSX As IRasterWorkspaceEx
Dim strWorkspaceLocation as String
Set strWorkspaceLocation = "C:\data\mygeodatabase.gdb"
Set pWSFact = New FileGDBWorkspaceFactory
If pWSFact.IsWorkspace(strWorkspaceLocation) Then
Set pRasterWSX = pWSFact.OpenFromFile(strWorkspaceLocation, 0)
Set rDataset = pRasterWSX.OpenRasterDataset("rastername")
Set oRaster = rDataset.CreateDefaultRaster
Set rDataset = Nothing
Set pRasterWSX = Nothing
Dim rasterBC As IRasterBandCollection
Set rasterBC = oRaster
Dim pWKSfactory As IWorkspaceFactory
Set pWKSfactory = New RasterWorkspaceFactory
Set pSaveWorkspace = pWKSfactory.OpenFromFile("C:\Data", 0)
rasterBC.SaveAs "outputraster.tif", pSaveWorkspace, "TIFF"
Set rasterBC = Nothing
Set pWKSfactory = Nothing
Set pSaveWorkspace = Nothing
End If
Set pWSFact = Nothing
... View more
04-25-2022
06:56 AM
|
0
|
0
|
268
|
POST
|
I don't know what you exactly mean "use while-LOOP for only one pass". If you want to get only one feature, you can change "while" to "if". If you want to go through selection few times, so you need each time make new search. Cursor works one time only
... View more
04-25-2022
03:59 AM
|
0
|
0
|
439
|
POST
|
Hi, You need to get cursor from selection: using (var rowCursor = gsSelection.Search(null))
{
while (rowCursor.MoveNext())
{
using (var polyFeature2 = rowCursor.Current as Feature)
{
// Your code here
}
}
}
... View more
04-25-2022
01:58 AM
|
0
|
2
|
454
|
POST
|
Hi, First thing, move 18-19 line before line 12. This is performance issue. Second thing, EditOperation Execute method could be called only once. You call it in a cycle. There is 2 solution methods: - move createOperation inside cycle. - move Execute calling outside cycle. Third thing. Store in 45 line could be used in EditOperation with callback. Mixing of different EditOperation approaches is not legal. You can use Modify method from EditOperation and call Execute after Modify (depending on the way you choose in second sugesstion). In some cases you can use chained operation. More information here: https://github.com/Esri/arcgis-pro-sdk/wiki/ProConcepts-Editing#performing-edits-in-pro
... View more
04-21-2022
06:32 AM
|
1
|
1
|
602
|
POST
|
Hi, I think your question is on a wrong thread. You need to move it to: https://community.esri.com/t5/arcgis-pro-sdk/ct-p/arcgis-pro-sdk
... View more
04-21-2022
02:57 AM
|
0
|
1
|
288
|
POST
|
Hi, I don't use that code and didn't check all cases;. I only wanted to show you the way how to do your task. Try to save previous state of dockpane and check if it changes. then do not react.
... View more
04-19-2022
02:53 AM
|
0
|
0
|
1339
|
Title | Kudos | Posted |
---|---|---|
1 | 2 weeks ago | |
1 | 3 weeks ago | |
1 | 4 weeks ago | |
1 | 03-22-2024 08:11 AM | |
1 | 02-12-2024 06:33 AM |
Online Status |
Offline
|
Date Last Visited |
a week ago
|