POST
|
Use arcpy.ImportToolbox: toolbox = "C:\\Users\\Kedaravindan Bhaskar\\Documents\\ArcGIS\\Projects\\FBM_research\\FBTool\\firebreak.tbx"
arcpy.ImportToolbox(toolbox, "firebreak")
arcpy.FBCalc_firebreak(tool, parameters, etc...)
... View more
yesterday
|
0
|
0
|
22
|
POST
|
If the newer .atbx toolboxes can use a custom xsl stylesheet (I don't know...), then this old ArcGIS Desktop answer might be useful: Controlling Categories in Script Validation Tools - Expanding Groups By Default This isn't possible in python, but you can by using a custom stylesheet. Copy "C:\Program Files (x86)\ArcGIS\Desktop10.2\ArcToolbox\Stylesheets\MdDlgContent.xsl" to the same folder as your script. Edit line 467 to remove STYLE="display:'none';", i.e. change: <DIV ID="{PropertyGroupName}" STYLE="display:'none';" onclick="window.event.cancelBubble = true;">
to <DIV ID="{PropertyGroupName}" onclick="window.event.cancelBubble = true;">
Then in your script tool properties, set the stylesheet property to your edited.xsl.
... View more
Friday
|
3
|
0
|
77
|
POST
|
@zak100 wrote: I am using the above code: import random import numpy as np import sys from arcgis.gis import GIS gis = GIS("https://www.arcgis.com", "zak100", "**********") but I am getting the error: from arcgis.gis import GIS ModuleNotFoundError: No module named 'arcgis' You need to install arcgis - the ArcGIS API for Python @zak100 Note if that is was actually your arcgis.com password (now changed by a mod), I suggest you change it immediately.
... View more
2 weeks ago
|
0
|
0
|
73
|
POST
|
You're confusing conda installation syntax (-c esri arcpy means install arcpy from the esri conda channel) with pip. ArcPy is not available in PyPi. You may be able to install arcpy on your Ubuntu device using conda if you have a recent version of ArcGIS Server already installed and licensed on that device. You can't run ArcPy without ArcGIS Server (Windows or Linux) or ArcGIS Pro (Windows only). Documentation: https://pro.arcgis.com/en/pro-app/latest/arcpy/get-started/installing-arcpy.htm
... View more
2 weeks ago
|
0
|
0
|
118
|
POST
|
You're adding an record to the attribute table with no geometry. Entering coordinates into the table doesn't create geometry for you. Instead, add a feature using the editing tools. This will allow you to enter coordinates. Specify an x,y,z location
... View more
3 weeks ago
|
1
|
1
|
117
|
POST
|
Python 3.12 is not supported yet. From pypi: Programming Language Python :: 3 :: Only Python :: 3.9 Python :: 3.10 Python :: 3.11 From the API system requirements docs: Python Version Python 3.9.x to 3.11.x is required
... View more
3 weeks ago
|
2
|
1
|
191
|
DOC
|
@Shauna-RaeBrown wrote: PyCharm interpreter is set for 2.7 ArcGIS Pro doesn't use Python 2.7. As @BlakeTerhune states, you need to point PyCharm at ArcGIS Pro's Python, either C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\python.exe or if you've cloned the default arcgispro-py3 environment, the python.exe in your clone.
... View more
3 weeks ago
|
0
|
0
|
403
|
IDEA
|
@Bud wrote: It's my limited understanding that a lot of geoprocessing tools are Python under the covers. Not really. Most of the GP tools are native (they'll have a tool icon in Toolbox). The ones that are implemented in Python (script icon in Toolbox) mostly use arcpy which is a thin wrapper around the underlying native implementation in ArcGIS. I don't think the bottleneck is the "glue" language (python in this case) and changing it isn't going to change the overall execution speed much. Python is not always slow. Depends what for/how it's used. There's a number of other efforts at speeding python up, from python implementations (pypy, pyston), compiling python code to native code (numba, cython) and the usual "write all the slow stuff in C/C++/Fortran and compile a native extension" like arcpy, numpy and many others. MoJo seems to be yet another attempt.
... View more
4 weeks ago
|
0
|
0
|
98
|
POST
|
Projecting a dataset won't change the location of the features. If you think the projection is incorrect, redefine it.
... View more
03-04-2024
02:05 AM
|
1
|
0
|
128
|
POST
|
WGS 1984 Web Mercator (auxiliary sphere) is a projected coordinate system that uses metres as the units, not longitude/latitude. Try setting an output spatial reference. with arcpy.da.UpdateCursor(inFeatures, ["SHAPE@X","SHAPE@Y", "bhid"], spatial_reference=arcpy.SpatialReference(4326)) as cursor:
for row in cursor:
etc...
... View more
02-19-2024
01:54 PM
|
3
|
1
|
220
|
POST
|
Mosaic to New Raster doesn't alter cell values (unless there's a need to resample, and it sounds like there is no need for your tiles). You are just seeing approximate statistics. Add the mosaiced raster and the original tiles, turn them on and click anywhere using the explore tool to get a popup showing raster values where you clicked and you'll see they're the same.
... View more
01-14-2024
11:10 PM
|
0
|
0
|
262
|
POST
|
It's there (3824 KB), but you have the "Hide extensions for known file types" option enabled in Windows Explorer. Go to the 3 dot menu, Options, View tab and disable it.
... View more
01-04-2024
03:42 AM
|
0
|
0
|
200
|
IDEA
|
It's an interpreter (REPL), not an editor or an IDE. The Jupyter Notebook interface might suit your way of working better?
... View more
12-17-2023
11:36 PM
|
0
|
0
|
453
|
POST
|
Hopefully it was just a glitch. I haven't received any email notifications for new posts in ArcGIS Parcel Fabric for the last couple of days.
... View more
12-14-2023
12:22 PM
|
0
|
1
|
344
|
POST
|
Screenshots of code are pretty much useless unless the issue is really obvious and the code is short. Please post code as text in future. How to insert code in your post
... View more
12-11-2023
01:10 PM
|
1
|
1
|
535
|
Title | Kudos | Posted |
---|---|---|
3 | Friday | |
1 | 3 weeks ago | |
2 | 3 weeks ago | |
1 | 03-04-2024 02:05 AM | |
1 | 07-11-2022 05:26 PM |