|
POST
|
@MatthewLehane wrote: And is it possible to use a custom toolbox on an ArcGIS Online web map? What are you actually trying to do?
... View more
05-14-2022
02:41 AM
|
0
|
1
|
1482
|
|
POST
|
Create a clone of the default arcgispro-py3 environment, install the packages you want and then activate it Work with Python environments - ArcGIS Pro | Documentation
... View more
05-13-2022
06:18 AM
|
0
|
3
|
1500
|
|
POST
|
@VinceE wrote: My assumption here is that PyCharm is somehow reading from the ArcGIS Desktop (Python 2.7) documentation, which is also installed on my system, but I can't find any references to that interpreter within PyCharm. No PyCharm (and VS Code) extract intellisense info from the code itself. And you only see top level info as the IDEs only look through the package you import, not sub-packages. Just import arcpy.management and intellisense should work.
... View more
05-11-2022
03:39 PM
|
0
|
1
|
3127
|
|
POST
|
Bit hard to say, you haven't shown enough code. Do you define or import the select_pour_point or make_watershed_raster functions anywhere?
... View more
05-10-2022
01:51 AM
|
1
|
0
|
953
|
|
POST
|
Another option is to loop through and select by attribute or make feature layer with a where clause # for loop to loop through each "group_extent" polygon in turn and create shadow polygons
oidname = arcpy.da.Describe(group_extent)["OIDFieldName"]
with arcpy.da.SearchCursor(group_extent, ['OID@']) as cursor:
groupCount = 0
for oid in cursor:
# variables
grp_lyr = arcpy.management.MakeFeatureLayer(group_extent, "temp_group", f"{oidname} = {oid}")[0]
shadowRas = "shadowRas"
shadowPnts = "memory\shadowPnts"
shadowPntsJoined = "memory\shadowPntsJoined"
# polygon to raster
arcpy.conversion.PolygonToRaster(grp_lyr, "MaxHeight", shadowRas, "CELL_CENTER", "NONE", cellsize, "DO_NOT_BUILD")
... View more
05-09-2022
02:11 PM
|
0
|
1
|
5892
|
|
POST
|
@AntoinePrince wrote: If I've learn one thing in Python, is that you never want to use backslashes. I've been using python for a very long time and can confidently say that backslashes are fine to use. The only issue is that new users don't realise that when you have a string literal in your code you need to escape backslashes or use raw string syntax (neither of which are applicable when you're passing a string in as a parameter). The backslashes used in the path in your parameter will be understood just fine by pandas. I have just tested and pd.read_csv worked as expected with backslashes. There's something else going on. Please paste in the error message you are getting.
... View more
05-08-2022
03:07 PM
|
0
|
0
|
1665
|
|
POST
|
Use the Merge tool and use the Field Map parameter.
... View more
05-06-2022
04:04 AM
|
1
|
0
|
1197
|
|
POST
|
I think you are confusing a custom toolbox with a python toolbox. You can't add existing scripts to a python toolbox, you need to edit it and write a Tool class.
... View more
04-26-2022
07:35 PM
|
0
|
0
|
1677
|
|
POST
|
Yes, Pro's conda executable is modified. The way I do it is have a standalone miniconda installation, point VSCode to the miniconda conda.exe and then select the arcgispro-py-clone as the project interpreter.
... View more
04-23-2022
04:31 PM
|
1
|
0
|
7915
|
|
POST
|
Leave the parameter as GPSpatialReference, Access the SpatialReference object using parameters[N].value (not valueAsText) Get the WKID using the SpatialReference.factoryCode property
... View more
04-23-2022
03:23 PM
|
1
|
1
|
2283
|
|
POST
|
Have never tried, but perhaps: arcpy.AddMessage("your message")
... View more
04-13-2022
01:49 AM
|
0
|
1
|
1990
|
|
DOC
|
@FelixHGW click on the source tab, not the properties tab
... View more
04-13-2022
01:46 AM
|
0
|
0
|
7479
|
|
POST
|
Nearest Neighbour resampling doesn't come into it at all. There's no proximity search, interpolation or resampling going on. The only applicable environments are: Auto Commit, Cell Size, Cell Size Projection Method, Compression, Current Workspace, Extent, Geographic Transformations, Output CONFIG Keyword, Output Coordinate System, Pyramid, Scratch Workspace, Snap Raster, Tile Size As to how it works, that's explained in detail in the link @SteveLynch provided. You specify a cell size and extent and values are assigned to each cell according cell assignment type and the points that fall inside that cell. (with some rules to handle points right on cell boundaries) Are you using ArcMap? I think, ArcMap shows you all environment settings, even those that don't apply. Pro only shows applicable environments. But the ArcMap help also states that only the above environments apply.
... View more
04-06-2022
02:17 AM
|
0
|
0
|
525
|
|
POST
|
No that's just a generic JSON response. You'd have to do something to convert it into an EsriJSON or GeoJSON. https://support.esri.com/en/technical-article/000025450
... View more
04-06-2022
01:33 AM
|
0
|
0
|
1471
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 07-24-2022 03:08 PM | |
| 1 | 07-30-2025 03:00 PM | |
| 1 | 06-10-2025 08:06 PM | |
| 5 | 05-20-2025 07:56 PM | |
| 1 | 05-04-2025 10:34 PM |