Spatial Reprojection
Reprojection in GIS
Reprojection is often confusing to users new to GIS, and while ThinkGeo APIs make it easy to switch between projections, it’s good to illustrate why you would need to. We first have to consider how to turn locations on a 3D globe into a flat 2D representation, and this starts with the 'decimal degrees' system. Decimal degrees is an ingenious system where points on a sphere are mapped based on their relative angle from a single point inside the center of the sphere. Imagine you are in the center of the sphere and you start with an arbitrary reference point of 0.0 X and 0.0 Y (For the Earth, this point is off the coast of Africa, at the equator). How would you represent the location of a place like Chicago? From our (0,0) reference point, you would rotate 41.87 degrees on the north/south axis and 87.62 degrees on the east/west axis. From here, projecting a point towards the outside of the sphere gives us the location of Chicago.
While this system is great for accurately representing points on a globe, locations are often not the only thing we care about. In GIS, we want to solve other problems like calculating accurate distances between points, finding the area of a polygon, or accurately representing angles of real world entities like countries. While any particular projection can give you a few those things, no single 2D projection can give you all of them at the same time for the entire world.
Because no projection is perfect, you have to choose a projection based on where you are and what is important to you. A perfect example of this is the Spherical Mercator projection, which is used by Google Maps, Bing Maps, and nearly all online mapping companies. This projection is a good middle ground when you want to display the world with a fairly accurate representation of most countries. However, it becomes very weak around the poles, and you can easily see this with Greenland and Antarctica.
Different countries have national projections that focus on displaying their country with the least number of tradeoffs, at the expense of other countries. An example of this is in the United States, where a set of projections called 'State Plane' are used for display and measurement based on the region of the country you are in. North Texas might have a slightly different State Plane projection than Central Texas, because these are used for land surveying and are highly tuned for that exact part of the world.
While most of you will be using Spherical Mercator because it’s a decent projection for North America, it’s important to realize that distances will not be as accurate as with a local State Plane projection, and you need to keep this in mind. If your app requires very accurate measurements you may consider using a different projection, at least for calculations. For example, you might use Spherical Mercator to display your maps, but when a user uses a tool to measure distance, you convert the coordinates from Spherical Mercator to State Plane or UTM and calculate the distance based on those reprojected points.
* Feature available, but no specific sample.