yonghah / esri2sf

Scrape features from ArcGIS Server REST API and create simple features dataframe
Other
138 stars 37 forks source link

Added support for additional query parameters #16

Closed mvanbommel closed 4 years ago

mvanbommel commented 4 years ago

Added a ... argument to esri2sf() to allow users to pass in additional named query parameters, increasing the flexibility for what can be done with the query.

Examples:

esri2sf(url = "https://services.arcgis.com/QVENGdaPbd4LUkLV/arcgis/rest/services/FWS_HQ_NWRS_Vegetation/FeatureServer/0",
        resultRecordCount = 3, 
        resultOffset = 1)

esri2sf(url = "https://services5.arcgis.com/54falWtcpty3V47Z/arcgis/rest/services/Bike_Master_Plan_Facilities/FeatureServer/1",
        geometry = "{'rings':[[[-121.503296,38.557831], [-121.503296,38.593261],  [-121.460724,38.593261],  [-121.460724,38.557831], [-121.503296,38.557831]]]}",
        geometryType = "esriGeometryPolygon",
        inSR = 4326,
        spatialRel = "esriSpatialRelContains")
yonghah commented 4 years ago

Awesome contribution! Thanks!