#-------------------------------------------------------------------------------
# Name: OverlayLayers.py
# Description: Remove areas that are already developed from proposed development sites
#
# Requirements: ArcGIS GeoAnalytics Server
# Import system modules
import arcpy
# Set local variables
inFeatures = "https://myGeoAnalyticsMachine.domain.com/geoanalytics/rest/services/DataStoreCatalogs/bigDataFileShares_cityData/BigDataCatalogServer/areasOfInterest"
overlayFeatures = "https://myGeoAnalyticsMachine.domain.com/geoanalytics/rest/services/DataStoreCatalogs/bigDataFileShares_cityData/BigDataCatalogServer/commercial"
outFS = "DevelopmentSites"
overlayType = "ERASE"
dataStore = "SPATIOTEMPORAL_DATA_STORE"
# Execute Overlay Layers
arcpy.geoanalytics.OverlayLayers(inFeatures, overlayFeatures, outFS,
overlayType, dataStore)