Describe the bug
Using arc.open() on a layer with a definition query returns entire layer without definition query.
To Reproduce
Steps to reproduce the behavior:
- Create a new R based geoprocessing script tool to the likes of this:
library(arcgisbinding)
library(sf)
tool_exec <- function(in_params, out_params){
def_query_open <- arc.open(in_params[["def_query_layer"]])
def_query_sf <- def_query_open |> arc.select() |> arc.data2sf()
def_query_sf |> st_write('./this.csv')
}
- Create a layer with a definition query
- Run the tool and inspect the output csv file, which has all the data within a layer
arcgisbinding info (please complete the following information):
arc.check_product() output:
product: ArcGIS Pro (13.6.0.59527)
license: Advanced
version: 1.0.1.311
Additional context
Not an issue if arc.select() is configured to execute the same SQL query as the definition query.
Describe the bug
Using
arc.open()on a layer with a definition query returns entire layer without definition query.To Reproduce
Steps to reproduce the behavior:
arcgisbinding info (please complete the following information):
arc.check_product()output:arc.check_portal()output:R Notebook/ R-Studio/ R IDE: Positron (latest release)
OS: Windows 11
Additional context
Not an issue if
arc.select()is configured to execute the same SQL query as the definition query.