POST
|
After upgrading to Pro 2.9.2 (ArcGIS for Python API 1.9.1) the layer[<index>].attachments.search() method only return the first 1000 features. data = FeatureLayerCollection(<valid feature service>, <valid GIS>)
main_attach = pd.DataFrame(data.layers[0].attachments.search())
#returns df with only the first 1000 attachment records This is the main feature layer from a feature service created with Survey123. This only started happening since upgrading. How do I override this?
... View more
05-09-2022
12:35 PM
|
0
|
5
|
636
|
POST
|
The ...spatial.to_featureclass() method no longer overwrites the existing feature class. Sample code: import arcpy
import pandas as pd
from arcgis.features import Feature
arcpy.env.overwriteOutput = True
df = pd.DataFrame.spatial.from_featureclass(<valid featureclass>)
#modify features in some fashion
df.spatial.to_featureclass(location=<path to existing feature class>, overwrite=True, sanitize_columns=False) ArcGIS API for Python version 1.9.1
... View more
04-05-2022
08:15 AM
|
0
|
5
|
955
|
POST
|
This is pretty much the approach I ended up going with. It works but it's not great for lists that change often.
... View more
10-05-2021
05:33 AM
|
0
|
0
|
589
|
POST
|
This must have been introduced in version 1.9. Not sure why they thought modifying column names automatically was a good idea.
... View more
08-12-2021
06:30 AM
|
1
|
1
|
3961
|
POST
|
After upgrading to ArcGIS API for Python 1.9.0 I can no longer use a Result object to create Spatial Dataframe. *Apologies for not formatting the code as code. I'm not sure where that option went Example code: import arcpy import pandas as pd from arcgis.features import Feature result_object = arcpy.Intersect_analysis([valid_input1, valid_input2], r'in_memory\output') df = pd.DataFrame.spatial.from_featureclass(result_object) Error message: ValueError: filename must be a `str`, `Path`, or `PurePath`, not <class 'arcpy.arcobjects.arcobjects.Result'> The workaround is to use: df = pd.DataFrame.spatial.from_featureclass(r'in_memory\output') instead of the Result object variable, but now I have to change my code
... View more
07-29-2021
06:18 AM
|
1
|
8
|
1061
|
POST
|
I'm attempting to create a note question type that displays all items from a choice list that have not been selected in a repeat. I have no problem building a string containing all items that have been selected. Is there a way to access either the entire list? I am open to writing it into a JS function if possible.
... View more
03-16-2021
07:25 AM
|
0
|
2
|
848
|
POST
|
I'd like to hide the length text that appears in my survey form (see below). It is an inbox survey with geotrace features. Thanks
... View more
02-11-2021
11:58 AM
|
0
|
1
|
611
|
POST
|
Not OP but I had been using version 1.7. I didn't change anything in my code bu now I get Could not load the dataset: 'PropertyMap' instance has no attribute 'drawingInfo' after moving to 1.8
... View more
08-21-2020
06:51 AM
|
0
|
2
|
2838
|
POST
|
I also have this problem since upgrading to ArcGIS Pro 2.6. Layer and index are correct. Worked fine before upgrading ArcGIS Pro.
... View more
08-12-2020
08:24 AM
|
0
|
0
|
2838
|
POST
|
No clue what's going on here but my temporary hack solution was to modify my .bat files to keep repeating the commands that run my scripts until the exit code = 0. :StartLoop "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\python.exe" "C:\Users\jhuillery\Desktop\import_arcgis.py" IF %ERRORLEVEL% NEQ 0 GOTO StartLoop pause
... View more
02-26-2020
08:52 AM
|
3
|
1
|
2171
|
Title | Kudos | Posted |
---|---|---|
1 | 03-21-2024 05:37 AM | |
1 | 04-05-2022 08:19 AM | |
1 | 07-29-2021 06:18 AM | |
1 | 08-12-2021 06:30 AM | |
1 | 02-14-2019 01:40 PM |
Online Status |
Offline
|
Date Last Visited |
3 weeks ago
|