好的,使用 Spatialreference.org 的 REST 服务,您可以获得此投影的定义 (http://spatialreference.org/ref/sr-org/7345/proj4/),结果是
+proj=poly +lat_0=33.625 +lon_0=77.375 +x_0=0 +y_0=0 +a=6377301.243 +b=6356100.228368102 +units=m +no_defs
要使其与 proj4 一起工作,请在 defs/ 文件夹中创建一个定义文件,SRORG7345.js
其中包含以下内容:
Proj4js.defs["SRORG7345"] = "+proj=poly +lat_0=33.625 +lon_0=77.375 +x_0=0 +y_0=0 +a=6377301.243 +b=6356100.228368102 +units=m +no_defs";
然后执行此操作以从 EPSG:4236 转换为您的新投影:
<html>
<Script src='proj4js-compressed.js'></script>
<script src='defs/EPSG4236.js'></script>
<script src='defs/SRORG7345.js'></script>
<script>
// creating source and destination Proj4js objects
// once initialized, these may be re-used as often as needed
var source = new Proj4js.Proj('EPSG:4236'); //source coordinates will be in Longitude/Latitude
var dest = new Proj4js.Proj('SRORG7345'); //IndiaPolyConic
var p = new Proj4js.Point(-76.0,45.0); //any object will do as long as it has 'x' and 'y' properties
Proj4js.transform(source, dest, p); //do the transformation. x and y are modified in place
console.log(p);
</script>
</html>
我注意到,根据 proj4js 项目页面,多锥转换“尚未针对任何测试点进行验证”,因此您可能需要对这些结果进行一些检查。