|
POST
|
And to add that, assuming this is a fresh machine image, the production environment won't have Arc Map installed so any tool that references stylesheets in the Arc Map installation directory doesn't help much either.
... View more
06-08-2018
12:27 PM
|
0
|
0
|
10818
|
|
POST
|
How To: Delete geoprocessing history from a geodatabase doesn't work in Pro: Lots of syntax errors. Manage history only applies to history written to the SDE or the Feature lass metadata while manipulating data in Pro. The problem I have is bloated SDE databases from GP history getting squirreled away everywhere.
... View more
06-08-2018
12:25 PM
|
0
|
1
|
10818
|
|
POST
|
As a follow up to https://community.esri.com/message/707351-re-arcgis-pro-is-unusable-with-large-sde-geodatabases?commentID=707351#comment… , I'm not finding any tool or python in Pro that allows one to remove geoprocessing history? Is, or will, this be possible with Pro?
... View more
06-08-2018
12:07 PM
|
0
|
11
|
15601
|
|
BLOG
|
Kory, https://community.esri.com/ideas/12258?messageTarget=all&start=150&mode=comments#comment-61980 is quite an indicator of what it means to be on the radar screen.......this totally screws up my statistics!
... View more
06-06-2018
06:15 PM
|
0
|
0
|
2793
|
|
BLOG
|
Many of us have one or two things about Pro that is a "fish or cut bait" barrier to migrating to Pro. For me, it's ArcGIS Pro Publish Services To ArcGIS Server. My thoughts, and those of many others, on that topic are well and clearly laid out in that idea, so no rehashing the debate here. But what's really frustrating the very many folks that are impacted by not being able to perform that critical task is the lack of any meaningful response to the clearly articulated concerns, use cases, needs for the requirement, and impact of not having it that have been repeated in the over 150 comments provided. After a "few beers" last night, a conspiracy theory developed that involved geography, learning how to symbolize things in Pro, and the top 100 Ideas by number of votes. Read on.... In the Kingdom of Sasquatchia, there are 100 states and the Constitution's only Amendment "Thee Shall Not Conform to the Agile Process" has survived numerous Supreme Court challenges and two referendums. A bill to codify "Allow ArcGIS Pro To Publish to Server Without Requiring Portal" has broad bipartisan support but not enough votes to override what the President (Big Foot) has been Tweeting "Is a terrible idea! Terrible! Bad Deal! Veto!!!". Concerned about chances of reelection and a trade war with the Boundless Union of Republics, Congress turned to the same pollsters that predicted the outcome of the most recent election. Their conclusion: There's no way to target campaign ads based on the geographic distribution of states that are successful in getting ideas adopted. Red and orange states are randomly scattered and green-ish states offer no clue based on their location as to why ideas languish or are not considered. The statisticians where consulted: When mapping the number of Vote normalized by number of Views we clearly see very few red states achieved success with a massive number of votes (over 100000) but then a some of the orange states achieved success with 3000 or less votes. Different statisticians were consulted: Which substantiates the theory that "Greater number of votes correlates to an idea being implemented". Cartographers were consulted: And they produced a map showing just those states with a status of "New" Compared to all others states. The Pro Chart Wizard was consulted: And the campaign strategy manifests itself! Ideas still considered New also have a very high number of views but not a lot of votes when compared to Implemented Ideas with fewer views. I often here people say "Don't complain about politics if you don't vote". There's a lot of eyes on ArcGIS Pro Publish Services To ArcGIS Server yet, despite having the greatest number of views and comments of any of the top 100 Ideas (by number of votes), it has the least likely chance of becoming implemented, even less so than Google Maps Basemap . Get out the Vote! Let's make ArcGIS Pro Publish Services To ArcGIS Server the number one voted Idea on Geonet. Vote with your keyboard, not your mouse, and be sure to include your use case with your upvote! As Pro shows, ideas with a lot of votes get implemented! And if you concluded that not a single statistic in the maps show makes one iota of sense, just remember, Arc GIS Pro, not Russians, can swing the outcome of an election..... Data used to create these wonderful maps in Pro is located at https://bigfoot.maps.arcgis.com/home/item.html?id=8c72924d814e434b8a5fcb08f29ba758
... View more
06-06-2018
08:07 AM
|
11
|
10
|
4969
|
|
POST
|
arcpy.CreateDomain_management(path+"\\"+gdb_name+".gdb", "DOM_XYACCURACY_NPS2016", "Accuracy", "TEXT", "CODED")
XYACCURACYDict = {"Unknown":"Unknown", "<5cm": "<5cm", ">=5cm and <50cm": ">=5cm and <50cm" , ">=50cm and < 1m": ">=50cm and < 1m", ">=1m and <5m": ">=1m and <5m" , ">=5m and <14m": ">=5m and <14m" , ">=14m": ">=14m" , "Scaled": "Scaled}
for code in XYACCURACYDict:
arcpy.AddCodedValueToDomain_management(path+"\\"+gdb_name+".gdb", "DOM_XYACCURACY_NPS2016", code, XYACCURACYDict[code]) Throws an error when in a Pro 2.1.2 toolbox, but I'm able to create a domain with the same values containing ">" character. Any idea on how to make this work? Can't change the values, the codes and the values are "etched in stone" as they say. So Posting this to geonet, as I hit save, highlighted my really mickey-mouse syntax error, a missing "..........
... View more
06-05-2018
12:42 PM
|
0
|
0
|
1472
|
|
POST
|
Blank project saved to default project path, with the tool box in the project folder
... View more
06-05-2018
12:29 PM
|
0
|
0
|
764
|
|
POST
|
Marked correct. But back to your original idea, how WOULD you give the user a choice? Run the tool with no input and get the folders in the project directory, OR, specify an existing folder in the project directory or create a new one, and put the folders there. import os
import errno
import arcpy
curr = arcpy.mp.ArcGISProject("CURRENT").filePath
folder = "/".join(curr.split("\\")[:-1])
directories = ['Data','Data\\GPS','Data\\Working','Data\\Tabular','Products','Documents', 'Documents\\Pics_Graphics']
basedirectory = folder +'\\'
for i in range (len (directories)):
newDir = basedirectory + directories[i]
try:
os.makedirs(newDir)
except OSError as exception:
if exception.errno != errno.EEXIST:
raise
else:
print ("\nBE CAREFUL! Directory %s already exists." % newDir)
... View more
06-05-2018
05:01 AM
|
0
|
1
|
4427
|
|
POST
|
That would work if there were either a fixed location of the script, or a fixed location where all projects get saved, and users were inclined to provide input to sys.argv[0], and if they were so inclined, we'd start seeing ['Data','Data//GPS','Data//Working','Data//Tabular','Products','Documents', 'Documents//Pics_Graphics'] all over the network, anywhere in fact, instead of in the prj folder. Another limitation is we have an enforced policy on project folder organization, adding more subfolders with scripts is not in the cards. Trying to make this a hands off solution, Start Pro, click a button, there are your folders. In Arc I do this with a zip/exe which has been identified as a "security concern". What I'm really interested in is corralling the output of arcpy.mp.ArcGISProject("CURRENT").filePath to NOT give me 'C:\\Users\\sasquatch\\Documents\\ArcGIS\\Projects\\MyProject95\\MyProject95.aprx' but instead 'C:\\Users\\sasquatch\\Documents\\ArcGIS\\Projects\\MyProject95\\' So, in Pro 2.1.2, is it possible to simply get the path of the current project using Python? Not the path to "Program Files" or the name of the project.....
... View more
06-05-2018
04:28 AM
|
1
|
3
|
4427
|
|
POST
|
The problem is not the indentation or the spaces, the problem is, when run from within a Pro toolbox, or the Pro Python window, arcpy.AddMessage(os.getcwd()) returns C:\Program Files\ArcGIS\Pro. It does not return the path to the Pro Project Folder. The script runs fine as a stand alone, and creates the folders in what ever folder the script happens to be in. The home folder property in ArcGISProject—ArcPy | ArcGIS Desktop seemed promising, but all that returns is <property object at 0x000000017836EF98> and arcpy.mp.ArcGISProject("CURRENT").filePath returns the full path as well as the name of the aprx, which I don't need (and therefore can't use the output of arcpy.mp.ArcGISProject("CURRENT").filePath either).
... View more
06-05-2018
04:00 AM
|
0
|
7
|
4427
|
|
POST
|
When attaching the following to a tool box in Pro 2.1.2 and running it: import os
import errno
import arcpy
curr = dirpath = os.getcwd()
directories = ['Data','Data//GPS','Data//Working','Data//Tabular','Products','Documents', 'Documents//Pics_Graphics']
basedirectory = curr +'//'
for i in range (len (directories)):
newDir = basedirectory + directories[i]
try:
os.makedirs(newDir)
except OSError as exception:
if exception.errno != errno.EEXIST:
raise
else:
print ("\nBE CAREFUL! Directory %s already exists." % newDir) I get the following error: Start Time: Monday, June 04, 2018 4:10:17 PM
Running script CreateProjectFolders...
Failed script Create Project Folders...
Traceback (most recent call last):
File "C:\temp\Pro_Folder_Structure\NEW_FOLDERS.py", line 10, in <module>
os.makedirs(newDir)
File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\os.py", line 220, in makedirs
mkdir(name, mode)
PermissionError: [WinError 5] Access is denied: 'C:\\Program Files\\ArcGIS\\Pro//Data'
Failed to execute (CreateProjectFolders).
Failed at Monday, June 04, 2018 4:10:17 PM (Elapsed Time: 0.06 seconds) My assumption is that os.getcwd() would get the directory that the pro project is saved to. curr = dirpath = arcpy.env.workspace doesn't appear to do anything here.
... View more
06-04-2018
01:18 PM
|
0
|
12
|
5384
|
|
IDEA
|
The solution "Use ArcGIS Desktop 10.3.1." seems to imply that this is also the case with 10.4 and 10.5. Is that in fact true?
... View more
06-04-2018
09:53 AM
|
0
|
3
|
4028
|
|
POST
|
This would compel me to go to the UC, if some enterprising Professor had his students set up some GIS feature class that contained the "notes" for the song, and played a map tour of Africa.... The Floppotron: Toto - Africa - YouTube
... View more
06-03-2018
09:24 AM
|
0
|
0
|
2195
|
|
IDEA
|
I upvoted, but with the caveat that permissions to this feature need to be really really tight. I would suggest that this be a custom role, that "Admins" do not inherit. If it's a log, that makes this easy, as IT can control where the log goes and who has access to it.
... View more
06-01-2018
08:48 AM
|
0
|
0
|
1921
|
|
POST
|
We'd definitely need even some basic details, steps to reproduce, to understand the problem.
... View more
05-29-2018
07:17 AM
|
0
|
0
|
673
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 05-17-2022 12:19 PM | |
| 1 | 03-14-2019 06:24 AM | |
| 1 | 07-12-2018 09:29 AM | |
| 1 | 06-27-2019 12:08 PM | |
| 2 | 09-23-2019 11:03 AM |
| Online Status |
Offline
|
| Date Last Visited |
04-26-2026
07:12 AM
|