<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Tommy Chheng &#187; state plane</title>
	<atom:link href="http://tommy.chheng.com/index.php/tag/state-plane/feed/" rel="self" type="application/rss+xml" />
	<link>http://tommy.chheng.com</link>
	<description>All Things Programming!</description>
	<lastBuildDate>Wed, 11 Aug 2010 05:58:55 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Converting from United States State Plane Coordinate System to Lat/Long WGS84</title>
		<link>http://tommy.chheng.com/index.php/2009/11/converting-from-united-states-state-plane-coordinate-system-to-latlong-wgs84/</link>
		<comments>http://tommy.chheng.com/index.php/2009/11/converting-from-united-states-state-plane-coordinate-system-to-latlong-wgs84/#comments</comments>
		<pubDate>Tue, 10 Nov 2009 05:03:09 +0000</pubDate>
		<dc:creator>tommy</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[state plane]]></category>
		<category><![CDATA[wgs84]]></category>

		<guid isPermaLink="false">http://tommy.chheng.com/?p=169</guid>
		<description><![CDATA[State Plane Coordinate System is a cartesian coordinate system that is widely used by many local practitioners in the United States. It&#8217;s only useful for local regions because projections used ignore the Earth&#8217;s curvature. UTM? When googling solutions for the conversion, I came across the UTM system. It looked related as it referenced the data [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://en.wikipedia.org/wiki/State_Plane_Coordinate_System">State Plane Coordinate System</a> is a cartesian coordinate system that is widely used by many local practitioners in the United States. It&#8217;s only useful for local regions because projections used ignore the Earth&#8217;s curvature.</p>
<p><strong>UTM?</strong><br />
When googling solutions for the conversion, I came across the <a href="http://en.wikipedia.org/wiki/Universal_Transverse_Mercator_coordinate_system">UTM system.</a> It looked related as it referenced the data in the same easting and northing points. UTM is a cartesian coordinate system but generalized for the entire world. It is not as specific as the State Plane Coordinate System.</p>
<p><strong>WGS84?</strong><br />
<a href="http://en.wikipedia.org/wiki/World_Geodetic_System">WGS84</a> is the latest revision for the World Geodetic System widely used. Google Earth references lat/lng using this system and this is our target.</p>
<p><strong>Convert from the California Zone VI State Plane Coordinate System to WGS84.</strong><br />
Now, back to the problem, our input is 6080411.905 ft easting 2169099.127 ft northing. We want its corresponding lat/lng.</p>
<p><strong>Use cs2cs for the conversion</strong><br />
Download <a href="http://trac.osgeo.org/proj/wiki/man_cs2cs">cs2cs</a> from <a href="http://trac.osgeo.org/proj">proj.4</a> cs2cs will convert coordinates from one system to another with the right projection parameters.</p>
<p><strong>Find the corresponding projection for California Zone VI State Plane Coordinate System:</strong></p>
<p><a href="http://spatialreference.org/ref/esri">spatialreference.org</a> has an extensive source of different coordinate systems.</p>
<p>Here&#8217;s the correct parameters for California VI as found on <a href="http://spatialreference.org/ref/esri/102646/">http://spatialreference.org/ref/esri/102646/</a></p>
<pre>
PROJCS["NAD_1983_StatePlane_California_VI_FIPS_0406_Feet",
    GEOGCS["GCS_North_American_1983",
        DATUM["North_American_Datum_1983",
            SPHEROID["GRS_1980",6378137,298.257222101]],
        PRIMEM["Greenwich",0],
        UNIT["Degree",0.017453292519943295]],
    PROJECTION["Lambert_Conformal_Conic_2SP"],
    PARAMETER["False_Easting",6561666.666666666],
    PARAMETER["False_Northing",1640416.666666667],
    PARAMETER["Central_Meridian",-116.25],
    PARAMETER["Standard_Parallel_1",32.78333333333333],
    PARAMETER["Standard_Parallel_2",33.88333333333333],
    PARAMETER["Latitude_Of_Origin",32.16666666666666],
    UNIT["Foot_US",0.30480060960121924],
    AUTHORITY["EPSG","102646"]]
</pre>
<p><strong>Run cs2cs</strong><br />
Pipe the input coordinates to cs2cs with the correct parameters given above.<br />
<code>echo '6080411.905 2169099.127' | cs2cs -f %.16f +proj=lcc +lat_1=32.78333333333333 +lat_2=33.88333333333333 +lat_0=32.16666666666666 +lon_0=-116.25 +x_0=2000000 +y_0=500000.0000000002 +ellps=GRS80 +datum=NAD83 +to_meter=0.3048006096012192 +no_defs +to  +proj=latlon</code></p>
<p><strong>Lat/Lng Output:</strong><br />
<code>-117.8701429123491806   33.6091316264922995 0.0000000000000000</code></p>
<p>Alternatively, if you can&#8217;t use cs2cs or you rather implement the conversion directly with the projection parameters. The transformation equations here are listed at <a href="http://www.remotesensing.org/geotiff/proj_list/lambert_conic_conformal_2sp.html">http://www.remotesensing.org/geotiff/proj_list/lambert_conic_conformal_2sp.html</a></p>
]]></content:encoded>
			<wfw:commentRss>http://tommy.chheng.com/index.php/2009/11/converting-from-united-states-state-plane-coordinate-system-to-latlong-wgs84/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
