|
POST
|
Hi, how do I export an image from ArcMap (or ArcGIS Pro) at a specified resolution using an ArcGIS Server map service? I currently have a map service loaded at around a level 6, and want it to export exactly what's on the screen. However, when I export it, it exports to a level 5 for some reason. I can just screenshot it and it won't be a huge deal, but I am curious as to how one exports or prints, forcing a specified zoom level. Thanks for any pointers.
... View more
08-22-2018
08:24 AM
|
1
|
0
|
746
|
|
IDEA
|
Couldn't agree more. I manage a full Esri stack professionally and barely understand the credit system. I do not see what problem it is intending to solve and consequently the hope is not for a replacement, but a removal of the system. My home (personal) ArcGIS account expired last year - because I had a small feature class or two sitting on it, it just sat there running into around -600 credits. No warning, no email notification, nothing. The whole system seems designed explicitly to obfuscate the true cost of doing business; even simply storing data that is entirely dormant will run you into negative credits. Bad experience.
... View more
07-29-2018
07:50 PM
|
6
|
0
|
2277
|
|
POST
|
Thanks, just wanted to make sure I wasn't missing anything.
... View more
03-14-2018
08:59 AM
|
0
|
0
|
1023
|
|
POST
|
Hi Clinton, Okay, after some tedious combing through Windows registry entries, I see what happened and it is as you say. ArcGIS Pro 1.4 was installed to C:\ArcGISPro. ArcGIS Pro 2.0 was installed to my local profile. The two installs never talked. The old version of ArcGIS Pro left behind a number of registry entries for python root pointing to C:\ArcGISPro. Once I uninstalled the old version of ArcGIS Pro in a separate action, it cleaned up the registry and now I have python access within ArcGIS Pro 2.0. Now, I guess as a consequence, conda works; and once I pointed it at a local repository, I'm able to create environments no problem. Everything works!* I'll leave the question in place I guess, just in case anyone else may run into the same problem. *Everything works so far
... View more
07-28-2017
11:27 AM
|
1
|
1
|
1236
|
|
POST
|
Hi Clinton, I put a more thorough question in place here: Upon loading ArcGIS Pro 2.0 I get "Failed to initialize python interpreter" I had ArcGIS Pro 1.4 installed to C:\ArcGISPro because it gave me an option of where I wanted to install it. When I installed ArcGIS Pro 2.0, it did not give me an option of where to install it. It just put it under my local profile. So there are some issues with consistency between the installer packages.
... View more
07-28-2017
06:42 AM
|
0
|
1
|
1017
|
|
POST
|
I made a comment on an existing topic, but I figured that it was probably better to ask this as its own question. I installed ArcGIS Pro 2.0 yesterday. When trying to launch the Python CLI, it states in angry red letters, "Failed to initialize Python Interpreter." I am on Windows 7 x64. ArcGIS Pro 2 was installed to: C:\Users\[my username]\AppData\Local\ArcGIS\Pro Prior to this, the Python that comes with ArcMap 10.5 was my system python. I also do open-source GIS development on this workstation. Here is what my environment variables (user) look like. I've tried adding some things into the PYTHONPATH variable to see if I can't make it work - so this is for testing purposes only. GDAL_DATA=C:\Python27\ArcGIS10.5\Lib\site-packages\osgeo\data\gdal GDAL_DRIVER_PATH=C:\Python27\ArcGIS10.5\Lib\site-packages\osgeo PATH=...C:\Users\[username]\AppData\..\Pro\bin\Python;..\..\Pro\bin\Python\Scripts;..\..\Pro\bin\Python\envs\arcgispro-py3;..\..\Pro\bin\Python\envs\arcgispro-py3\Scripts PIP_CONFIG_FILE=C:\Users\[username]\AppData\Roaming\Python\pip.conf PYTHONPATH=..\..\Pro\bin\Python\envs\arcgispro-py3;..\..\Pro\bin\Python\envs\arcgispro-py3\Scripts Obviously there are some path issues. When I fire up a Windows CLI I do get into the arcgispro-py3 python instance, but I feel I'm "doing it wrong." When I type in "conda" I get the errors: File "conda\cli\main.py", line 222, in <module> File "conda\cli\main.py", line 185, in pre File "conda\base\context.py", line 274, in envs_dirs File "conda\base\context.py", line 270, in root_writable File "conda\gateways\disk\test.py", line 66, in prefix_is_writable conda.CondaError: Unable to determine if prefix 'C:\ArcGISPro\bin\Python' is writable. Since nothing is IN C:\ArcGISPro\bin\Python (that's not where ArcGIS Pro was installed), I removed the path. Now it says, conda.CondaError: Unable to determine if prefix 'C:\Users\[username]\AppData\Local\Temp\1\[directory name changes each time]' is writable. Failed to execute script main So, the problem is twofold: 1. I cannot get at a Python CLI in the Pro interface. 2. I cannot 'conda' anything from CLI. Any help appreciated! Please no voodoo suggestions like "just uninstall everything and run a registry cleaner" because I am not an administrator on this workstation.
... View more
07-27-2017
10:19 AM
|
0
|
3
|
2637
|
|
POST
|
I just ran into this problem with ArcGIS Pro 2.0. First, it said that the system tools could not be loaded. Then, when I tried to fire up the python CLI, it said "Failed to Initialize Python Interpreter." ArcGIS Pro's python instance is not my system python, nor do I want it to be. What are my options?
... View more
07-27-2017
07:56 AM
|
0
|
3
|
1017
|
|
POST
|
Thanks Ian. It felt like I should be able to dump the method into a variable in one step like other methods to save a line of code, but regardless, it works now, thank you.
... View more
03-23-2017
07:27 AM
|
0
|
1
|
4407
|
|
POST
|
Thanks Ian/Joshua, When I include the .gdb extension (gdb_name = 'TestGDB.gdb') and the geodatabase exists, it completes. When the geodatabase does not exist, it creates the TestGDB.gdb object, but still gives me the same runtime error.
... View more
03-23-2017
07:12 AM
|
0
|
3
|
4407
|
|
POST
|
Any reason why this wouldn't be working? import arcpy
import os
basedir = 'C:\\Temp'
gdb_name = 'TestGDB'
gdb = os.path.join(basedir, gdb_name)
if arcpy.Exists(gdb):
arcpy.env.workspace = gdb
else:
gdb = arcpy.CreateFileGDB_management(basedir, gdb_name)
arcpy.env.workspace = gdb I must not be understanding how .Exists() resolves, for if the gdb already exists, it gives me: arcgisscripting.ExecuteError: ERROR 000258: Output C:\Temp\TestGDB.gdb already exists Failed to execute (CreateFileGDB) If the gdb does not exist, it gives me: RuntimeError: Object: Error in accessing environment <workspace>
... View more
03-23-2017
06:55 AM
|
0
|
12
|
6348
|
|
POST
|
Sorry for the lag Joshua, for whatever reason, geonet does not email me updates to my questions. I am using fully qualified column names, yes. For Dan's question below, I can only add a field to the origin table; ArcMap will not allow me to add a field to a destination table. At this point I do have a working output; this is something I did for a colleague, and if this is going to be an ongoing thing, I will just do it via script Thanks!
... View more
02-24-2017
11:57 AM
|
0
|
0
|
4936
|
|
POST
|
So here is what I had to do, and this may be an ArcMap bug in 10.5 - I will attempt to replicate and confirm. First, I had to do a straight subtract. Then, I had to run: abs(!field_1! - !field_2!) on the column. I was not able to run the 'abs' module first; it would give me zeros. Once I ran subtraction first, I could then run the 'abs' module in order to switch it from negative values.
... View more
02-22-2017
01:32 PM
|
0
|
2
|
4936
|
|
POST
|
Hi Dan, The fields aren't called field_1 or field_2, I just put that for placeholders and brevity. You are correct on all counts. I have two tables, joined. The two fields, one from each table, I am attempting to calculate are both double and both tables obey the same schema. The field I am calculating into, is double as well. When I try to use math.abs() it fails, telling me that the module has no attribute 'abs'. When I do a basic subtraction, it does work, so I know there isn't any problem with the join itself.
... View more
02-22-2017
01:29 PM
|
0
|
0
|
4936
|
|
POST
|
Hi Joshua, no, this does not work in the same way. In python, I could just do >>>abs(x - y) in Field Calculator (using python) I put abs(!field_1! - !field_2!) and it does nothing.
... View more
02-22-2017
12:58 PM
|
0
|
3
|
4936
|
| Title | Kudos | Posted |
|---|---|---|
| 4 | 02-03-2025 01:29 PM | |
| 1 | 01-31-2019 11:15 AM | |
| 1 | 03-29-2022 12:18 PM | |
| 1 | 05-21-2024 12:32 PM | |
| 1 | 05-21-2024 01:03 PM |