坐标转换参数类构造函数。
Parameters
Allowed options properties
features |
{Array<SuperMap.Feature>} 要进行坐标转换的要素。 |
sourceEpsgCode |
{Integer} 要进行坐标转换的要素的坐标系编号——EPSG Code。 |
sourcePrj |
{Object} 要进行坐标转换的要素的坐标系参数,及sourceEpsgCode相比,会优先选用此参数 |
targetEpsgCode |
{Integer} 坐标转换的结果的坐标系编号——EPSG Code。 |
targetPrj |
{Object} 坐标转换的结果的坐标系参数,及targetEpsgCode相比,会优先选用此参数 |
Exampels
var transferParams = new SuperMap.REST.CoordTransferParameters({ features:vectorLayer.features, targetPrj:{“distanceUnit”:”METER”,”projectionParam”:null,”epsgCode”:4326,”coordUnit”:”DEGREE”,”name”:”Longitude / Latitude Coordinate System---GCS_WGS_1984”,”projection”:null,”type”:”PCS_EARTH_LONGITUDE_LATITUDE”,”coordSystem”:{“datum”:{“name”:”D_WGS_1984”,”type”:”DATUM_WGS_1984”,”spheroid”:{“flatten”:0.00335281066474748,”name”:”WGS_1984”,”axis”:6378137,”type”:”SPHEROID_WGS_1984”}},”unit”:”DEGREE”,”spatialRefType”:”SPATIALREF_EARTH_LONGITUDE_LATITUDE”,”name”:”GCS_WGS_1984”,”type”:”GCS_WGS_1984”,”primeMeridian”:{“longitudeValue”:0,”name”:”Greenwich”,”type”:”PRIMEMERIDIAN_GREENWICH”}}}, sourcePrj:{“distanceUnit”:”METER”,”projectionParam”:{“centralParallel”:0,”firstPointLongitude”:0,”rectifiedAngle”:0,”scaleFactor”:1,”falseNorthing”:0,”centralMeridian”:0,”secondStandardParallel”:0,”secondPointLongitude”:0,”azimuth”:0,”falseEasting”:0,”firstStandardParallel”:0},”epsgCode”:3857,”coordUnit”:”METER”,”name”:”User Define”,”projection”:{“name”:”SPHERE_MERCATOR”,”type”:”PRJ_SPHERE_MERCATOR”},”type”:”PCS_USER_DEFINED”,”coordSystem”:{“datum”:{“name”:”D_WGS_1984”,”type”:”DATUM_WGS_1984”,”spheroid”:{“flatten”:0.00335281066474748,”name”:”WGS_1984”,”axis”:6378137,”type”:”SPHEROID_WGS_1984”}},”unit”:”DEGREE”,”spatialRefType”:”SPATIALREF_EARTH_LONGITUDE_LATITUDE”,”name”:”GCS_WGS_1984”,”type”:”GCS_WGS_1984”,”primeMeridian”:{“longitudeValue”:0,”name”:”Greenwich”,”type”:”PRIMEMERIDIAN_GREENWICH”}}} });