Map Projection |

| HOME | Using Noobeed to transform map projection and geographic coordinates back and forth are just one command away in the interactive mode. If writing a program, Noobeed can almost handle any type and format of data for any number of points. From time to time, the function "deg" and "dms" are found very handy when dealing with non-decimal degree angles. Not only Noobeed can transform coordinates between geographic and map projection system, it can also transform coordinates between different map projections and different geodetic datum by using just one single command. Thank to the designing of the Projection class that an Ellipsoid object is always embedded in a Projection object. Suppose a point in New Mexico, having a state plane coordinate of - X = 531407.353 and Y = 139269.107, is going to be converted to geographic coordinate.
- The state plane coordinate is a Transverse Mercator (TM) projection, with an origin at latitude 31 N degree and longitude 106 W degree, and a scale factor at central meridian of 0.9999. The false origin is X = 500,000 and Y = 0.
- The ellipsoid is Clarke 1966, (a = 6378206.4 and f = 1/294.9786982)
First we start off with declaring an ellipsoid, as follows.
Since ellipsoid Clarke 1966 is one of the pre-defined ellipsoids in Noobeed, we can also do the following.
Next we create a Projection object and set the specific ellipsoid to it.
Then we set the projection object to Tranverse Mercator by using the function "setTM".
The first argument in function "setTM" is latitude of origin, followed by longitude of origin, scale factor at central meridian, and false origin in x and y. Now it's time to convert a map projection coordinate to geographic coordinate.
The variable "lat_lon" is a Pt2D object, thus we extract latitude and longitude from its x and y member data. The dms is to convert from decimal degree to degree minute second format. We can check the result by convert the latitude and longitude back to the map projection coordinate, as follows.
The following is another example of Noobeed program to plot the projection of latitude and longitude lines. They are drawn on an Image_uch object, "A", which is finally saved as a TIF file for visualization.
Here is the result, "plot_orthgph.tif".
| HOME | |