|
POST
|
Zachary Hart wrote: ... That's a really great point since in terms of server-side processing all of Enterprise/Server still leverages python 2.7 Not quite. From the Help: ArcGIS Server includes Python 2.7 for Windows 64 bit. At ArcGIS Enterprise 10.5 and later, the conda environment is included with ArcGIS Server. The conda environment is based on Python 3. ... Similar to ArcGIS Pro, ArcGIS Server uses conda to manage Python environments.
... View more
12-12-2019
03:23 PM
|
0
|
2
|
2796
|
|
POST
|
John Sawicki did you try this? I'm interested to see if it actually worked or not since I can't test.
... View more
09-28-2019
01:06 AM
|
0
|
4
|
7875
|
|
POST
|
I don't know if this will work and can't test*, but you could try getting the CIM definition (>= ArcGIS 2.4) from the map and then use json.dump / json.dumps to write the .mapx file manually. * corporate IT moves slooowly and we're still on 2.3 Something like: import arcpy
import json
aprx_path = "path\\to\\your.aprx"
mapx_path = "path\\to\\{}.mapx"
aprx = arcpy.mp.ArcGISProject(aprx_path)
for map in aprx.listMaps():
print("Map: " + map.name)
map_def = map.getDefinition() # <-- Get the CIM definition
with open(mapx_path.format(map.name), 'w') as map_file:
map_file.write(json.dumps(map_def)) From the documentation - Python CIM access—ArcPy | ArcGIS Desktop Python CIM access The arcpy.mp module ... does not provide access to all properties, settings, and capabilities available in ArcGIS Pro. One reason is to keep the API streamlined, simple, and manageable. Another reason is that ArcGIS Pro is being developed at such a rapid pace that the APIs can't keep up. It may take a release or more before you have access through the managed APIs. Starting with ArcGIS Pro 2.4, Python developers will have fine-grained access to the Cartographic Information Model (CIM) and can access many more settings, properties, and capabilities that are persisted in a project or document. ... What is the CIM The CIM is the Esri Cartographic Information Model. It is a map content specification used to document how information that describes various project components is persisted when saved, read, referenced, or opened. The specification is represented as JSON and is used for maps, scenes, layouts, layers, symbols, and styles in ArcGIS applications and APIs.
... View more
09-20-2019
08:45 PM
|
1
|
5
|
7875
|
|
POST
|
info = arcpy.GetInstallInfo()
print(info['ProductName'],info['Version'])
#e.g ArcGISPro 2.3.2
... View more
08-25-2019
07:09 PM
|
0
|
2
|
3794
|
|
POST
|
Have you considered a Map Series (what was known as Data Driven Pages in Desktop)? Map series—Layouts | ArcGIS Desktop
... View more
07-16-2019
09:15 PM
|
2
|
1
|
1236
|
|
POST
|
This was an issue in 2.2 and is still an issue in 2.3. I can't upgrade to the latest 2.4 to test, we're reliant on IT to package and roll out and we only recently got 2.3.
... View more
07-11-2019
06:53 PM
|
0
|
0
|
1550
|
|
POST
|
Sometimes it's necessary. When the consolidated database is just too big and unwieldy to use, even with spatial and attribute indexes and professional database tuning there's no other option. Think continental scale cadastre, tenure, species distributions. Definition queries just don't cut it in these cases.
... View more
06-03-2019
04:08 AM
|
1
|
0
|
5398
|
|
POST
|
Have you considered the split by attributes tool? Split By Attributes—Help | ArcGIS Desktop
... View more
06-02-2019
08:18 PM
|
2
|
1
|
5398
|
|
POST
|
Yes you can. Myself and Duncan Hornby have posted before about what you need to do (in ArcMap, but it's pretty much the same for Pro), here and on GIS StackExchange (ie change the multiprocessing executable amongst other things). See arcgis 10.3 - Can multiprocessing with arcpy be run in a script tool? - Geographic Information Systems Stack Exchange Now you're using python 3, I also recommend looking at the concurrent.futures module, a higher level interface to multiprocessing and threading.
... View more
04-24-2019
06:36 PM
|
1
|
1
|
4346
|
|
POST
|
And don't forget that you can only use a cursor once and then it's exhausted/empty. So by using print(max(searchCursor))
You have exhausted the cursor.
... View more
04-24-2019
05:39 PM
|
2
|
1
|
2196
|
|
POST
|
Joe Borgione wrote: # -*- coding: utf-8 -*- """ This has always been my very first line """" I would have thought that line 1 would have taken care of things, but I guess not.. So what's the answer? I guess it depends..... As I mentioned earlier the special coding: comment line only applies to string literals in your code, i.e literally written in the .py file, not to any data/variables. The real answer is to treat your strings as unicode (cos they are when read from a cursor) and do any string munging with unicode strings, i.e univar = row[0].replace(u'\n', u'==>') then encode on output univar.encode('utf8').
... View more
04-16-2019
03:55 PM
|
1
|
0
|
5115
|
|
POST
|
Joe Borgione wrote: Version of ArcGIS Pro software: 2.3 and beyond. Version of Arcpy: 3.x and beyond.... Nope. arcpy version == corresponding ArcGIS desktop/Pro version (the most recent version listed in Anaconda cloud Esri packages is 2.3) I think you're thinking of the Python version, 2.x in ArcGIS Desktop 9-10x and 3.x in ArcGIS Pro.
... View more
03-18-2019
04:31 PM
|
1
|
0
|
2441
|
|
POST
|
Can you provide some more code, i.e a tool class that implements just the bit that you are asking about. Are you selecting a value in the SequenceTheMoveCodes parameter control before trying to use the up/down arrows?
... View more
03-14-2019
06:36 PM
|
0
|
0
|
4777
|
|
POST
|
Your pyramids (reduced resolution overviews) are being generated using "nearest" resampling. Use "bilinear" or "cubic" instead. Your clipped data is probably also being displayed with a different stretch to your original data. If the data is 8bit RGB and doesn't need stretching, ensure the stretch type is set to None for the clipped layer symbology (it defaults to a percent clip stretch). If the data is 16bit or something else, it needs stretching for display and ArcGIS relies on band statistics to do the stretch, you'll have to manually set the clipped image statistics (for display only in the layer symbology) to be the same as the original layer. However, you don't really need to do this, if you're not going to be using the data, just sending it to someone else. And I really don't recommend using ESRI GRID format, use a GeoTIFF instead (or a file GDB raster if you must) unless the third party absolutely requires GRID.
... View more
03-07-2019
02:04 PM
|
1
|
2
|
4635
|
| 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 |