package com.common.argis;
import java.io.IOException;
/**
* 计算 polygons 的面积
*
* @param polygons 格式:[geo1,geo2...]
* @return
* @throws IOException
*/
public static String callGeoAreaService(String polygons) throws Exception {
polygons = polygons.replaceAll(" ", "");
String[] rings = polygons.split("},\\{");
Double tempArea = 0d;
for(int k = 0; k < rings.length; k){
rings[k] = rings[k].replaceAll("\\{", "");
rings[k] = rings[k].replaceAll("}", "");
int end_i = rings[k].indexOf(

