|
POST
|
Thanks Shana! This is very informative! In your response, you say "In order to batch geocode using the new World Geocoding Service in ArcGIS Desktop 10.1 SP1, an ArcGIS Online Organization subscription is required." The problem is, I have an ArcGIS Online Organization subscription (at least I think I do, I can access the https://usdot.maps.arcgis.com site). From ArcMap, I sign into ArcGIS Online using those same credentials, but it still won't work. It still says I need an ArcGIS online account. For now I can use the workaround, but once tasks is depreciated, I won't be able to. So I'm curious if I'm doing something wrong (or my account is not what I thought it was), or if there is a bug! Thanks, Jay
... View more
11-26-2012
09:27 AM
|
0
|
0
|
3232
|
|
POST
|
Hi - I would like to know how the REST API returns features to specify drawing order of a polygon layer using a unique value renderer. The JS API must know how (because it does it correctly) but we're querying the REST endpoint directly for use in a mash-up. We're trying to visualize hurricane wind swaths rendered by speed. So we have speeds of 58 mph, 32 mph, 74 mph, and error swaths, and they need to be drawn in a specific order (error, 32, 58, 74). Even when I publish with symbol levels enabled, the web service doesn't exactly return things in a preferred order, so a developer couldn't use a "first in first out" or "last in first out" methodology. The REST API returns json as 74, 58, 32, error, 74, 58, 32, error, 74.... until there is no more polygons left. Instead of returning all the 74 polygons first, and then 58 second, etc. etc. We could of course make specific rules for the hurricane layer, but we want something that is repeatable no matter what kind of polygon layer we use. The way I've worked around this currently is dissolving the layer based on symbol, so it just returns 74, 58, 32, error (since there is only one polygon per symbol), but was curious if there is any other way to specify how the REST API returns features.... Like I said, the JS API does it correctly, so it must know how to do that from somewhere! Thanks for your help! Jay
... View more
11-26-2012
09:19 AM
|
0
|
0
|
939
|
|
POST
|
I've loaded a CSV with a "Location" field that has the full address. When I try to geocode (using Wold Geocode Service from ArcGIS Online) based on this field, I get the following error: "There was an error trying to process this table. ArcGIS Online subsciption is required for geocoding the table of addresses." I have an ArcGIS online account, and I'm logged in through ArcMap. So what gives?
... View more
11-19-2012
11:26 AM
|
0
|
7
|
8887
|
|
POST
|
I am having this same problem! Once I installed the 64 bit background geoprocessing, a lot of my scripts started generating the error ExecuteError: ERROR 000210: Cannot create output..... What I can't understand is your workaround. If I'm running a python script outside of ArcMap, how can I use the "Enable checkbox for Background Processing on Geoprocessing | Geoprocessing Options". Thanks! Jay
... View more
11-13-2012
04:42 AM
|
0
|
0
|
1189
|
|
POST
|
To create some custom scripts, I first create what I can in Model Builder, then export to Python and add what custom code I need. One problem I've ran into is when passing other python code into a function. In Model Builder, it is easy to maintain the code block, but once exported to Python, any significant amount of code becomes difficult to read or document. I was curious if arcpy functions accept function names as parameters instead of the actual code. Then I could refer to a separate function in my script instead of stuffing all my code into a single line. This is what an exported function looks like: arcpy.CalculateField_management(ModelAirports_shp__12_, "Zoom", "calcZoom(!FlDaily!, !UseType!, !Part139!, !OEP35!, !Core30!, !Type!)", "PYTHON_9.3", "def calcZoom(flights, use, part139, oep35, core30, type):\\n if (oep35 == 1) or (core30 == 1):\\n return 10000000\\n elif ((oep35 == 0) and (core30 == 0) and (part139 == 1) and (type == \"AIRPORT\") and (use == \"Public\")):\\n return 262144\\n elif ((oep35 == 0) and (part139 == 1) and (type == \"AIRPORT\") and (use == \"Private\")):\\n return 262144\\n elif ((part139 == 1) and (oep35 == 0) and (type == \"AIRPORT\") and (use == \"Military\")):\\n return 262144\\n elif ((part139 == 0) and (type == \"AIRPORT\") and (use == \"Public\") and (flights >= 250)):\\n return 131072\\n elif ((part139 == 0) and (type == \"AIRPORT\") and (use == \"Military\") and (flights >= 100)):\\n return 131072\\n elif ((part139 == 0) and (type == \"AIRPORT\") and (use == \"Public\") and (flights < 250) and (flights >= 100)) :\\n return 65536\\n elif ((part139 == 0) and (type == \"AIRPORT\") and (use == \"Private\") and (flights >= 100)):\\n return 65536\\n elif ((part139 == 0) and (type == \"AIRPORT\") and (use == \"Military\") and (flights < 100)):\\n return 65536\\n elif ((part139 == 0) and (type == \"AIRPORT\") and (use == \"Public\") and (flights < 100)):\\n return 32768\\n elif (((type == \"SEAPLANE BASE\") or (type == \"GLIDERPORT\") or (type == \"ULTRALIGHT\") or (type == \"BALLOONPORT\")) and ((use == \"Public\") or (use == \"Private\"))):\\n return 32768\\n elif ((part139 == 0) and (type == \"AIRPORT\") and (use == \"Private\") and (flights < 100)):\\n return 32768\\n elif ((type == \"HELIPORT\") and ((use == \"Public\") or (use == \"Military\"))):\\n return 16384\\n elif ((type == \"HELIPORT\") and (use == \"Private\")):\\n return 8192\\n else:\\n return 0") Easy to maintain in Model Builder [ATTACH=CONFIG]19251[/ATTACH] Was wondering if I could have something like this: arcpy.CalculateField_management(ModelAirports_shp__12_, "Zoom", "calcZoom(!FlDaily!, !UseType!, !Part139!, !OEP35!, !Core30!, !Type!)", "PYTHON_9.3", calcZoom(!Airports!, !Use!) and then define calcZoom in a different part of the script. Thanks! Jay
... View more
11-13-2012
04:14 AM
|
0
|
2
|
1722
|
|
POST
|
Thanks! I think that is my problem - I would like to use the REST API, however can't figure out how to make the GET request (passing in the filter geometry to the map service and setting the export to KMZ) work for KMZ prgramatically. The reason I can't figure it out is because, as far as I know, GET requests can only be handled as text (json, text, html), but not as binary (zip, kmz). So I was wondering is there was a way around this (or if I have it entirely wrong). It here any ways browsers can handle binary responses from http get requests? The api says to use esri.request but I can't get it to deliver a KMZ. Thanks for your assistance! Jay
... View more
11-08-2012
05:59 AM
|
0
|
0
|
4704
|
|
POST
|
Thanks! This is a great example. However, we haven't integrated .NET customization into our Arc environment yet. Was wondering if there is a way to do this with Python (Model Builder) or just plain JavaScript with REST calls... Thanks, Jay
... View more
11-07-2012
06:22 AM
|
0
|
0
|
4704
|
|
POST
|
I'm trying to create a web app that allows a user to draw a polygon, and then the ability to export the features within that polygon. I partially got it working using a GP service based on a ModelBuilder model, but it seems to choke randomly (when a larger areas is chosen, but the number of features that should be returned is still far less than 1000). The server generates no errors when I look at the logs, but the JS api claims "Job 'j024c31e288b2441a9f429e093f8fce6e' does not exist or is inaccessible." The directory is clearly accessible and the kmz file is present. Anyway, was wondering if I might have better look directly making an esri.request and passing in the geometry. The only thing I can't figure out is how an esri.request can handle a kmz file. The only options are text, json, xml, but nothing that supports binary. Is my only choice to troubleshoot the geoprocessing service? Thanks, Jay
... View more
11-02-2012
07:36 AM
|
0
|
8
|
9066
|
|
POST
|
I'm having similar memory problems with a new install of Server 10.1 - any idea what VM setting you changed?
... View more
10-19-2012
05:17 AM
|
0
|
0
|
3062
|
|
POST
|
An update to this post: The output file does appear correctly in an entirely different directory: the one in which my original mxd exists and from which I built the service and imported into ArcGIS Server Manager. When I built my model in ModelBuilder, I made sure to check the "store relative path names" and specify the output directory of the results.kmz file to be %scratchworkspace%\export.kmz. So why is the output file going to a completely different directory and not the arcgisjobs directory? Thanks for your help! Jay
... View more
10-15-2012
06:28 AM
|
0
|
0
|
1645
|
|
POST
|
Hi, I have a simple geoprocessing service exposed to REST on ArcGIS for Server 10.0 (I've attached the screenshot here). Using the JS API, I have a submitJob task that runs the geoprocessing tool (a lot of code was taken from this sample). However, the result KMZ file doesn't seem to be in the directory that job info claims. I modified the downloadfile function to function downloadFile(outputFile){ console.log("downloading"); map.graphics.clear(); console.log(outputFile); var theurl = outputFile.value.url; //window.location = theurl; } The outputFile.value.url is "http://myservername/arcgisjobs/export_gpserver/jc867301809404c4ba6065c514361806e/scratch/results.kmz, but when I navigate to that directory on the server, there is no results.kmz file there. However, the output file does appear correctly in an entirely different directory: the one in which my original mxd exists from which I built the service and imported into ArcGIS Server Manager. When I built my model in ModelBuilder, I made sure to check the "store relative path names" and specify the output directory of the results.kmz file to be %scratchworkspace%\export.kmz. So why is the output file going to a completely different directory and not the arcgisjobs directory? On a somewhat related note, is this the best way to generate a KMZ from a user defined polygon? I know I can query the REST entpoint directly, but I'm unsure how to do that without directly making a GET or POST AJAX request in Javascript? But mostly, where is that KMZ file? Thanks for your help.... Jay
... View more
10-15-2012
06:27 AM
|
0
|
1
|
1200
|
|
POST
|
Hi, I have a simple geoprocessing service exposed to REST on ArcGIS for Server 10.0 (I've attached the screenshot here). Using the JS API, I have a submitJob task that runs the geoprocessing tool (a lot of code was taken from this sample). However, the result KMZ file doesn't seem to be in the directory that job info claims. I modified the downloadfile function to function downloadFile(outputFile){ console.log("downloading"); map.graphics.clear(); console.log(outputFile); var theurl = outputFile.value.url; //window.location = theurl; } . The outputFile.value.url is http://myservername/arcgisjobs/airportsexport2_gpserver/j154fac0763164443b0ad3456c4b4220f/scratch/results.kmz, but when I navigate to that directory on the server, there is no results.kmz file there. Is something wrong with my model? Where is the KMZ file? On a somewhat related note, is this the best way to generate a KMZ from a user defined polygon? I know I can query the REST entpoint directly, but I'm unsure how to do that without directly making a GET or POST AJAX request in Javascript? But mostly, where is that KMZ file? Thanks for your help.... Jay [ATTACH=CONFIG]18396[/ATTACH]
... View more
10-12-2012
12:01 PM
|
0
|
3
|
2055
|
|
POST
|
Thanks - I took a look around the configuration manager on SQL, and saw that the TCP/IP protocol was using a different port (not 5151). The browser service was running, so I replaced my connection string with yours, sde:sqlserver:myservername\mssqlserver,<port#>, specifying the correct port number, and the connection worked! Thanks again for your help. Jay
... View more
05-01-2012
05:30 AM
|
0
|
0
|
1764
|
| Title | Kudos | Posted |
|---|---|---|
| 2 | 02-23-2026 11:00 AM | |
| 1 | 07-08-2025 11:33 AM | |
| 1 | 11-07-2023 08:32 AM | |
| 2 | 10-01-2025 06:52 AM | |
| 5 | 09-08-2025 07:31 AM |
| Online Status |
Offline
|
| Date Last Visited |
a week ago
|