坐標轉換:
TWD97(台灣)轉WGS84
X: Y:
TWD97(澎湖)轉WGS84
X: Y:
蘭伯特投影坐標轉WGS84
X: Y:
範例程式碼(詳細請點右鍵觀看原始碼):
<script type="text/javascript" src="http://ccts.sinica.edu.tw/api/CCTS_API.js"></script>
<script>
var getTwd97towgs84 = function ()
{
document.getElementById("view").innerHTML = "";
var tf = new Transformation();
var twd97X = document.getElementById("twd97X").value;
var twd97Y = document.getElementById("twd97Y").value;

tf.twd97towgs84(twd97X, twd97Y, function (result, status)
{
if (result != "" && result != null)
{
document.getElementById("view").innerHTML += "轉換結果:" + result.getX() + "," + result.getY() + "," + status + "<br>";
}
else
{
document.getElementById("view").innerHTML = status;
}
});
}

var getTwd97_119towgs84 = function ()
{
document.getElementById("view").innerHTML = "";
var tf = new Transformation();
var twd97_119X = document.getElementById("twd97_119X").value;
var twd97_119Y = document.getElementById("twd97_119Y").value;

tf.twd97_119towgs84(twd97_119X, twd97_119Y, function (result, status)
{
if (result != "" && result != null)
{
document.getElementById("view").innerHTML += "轉換結果:" + result.getX() + "," + result.getY() + "," + status + "<br>";
}
else
{
document.getElementById("view").innerHTML = status;
}
});
}

var getLccptowgs84 = function ()
{
document.getElementById("view").innerHTML = "";
var tf = new Transformation();
var lccpX = document.getElementById("lccpX").value;
var lccpY = document.getElementById("lccpY").value;

tf.lccptowgs84(lccpX, lccpY, function (result, status)
{
if (result != "" && result != null)
{
document.getElementById("view").innerHTML += "轉換結果:" + result.getX() + "," + result.getY() + "," + status + "<br>";
}
else
{
document.getElementById("view").innerHTML = status;
}
});
}
</script>