|
POST
|
So, I can successfully log into my AGO account and setup the GIS that way. I can find information about my account etc. I can query web map content from the API as well and display the results. I can even map the result of the query gis.map(search_result) and see the web map as it should be displayed. But I cannot map specific web maps by their name. map = gis.map('MyOffices')
map A map appears but only the basemap appears, not the web map content. Any thoughts on this?
... View more
10-11-2017
05:59 AM
|
0
|
2
|
1101
|
|
POST
|
Dan, thanks for that. Couldn't figure out what the target script was! One other thing since my Pro install (and therefore python 3.x) was placed in C:\Program Files, any user setting up the target in the Windows shortcut will have to use quotes to handle the spaces in the path: "C:\Program Files\ArcGIS\stuff\python.exe" "C:\Program Files\ArcGIS\stuff\script.py" [Or just use the C:\PROGRA~1 notation for the executable]. Part of me is still curious why the package manager install didn't configure the shortcuts right in the first place, but this got me setup. Thanks Dan!
... View more
10-05-2017
06:24 AM
|
0
|
0
|
1366
|
|
POST
|
I had tried to work with ESRI regarding this but didn't have much luck. I used the ArcGIS Pro (2.0.0) Python Package Manager (say that 5 time fast) to install the ArcGIS API for Python per the 2nd option described in this blog. Basically, the shortcuts for launching IPython and Jupyter Notebooks are bad. You can see them attempt to open a cmd window but then fail. Looking at the shortcut target, there's so much it exceeds the available space for the shortcut! Yes, it ends with that last "C:/P "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\python.exe" C:\Users\zhart\AppData\Local\Temp\_MEI129082\cwp.py "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3" "C:/Program Files/ArcGIS/Pro/bin/Python/envs/arcgispro-py3/python.exe" "C:/P Anyone else experience this?
... View more
10-04-2017
01:05 PM
|
0
|
4
|
1811
|
|
POST
|
Randall, thanks. I actually found another thread that went into depth on this. I was ready to call the relational data store a hoax or misnomer, but apparently there is Postgres under the hood somewhere. I also learned that 10.5.1 is going to be the last version you can register an enterprise GDB as your site's managed DB for a hosting server! That's pretty insightful right there....
... View more
07-14-2017
10:12 AM
|
1
|
0
|
669
|
|
POST
|
I recently created a single machine deployment using ArcGIS Enterprise Cloud Builder 10.5.1 for Azure and have a few questions I can't seem to find answers to. We have an ArcGIS Enterprise 10.5.1 license. (ArcGIS for Server Enterprise Standard). Does the Cloud Builder designate a Hosting Server by default? What & where is the managed DB? It's already registered in the Data Store. The Cloud Builder didn't create any instance of SQL (no RDBMS) that I can find. Does ESRI leverage a different technology for a Managed DB? Cloud Builder did not create an enterprise GDB anywhere that I can see. Since we do want to create an Enterprise GDB, do we then have to manually spin-up another VM hosting an (in this case) SQL Server instance, create an Enterprise GDB on that instance, and then register that with the data store? If so, why isn't this part of the default deployment process? In order to do this, i'm going to have to get ArcGIS installed on a VM up in Azure just so I can have the tools to create the Enterprise GDB.
... View more
07-12-2017
06:41 AM
|
0
|
2
|
1080
|
|
POST
|
Just verified, editing other FS works just fine...sigh...I was worried that some extraordinary sanitation was going to be the only fix. On top of that, I can't get the copy runtime gdb to fGDB to work (I've read everything I can), so all the field data is lost I guess. Thanks for your help looking into this, I'll keep you posted. Doesn't bode well for enterprise deployment though...
... View more
05-09-2017
11:29 AM
|
3
|
3
|
5020
|
|
POST
|
copied local, tried different drives, shortened the folder name, then shortened the file name itself and still no luck... Error 001730 EDIT: this is a runtime geodatabase from Android
... View more
05-09-2017
08:07 AM
|
1
|
3
|
2334
|
|
POST
|
Ok, now we're getting somewhere: Service is started just fine. Much to my surprise, when I edit in AGOL, the edits are not transacted to the backend DB (nor can I see the changes in the mobile app for whatever that's worth). This makes no sense to me since its not a hosted feature layer, but a legit feature service on our GIS server. Furthermore, we have other feature services where the edits do take place. I did check via the REST interface and replicas are indeed being created for what that's worth. But its a little odd that the first replica doesn't have that numerical suffice...
... View more
05-09-2017
06:42 AM
|
3
|
5
|
5020
|
|
POST
|
Environment: ArcGIS Server Enterprise Standard 10.4.1 SQL Server Standard 2012 Collector 10.4.2 Android Web map hosted on AGOL Accessing the map and taking it offline initially works just fine; existing features in the FS appear in the offline map as well. Able to navigate & collect just fine. When I sync, the process runs, error but nothing is pushed up. If I make edits elsewhere (using the FS OR editing directly in desktop), no changes are pulled down either. No errors in the server logs. I tried connected via WiFi as well as (4G LTE) Cellular and still nothing syncs. No attachments or related tables. Editor tracking enabled and two fields have domains. I'm at a loss as to where to start diagnosing this problem.
... View more
05-08-2017
11:51 AM
|
0
|
13
|
13393
|
|
POST
|
Jeez...I feel dumb now. Um, both Jake & Neil are correct (and I marked as helpful). Totally works now (although I'm totally at a loss as to why the other script works as expected w/o setting a parameter for the output). EDIT: in a twist of fate, i'm going to have to roll up the output into a zip anyway to account for multiple shapefiles in the input zip). EDIT x2: so in modifying my script further I realized what the difference between the two script tools is. Even though I did not set a parameter for the output, because I supplied a default value in the script tool parameter properties, it will add that as a GP result...I'm guessing that is poor practice and will be implementing set parameter instead.
... View more
05-02-2017
12:03 PM
|
0
|
0
|
1812
|
|
POST
|
I like your logic, and looked to see if I implemented in that my other script but I didn't and it works fine. I'm thinking I could trick this into working by setting the output parameter as 'required' (but whatever the user enters for that, the tool creates the name of the output on its own anyway).
... View more
05-02-2017
11:57 AM
|
0
|
0
|
1812
|
|
POST
|
I've created a simple script to share via a web app so that folks without desktop can convert shapes to KML/KMZ. The script writes the output KMZ as expected in the scratch folder where it belongs but doesn't appear in the GP Results window and therefore is a null output when published as a GP Service. I have a similar script which takes a zip of a multiple shapefiles, reprojects them and zips them back up; this script tool is configured identically and the output zip shows in the GP results and also is returned in the output when published as a GP service. Script Tool: Code (not really sure this will help): import arcpy
import zipfile
import sys
import os
from os import makedirs
from os.path import join
inZip = arcpy.GetParameterAsText(0)
# Create a folder in the scratch directory to extract zip to
outFolder = os.path.join(arcpy.env.scratchFolder, "zipContents")
os.mkdir(outFolder)
# Create a folder in the scratch directory for the KML
KMLfolder = join(arcpy.env.scratchFolder, "KML")
makedirs(KMLfolder)
# Extract the zip contents
zip2Extract = zipfile.ZipFile(inZip, 'r')
zip2Extract.extractall(outFolder)
zip2Extract.close()
# Set the workspace
arcpy.env.workspace = outFolder
# Create a list of shapefiles
featureclasses = arcpy.ListFeatureClasses()
print featureclasses
# Use ListFeatureClasses to generate a list of inputs
for infc in arcpy.ListFeatureClasses():
# Determine if the input has a defined coordinate system, can't project if it does not
dsc = arcpy.Describe(infc)
if dsc.spatialReference.Name == "Unknown":
print('skipped this fc due to undefined coordinate system: ' + infc)
else:
# Make Feature Layer from FC
tempLayer = arcpy.MakeFeatureLayer_management(infc, "tempLayer")
# Define KML output
baseName=os.path.basename(infc).split('.')[0]
outKML = os.path.join(KMLfolder, baseName + '.kmz')
#Convert Layer to KML
output = arcpy.LayerToKML_conversion(tempLayer, outKML)
... View more
05-02-2017
11:21 AM
|
0
|
6
|
2271
|
|
POST
|
I found a real simple way to do this: #Function to build list
def UniqueValues(table, field):
with arcpy.da.SearchCursor(table, [field]) as cursor:
return sorted({row[0] for row in cursor}) Should I just delete this question all together? I don't want to clutter up the forum.
... View more
10-27-2016
08:37 AM
|
0
|
0
|
477
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 11-06-2024 06:58 AM | |
| 1 | 12-16-2022 07:01 AM | |
| 1 | 08-09-2024 06:55 AM | |
| 1 | 08-13-2024 05:58 PM | |
| 1 | 07-23-2024 08:00 AM |
| Online Status |
Offline
|
| Date Last Visited |
10-24-2025
05:12 AM
|