POST
|
Maybe this: https://support.esri.com/en/technical-article/000019994
... View more
05-16-2022
09:07 PM
|
1
|
1
|
749
|
POST
|
I would like to use attribute rules to implement some way to limit edits by people. The data is within enterprise geodatabase (oracle) and is updated by Pro. For example some user can create a line not longer then 1 KM while other can create a line up to 2KM long. The attribute rue should get the user (active directory user). Go to some external table (not necessary in the same schema as the layer), find if the user belong to the first or second group. Check the line that was created and improve or reject the new feature. Can something like that be done in Arcade as attribute rule? Thanks
... View more
05-03-2022
10:04 PM
|
1
|
1
|
327
|
POST
|
Here is my final code. The doc's are real bad , no samples and every small change gives catastrophic error with no error message. Have fun private string geo2json(IFeature feature)
{
IJSONWriter jsonWriter = new JSONWriterClass();
jsonWriter.WriteToString();
IJSONSerializer jsonSerializer = new JSONSerializerGdb();
IPropertySet props = new PropertySetClass();
props.SetProperty("Format", "GeoJSON");
jsonSerializer.InitSerializer(jsonWriter, props);
((IExternalSerializerGdb)jsonSerializer).WriteGeometry(null, feature.Shape);
var geoJson = Encoding.UTF8.GetString(jsonWriter.GetStringBuffer());
return geoJson;
}
... View more
04-24-2022
07:17 AM
|
0
|
0
|
1086
|
POST
|
I will give it a try. I checked the ArcObjects JSONConverterGdb but as far as I understand it gets a Table and not single geometry. I will have to create a temporary table and gets all the attributes and not only geometry. Thanks
... View more
04-17-2022
05:03 AM
|
0
|
2
|
1114
|
POST
|
In arcpy you just do geometry.JSON to get the json string for it. I could not find a simple way to do the same in ArcObjects. Convert single geometry (not in feature class) into json (or GeoJson) string. The GeometryEngine in Pro SDK have ExportToJson. Anybody?
... View more
04-14-2022
04:18 AM
|
0
|
5
|
1169
|
POST
|
So I have a few thousands trees. Some of them have disease (just an example). Assuming something in the area cause it I would like to know what is the chance to have the disease in a new tree location. I do a kernel density on the trees. Then on just the trees with the disease and divide them to get the results. This works nice for areas that have many trees. If I have a big gaps between group of trees I see a problem in these gaps. The values in the kernel of the sick trees go from 2 to 1 (again, just an example) but the kernel for trees go from 10 to 3 so the value of the result change from 0.2 to 0.33 - it does not look right. I am thinking about just clip all the value below 1 from the sick tree kernel out and have to results there. Anybody have any idea about this problem? Thanks
... View more
03-29-2022
06:57 AM
|
0
|
1
|
307
|
POST
|
I would like to do some stuff on the RowCreatedEvent. Do some checks (and maybe fail the insertion) and gives some init values. I would like this to happened event if I add records using some GP tools. I found this: https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-listen-for-geoprocessing-gp-events/m-p/1052210#M6517 I tried to check the Append GP tools that have the option to Undo edits but the RowCreatedEvent is not called. I tried to get the EditCompletedEvent and it is called after Append but args.Creates is zero. Attribute rules does not give me all the functionality I need here. Is there a way to do it? Thanks
... View more
03-27-2022
02:16 AM
|
0
|
0
|
203
|
POST
|
Delete simple small layers (point/line/polygons) took very long time too. I tried to compact the default.gdb but it did not helped.
... View more
03-02-2022
07:10 AM
|
0
|
0
|
289
|
POST
|
I am trying to do a copy & paste of a small tif raster on a local disk. It takes about a minute. Running the GP tool delete takes almost one minute too. Deleting directly in catalog takes 2 seconds. So I opened a new aprx and tried the same operations and everything works very quickly. I tried to understand what is wrong with the original project. The only thing I can think about is the the default.gdb was about 500Mb and include a few rasters and about 12 vector layers. It took me about 1 minutes to delete all of them but it did not change the behavior of the aprx (still very slow). Any body have any idea what can cause an aprx to behave like this?
... View more
03-02-2022
07:08 AM
|
0
|
1
|
294
|
POST
|
Don't you think it can be helpful option? In Pro SDK there is GPExecuteToolFlags.AddToHistory that add each gp tool to history. This will save many AddMessage in python (spatially when you have a lot of code that is not just gp tools) and can let you see in history what the real parameters to each tool was.
... View more
02-23-2022
09:43 PM
|
0
|
0
|
821
|
POST
|
One of us do not understand the other... I have a script (just an example): buffer(fc1,fcbuf1,15) buffer(fc2,fcbuf2, 22) buffer(fc3,fcbuf3,31) It takes 10 minutes to run. I would like to see in history 3 different entries, one for each buffer command so I know how the 10 minutes split between the different gp tools.
... View more
02-23-2022
06:29 AM
|
0
|
2
|
843
|
POST
|
I am running a python script as a tool in Pro. The tool runs many gp commands (with some other arcpy functions) and take some time. In order to understand where time is spend it would be nice if I can see the individual gp tools in the history (with the time it took them to run). This way I do not have to put endless time messages in my code. I could not find a way to do it. Is there a way or I should put it in the ideas site? Thanks
... View more
02-22-2022
10:29 PM
|
0
|
7
|
878
|
POST
|
I am using my own tool to add points by user. The code takes the point clicked by the user. Do some stuff and add it to the feature class. I would like to snap the point just like it was added with the create feature standard tool. Is there any way to take a geometry in the code and snap it by the current snap env? Thanks
... View more
02-21-2022
10:05 PM
|
0
|
1
|
276
|
POST
|
I think you must republish, otherwise the server is running it in python2. Upgrading a python tool from ArcMap to Pro should be very easy, the code is very similar if not identical. Then you republish and the server mark it as a python 3 service. Server 10.5 is old but I think it is supporting publishing from Pro. Have fun
... View more
02-20-2022
10:44 PM
|
0
|
0
|
549
|
POST
|
We are trying to replace the old class extension from ArcObjects. The Pro way is to get the layer events (create/change). I found this post: https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-fire-up-editing-event/m-p/1082368#M6933 The problem is that the pro events is by layer. If I subscribe when I open the document to all layers that should be handled the user can add a layer afterword. Do you think it make sense to get the LayersAdded event and to use it to subscribe any new layer to the editing events? Thanks
... View more
02-10-2022
06:25 AM
|
0
|
1
|
331
|
Title | Kudos | Posted |
---|---|---|
1 | 06-25-2022 11:28 PM | |
1 | 08-29-2021 11:09 PM | |
1 | 11-09-2023 06:09 AM | |
1 | 10-10-2023 10:12 PM | |
1 | 11-23-2021 11:06 PM |
Online Status |
Offline
|
Date Last Visited |
11 hours ago
|