POST
|
I'm attempting to automate the creation of a set of offline areas from a AGOL web map. I've created a couple of areas for this web map manually through AGOL with no problem. However, when attempting this with the Python API, I'm getting errors. My web map is very simple and only contains a vector basemap. Any ideas on the source of this error? In the example below, I use a bookmark for the area, but the same error occurs if I use an extent. Using this command: offlineItem = oWebMap.offline_areas.create(area='TAE', item_properties=oLine_properties) where: The bookmark itself:
{ "extent": { "spatialReference": { "wkid": 102100 }, "xmax": -9311960.288686637, "xmin": -9457037.768371958, "ymax": 3644687.9398760623, "ymin": 3470105.7672726526 }, "name": "TAE"
}
oLine_properties = {'title': 'TAE1',
'tags': ['DAT'],
'snippet': 'Offline Map for TAE CWA'} The error: {"code": 24, "messageCode": "OffPkg_ 24", "message": "Parameter extent is invalid or exceeded limit.", "params": {"name": "extent"}} Failed to execute (CreateMapArea). Failed. Submitted. Executing... Start Time: Thursday, February 13, 2020 2:06:55 AM Running script CreateMapArea... {"code": 24, "messageCode": "OffPkg_ 24", "message": "Parameter extent is invalid or exceeded limit.", "params": {"name": "extent"}} Completed script CreateMapArea... Failed to execute (CreateMapArea). Failed at Thursday, February 13, 2020 2:06:55 AM (Elapsed Time: 0.15 seconds) Failed. ---------------------------------------------------------------------------Exception Traceback (most recent call last)<ipython-input-55-699c796e29ec> in <module>----> 1 offlineItem = oWebMap.offline_areas.create(area='TAE', item_properties=oLine_properties)~/opt/anaconda3/lib/python3.7/site-packages/arcgis/mapping/_types.py in create(self, area, item_properties, folder, min_scale, max_scale, layers_to_ignore, refresh_schedule, refresh_rates) 1269 from arcgis.geoprocessing._tool import Toolbox 1270 pkg_tb = Toolbox(url=self._url, gis=self._gis)-> 1271 oma_result = pkg_tb.create_map_area(self._item.id, _bookmark, _extent, output_name=output_name) 1272 # endregion 1273 ~/opt/anaconda3/lib/python3.7/site-packages/arcgis/geoprocessing/_tool.py in create_map_area(self, map_item_id, bookmark, extent, area_type, area, output_name) 101 # print(k + " => " + str(v)) 102 --> 103 return self._execute(kwargs) 104 105 code = call.__code__ ~/opt/anaconda3/lib/python3.7/site-packages/arcgis/geoprocessing/_tool.py in _execute(self, params) 1004 try: 1005 isCan = False-> 1006 job_info = super()._analysis_job_status(task_url, job_info) 1007 except KeyboardInterrupt: 1008 cancel_url = "%s/jobs/%s/cancel" % (task_url, job_info['jobId'])~/opt/anaconda3/lib/python3.7/site-packages/arcgis/geoprocessing/_tool.py in _analysis_job_status(self, task_url, job_info) 505 506 if job_response.get("jobStatus") == "esriJobFailed":--> 507 raise Exception("Job failed.") 508 elif job_response.get("jobStatus") == "esriJobCancelled": 509 raise Exception("Job cancelled.")Exception: Job failed.
... View more
02-12-2020
06:10 PM
|
0
|
2
|
1059
|
IDEA
|
We have data being entered across multiple time zones, and our users are used to working primarily in UTC. It would be helpful to have the option for the DateTime (plus Date and Time) type(s) to display in UTC and not the local timezone.
... View more
07-18-2019
06:52 AM
|
1
|
0
|
200
|
BLOG
|
I have a question about attachments and repeats the was mentioned in an early comment, but never fully answered. I am building a form against an existing feature class with attachments enabled (and "supportsApplyEditsWithGlobalIds": true). If I build the form with a single 'image' type, I can publish and the survey allows the user to attach a single photograph. However, if I try to add a repeat around the 'image' type (to allow for multiple photographs), the survey will not publish, with the error "Table XXX not found" (where XXX is whatever I name the repeat). So, how do I configure the form to allow for multiple photographs? Thanks, Parks
... View more
07-16-2019
05:25 PM
|
0
|
0
|
4784
|
POST
|
Is the range field type any closer to being implemented?
... View more
06-21-2019
03:28 PM
|
0
|
4
|
1905
|
POST
|
I'm using the OAuth2 workflow in my Xamarin.Forms app to authenticate against our enterprise portal. I'm able to login and get the access token. However, no matter what I use for TokenValidity when generating the request (in GenerateTokenOptions), the returned token always expires in two hours. I see this same behavior when using the Esri OAuth sample (arcgis-runtime-samples-dotnet/src/Forms/Shared/Samples/Security/OAuth at master · Esri/arcgis-runtime-samples-dotnet · G… ). Am I missing something in the workflow? A two-hour expiration is a pain. Any thoughts are appreciated.
... View more
12-17-2018
03:48 PM
|
0
|
0
|
1418
|
DOC
|
You are correct (startTime). Thanks for the fix! Parks
... View more
07-06-2018
11:16 AM
|
0
|
0
|
4058
|
DOC
|
Robert, Great work on the widgets! I found a possible bug in the 'Use Map Time' functionality where you use only the timeExtent.endtime to create the timeExtent for the Identify task. Line 761 in Widget.js identifyParams.timeExtent = new TimeExtent(this.map.timeExtent.endTime, this.map.timeExtent.endTime); Is there a reason you do this instead of using beginTime for the first parameter? I had to make this change for the Identify tool to correctly work on my time-enabled layers. Thanks, Parks
... View more
07-06-2018
06:12 AM
|
0
|
0
|
4058
|
POST
|
We are using an AWS EC2 instance to run ArcGIS for Server (using an elastic load balancer) and would like to use an SSL certificate from a CA. Does the certificate have to be applied to both the machine running ArcGIS and the ELB? The instance was created manually, not using Cloud Builder. We just applied the certificate to the ELB. We used Cloud Builder, but I'm not sure that it would be any different in your case. Parks
... View more
06-21-2014
07:34 AM
|
0
|
0
|
264
|
POST
|
You should be able to use the File.applicationStorageDirectory to read/write files specific to your app (this space is only available to the app). One caution is to make sure you are using the correct path. The best way is to use resolvePath such as: var newFile:File = File.applicationStorageDirectory.resolvePath("file.txt")
... View more
09-27-2012
04:08 AM
|
0
|
0
|
151
|
POST
|
Does anyone know of anyway to monitor the progress of uploading an attachment via the featureLayer.addAttachment method? I'm guessing not since there is no "progress" event, but maybe someone has another way? Thanks, Parks Tallahassee
... View more
09-27-2012
03:40 AM
|
0
|
0
|
444
|
POST
|
Looking for ideas... I have a service of polygon features, which often overlap. I'm looking for a way to have the Tooltip "combine" the tooltips from all of the features below the mouse pointer. For example: When the mouse is over a single polygon, the tooltip would be: "Tooltip for Feature 1" When the mouse is over two overlapping polygons, the tooltip would be: "Tooltip for Feature 1...Tooltip for Feature 2" I'm currently using the "show query in tooltip" sample, but I can only seem to show the tooltip for the top-most graphic in the layer. Any thoughts? Thanks, Parks Camp Tallahassee
... View more
09-28-2011
11:40 AM
|
0
|
0
|
1087
|
POST
|
I'm trying to port our current viewer (customized version of Sample Viewer) over to using the newer AGS Flex SDK (2.x). I'm able to port to the Flex 4.0 SDK without much problem. Once I add the Flex 2.3 (and remove 1.3), I can correct all but one of the errors that crop up. The one I cannot resolve is this (one for each widget in the project): "1046: Type was not found or was not a compile-time constant: Group." The main problem is that I don't know where, in the project, that the error is since Flash Builder does not give a path for these errors. I've searched the entire project for "Group" with no matches. Has anyone else run into this, or have any ideas where the error is? Thanks, Parks Tallahassee
... View more
04-25-2011
09:06 AM
|
0
|
0
|
474
|
POST
|
You'll need to be using a ArcGIS Server 10 hosted service since it has added a new syntax for the layerDefs parameter that allows :'s in the definition value. The old syntax uses :'s as a layer id separator. Reference: http://help.arcgis.com/en/arcgisserver/10.0/apis/rest/export.html FYI, I was able to find a workaround for this issue by sending the epoch time and using the sql "to_timestamp" function:
var nDate:Date = new Date();
var qTime:Number = nDate.time;
var wwaLyr:ArcGISDynamicMapServiceLayer = map.getLayer("WWA") as ArcGISDynamicMapServiceLayer;
var stringDef:String = "beginDate <= to_timestamp(qTime)";
wwaLyr.layerDefinitions = [stringDef];
wwaLyr.refresh();
... View more
03-16-2011
01:08 PM
|
0
|
0
|
239
|
POST
|
You'll need to be using a ArcGIS Server 10 hosted service since it has added a new syntax for the layerDefs parameter that allows :'s in the definition value. The old syntax uses :'s as a layer id separator. Reference: http://help.arcgis.com/en/arcgisserver/10.0/apis/rest/export.html Dasa, Thanks. That helps. parks
... View more
03-15-2011
03:08 PM
|
0
|
0
|
239
|
Title | Kudos | Posted |
---|---|---|
1 | 07-18-2019 06:52 AM |
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|