code: function (renderable) {
                  if (!(renderable instanceof WorldWind.SurfaceEllipse)) {
                      throw new ArgumentError(
                          Logger.logMessage(Logger.LEVEL_SEVERE, "GeoJSONExporter", "exportSurfaceEllipse",
                              "invalidTypeOfRenderable"));
                  }
  
                  var sb = '{';
                  sb = sb + '"' + GeoJSONConstants.FIELD_TYPE + '":"' + GeoJSONConstants.TYPE_POLYGON + '",';
                  sb = sb + '"' + GeoJSONConstants.FIELD_COORDINATES + '":[';
                  sb = sb + '[';
                  for (var i = 0; i < renderable._boundaries.length; i++) {
                      sb = sb + '[' + renderable._boundaries[i].longitude + ',' +
                          renderable._boundaries[i].latitude + ']';
                      sb = sb + ',';
  
                      if (i === renderable._boundaries.length - 1) {
                          sb = sb + '[' + renderable._boundaries[0].longitude + ',' +
                              renderable._boundaries[0].latitude + ']';
                      }
                  }
                  sb = sb + ']';
                  sb = sb + ']';
                  sb = sb + '}';
                  return sb;
              }
docs: Exports a [SurfaceEllipse]{@link SurfaceEllipse} in GeoJSON format of type Polygon.
  @param {SurfaceEllipse} renderable The SurfaceEllipse object.
  @throws {ArgumentError} If the specified argument is null or undefined.
  @returns {String} GeoJSON format.