POST
|
Hi @TimG, Thank you for your response and suggestion. I have tried with the same image for both sampling and training, and also tried to run the model onto the same image. Cell size is consistent with trained data and is 30 cm. Have already tried the settings you have shared. Still no success. I am not sure, but I think may be an issue with the deep learning framework. I am using ArcGIS Pro 2.8, and didn't install the python packages manually, but have used the installer package from Github. Don't know why the outcomes are not correct. 😞 Kind regards, Shahriar
... View more
09-12-2021
06:46 PM
|
0
|
1
|
688
|
POST
|
Hi All, I have been facing a challenge while detecting building footprints using the ArcGIS Image Analyst extension. I have trained the model, and the loss metrics and ground truth are showing a decent result, but when I am trying to detect the object, I am not getting the building footprints. ################################################## Here are the details of the trained model, { "Framework": "arcgis.learn.models._inferencing", "InferenceFunction": "[Functions]System\\DeepLearning\\ArcGISLearn\\ArcGISObjectDetector.py", "ModelConfiguration": "_DynamicSSD", "ModelType": "ObjectDetection", "ExtractBands": [ 0, 1, 2 ], "backbone": "resnet34", "Grids": [ 2, 4, 21 ], "Zooms": [ 1.0 ], "Ratios": [ [ 1.0, 1.0 ] ], "SSDVersion": 2, "Classes": [ { "Value": 1, "Name": "build", "Color": [ 25, 66, 253 ] } ], "MinCellSize": { "x": 0.29992251483648985, "y": 0.29993464576999285, "spatialReference": { "wkid": 32754, "latestWkid": 32754 } }, "MaxCellSize": { "x": 0.29992251483648985, "y": 0.29993464576999285, "spatialReference": { "wkid": 32754, "latestWkid": 32754 } }, "SupportsVariableTileSize": false, "ArcGISLearnVersion": "1.8.5", "monitored_valid_loss": 30.842981338500977, "ModelFile": "model.pth", "ImageHeight": 224, "ImageWidth": 224, "ImageSpaceUsed": "MAP_SPACE", "LearningRate": "slice('1.0000e-02', '1.0000e-01', None)", "ModelName": "SingleShotDetector", "backend": "pytorch", "ModelParameters": { "backbone": "resnet34", "backend": "pytorch" }, "average_precision_score": { "build": 0.0833333358168602 }, "resize_to": null, "IsMultispectral": false } ################################################## This is the output I am getting (I have tried with different padding, thresholds and overlapping combinations), Great to have your suggestions. Kind regards, Shahriar
... View more
09-07-2021
06:15 PM
|
0
|
3
|
745
|
POST
|
Hi Joshua, If non-admin users try the workflow manually in the application, do they get the same error? Yes. The users have full access to the .sde feature class ("CGD.ROAD_LOCATIONS") and versioning completed. So, I believe there is little chance of permission issue. Do you think there might be some other reasons? Thanks, Shahriar
... View more
03-02-2021
07:03 AM
|
0
|
1
|
4531
|
POST
|
Hi All, I have defined the workspace, started and stopped the edit session, but afterwards, I am getting the Runtime Error (Objects in this class cannot be updated outside an edit session). The layer "CGD. ROAD_LOCATIONS" is versioned. ……….Script (part)…………….. arcpy.env.workspace = r"\\Pas215q4\User Connection\GS-0001.database.windows.net(1).sde" edit = arcpy.da.Editor(arcpy.env.workspace) if (edit.isEditing!='True'): edit.startEditing(True, True) edit.startOperation() field = ['SECTION_ID'] found_values = defaultdict(set) with arcpy.da.UpdateCursor("CGD.ROAD_LOCATIONS", field, "[OBJECTID] > 944861") as cursor: for row in cursor: for i, column in enumerate(field): if row[i] in found_values[column]: cursor.deleteRow() break else: for column, value in zip(field, row): found_values[column].add(value) edit.stopOperation() edit.stopEditing(True) ................................ When running this it breaks in (“for row in cursor”), and I am getting the following error message, ………..Error message………… Traceback (most recent call last): File "P:\Create_Assets.py", line 152, in <module> main() File " P:\Create_Assets.py", line 52, in main for row in cursor: RuntimeError: Objects in this class cannot be updated outside an edit session [CGD. ROAD_LOCATIONS] No issue with the indentation, maybe I have missed the proper indent here as I am typing it manually. No issue with the script while running from the admin account, but other user accounts is experiencing the run-time issue. Great to have your suggestions on how to solve this issue please. Kind regards, Shahriar
... View more
03-02-2021
01:14 AM
|
0
|
4
|
4537
|
POST
|
Hi @XanderBakker , I have come up with a solution to the task I wanted to accomplish, but the script is taking around 5 minutes to do perform the task(s). I need to minimise the time of processing, great to have your expert suggestion if I can reduce the processing time, ...................................................................... for m in aprx.listMaps(): for layer in aprx.activeMap.listLayers(): if(layer.name[0:12]=="CGD.PARCELS_" and layer.getSelectionSet()): arcpy.management.Append(layer, "BASEDATA", "NO_TEST") arcpy.SelectLayerByLocation_management("BASEDATA","ARE_IDENTICAL_TO",layer) ........................................................................
... View more
11-15-2020
06:35 PM
|
0
|
1
|
705
|
POST
|
Hi @DanPatterson I have come up with a solution to the task I wanted to accomplish, but the script is taking around 5 minutes to do perform the task(s). I need to minimise the time of processing, great to have your expert suggestion if I can reduce the processing time, ...................................................................... for m in aprx.listMaps(): for layer in aprx.activeMap.listLayers(): if(layer.name[0:12]=="CGD.PARCELS_" and layer.getSelectionSet()): arcpy.management.Append(layer, "BASEDATA", "NO_TEST") arcpy.SelectLayerByLocation_management("BASEDATA","ARE_IDENTICAL_TO",layer) ........................................................................
... View more
11-15-2020
06:32 PM
|
0
|
1
|
711
|
POST
|
Hi Xander, Can it be done for the polygons? https://community.esri.com/thread/262214-arcpy-script-to-write-same-record-in-another-feature-layer If it can be done for polygons, then it will answer my query. Thanks in advance. Kind regards, Shahriar
... View more
11-01-2020
01:39 AM
|
0
|
1
|
832
|
POST
|
I am trying to add created records in one layer to another feature layer using ArcPy script. Is there any sample script to do so? Thanks in advance.
... View more
10-31-2020
06:45 PM
|
0
|
3
|
778
|
POST
|
Thank you, Xander Bakker . I need to send you a video rather than a screenshot. "Intersects could be an option, but not is you are comparing for instance points and lines. In that case there are other things we can do like first buffering the features with a tolerance distance and then use Intersects or use the distance to establish the relation." Can you provide some hints or sample script?
... View more
10-24-2020
03:51 AM
|
0
|
1
|
2442
|
POST
|
Hi Xander Bakker, Thank you for your kind support. "If there is no common identifier shared among the two layers, maybe you need to use a spatial relationship. Does that exist between the two layers?": Yes, there is a spatial relationship exists between the feature class and reference layer ("Street_Locations"). Do you think "intersects" will be a solution? Like, if I create a record and if will intersect with the base layer (selected based on the two attributes of "Location_Group" field) then it will only show the Streetname. If it is possible then it will solve my issue. Great to have your suggestion in this regard. "Maybe you can expand a little about what each layer represents and how the relation between the two should be established and what you are trying to achieve. Based on your initial code in the question the common identifier "Street_ID" was implied, but I understand now that that is not the case.": I have two layers (one is feature layer: "Street_IDs" & base layer: "Street_Locations"), there is no common field between these two. What I want to do, I want to perform the query based on the selected attribute values (here, "Reserve" & "Park" of "LOCATION_GROUP") of the base layer, and want to select all records of "Street_ID" from the layer ("Street_IDs") and selected value of base layer (above mentioned two domain values from the attribute field present in base layer). Afterwards, if any created record will intersect "Reserve" or "Park" (of the layer "Street_Locations") then it will populate "STREET_NAME" (which is in the layer "Street_Locations), otherwise, there will be no "STREET_NAME" will be populated. Great to have your kind suggestion. Best regards, Shahriar
... View more
10-23-2020
08:14 AM
|
0
|
3
|
2442
|
POST
|
Hi Xander Bakker, The story is two vector layers are related. One layer (Roads_All) is a summary of many road layers (e.g., Local Roads, Collector Roads, Distributor Roads, Sub-Arterial and Arterial Roads). It is very challenging to work on many individual road layers (and the data are intermittent) and then append it into the base layer (here, Roads_All). I want to simplify the task in a single step (so I don't need to append it after adding one or two records). Is it possible to do it through ArcPy script, like while saving the edits, it will also append to the base layer? Sorry, but I am not sure is it doable or not.
... View more
10-23-2020
07:53 AM
|
0
|
3
|
2258
|
POST
|
Hi Xander Bakker, Maybe I am not doing the right SQL query. "Street_Locations" has "Location Group" field and has no common field with the feature class having the field "Street_ID". "The error is indicating that you don't have a field called "Steet_ID" (a bit strange that it refers to line 5, since the error should have occurred before that line). ".....is it necessary to have a common identifier in between two layers (reference layer: "Street_Locations" and feature class)? I want to select all the records of "Street_ID" from the feature class and also want to select based on "Location Group" from the "Street_Locations" reference layer. If in case there will be no common field between the two tables (reference layer and editing feature layer) is it possible to do the SQL query? Feature: "Street_IDs" having fields "Street_ID" & "ObjectID" Reference Layer (here "Street_Locations") have fields "OBJECTID", "LOCATION_GROUP", "STREET_NAME" Great to have your suggestion.
... View more
10-23-2020
07:19 AM
|
0
|
5
|
2442
|
POST
|
Hi Xander Bakker, Thank you for your kind support. But, this script is failing with this message, "Invalid expression. Error on line 5. Field not found Street_ID" Tried with the "ObjectID" field, it validates the Arcade expresssion but does not return Street name.
... View more
10-22-2020
05:06 PM
|
0
|
1
|
2442
|
POST
|
I need to create the same record to both of the spatial layers. I am not sure we can do it through Arcade, but if you have any ArcPy example/sample it will be great! Xander Bakker @Dan Patterson Thank you both for your suggestions.
... View more
10-22-2020
04:16 PM
|
0
|
1
|
2258
|
POST
|
I want to populate the Street name, but it should be restricted based on the selected domain values (“RESERVE” & “PARK”) of another attribute field (LOCATION_GROUP). The following script is giving me the Street name, but it’s not restricting my SQL query only for “RESERVE” and “PARK”, Var StreetID = $feature.Street_ID; Var Location = FeatureSetByName($datastore, “Street_Locations”); Var ids = “STREET_ID = ‘” + “LOCATION_GROUP = RESEREVE || LOCATION_GROUP = PARK‘” + StreetID + “’”; (maybe I am doing something wrong here) Var related_ids = Filter(Location, ids); Var cnt_street = Count(related_ids); Var StreetName = “”; if (cnt_street ==1){ For row (var row in related_ids){ StreetName = row.STREET_NAME; } else { StreetName = “”; } Return StreetName; Great to have your expert suggestion. Kind regards, Shahriar
... View more
10-20-2020
05:23 PM
|
0
|
9
|
2533
|
Title | Kudos | Posted |
---|---|---|
1 | 10-13-2020 05:07 PM |
Online Status |
Offline
|
Date Last Visited |
07-28-2023
02:57 PM
|