转换参数说明
arcgis service rest的project服务参数
Input Spatial Reference(inSR):输入坐标系
Output Spatial Reference(outSR):输出坐标系
Geometries(geometries):输入转换的坐标JSON,可以是点、线、面
Datum Transformation(transformation):坐标转换参数
Transform Forward(transformForward):是否参数转换?
Format(f):输出类型JSON或者HTML
定义Geometries类
首先定义一个RestGeometries类,方便生成Geometries的json字符串
import java.util.ArrayList;
import java.util.List;
public class RestGeometries {
private String geometryType;
private List geometries = new ArrayList();
public String getGeometryType() {
return geometryType;
}
public void setGeometryType(String geometryType) {
this.geometryType = geometryType;
}
public List getGeometries() {
return geometries;
}
public void setGeometries(List geometries) {
this.geometries = geometries;
}
}
其中geometryType 可以是
另外上面涉及一个类Rings用于存储坐标点
import java.util.ArrayList;
import java.util.List;
public class Rings {
private List> rings =