In [2]:
from arcgis.gis import GIS
import getpass

password = getpass.getpass("Enter your ArcGIS Organizational or Developer Account Password: ")
gis = GIS("https://www.arcgis.com", "jgravois", password)
print("Logged in successfully to {} as {}.".format(gis.properties.urlKey + '.' + gis.properties.customBaseUrl, \
                                                   gis.users.me.username))


Enter your ArcGIS Organizational or Developer Account Password: ········
Logged in successfully to edn.maps.arcgis.com as jgravois.

In [21]:
from IPython.display import display

map = gis.map("Springfield, IL", 12)
map



In [6]:
feat_services = gis.content.search(query="title:Church*", item_type="Feature Service", max_items=5, outside_org='true')
print("{} has access to {} feature service items.".format(gis.users.me.username, len(feat_services)))


jgravois has access to 5 feature service items.

In [7]:
for feat_svc in feat_services:
    print("{} is a {}.".format(feat_svc.title.capitalize(), type(feat_svc)))
    print("\t{}".format(feat_svc.url))


Other churches is a <class 'arcgis.gis.Item'>.
	http://services1.arcgis.com/O2LesHc3TabFg7Qs/arcgis/rest/services/Other_churches/FeatureServer
Church rock uranium monitoring project (crump) water samples is a <class 'arcgis.gis.Item'>.
	http://services.arcgis.com/LGtNQDlIZBdntoA9/arcgis/rest/services/Church_Rock_Uranium_Monitoring_Project_(CRUMP)_Water_Samples/FeatureServer
Hardin county churches is a <class 'arcgis.gis.Item'>.
	http://services1.arcgis.com/fYwcHOBzInDTQxh0/arcgis/rest/services/Hardin_County_Churches/FeatureServer
Churchill_truview_scans_2015_0515 is a <class 'arcgis.gis.Item'>.
	https://services.arcgis.com/w0K9MAswvUFWyjPZ/arcgis/rest/services/Churchill_TruView_Scans_2015_0515/FeatureServer
Catholic churches is a <class 'arcgis.gis.Item'>.
	https://services2.arcgis.com/1cdV1mIckpAyI7Wo/arcgis/rest/services/Catholic_Churches/FeatureServer

In [22]:
catholic_churches = feat_services[4]
catholic_churches


Out[22]:
Catholic Churches
Homeland Security Use Cases: Use cases describe how the data may be used and help to define and clarify requirements. 1. A disaster or health emergency has occurred, or is predicted for a locality. Places of worship or congregations that may be affected must be identified. 2. An assessment as to the evacuation needs and issues for a given area needs to be made as part of a disaster mitigation plan. Places of worship that may need to be evacuated must be identified. 3. Facilities that can serve as shelters must be identified. 4. A threat has been made toward places of worship and other religious institutions. These locations need to be identified, their leadership contacted, and their buildings protected.Feature Layer Collection by HIFLD_Admin
Last Modified: May 30, 2017
0 comments, 1,274 views

In [23]:
map.add_layer(catholic_churches)