I'm trying to intersect a point layer with a feature layer in the python API to give me a new point layer with attributes of both layers. I'm following the documentation: arcgis.geometry module — arcgis 1.5.0 documentation but I'm not the best with python and having trouble. How do I write the arguments to the intersect function? There may be more than one mistake I'm making but for now I have the following: # Connect from arcgis.gis import GIS from arcgis.geocoding import geocode from arcgis.geometry import filters gis = GIS("https://www.arcgis.com", "username", "password") # Need this for geocoding later map = gis.map("Houston, TX") map # get the point and polygon layers (geolocated point and census block) ptFeatureLayer = gis.content.get('11ed3710e5a54d988d9e4f9d4068ca6f') polygonFeatureLayer = gis.content.get('e711b54d031244ae9ec6a1ed9bbcb223') # stuck at this part # now do the intersection between a point layer and polygon layer: newPointlayer = geometry.intersect('spatialReference': {'wkid': 4326}}, 'geometries' I DONT KNOW WHAT GOES HERE 'geometry': {'geometryType': 'esriGeometryPoint', gis=None ) I appreciate any help.
... View more