I have a reader on my FME Desktop 2013 workbench which opens data from an Oracle spatial database.
Reading the data take a long time, since it is a huge dataset.
The first step of my process is to use a SpatialFilter in order to select the features of my dataset which are included in a relative narrow region.
This means that I opend a lot of data that are not used in my process.
In order to avoid this, I can specify a Search Envelope in the parameters of the Reader. I guess that by doing this I only open the feartures that are within this envelope.
My question :
In the Search Envelope, I have to manually define the Min X, Min Y, Max X, Max Y values. Is it possible to derive these values automatically from another dataset ?
My idea is to add another reader on my workbench to open the delimitations of all the municipalities, to "TestFilter" this data in order to select only the municipality I need, to derive the Min X, Min Y, Max X, Max Y values of this municipality, and finally to use these values as a input parameters of the Search Envelope of the reader from which I need the data.
Thanks !