Let me describe the scenario. I have to make a statistical maps for a bunch of countries. The FME workbench is going to use ESRI reprojector to reproject the shape of given country to lambert azimuthal equal area and after generate regular grid. Is there any way FME can pick up automatically the values of central meridian, latitute of origin for the country that the map is going to be created ? Could the information about the country center be passed to the reprojector automatically ? I would like to avoid situation where I have to manually pass the parameters each time the new country is going to be processed. Thank you in advance Gregory
If you are not too attached to the ESRI reprojection engine the simplest solution is to use the CsmapReprojector instead. The
However, Alex Markov is on the right track when he suggests it is possible to use @Reproject to do this using the ESRI engine.
Assuming you have set
I think in order to get central meridian or latitute of origin we have to get centroid coordinates for our area of interest. Or may be min/max coordinates for all features. And then use this coordinates to calculate central meridian or latitute of origin.
I will try to describe main ideas:
EDIT1 (answer to first comment):
As far as I see there is no straight way to link coordinate systems parameter in ESRIReprojector transformer to external parameter.
But I believe there is a possibility to use @Reproject function. It has parameter to choose ESRI reprojection engine. And all other parameters you can pass to it in run-time.
I think you can try to use transformer TCLCaller in order to use this function.
i would do it like this:
-input-->(calculations *1->point)---->reproject ->("other work done here" )-^
Where *1 ends with transformer which returns only one feature(x,y values) , which is then transformed to point and reprojected