|
IDEA
|
I would add, give us a patch manager that works correctly! As good as an idea the PatchNotification tool is, the implementation hasn't been thought out completely and quality controlled very well. I opened an Esri Support case a few week back pointing out all of the bad URLs and information in the JSON file that drives the tool. To their credit, they have cleaned a bunch of it up, but there are still several other big issues with the tool.
... View more
06-24-2021
08:22 AM
|
0
|
0
|
1572
|
|
POST
|
I guess I disagree with some of the statements in that post. The Python 3 distribution isn't "hidden" on Server, they just put it in a different place than the Python 2 distribution. If the packages don't match between Pro and Server, it is very few packages. I don't have time to compare at the moment, but the commenter in the other thread should have given some hard numbers instead of just making statements they are different.
... View more
06-23-2021
08:47 AM
|
1
|
1
|
4622
|
|
POST
|
I assume you are talking about Pro and not ArcMap here. If so, the explanation is, it's a defect. I logged a defect over a year ago for likely what is the same issue you are dealing with, but they have set it low priority, so I am not expecting them to address it any time soon. #BUG-000128367 Using the Python method hasattr() produces different error messages when used in ArcMap (10.7.1) versus ArcGIS Pro (2.5 Beta)
... View more
06-23-2021
08:44 AM
|
2
|
1
|
3818
|
|
POST
|
I tried several stand-alone scripts that basically do the same thing your code does, and all of them work as expected. Given the error message, and the fact I can't reproduce it, make sure you are not copying pasting single and double quotes from other applications because it may be what you think is a single or double quote is not and the Python interpreter is reading your code differently than you expect.
... View more
06-22-2021
02:52 PM
|
0
|
0
|
2826
|
|
POST
|
Regarding, apparently it does not have all the functionality Can you provide some examples? We use/publish large numbers of geoprocessing services using Python 3, and we have never run into limitations from Python 2.
... View more
06-22-2021
02:44 PM
|
0
|
3
|
4649
|
|
POST
|
How are you executing the code? As a standalone script outside of Pro, a script tool in Pro, the interactive Python window in Pro, Jupyter notebook, etc...?
... View more
06-22-2021
11:13 AM
|
0
|
2
|
2858
|
|
POST
|
I just tested a similar code snippet in Pro 2.8.0, and everything worked as expected, i.e., no error and expected results. What desktop client and version are you using?
... View more
06-22-2021
11:04 AM
|
0
|
4
|
2859
|
|
POST
|
Selections don't apply to data sets, they apply to layers or views. Although you can now pass a data set directly to a Select Layer tool (personally, I disagreed with this change when Esri made it a couple years back), the selection isn't being made directly on the data set. Instead, when a data set is passed directly to a Select Layer tool, a layer or view is created behind the scenes and the selection is placed on it. With your code, you are not retrieving the auto-generated layer. I still personally think it is best practice to create a layer first and then pass it to Select Layer tools.
... View more
06-22-2021
07:15 AM
|
2
|
1
|
4174
|
|
POST
|
I will start by answering your first two questions: 1. No, ArcMap is not bundled with ArcGIS Server 2. No, ArcMap does not need to be installed on the same machine as ArcGIS Server.
... View more
06-17-2021
08:37 AM
|
1
|
0
|
2049
|
|
POST
|
Regarding However, this did not work when I tried to execute the script. It always helps to be more specific. What exactly does "did not work" mean? Did you get an error? If so, what error, specifically? Did you get an unexpected result? if so, what were you expecting and what did you get? You should be able to simply retrieve the date and add the time to it: !SurveyDate! + datetime.timedelta(days=365)
... View more
06-15-2021
07:09 AM
|
2
|
0
|
7882
|
|
POST
|
Firstly, no Esri staff person is going to provide an answer here to that question, especially not a firm date. Looking over the ArcGIS Pro Product Lifecycle web page(Esri Support ArcGIS Pro 2.8) , the x.y.1 release comes anywhere from 1 month to 3 months after the x.y.0 release. Since it is nearly a month since 2.8 was released, 2.8.1 could be released next week or it could be 2 months from now. Although Esri assigns versions to releases, the products is really on a continuous release within a major version. As such, organizations are going to have to adapt their internal practices to put less emphasis on "version upgrades" and more emphasis on "continual updates."
... View more
06-10-2021
07:12 AM
|
3
|
1
|
2919
|
|
POST
|
As Dan pointed out earlier, using code highlighting/formatting is helpful. Also, what line is the error happening on because I don't see where you are using an SQL query at all. Also, please provide the traceback of the error message along with the the error.
... View more
06-10-2021
05:52 AM
|
1
|
8
|
11434
|
|
POST
|
Within Pro itself, there is no configuration to achieve what you ask. I suggest you search the web for general Windows Server solutions to limiting process memory usage. There are some tools that may work for you, although I don't know what the impact would be on Pro application sessions of forcing memory restrictions.
... View more
06-09-2021
10:42 AM
|
1
|
0
|
2720
|
|
POST
|
If you are wanting/needing the "raw" data to do analysis locally, I strongly discourage obtaining the data set from a GIS service. GIS services are handy for quite a few things, but they make terrible data exchanges for dense data sets, at least in my opinion. Additionally and specifically for this data set, it is being served up in Web Mercator, which is a garbage projection unless you making/using basic browser-based maps. If you visit BLM National Surface Management Agency Area Polygons - National Geospatial Data Asset (NGDA) - data.doi.gov, you can download the data, which looks to be an 850 MB zip file. Good luck downloading an 850 MB data set via map service, that will be fun and slow.
... View more
06-07-2021
04:48 PM
|
4
|
0
|
31315
|
|
POST
|
The issue you are running into has been around for many, many years. I logged a defect with ArcGIS 10.3.1, and I am quite sure it was around before then. Esri Development did some hand waiving that they aren't going to address it, which is absurd, but I learned my lesson and switched to using WKT or JSON since the default Geometry constructors are not reliable. The crux of the issue is that Geometry.getPart() will insert a None between the outer and inner rings of a polygon, but the Polygon constructor doesn't deal with them correctly. >>> import arcpy
>>> pg = arcpy.FromWKT('POLYGON((0 0, 10 0, 10 10, 0 10, 0 0),(7 3, 3 3, 3 7, 7 7, 7 3))')
>>> # notice the Python None between outer and inner ring
>>> pg.getPart(0)
<Array [<Point (0.0, 0.0, #, #)>, <Point (0.0, 10.0, #, #)>, <Point (10.0, 10.0, #, #)>, <Point (10.0, 0.0, #, #)>, <Point (0.0, 0.0, #, #)>, None, <Point (7.0, 3.0, #, #)>, <Point (7.0, 7.0, #, #)>, <Point (3.0, 7.0, #, #)>, <Point (3.0, 3.0, #, #)>, <Point (7.0, 3.0, #, #)>]>
>>>
>>> # Retrieving a part and passing back to Polygon constructor fails.
>>> (arcpy.Polygon(pg.getPart(0))).WKT
'MULTIPOLYGON (((0 0, 10.0001220703125 0, 10.0001220703125 10.0001220703125, 0 10.0001220703125, 0 0)))'
>>> If you remove the Python None, the Polygon constructor will recognize the rings correctly >>> (arcpy.Polygon(arcpy.Array(pnt for pnt in pg.getPart(0) if pnt))).WKT
'MULTIPOLYGON (((0 0, 10.0001220703125 0, 10.0001220703125 10.0001220703125, 0 10.0001220703125, 0 0), (3.0001220703125 7.0001220703125, 7.0001220703125 7.0001220703125, 7.0001220703125 3.0001220703125, 3.0001220703125 3.0001220703125, 3.0001220703125 7.0001220703125)))'
>>> I have run into issues with the default Geometry constructors, as I mentioned above, so I have moved away from them. Also, the default Geometry constructors are terribly slow. I wrote a blog post about the performance issue: https://community.esri.com/t5/gis-blog/biding-time-arcpy-geometry-constructors/ba-p/896304
... View more
06-07-2021
03:23 PM
|
1
|
1
|
5376
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 06-11-2026 07:04 AM | |
| 1 | a month ago | |
| 2 | 07-06-2026 12:29 PM | |
| 1 | 07-06-2026 12:00 PM | |
| 2 | 06-05-2026 10:30 AM |
| Online Status |
Offline
|
| Date Last Visited |
10 hours ago
|