Reproject geometries inside a new coordinate system.

Parameters:

Parameters:
Most of the visualization action inside ETL do require to get their geometries described in decimal degrees (i.e. inside the coordinate system with the 4326 SRID).
One particularity of the “SRID=4326 coordinate system” is that a “step” of 10 degree of longitude (i.e. along the direction of the “X” axis) represents 354 Km at the equator (i.e. when the latitude is zero) and the same “step” of 10 degree of longitude near the Noth Pole (i.e. when the latitude is near 90°) is nearly zero Km. All this is explained in the following illustrations:

In other words, inside the 4326 SRID, a step of one unit along the X axis does not always “moves us” of the same distance (it depends of the value of the Y axis). Hopefully, in the direction of the Y axis – the latitude – all the steps have the same contant length. So, moving in the X direction (i.e. changing longitude) and moving on the Y direction (i.e. changing latitude) is definively not the same. Here is an example of this strange phenomenon: We created some shapes that looks like perfect circles inside the “SRID=4326 coordinate system”:

…but when we look at these same “perfect circles” on the Earth spheroid, we actually see:

This example illustrates very well that the “X axis” (i.e. the longitude direction) “shrinks” when we approach the poles. Many complex GIS action (such as these action: KNN, ConcaveHull, SimplifyGIS, ExpandGIS, tesselateGIS) do not work very well inside this “SRID=4326 coordinate system” because these actions all assume that we are in a standard planar cartesian coordinate system (they totally ignore the fact that our geometries were first defined on a spheroid): i.e. doing a “step” of one unit-length always “move us” of the same constant distance whatever the direction of the step. Hopefully there is a solution to this problem: re-projection! The ETL Reproject action allows to take the geometries defined inside the problematic 4326 and reproject them inside a new coordinates system that has the nice “planar&cartesian” properties (i.e. all directions are equivalent). Once inside this new coordinate system, you can thus safely use all the complex GIS actions (KNN, ConcaveHull, SimplifyGIS, ExpandGIS, TesselateGIS) to do all your computations. Also, typically, at the end of all the computations, you’ll reproject inside the 4326 SRID, just for visualization purposes (because, most of the time, the visualizations require the 4326 SRID).
Let’s go back to our previous example: We again want to create a small grid of “perfect circles” on the Earth spheroid, but this time, we’ll succeed:

The 4 steps (for the 4 actions here above) are:
Inside ETL, the geometries are stored/represented using 5 different formats:
The data for the geometries stored inside the last 2 formats (the HEX and the BASE64 formats) include everything required to define the geometry: …And this includes the SRID! Using the GeometryInfo action, you can see the SRID of the geometries (that are stored in HEX or BASE64 format).
In opposition, when using the first 3 formats (i.e. the POINT, the RECTANGLE and the WKT formats), some actions will ask you to manually specify the SRID (because the SRID is not embedded into the data for these more primitive geometry formats). For example, when you use the saveShapeGIS action:

Usually, SRID’s are linked to countries (SRID 2154 for France, SRID 31370 for Belgium, SRID 4269 for North America, etc.). So, if you are manipulating geometries from a specific country, a good starting point it to select the SRID for this country: This will be the SRID with the less distortion for your geometries.
ETL supports reprojection into 4922 different SRID’s. To get a table with the complete list of all the supported SRID’s, execute the readSQLite action with the following parameters:


When searching internet for a correct SRID, you can also search for EPSG because the SRIDs from spatialite (used in ETL) are compatible with EPSG.
