POST
|
Hi. I'm trying to create a row in a table whenever a feature in another feature class has been created. Inside my code I'm subscribing to the RowCreatedEvent like so: RowCreatedEvent.Subscribe(OnRowCreated, table); // The table is the feature class mentioned I have a method called OnRowCreated and whenever a feature is created in the feature class, the code is actually going to that method. So that part is working. In the OnRowCreated method I have the following lines: using var geoDatabase = new Geodatabase(new FileGeodatabaseConnectionPath(new Uri(...))); using var table = geoDatabase.OpenDataset<Table>(...); var attribs = new Dictionary<string, object?> { { "LCID", "Testing" } }; args.Operation.Create(table, attribs); When I run the code it's stepping through and the geoDatabase and the table variables are filled with the correct values. The table is where I want to create a new row. I also made sure the feature class and table is editable. I then create a dictionary with one attribute and value, since none of the fields are mandatory, meaning they are all nullable. My code passes through without errors or exceptions. After that ArcGIS Pro shows me this: The feature is not created and no new row is created in the table. I turned on the Diagnostics Monitor, and this is what I see I'm stuck so any help is greatly appreciated 🙂 Regards Carsten
... View more
01-31-2024
12:48 AM
|
0
|
0
|
224
|
POST
|
Thank you very much for the replies. Really appreciate it 😄
... View more
05-25-2023
02:33 AM
|
0
|
0
|
513
|
POST
|
Hi. Is there some kind of diagram or overview showing the correlation between the version of ArcGIS Pro and the version of Python? Thanks in advanced 🙂
... View more
05-16-2023
02:06 AM
|
0
|
3
|
609
|
POST
|
Thanks for the reply 🙂 I tried to create a new project again using the template, and for some reason it now works.
... View more
11-11-2022
06:25 AM
|
0
|
0
|
587
|
POST
|
Hi. I've created a simple SOI (Server Object Interceptor) in Visual Studio based on the template "CSharp SOI template (ArcGIS Pro)". At first I just want to see which REST requests are being sent to a specific map service. The map service in question is published from ArcGIS Pro. I've added my SOI as an extension through the ArcGIS Server Manager and then I enabled the extenstion on the map service. Now, I would expect the SOI to "catch" the REST requests and log it on the server, but nothing is being logged. I'm all out of ideas of what I'm doing wrong here. Any help would is appreciated 🙂
... View more
09-28-2022
02:01 AM
|
0
|
2
|
656
|
POST
|
I do have the latest packages installed. But I guess, as you suggest, that some other bigger issue is causing this. Thanks! 🙂
... View more
01-09-2022
10:49 PM
|
0
|
0
|
1007
|
POST
|
Hi Chelsea. Thanks for the link. I will check it out 🙂 The first messages after running the tool were: WARNING 003054: Input Raster does not support PIXEL_SPACE (raw image space). Running in MAP_SPACE. ERROR 999999: Something unexpected caused the tool to fail. Contact Esri Technical Support (http://esriurl.com/support) to Report a Bug, and refer to the error help for potential solutions or workarounds. Unable to read pixels from the python raster function. Unable to read pixels from the python raster function. Function Read Error [Raster Function Template] Unable to read pixels from the python raster function. The warning at the top also showed up when this was working, so I don't think this is the cause of the error. I've tried to Google "Unable to read pixels from the python raster function" but without any luck.
... View more
01-05-2022
11:51 PM
|
0
|
0
|
1036
|
POST
|
Hi. I am trying to "face blur" some images but no matter which images I choose the result is "ERROR 999999". This has been working until updating to ArcGIS Pro 2.9. Any ideas what could have happened?
... View more
01-05-2022
06:45 AM
|
0
|
8
|
1086
|
POST
|
I am quite new to using the "Classify Pixels Using Deep Learning"-tool. I have a number of photos taken with a GoPro 360 camera, and I want to blur the license plate. Using this package https://www.arcgis.com/home/item.html?id=2ae3cf1af09847a48d65c04b9da6a84f in the tool, I am able to produce new rasters, but the blurred square is not always over the license plate itself. In some cases, the license plate is completely blurred, but in other cases a square over the license plate is blurred. What is going? Am I missing a parameter? The following photo-snippets are part of a 360 degree photo with three cars in it. The tool successfully blurs the first cars license plate. The second car actually blurred the license plate, but as you can see, the blurred square is a little bit off and a lot larger than the license plate itself. The third cars license plate wasn't blurred at all. Instead the tool blurred a square over the license plate itself. Can someone help me understand what I am doing wrong. Is it because I use 360 degree photos? Is it because the license plates are danish? Thanks in advance 🙂
... View more
11-01-2021
03:44 AM
|
0
|
0
|
445
|
POST
|
Thanks a lot, Joshua! That actual worked. I ended up with the following code: lyr_def = lyr.getDefinition("V2") exp_info = arcpy.cim.CIMExpressionInfo() exp_info.expression = "\"Matr. nr. \"+$feature.MatrikelNr+\" \"+$feature.LandsEjerlav+\" (\"+$feature.LandsEjerlavKode+\")\"" lyr_def.featureTable.displayExpressionInfo = exp_info lyr.setDefinition(lyr_def) I really appreciate the help 🙂
... View more
02-19-2021
06:06 AM
|
2
|
1
|
3042
|
POST
|
Hi Dan. Yeah, I also tried using CIM by setting the displayField property to the required expression. It actually sets it, but it looks strange and doesn't work. I used this Py code: lyr_def = lyr.getDefinition("V2") lyr_def.featureTable.displayField = "\"Matr. nr. \"+$feature.MatrikelNr+\" \"+$feature.LandsEjerlav+\" (\"+$feature.LandsEjerlavKode+\")\"" Which changes it But for some reason it's adding a $feature. in front of my express. So no luck there. Hopefully this will be added as a possibility in the future. Thanks for the reply 🙂
... View more
02-18-2021
05:31 AM
|
0
|
3
|
3100
|
POST
|
How do I change the display field expression using ArcPy?
... View more
02-18-2021
03:55 AM
|
0
|
7
|
3161
|
POST
|
I want to be able to read the tags from the layers within the MMPK, not the MMPK itself. So I can read tags for each layer when I iterate through them when I open the MMPK in my QML app.
... View more
02-17-2021
09:09 AM
|
0
|
0
|
726
|
Title | Kudos | Posted |
---|---|---|
2 | 02-19-2021 06:06 AM |
Online Status |
Offline
|
Date Last Visited |
a month ago
|