from arcgis import GIS import pandas as pd from arcgis.features import GeoAccessor, GeoSeriesAccessor from arcgis.geocoding import batch_geocode from arcgis.features import SpatialDataFrame gis = GIS('https://siarcgisweb01.trssllc.com/portal/home', 'sazdrake') map1 = gis.map('New York, NY') map1.basemap = "osm" map1 address_frame = pd.read_csv('data/city_of_new_york.csv') address_shp = SpatialDataFrame.from_xy(address_frame, 'LON', 'LAT') address_shp.spatial.plot(map_widget=map1)
cstep=50, outline_color='Blues', marker_size=10) # In[7]: df.columns # In[8]: df[['ST', 'NAME']].head() # In[9]: gis = GIS() m3 = gis.map("United States", zoomlevel=4) m3 # In[10]: df.spatial.plot( map_widget=m3, renderer_type='u', #specify the unique value renderer using its notation 'u' col='ST') #column to get unique values from # In[11]: item = gis.content.get("8444e275037549c1acab02d2626daaee") flayer = item.layers[0] df2 = flayer.query().sdf
# -*- coding: utf-8 -*- """ Created on Sun Oct 25 21:03:21 2020 @author: apee461 """ from arcgis import GIS gis = GIS("https://apee461.cc4soe.cloud.edu.au/portal", "admin", "bobby2Tables") content = gis.content.search("golf_courses", item_type="Feature Layer") content[0] map1 = gis.map() map1.extent = content[0].extent map1.add_layer(content[0]) map1 #%% from arcgis.features import FeatureLayerCollection from arcgis.features.use_proximity import create_buffers golf_courses = content[0] buffer_golf = create_buffers(golf_courses, dissolve_type='Dissolve', distances=[0.5], ring_type='Rings', units='Miles', output_name="GolfBuffer")
# coding: utf-8 # In[6]: import arcgis from arcgis import GIS # Create a GIS object, as an anonymous user for this example gis = GIS() # ## Texas Map # In[7]: # Create a map widget map1 = gis.map('Texas') # Passing a place name to the constructor # will initialize the extent of the map. map1 # ### Changing the zoom # In[13]: map1.zoom = 10 # ### Houston Area # In[11]: map1.center = [29.7604, -95.3698] # In[14]: