|
POST
|
Here's a snippet that should get you started. This will return the JSON for a given webmap or list of webmaps in your portal. from arcgis.gis import GIS
from IPython.display import display
import pandas as pd
import json
gis = GIS('url', 'username', 'password')
webmaps = gis.content.search('', 'Web Map', max_items = 500)
for webmap in webmaps:
print('Title ' + webmap.title, '\nWebmapId ' +webmap.id, '\nOwner ' +webmap.owner)
webmapJSON = webmap.get_data()
for layer in webmapJSON['operationalLayers']:
display(layer)
... View more
06-06-2017
01:56 PM
|
4
|
2
|
1456
|
|
POST
|
Is there a method for exposing a Shortlist Builder feature collection layer as a hosted service that reflects the latest updates made to the original feature collection layer? Our organization has published multiple Shortlist Story Maps using the Shortlist Builder with the data existing until now only as Feature Collections in the web maps themselves. However, we've received multiple requests for sharing this information as Open Data. While we can save the feature collection as a layer and then publish said layer as a Hosted Service, based on my limited testing it would appear that any changes made to the original feature collection via the Shortlist builder are not propagated outward to any published REST services. In other words, saving a feature collection layer from the Shortlist web map acts as a snapshot of that data and not a real-time feed.
... View more
06-01-2017
09:06 AM
|
0
|
0
|
670
|
|
POST
|
Late to this discussion but if you're an admin to your portal, check out ArcGIS Item Information It's a prototype application so YMMV but I've used it to clean up our portal's tags in a fairly efficient manner.
... View more
05-22-2017
04:22 PM
|
5
|
6
|
2795
|
|
POST
|
Do any existing widgets, either OOTB or custom, support batch deletion of multiple features? I didn't see anything in the 3x API reference that would support this option but I'm asking the community. Thanks.
... View more
04-26-2017
05:10 PM
|
0
|
0
|
880
|
|
POST
|
Bumping this to see if anyone has developed a solution when facing this issue.
... View more
04-18-2017
01:41 PM
|
0
|
0
|
1747
|
|
POST
|
I'm also running into this error message when attempting to map out relationship between portal items, in this case a web map and a layers in the map. zoningItem.related_items('Map2FeatureCollection', 'forward') returns an empty array While running the dependent_upon or dependent_to methods returns: Unable to get dependencies for item: item#
Unable to retrieve item dependencies.
---------------------------------------------------------------------------
RuntimeError Traceback (most recent call last)
<ipython-input-3-2b1d726173d1> in <module>()
----> 1 zoningItem.dependent_upon()
/opt/conda/lib/python3.5/site-packages/arcgis/gis.py in dependent_upon(self)
2993 def dependent_upon(self):
2994 """ Returns items and urls, etc that this items depends upon """
-> 2995 return self._portal.get_item_dependencies(self.itemid)
2996
2997 def dependent_to(self):
/opt/conda/lib/python3.5/site-packages/arcgis/_impl/portalpy.py in get_item_dependencies(self, itemid)
1124
1125 def get_item_dependencies(self, itemid):
-> 1126 return self.con.post('content/items/' + itemid + '/dependencies', self._postdata())
1127
1128 def get_item_dependents_to(self, itemid):
/opt/conda/lib/python3.5/site-packages/arcgis/_impl/connection.py in post(self, path, postdata, files, ssl, compress, is_retry, use_ordered_dict, add_token, verify_cert, token)
954 elif errorcode == 498:
955 raise RuntimeError('Invalid token')
--> 956 self._handle_json_error(resp_json['error'], errorcode)
957 return None
958 except AttributeError:
/opt/conda/lib/python3.5/site-packages/arcgis/_impl/connection.py in _handle_json_error(self, error, errorcode)
974
975 errormessage = errormessage + "\n(Error Code: " + str(errorcode) +")"
--> 976 raise RuntimeError(errormessage)
977
978 class _StrictURLopener(request.FancyURLopener):
RuntimeError: Unable to get dependencies for item: item#
Unable to retrieve item dependencies.
(Error Code: 500)
... View more
03-29-2017
03:45 PM
|
0
|
4
|
1747
|
|
POST
|
From talking with the Open Data team last week, it would appear that the fix to the data.json error is still being worked on and should be rolled out in the next week or two.
... View more
03-13-2017
09:32 AM
|
0
|
0
|
2633
|
|
POST
|
Karen - Like you I'm still unable to access the data.json on our site (receive a 307 redirect). On other sites I'm seeing inconsistent behavior. Maryland doesn't return the data.json while the Boston and DC sites do show the JSON. I plan to stop by the Open Data booth at the DevSummit today and see if I can get more info about this issue.
... View more
03-08-2017
09:06 AM
|
0
|
0
|
2632
|
|
POST
|
Thanks Courtney for the update. I'll go ahead and close this question.
... View more
03-01-2017
01:39 PM
|
0
|
0
|
2632
|
|
POST
|
Hi Daniel Fenton I'm following up on this issue to see there is any kind of timetable for a fix. Thanks! Seth
... View more
03-01-2017
12:53 PM
|
0
|
4
|
2632
|
|
POST
|
Both our portal and Open Data are down as well. The Developers site is down too.
... View more
02-28-2017
10:33 AM
|
0
|
0
|
3187
|
|
POST
|
Thanks Daniel for the quick reply. I'll await your team's solution.
... View more
02-23-2017
02:16 PM
|
0
|
0
|
2632
|
|
POST
|
I've made our open data site public but am receiving a 404 error when attempting to retrieve the data.json Our site is here http://data-tempegov.opendata.arcgis.com/ I'm able to access the site and query each of the 34 datasets that we've shared through the Open Data group. However, appending data.json to our site's URL returns the 404. Does anyone have any guidance as to the cause of this error?
... View more
02-23-2017
01:45 PM
|
0
|
9
|
3256
|
|
POST
|
You're unable to see your feature layer at all? As long as your spatial layer is loaded into the webmap and has been published with Create permission you should be able to view and add a new feature in Collector. To add a new related record you'll need to ensure that popups are enabled on any related table (which from your reply to Jayanta it sounds like you've done) and when you select Show Details after clicking on a feature, you should see New beneath the related table's name.
... View more
01-26-2017
10:46 AM
|
0
|
4
|
1727
|
|
POST
|
As long as you've published the Hosted Layer (or REST service) with Feature Access enabled along with Create & Update permissions, you should be able to add a new related record or edit existing records in a Web App Builder interface using the Edit widget. I haven't been able to add a new related record using the map viewer. WAB, either AGOL or Developer Edition, should support the functionality that you're looking for however. See the below screenshots for a quick example of the approximate interface that you should see in the Edit widget popup. This is referencing a Hosted Layer I threw into AGOL just now and placed into a simple webapp builder app.
... View more
01-11-2017
02:50 PM
|
1
|
2
|
1727
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 08-23-2017 03:25 PM | |
| 1 | 03-21-2018 09:13 AM | |
| 1 | 06-14-2017 11:30 AM | |
| 2 | 01-12-2021 08:57 AM | |
| 1 | 05-18-2016 01:02 PM |
| Online Status |
Offline
|
| Date Last Visited |
08-19-2025
04:46 PM
|