String str= "{\"rings\":[[[1007664.4779535953,3710553.4649297176],[957962.4793888753,3190110.978805308],[1266114.9310351424,3430468.042044999],[1007664.4779535953,3710553.4649297176]]],\"spatialReference\":{\"wkid\":102100}} ";
JsonFactory jsonFactory = new JsonFactory();
try {
JsonParser jsonParser = jsonFactory.createJsonParser(str);
MapGeometry mapgeo = GeometryEngine.jsonToGeometry(jsonParser);
Geometry geo = mapgeo.getGeometry();
} catch (JsonParseException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
字符串是通过GeometryEngine的geometryToJson方法生成的。