|
POST
|
j94a7e5b06f3342deb0ebcb65467f63fe This number differs from the one in the your image... is that supposed to happen?
... View more
07-21-2020
02:38 AM
|
1
|
3
|
8170
|
|
POST
|
In the dialog of the toolbox you are using, you should have specified a parameter of the appropriate type (raster layer or raster dataset). I would navigate to the image and select it rather than dragging. To get the outputs you should add the code snippet from Make Raster Layer—Data Management toolbox | Documentation
... View more
07-21-2020
02:35 AM
|
1
|
2
|
1676
|
|
POST
|
The alternate solution in the link you posted showed how to edit the script and the parameters of the toolbox. Is that what you were following?
... View more
07-21-2020
02:30 AM
|
0
|
0
|
3298
|
|
POST
|
What were the inputs? A point featureclass? a shapefile? How many points? What were the properties selected in the dialog?
... View more
07-21-2020
02:26 AM
|
0
|
6
|
7967
|
|
POST
|
Leandra Gordon The procedure described in the topic describes how to create the script and assign it to a tool for use in a toolbox. Since it has been corrected in subsequent versions and 2.3 is due to retire in about 18 months, I wouldn't expect a backport to exist beyond what is described in the workaround in your link re support Esri Support ArcGIS Pro 2.5.2 (covers previous versions again
... View more
07-20-2020
08:41 PM
|
0
|
3
|
3298
|
|
BLOG
|
Matplotlib In the ArcGIS ecosystem, I often use Matplotlib to plot geometry objects, particularly when I have a need to save a plot as an image for documentation purposes. The following code example shows how to plot polygons or polylines relatively quickly. The required inputs are a numpy array or a Geo array. ---- The plots to the left show variants of polygon geometry displayed as polylines or filled polygons. The plot to the right is for a hexagon geometry. The geometry values as arrays are shown below their respective plots. Geometries with holes and/or different point compositions are represented as object arrays (aka 'ragged arrays'), while regular patterns are simple numpy ndarrays. Compose your own for testing or extract list values from json data. array([array([[ 0.0, 0.0], [ 0.0, 10.0], [ 8.0, 10.0], [ 10.0, 10.0],
[ 10.0, 8.0], [ 10.0, 0.0], [ 0.0, 0.0]]),
array([[ 3.0, 3.0], [ 7.0, 3.0], [ 5.0, 7.0], [ 3.0, 3.0]]),
array([[ 8.0, 10.0], [ 8.0, 11.0], [ 8.0, 12.0], [ 12.0, 12.0],
[ 12.0, 8.0], [ 10.0, 8.0], [ 10.0, 10.0], [ 8.0, 10.0]]),
array([[ 5.0, 11.0], [ 5.0, 12.0], [ 6.0, 12.0], [ 8.0, 12.0],
[ 8.0, 11.0], [ 5.0, 11.0]]),
array([[ 5.0, 12.0], [ 5.0, 15.0], [ 6.0, 15.0], [ 6.0, 12.0],
[ 5.0, 12.0]])], dtype=object)
array([[[-1.0, 0.0], [-0.5, 0.9], [ 0.5, 0.9], [ 1.0, 0.0], [ 0.5, -0.9],
[-0.5, -0.9], [-1.0, -0.0]], [[ 0.5, 0.9], [ 1.0, 1.7],
[ 2.0, 1.7], [ 2.5, 0.9], [ 2.0, 0.0], [ 1.0, -0.0], [ 0.5, 0.9]],
... snip ...
[[ 3.5, 4.3], [ 4.0, 5.2], [ 5.0, 5.2], [ 5.5, 4.3], [ 5.0, 3.5],
[ 4.0, 3.5], [ 3.5, 4.3]], [[ 5.0, 3.5], [ 5.5, 4.3], [ 6.5, 4.3],
[ 7.0, 3.5], [ 6.5, 2.6], [ 5.5, 2.6], [ 5.0, 3.5]]]) The code is below. NumPy documentation style is used for the __doc__ string. import numpy as np
import matplotlib.pyplot as plt
from matplotlib.collections import LineCollection
def plot_polygons(arr, outline=True):
"""Plot Geo array poly boundaries.
Parameters
----------
arr : ndarray or Geo array
If the arrays is a Geo array, it will convert it to `arr.bits`.
outline : boolean
True, returns the outline of the polygon. False, fills the polygon
References
----------
See module docs for general references.
Example
-------
use hexs to demonstrate::
h = npg.npg_create.hex_flat(dx=1, dy=1, x_cols=5, y_rows=3,
orig_x=0, orig_y=0, kind=2, asGeo=True)
"""
def _line(p, plt): # , arrow=True): # , color, marker, linewdth):
"""Connect the points."""
X, Y = p[:, 0], p[:, 1]
plt.plot(X, Y, color='black', linestyle='solid', linewidth=2)
# ----
if hasattr(arr, 'IFT'):
cw = arr.CW
shapes = arr.bits
else:
cw = np.repeat(1, arr.shape[0])
shapes = np.copy(arr)
fig, ax = plt.subplots(1, 1)
fig.set_figheight = 8
fig.set_figwidth = 8
fig.dpi = 200
plt.tight_layout(pad=0.2, h_pad=0.1, w_pad=0.1)
ax.set_aspect('equal', adjustable='box')
# cmap = plt.cm.get_cmap(plt.cm.viridis, 143) # default colormap
cmap = plt.cm.get_cmap('jet', len(shapes)) # 'hsv'
for i, shape in enumerate(shapes):
if outline: # _line(shape, plt) # alternate, see line for options
plt.fill(*zip(*shape), facecolor='none', edgecolor='black',
linewidth=3)
else:
if cw[i] == 0:
clr = "w"
else:
clr = cmap(i) # clr=np.random.random(3,) # clr = "b"
plt.fill(*zip(*shape), facecolor=clr)
# ----
plt.show()
return plt
# ---------------------------------------------------------------------
if __name__ == "__main__":
"""Main section... """
"""
# --- sample hexagons
z = np.array([[[-1.0, 0.0],
[-0.5, 0.9],
[ 0.5, 0.9],
[ 1.0, 0.0],
[ 0.5, -0.9],
[-0.5, -0.9],
[-1.0, -0.0]],
[[ 0.5, 0.9],
[ 1.0, 1.7],
[ 2.0, 1.7],
[ 2.5, 0.9],
[ 2.0, 0.0],
[ 1.0, -0.0],
[ 0.5, 0.9]],
[[ 2.0, 0.0],
[ 2.5, 0.9],
[ 3.5, 0.9],
[ 4.0, 0.0],
[ 3.5, -0.9],
[ 2.5, -0.9],
[ 2.0, -0.0]]])
plot_polygons(z, outline=False) # ---- plot filled
"""
A couple of sample hexagons are given in lines 65-87 and the function call on line 89, if you want to experiment. If you are interested in geometry, then I have been working on this as part of my Free Tools project. The main/most current code is contained in this link. GitHub - Dan-Patterson/numpy_geometry: A numpy geometry class and functions that work with arcpy and ESRI featureclasses Have fun.
... View more
07-20-2020
06:40 PM
|
1
|
0
|
4002
|
|
POST
|
I see no tool of that name, but you can confirm at the end of the month when Beta 2 ends
... View more
07-20-2020
02:35 PM
|
0
|
0
|
4006
|
|
POST
|
Hailey Wright I couldn't find anything specific related to that tool or on the error message related to that tool on the Support site Esri Support | ArcGIS Technical Support So I suspect your suggestion may be correct. Upgrading might solve the question
... View more
07-20-2020
02:26 PM
|
0
|
1
|
1874
|
|
POST
|
There is a merge tool which can be used with point featureclasses, but by chance are you looking for Aggregate Points—ArcGIS Pro | Documentation
... View more
07-20-2020
01:47 PM
|
0
|
3
|
4006
|
|
POST
|
Arcpy is installed in a particular manner in a conda distribution managed by esri. It requires that you use "their" python and if you plan to use arcpy, then install ArcGIS Pro (if you haven't already) and it will be available to you. You won't be able to successfully/(easily) access arcpy from the "outside world". Python 3.7 adds some nice features, some of which were back candidates to 3.6 but there are no major breaks on the python side that will cause you issues.
... View more
07-20-2020
01:43 PM
|
0
|
0
|
4406
|
|
POST
|
Did you try to do it in the python window? import arcpy
arcpy.CreateDatabaseSequence_management(r"C:/geodatabases/myfilegdb.gdb",
"my_ids", 1, 1) Make sure you are using raw encoding for the path to the geodatabase in case spaces or other non-supported characters are the issue
... View more
07-20-2020
01:40 PM
|
1
|
3
|
1874
|
|
POST
|
make sure you have the correct conda environment activated before you use the tools and that you installed Pillow. (conda install Pillow=6.1.0). The error at the end says it can't find the appropriate dll associated with it From Install and set up | ArcGIS for Developers for Pro 2.5, the install recommendation was conda install -c esri -c fastai -c pytorch arcgis=1.8.1 scikit-image=0.15.0 pillow=6.2.2 libtiff=4.0.10 fastai=1.0.60 pytorch=1.4.0 torchvision=0.5.0 --no-pin check your conda list against the versions assuming you installed arcgis and want to use notebooks
... View more
07-20-2020
12:55 AM
|
0
|
0
|
3574
|
|
POST
|
Did you try to use a previous dataset that you know worked? Or is this a new data set? The error message suggests that something isn't installed (PIL? )or installed with an incorrect version.
... View more
07-19-2020
07:54 PM
|
0
|
2
|
3574
|
|
POST
|
Did you follow this when you reinstalled everything? Install deep learning frameworks for ArcGIS—ArcGIS Pro | Documentation
... View more
07-19-2020
06:07 PM
|
0
|
4
|
3574
|
|
POST
|
Have you seen the basic information links in the help topics? Introduction to deep learning—ArcGIS Pro | Documentation or the samples on the api site ArcGIS API for Python | ArcGIS for Developers samples are here arcgis-python-api/samples at master · Esri/arcgis-python-api · GitHub
... View more
07-19-2020
12:27 PM
|
1
|
0
|
1824
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | Monday | |
| 1 | 02-26-2026 01:52 PM | |
| 1 | a week ago | |
| 1 | 2 weeks ago | |
| 1 | 3 weeks ago |