POST
|
Is it possible to add a Tiled Map Service from my local drive to an ArcGIS.com map? That is, if my TMS is http://localhost:8000/SnowMap2/{z}/{x}/{y}.jpg should I be able to add that to an ArcGIS.com map? What about something like: file:////Users/maples/data/tiles/SnowMap3/{z}/{x}/{y}.jpg ? I've tried every way I can and no luck. Also, tried changing to {level}/{col}/{row}.jpg for both. Thanks Stace
... View more
08-13-2019
03:50 PM
|
0
|
5
|
1822
|
IDEA
|
Here, I am talking about the ability to take a scanned map image, say from https://davidrumsey.com and bring that image into ArcGIS Online to georeference it. Yes, there are workflows to go from the Desktop to ArcGIS Online, but this would allow many users to completely untether from desktop GIS. There are currently a couple of web-based georeferencers available, including the aging MapWarper, implemented by NYPL here: http://maps.nypl.org/warper/, as well as Klokan Technology's Georeferencer, which can be experienced at https://www.davidrumsey.com/view/georeferencer. Klokan also provides a "pay to play" service that allows users to host a limited number of map images for georeferencing and provides GeoTiff download, WMS, WMTS and other services on the resulting data. The Klokan georeferencer leverages the https://iiif.io/ Image Interoperability standard, which is quickly being adopted by many orgs in the Galleries, Libraries, Archives and Museums (GLAM) community for serving, sharing and manipulating imagery collections, including cartographic materials. DavidRumsey.com, as well as other venues like OldMapsOnline.org are using IIIF extensively, so a georeferencer that supports IIIF would instantly provide access to hundreds of thousands of historic cartographic resources, including the Library of Congress' Sanborn Maps Collection, which will soon begin moving into the public domain. This is really the last bit of major functionality needed to make ArcGIS Online a true replacement for Desktop GIS applications, particularly for academic research in the Humanities.
... View more
07-12-2019
12:50 PM
|
33
|
5
|
6964
|
POST
|
I'm trying to hit my geocoding servers REST API:[https://locator.stanford.edu/arcgis/rest/services/geocode/USA_StreetAddress/GeocodeServer] (ArcGIS Server 10.6.1) using the POST method (which, BTW, could use an example or two, there only seems to be this VERY brief "note" on WHEN to use POST, not HOW: https://developers.arcgis.com/rest/geocode/api-reference/geocoding-geocode-addresses.htm#ESRI_SECTION1_351DE4FD98FE44958C8194EC5A7BEF7D). I'm trying to use the requests.post, and I think I've managed to get the token accepted, etc..., but I keep getting: {'error': {'code': 400, 'message': 'Unable to complete operation.', 'details': []}} Which, based on my experience with using the GET method, means something is wrong with the way I am formatting the submitted data? Though, I've been cutting and pasting directly from the Esri Help file examples for GET, but I'm not sure that's what is needed for POST. Any thoughts on how to proceed are welcome. I'm about to see what adding headers might do? Here's my code: # import the requests library
import requests
# Multiple address records
addresses={
"records": [
{
"attributes": {
"OBJECTID": 1,
"Street": "380 New York St.",
"City": "Redlands",
"Region": "CA",
"ZIP": "92373"
}
},
{
"attributes": {
"OBJECTID": 2,
"Street": "1 World Way",
"City": "Los Angeles",
"Region": "CA",
"ZIP": "90045"
}
}
]
}
# Parameters
# Geocoder endpoint
URL = 'https://locator.stanford.edu/arcgis/rest/services/geocode/USA_StreetAddress/GeocodeServer/geocodeAddresses?'
# token from locator.stanford.edu/arcgis/tokens
mytoken = <GeneratedToken>
# output spatial reference id
outsrid = 4326
# output format
format = 'pjson'
# params data to be sent to api
params ={'outSR':outsrid,'f':format,'token':mytoken}
# Use POST to batch geocode
r = requests.post(url=URL, data=addresses, params=params)
print(r.json())
print(r.text) I've altered the attribute names for my service, as seen here: Address Fields: Street ( type: esriFieldTypeString , alias: Street or Intersection , required: false , length: 100 ) City ( type: esriFieldTypeString , alias: City or Placename , required: false , length: 40 ) State ( type: esriFieldTypeString , alias: State , required: false , length: 100 ) ZIP ( type: esriFieldTypeString , alias: ZIP Code , required: false , length: 10 )
... View more
06-11-2019
12:41 PM
|
0
|
1
|
1420
|
BLOG
|
This has been a useful post for working with our IT partners to successfully implement SSO for AGO. Now that it works, it occurs to me that a boilerplate statement template to users about SSO and it's implications for new AND existing users would also be fantastically useful. Something that helps explain some of the dynamics you highlight above, but for users. I can imagine the following questions will be coming soon after our announcement: "I've been using an Esri GlobalID for logging into AGO. How do I migrate my content to the new username?" "I've recently left Stanford and I'm no longer able to access my content on AGO! How can I recover it?" And so on... Stace
... View more
11-09-2017
09:20 AM
|
4
|
0
|
2560
|
POST
|
We're experiencing failure of tools in the Spatial Statistics toolbox, on all machines. Checked our ENV paths, did a reinstall, etc... nothing seems to fix it. Here is the error we get. Executing: SpatialAutocorrelation places POP2000 NO_REPORT INVERSE_DISTANCE EUCLIDEAN_DISTANCE NONE # #
Start Time: Thu Dec 08 10:31:01 2016
Running script SpatialAutocorrelation...
Failed script SpatialAutocorrelation...
Traceback (most recent call last):
File "c:\program files (x86)\arcgis\desktop10.4\ArcToolbox\Scripts\MoransI.py", line 16, in <module>
import SSUtilities as UTILS
File "c:\program files (x86)\arcgis\desktop10.4\ArcToolbox\Scripts\SSUtilities.py", line 29, in <module>
import matplotlib.path as PATH
File "C:\Python27\ArcGIS10.4\lib\site-packages\matplotlib\__init__.py", line 169, in <module>
from urllib2 import urlopen
File "C:\Python27\ArcGIS10.3\Lib\urllib2.py", line 94, in <module>
File "C:\Python27\ArcGIS10.3\Lib\httplib.py", line 71, in <module>
File "C:\Python27\ArcGIS10.3\Lib\socket.py", line 68, in <module>
ImportError: cannot import name RAND_egd
Failed to execute (SpatialAutocorrelation).
Failed at Thu Dec 08 10:31:01 2016 (Elapsed Time: 0.05 seconds) The RAND_egd failure seems to be the common thread for all the tools. Interestingly, when you launch the Optimized Hot Spot Analysis tool, you get the error immediately, as the red X next to the 'Input Features' parameter. When you click on the red X, you get this: updateParameters Syntax Error: Runtime error Traceback (most recent call last): File "c:\program files (x86)\arcgis\desktop10.4\ArcToolbox\Toolboxes\Spatial Statistics Tools.tbx#OptimizedHotSpotAnalysis_stats.UpdateParameters.py", line 6, in File "C:\Program Files (x86)\ArcGIS\Desktop10.4\ArcToolBox\Scripts\SSUtilities.py", line 29, in import matplotlib.path as PATH File "C:\Python27\ArcGIS10.4\lib\site-packages\matplotlib\__init__.py", line 169, in from urllib2 import urlopen File "C:\Python27\ArcGIS10.3\Lib\urllib2.py", line 94, in File "C:\Python27\ArcGIS10.3\Lib\httplib.py", line 71, in File "C:\Python27\ArcGIS10.3\Lib\socket.py", line 68, in ImportError: cannot import name RAND_egd Anyone see anything obvious? Stace
... View more
12-08-2016
10:43 AM
|
0
|
0
|
1260
|
POST
|
Also, as I said before, it's not just upgrade installs, but happening with clean installs, as well.
... View more
09-20-2016
05:06 PM
|
0
|
2
|
634
|
POST
|
I'm going to have to disagree on this one. If I'm and administrator using these scripts, I have my "Big Boy" pants on and can decide NOT TO INCLUDE the parameter in my update script. This is a stupid change. Having to hack the license server address with a reg file isn't ideal.
... View more
09-20-2016
05:03 PM
|
0
|
3
|
634
|
POST
|
RE: Curtis' UPDATE This must be a new 'feature', since I've never seen this behaviour, before 10.4.1. You can tell your buddy in Installations that it seems a bit overbearing to force a clean reinstall just to update the license server address. Add it to the list of 'WTF were they thinking' features in ArcGIS. Still, it's not writing the server address on clean installs, either. The server address remains 'not_set' in the Administrator unless I apply the reg key using my registry file merge. I guess I'm still stuck writing workarounds for the new features coming from Esri's "Make Everything an Opaque Pain in the A@# for Our Users" Lab. Job security, though!
... View more
09-19-2016
11:48 AM
|
0
|
0
|
634
|
POST
|
It does reproduce on different machines. On machines that have a previous install with the license server address already in Administrator, the license addy stays the same. If you clear the license server address before the upgrade, it stays cleared. On fresh machines, with no previous install, the license address remains not_set. I've added the appropriate reg key and value to my reg file that I merge for changing default settings, so it's written at that point, but if this is a bug, I'd like to get it reported. For the record, we've never had any problems referencing the install media using UNC paths. The rest of the install is happening without issue, so it's just this one hiccup.
... View more
09-19-2016
11:44 AM
|
0
|
0
|
1291
|
POST
|
I guess I assumed that once someone saw that I've been doing this since 9.3 they MIGHT assume I was familiar with those docs. Also, since I'm referring specifically to the parameter referenced in that doc... and that it is not working properly as advertised. My bad. I'll try not to assume that level of critical thinking. But thanks so much for your helpful comment.
... View more
09-14-2016
01:42 PM
|
0
|
3
|
1291
|
POST
|
I'm trying to deploy our installation batch files [GitHub - StanfordGeospatialCenter/arcgis-install-batch: Batch files and supporting documents for installing ArcGIS Deskt… ] and am finding that the ESRI_LICENSE_HOST parameter documented in the Silent Installation dox doesn't seem to be working in 10.4.1. Can anyone confirm that? I've created a reg file to write the registry entry at the end, but I'd rather be using the MSI parameter, if I'm missing something obvious. Attaching the bat and reg files here for troubleshooting. Can't find anything on StackExchange, so here I am at Geonet. Thanks in advance. Stace
... View more
09-14-2016
01:05 PM
|
0
|
15
|
3466
|