In the previous recipe, you learned that many CRS exist and data can be converted from one form to another.
In some cases, CRS, even if they are different, are really very similar. So, for general mapping purposes, you can consider them identical.
In this recipe, you'll discover a simple, yet very useful, tool that ships with GeoServer: the reprojection console. It lets you have a look at how coordinates change when you move data from an SRS to another one.
EPSG:4326
in Source CRS and EPSG:4269
in Target CRS. Then, insert POINT(-98.5795 39.828175)
in Geometry of Source CRS. Click on the Forward Transformation link; GeoServer calculates the new coordinates for you and fills the Geometry of Target CRS textbox.You may be wondering how I chose the coordinates; well, they were not randomly selected. This point is known as the geometrical center of contiguous USA; for more information, have a look at http://en.wikipedia.org/wiki/Geographic_center_of_the_contiguous_United_States.
EPSG:4230
and insert POINT(12.492269 41.890169)
in the Geometry of Source CRS textbox. Again click on the Forward Transformation link and look at the result of the transformation:Controls inside the Reprojection console are quite self-explanatory. Basically, you have to set two CRS and geometry, and then you can transform the geometry from a CRS to another. As you may have guessed, the function is reversible and almost all transformations do not have a direction, so you can operate them both ways, for example, converting from WGS84 to ED50 or vice versa.
To answer this question, you should understand how GeoServer transforms coordinates from a CRS to another. In the Reprojection Console, click on the link just to the right of the Target CRS textbox.
As the pop up suggests, a new window opens with the full description of the CRS.
Focus on the TOWGS84 row. It contains the parameters to be used in transformation among WGS84 and NAD83. There are different types of transformations and according to the type, this could require from a minimum of three to seven parameters. Anyway, in this case, all parameters are equal to zero. So, GeoServer considers NAD83 and WGS84 identical and no transformation is applied.
From a geodetic point of view, this isn't always correct; you may need more information about the data. Indeed, the first definition of WGS84 and NAD83 was fairly identical and differences among the two ellipsoids were under the meter accuracy, which is far less than the error introduced by transformations. If you are not going to deal with very accurate geodetic data, you can go with this simplification without any issue.
Now, check the same parameters for the WGS84 to ED50 transformation.
As you see, in this case, all seven parameters are populated and as you may expect, the transformation result is quite different.
3.15.12.34